@openfin/node-adapter 34.78.9 → 34.78.11

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';
@@ -1466,7 +1469,7 @@ declare type AutoResizeOptions = {
1466
1469
  };
1467
1470
 
1468
1471
  declare class Base {
1469
- wire: Transport;
1472
+ /* Excluded from this release type: wire */
1470
1473
  /* Excluded from this release type: __constructor */
1471
1474
  protected get fin(): OpenFin.Fin<OpenFin.EntityType>;
1472
1475
  get me(): Identity;
@@ -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.
@@ -1890,7 +1896,7 @@ declare type Channel_3 = OpenFin.Fin['InterApplicationBus']['Channel'];
1890
1896
 
1891
1897
  declare type ChannelAction = OpenFin.ChannelAction;
1892
1898
 
1893
- declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_7 | ClientIdentity_2) => unknown;
1899
+ declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_7 | ClientIdentity) => unknown;
1894
1900
 
1895
1901
  declare class ChannelBase {
1896
1902
  protected subscriptions: Map<string, ChannelAction>;
@@ -2243,7 +2249,7 @@ declare class ChannelClient extends ChannelBase {
2243
2249
  * })();
2244
2250
  * ```
2245
2251
  */
2246
- onDisconnection(listener: DisconnectionListener): void;
2252
+ onDisconnection(listener: OpenFin.ChannelProviderDisconnectionListener): void;
2247
2253
  /**
2248
2254
  * Disconnects the client from the channel.
2249
2255
  *
@@ -2263,6 +2269,10 @@ declare class ChannelClient extends ChannelBase {
2263
2269
 
2264
2270
  declare type ChannelClient_2 = OpenFin.ChannelClient;
2265
2271
 
2272
+ declare type ChannelClientConnectionListener = (identity: ClientIdentity, connectionMessage?: any) => Promise<any> | any;
2273
+
2274
+ declare type ChannelClientDisconnectionListener = (identity: ClientIdentity) => any;
2275
+
2266
2276
  /**
2267
2277
  * Generated when a Channel client is connected.
2268
2278
  * @interface
@@ -2314,26 +2324,9 @@ declare type ChannelEvent = {
2314
2324
  topic: 'channel';
2315
2325
  } & (ChannelConnectedEvent | ChannelDisconnectedEvent);
2316
2326
 
2317
- declare type ChannelEvent_2 = ChannelEvents.ChannelEvent;
2318
-
2319
- declare namespace ChannelEvents {
2320
- export {
2321
- BaseChannelEvent,
2322
- ChannelConnectedEvent,
2323
- ChannelDisconnectedEvent,
2324
- ChannelEvent,
2325
- ChannelEventType
2326
- }
2327
- }
2328
-
2329
- /**
2330
- * A Channel event type.
2331
- */
2332
- declare type ChannelEventType = ChannelEvent['type'];
2333
-
2334
2327
  declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
2335
2328
 
2336
- declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_7 | ClientIdentity_2) => Promise<unknown> | unknown;
2329
+ declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_7 | ClientIdentity) => Promise<unknown> | unknown;
2337
2330
 
2338
2331
  /**
2339
2332
  * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
@@ -2456,7 +2449,7 @@ declare class ChannelProvider extends ChannelBase {
2456
2449
  * ```
2457
2450
  * @param listener
2458
2451
  */
2459
- onConnection(listener: ConnectionListener): void;
2452
+ onConnection(listener: OpenFin.ChannelClientConnectionListener): void;
2460
2453
  /**
2461
2454
  * Register a listener that is called on client disconnection. It is passed the disconnection event of the disconnecting
2462
2455
  * client.
@@ -2475,7 +2468,7 @@ declare class ChannelProvider extends ChannelBase {
2475
2468
  * })();
2476
2469
  * ```
2477
2470
  */
2478
- onDisconnection(listener: DisconnectionListener_2): void;
2471
+ onDisconnection(listener: OpenFin.ChannelClientDisconnectionListener): void;
2479
2472
  /**
2480
2473
  * Destroy the channel, raises `disconnected` events on all connected channel clients.
2481
2474
  *
@@ -2530,6 +2523,8 @@ declare class ChannelProvider extends ChannelBase {
2530
2523
  private static clientIsMultiRuntime;
2531
2524
  }
2532
2525
 
2526
+ declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_7) => any;
2527
+
2533
2528
  declare interface ChannelStrategy<T extends unknown> {
2534
2529
  onEndpointDisconnect(endpointId: string, listener: () => void): void;
2535
2530
  receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
@@ -2559,7 +2554,7 @@ declare type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
2559
2554
 
2560
2555
  declare interface ChildContentOptions {
2561
2556
  options: any;
2562
- entityType: EntityType_5;
2557
+ entityType: EntityType_4;
2563
2558
  }
2564
2559
 
2565
2560
  /**
@@ -2639,15 +2634,13 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
2639
2634
  /**
2640
2635
  * @interface
2641
2636
  */
2642
- declare type ClientConnectionPayload = ClientIdentity_2 & ClientInfo;
2643
-
2644
- declare type ClientIdentity = OpenFin.ClientIdentity;
2637
+ declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
2645
2638
 
2646
2639
  /**
2647
2640
  * Identity of a channel client
2648
2641
  * @interface
2649
2642
  */
2650
- declare type ClientIdentity_2 = Identity_5 & {
2643
+ declare type ClientIdentity = Identity_5 & {
2651
2644
  /**
2652
2645
  * Unique identifier for a client, because there can be multiple clients at one name/uuid entity.
2653
2646
  */
@@ -2658,7 +2651,7 @@ declare type ClientIdentity_2 = Identity_5 & {
2658
2651
  /**
2659
2652
  * @interface
2660
2653
  */
2661
- declare type ClientIdentityMultiRuntime = ClientIdentity_2 & {
2654
+ declare type ClientIdentityMultiRuntime = ClientIdentity & {
2662
2655
  runtimeUuid: string;
2663
2656
  };
2664
2657
 
@@ -2666,11 +2659,11 @@ declare type ClientIdentityMultiRuntime = ClientIdentity_2 & {
2666
2659
  * Extended channel client information
2667
2660
  * @interface
2668
2661
  */
2669
- declare type ClientInfo = Omit<ClientIdentity_2, 'isLocalEndpointId'> & {
2662
+ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
2670
2663
  /**
2671
2664
  * Indicates if the client belongs to a Window, View or IFrame
2672
2665
  */
2673
- entityType: EntityType_2;
2666
+ entityType: EntityType_5;
2674
2667
  /**
2675
2668
  * URL of the Window, View or IFrame at the time of connection to the Channel Provider.
2676
2669
  */
@@ -2873,6 +2866,9 @@ declare type CloseViewPayload = {
2873
2866
  view: Identity_5;
2874
2867
  };
2875
2868
 
2869
+ /**
2870
+ * Represents the shape of payload that contains the Window Identity and related options.
2871
+ */
2876
2872
  declare interface CloseWindowPayload {
2877
2873
  /**
2878
2874
  *
@@ -2947,8 +2943,6 @@ export declare function connect(config: ConnectConfig): Promise<Fin<'external co
2947
2943
 
2948
2944
  declare type ConnectConfig = ExistingConnectConfig | NewConnectConfig | ExternalConfig;
2949
2945
 
2950
- declare type ConnectionListener = (identity: ClientIdentity, connectionMessage?: any) => Promise<any> | any;
2951
-
2952
2946
  declare type Constructor<T = {}> = new () => T;
2953
2947
 
2954
2948
  declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
@@ -3585,10 +3579,6 @@ declare type DisabledMovementBoundsChangingEvent = BoundsChangeEvent & {
3585
3579
  type: 'disabled-movement-bounds-changing';
3586
3580
  };
3587
3581
 
3588
- declare type DisconnectionListener = (providerIdentity: OpenFin.ProviderIdentity) => any;
3589
-
3590
- declare type DisconnectionListener_2 = (identity: ClientIdentity) => any;
3591
-
3592
3582
  /**
3593
3583
  * The display data for a context group.
3594
3584
  */
@@ -3796,7 +3786,7 @@ declare type EntityInfo = OpenFin.EntityInfo;
3796
3786
  declare type EntityInfo_2 = {
3797
3787
  uuid: string;
3798
3788
  name: string;
3799
- entityType: EntityType_2;
3789
+ entityType: EntityType_5;
3800
3790
  };
3801
3791
 
3802
3792
  /**
@@ -3810,15 +3800,15 @@ declare type EntityProcessDetails = FrameProcessDetails & {
3810
3800
 
3811
3801
  declare type EntityType = OpenFin.EntityType;
3812
3802
 
3813
- declare type EntityType_2 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
3803
+ declare type EntityType_2 = OpenFin.EntityType;
3814
3804
 
3815
3805
  declare type EntityType_3 = OpenFin.EntityType;
3816
3806
 
3817
3807
  declare type EntityType_4 = OpenFin.EntityType;
3818
3808
 
3819
- declare type EntityType_5 = OpenFin.EntityType;
3809
+ declare type EntityType_5 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
3820
3810
 
3821
- declare type EntityTypeHelpers<T extends EntityType_4> = T extends 'view' ? {
3811
+ declare type EntityTypeHelpers<T extends EntityType_3> = T extends 'view' ? {
3822
3812
  isView: true;
3823
3813
  isWindow: false;
3824
3814
  isExternal: false;
@@ -3856,7 +3846,7 @@ declare interface Environment {
3856
3846
  createChildContent(options: ChildContentOptions): Promise<any>;
3857
3847
  getWebWindow(identity: OpenFin.Identity): globalThis.Window;
3858
3848
  getCurrentEntityIdentity(): OpenFin.EntityInfo;
3859
- getCurrentEntityType(): EntityType_5;
3849
+ getCurrentEntityType(): EntityType_4;
3860
3850
  raiseEvent(eventName: string, eventArgs: any): void;
3861
3851
  childViews: boolean;
3862
3852
  getUrl(): string;
@@ -3871,7 +3861,7 @@ declare interface Environment {
3871
3861
 
3872
3862
  declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
3873
3863
 
3874
- declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity_2) => unknown;
3864
+ declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity) => unknown;
3875
3865
 
3876
3866
  /**
3877
3867
  * This function converts JS errors into plain objects
@@ -4032,7 +4022,9 @@ declare type ExternalApplicationDisconnectedEvent = BaseEvent & {
4032
4022
  };
4033
4023
 
4034
4024
  /**
4035
- * An external application event.
4025
+ * [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
4026
+ * discriminated by {@link ExternalApplicationEvent.type | their type}. Event payloads unique to `ExternalApplication` can be found
4027
+ * under the {@link OpenFin.ExternalApplicationEvents} namespace.
4036
4028
  */
4037
4029
  declare type ExternalApplicationEvent = {
4038
4030
  topic: 'externalapplication';
@@ -4259,26 +4251,13 @@ declare type FileDownloadStartedEvent = FileDownloadEvent & {
4259
4251
  state: 'started';
4260
4252
  };
4261
4253
 
4262
- declare class Fin<MeType extends EntityType = EntityType> extends EventEmitter implements FinApi<MeType> {
4263
- private wire;
4264
- System: System;
4265
- Window: _WindowModule;
4266
- Application: ApplicationModule;
4267
- InterApplicationBus: InterApplicationBus;
4268
- Clipboard: Clipboard_2;
4269
- ExternalApplication: ExternalApplicationModule;
4270
- Frame: _FrameModule;
4271
- GlobalHotkey: GlobalHotkey;
4272
- View: ViewModule;
4273
- Platform: PlatformModule;
4274
- Interop: InteropModule;
4275
- SnapshotSource: SnapshotSourceModule;
4276
- readonly me: Me<MeType>;
4277
- /* Excluded from this release type: __constructor */
4278
- }
4254
+ /* Excluded from this release type: Fin */
4279
4255
 
4280
- declare type Fin_2<MeType extends EntityType_2 = 'window' | 'view'> = FinApi<MeType>;
4256
+ declare type Fin_2<MeType extends EntityType_5 = 'window' | 'view'> = FinApi<MeType>;
4281
4257
 
4258
+ /**
4259
+ * Type of the global `fin` entry point for the OpenFin API.
4260
+ */
4282
4261
  declare interface FinApi<MeType extends EntityType> {
4283
4262
  readonly System: System;
4284
4263
  readonly Window: _WindowModule;
@@ -4537,7 +4516,9 @@ declare namespace FrameEvents {
4537
4516
  }
4538
4517
 
4539
4518
  /**
4540
- * A Frame event type.
4519
+ * [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
4520
+ * discriminated by {@link _Frame.type | their type}. Event payloads unique to `Frame` can be found
4521
+ * under the {@link OpenFin.FrameEvents} namespace.
4541
4522
  */
4542
4523
  declare type FrameEventType = FrameEvent['type'];
4543
4524
 
@@ -4545,7 +4526,7 @@ declare type FrameInfo = {
4545
4526
  name: string;
4546
4527
  uuid: string;
4547
4528
  url: string;
4548
- entityType: EntityType_2;
4529
+ entityType: EntityType_5;
4549
4530
  parent: Identity_5;
4550
4531
  };
4551
4532
 
@@ -4638,7 +4619,7 @@ declare type GetWindowContextPayload = {
4638
4619
  /**
4639
4620
  * Entity type of the target of the context update ('view' or 'window').
4640
4621
  */
4641
- entityType: EntityType_2;
4622
+ entityType: EntityType_5;
4642
4623
  /**
4643
4624
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
4644
4625
  */
@@ -4747,7 +4728,9 @@ declare class GlobalHotkey extends EmitterBase<OpenFin.GlobalHotkeyEvent> {
4747
4728
  }
4748
4729
 
4749
4730
  /**
4750
- * A global hotkey event.
4731
+ * [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
4732
+ * discriminated by {@link GlobalHotkeyEvent.type | their type}. Event payloads unique to `GlobalHotkey` can be found
4733
+ * under the {@link OpenFin.GlobalHotkeyEvents} namespace.
4751
4734
  */
4752
4735
  declare type GlobalHotkeyEvent = {
4753
4736
  topic: 'global-hotkey';
@@ -5101,6 +5084,9 @@ declare class InterApplicationBus extends Base {
5101
5084
 
5102
5085
  declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
5103
5086
 
5087
+ /**
5088
+ * Define whether to enable interop action logging.
5089
+ */
5104
5090
  declare interface InteropActionLoggingOption {
5105
5091
  enabled: boolean;
5106
5092
  }
@@ -7259,7 +7245,7 @@ declare type MaximizedEvent = NamedEvent & {
7259
7245
  type: 'maximized';
7260
7246
  };
7261
7247
 
7262
- declare type Me<MeType extends EntityType_4> = OpenFin.EntityInfo & (MeType extends 'view' ? EntityTypeHelpers<'view'> & OpenFin.View & WithInterop : MeType extends 'window' ? EntityTypeHelpers<'window'> & OpenFin.Window & WithInterop : MeType extends 'iframe' ? EntityTypeHelpers<'iframe'> & OpenFin.Frame & WithInterop : MeType extends 'external connection' ? EntityTypeHelpers<'external connection'> & OpenFin.ExternalApplication & WithInterop : EntityTypeHelpers<MeType> & WithInterop) & {
7248
+ declare type Me<MeType extends EntityType_3> = OpenFin.EntityInfo & (MeType extends 'view' ? EntityTypeHelpers<'view'> & OpenFin.View & WithInterop : MeType extends 'window' ? EntityTypeHelpers<'window'> & OpenFin.Window & WithInterop : MeType extends 'iframe' ? EntityTypeHelpers<'iframe'> & OpenFin.Frame & WithInterop : MeType extends 'external connection' ? EntityTypeHelpers<'external connection'> & OpenFin.ExternalApplication & WithInterop : EntityTypeHelpers<MeType> & WithInterop) & {
7263
7249
  isOpenFin: boolean;
7264
7250
  };
7265
7251
 
@@ -7799,21 +7785,32 @@ declare type Opacity = TransitionBase & {
7799
7785
 
7800
7786
  declare namespace OpenFin {
7801
7787
  export {
7788
+ FinApi,
7802
7789
  Fin_2 as Fin,
7803
7790
  Application,
7791
+ ApplicationModule,
7804
7792
  ExternalApplication,
7793
+ ExternalApplicationModule,
7805
7794
  _Frame as Frame,
7795
+ _FrameModule,
7796
+ Channel,
7806
7797
  ChannelClient,
7807
7798
  ChannelProvider,
7808
7799
  Platform,
7800
+ PlatformModule,
7809
7801
  Layout,
7802
+ LayoutModule,
7810
7803
  View_2 as View,
7804
+ ViewModule,
7811
7805
  ColumnOrRow,
7812
7806
  TabStack,
7813
7807
  _Window as Window,
7808
+ _WindowModule,
7814
7809
  InteropClient,
7815
7810
  InteropBroker,
7811
+ InteropModule,
7816
7812
  SnapshotSource,
7813
+ SnapshotSourceModule,
7817
7814
  LayoutEntityDefinition,
7818
7815
  LayoutEntityTypes,
7819
7816
  LayoutPosition,
@@ -7821,12 +7818,12 @@ declare namespace OpenFin {
7821
7818
  PlatformProvider,
7822
7819
  ApplicationIdentity_2 as ApplicationIdentity,
7823
7820
  Identity_5 as Identity,
7824
- ClientIdentity_2 as ClientIdentity,
7821
+ ClientIdentity,
7825
7822
  ClientInfo,
7826
7823
  ClientIdentityMultiRuntime,
7827
7824
  ClientConnectionPayload,
7828
7825
  EntityInfo_2 as EntityInfo,
7829
- EntityType_2 as EntityType,
7826
+ EntityType_5 as EntityType,
7830
7827
  Bounds,
7831
7828
  WindowBounds,
7832
7829
  Rectangle,
@@ -8066,7 +8063,6 @@ declare namespace OpenFin {
8066
8063
  AppVersionCompleteEvent,
8067
8064
  AppVersionRuntimeStatusEvent,
8068
8065
  BaseEvents,
8069
- ChannelEvents,
8070
8066
  WebContentsEvents,
8071
8067
  SystemEvents,
8072
8068
  ApplicationEvents,
@@ -8077,7 +8073,6 @@ declare namespace OpenFin {
8077
8073
  PlatformEvents,
8078
8074
  ExternalApplicationEvents,
8079
8075
  BaseEvent_2 as BaseEvent,
8080
- ChannelEvent_2 as ChannelEvent,
8081
8076
  WebContentsEvent_2 as WebContentsEvent,
8082
8077
  SystemEvent_2 as SystemEvent,
8083
8078
  ApplicationEvent_2 as ApplicationEvent,
@@ -8097,7 +8092,11 @@ declare namespace OpenFin {
8097
8092
  Me,
8098
8093
  CapturePageOptions,
8099
8094
  ProcessLoggingOptions,
8100
- PositioningOptions
8095
+ PositioningOptions,
8096
+ ChannelClientConnectionListener,
8097
+ ChannelClientDisconnectionListener,
8098
+ ChannelProviderDisconnectionListener,
8099
+ RoutingInfo
8101
8100
  }
8102
8101
  }
8103
8102
  export default OpenFin;
@@ -8425,12 +8424,11 @@ declare class Platform extends EmitterBase<OpenFin.PlatformEvent> {
8425
8424
  */
8426
8425
  closeView(viewIdentity: OpenFin.Identity): Promise<void>;
8427
8426
  /**
8428
- * ***DEPRECATED - please use Platform.createView.***
8427
+ * ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
8429
8428
  * Reparents a specified view in a new target window.
8430
8429
  * @param viewIdentity View identity
8431
8430
  * @param target new owner window identity
8432
8431
  *
8433
- * @tutorial Platform.createView
8434
8432
  */
8435
8433
  reparentView(viewIdentity: OpenFin.Identity, target: OpenFin.Identity): Promise<View>;
8436
8434
  /**
@@ -8778,7 +8776,9 @@ declare type PlatformApiReadyEvent = BaseEvent & {
8778
8776
  };
8779
8777
 
8780
8778
  /**
8781
- * A Platform event.
8779
+ * [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
8780
+ * discriminated by {@link PlatformEvent.type | their type}. Event payloads unique to `Platform` can be found
8781
+ * under the {@link OpenFin.PlatformEvents} namespace.
8782
8782
  */
8783
8783
  declare type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
8784
8784
 
@@ -9521,30 +9521,109 @@ declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
9521
9521
 
9522
9522
  declare type PopupInteraction = 'clicked' | 'dismissed';
9523
9523
 
9524
+ /**
9525
+ * Popup window options.
9526
+ */
9524
9527
  declare interface PopupOptions {
9528
+ /**
9529
+ * Window creation options when using `showPopupWindow` to create a new window.
9530
+ */
9525
9531
  initialOptions?: Optional<WindowCreationOptions, 'name'>;
9532
+ /**
9533
+ * Updatable window options applied to new and existing windows when shown as popups.
9534
+ */
9526
9535
  additionalOptions?: UpdatableWindowOptions;
9536
+ /**
9537
+ * If a window with this `name` exists, it will be shown as a popup.
9538
+ * 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.
9539
+ */
9527
9540
  name?: string;
9541
+ /**
9542
+ * Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
9543
+ */
9528
9544
  url?: string;
9545
+ /**
9546
+ * Height of the popup window in pixels (takes priority over `intialOptions` size properties).
9547
+ * @defaultValue 300
9548
+ */
9529
9549
  height?: number;
9550
+ /**
9551
+ * Width of the popup window in pixels (takes priority over `intialOptions` size properties).
9552
+ * @defaultValue 300
9553
+ */
9530
9554
  width?: number;
9555
+ /**
9556
+ * Left position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
9557
+ * @defaultValue 0
9558
+ */
9531
9559
  x?: number;
9560
+ /**
9561
+ * Top position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
9562
+ * @defaultValue 0
9563
+ */
9532
9564
  y?: number;
9565
+ /**
9566
+ * Determines what happens if the popup window is blurred.
9567
+ * * 'modal' restricts resizing and positioning in the caller.
9568
+ * * 'hide' hides the popup window on blur.
9569
+ * * 'close' closes the popup window on blur.
9570
+ * @defaultValue 'close'
9571
+ */
9533
9572
  blurBehavior?: PopupBlurBehavior;
9573
+ /**
9574
+ * Determines what happens when the popup window calls `dispatchPopupResult`.
9575
+ * * 'none' will do nothing.
9576
+ * * 'hide' hides the popup window on `dispatchPopupResult`.
9577
+ * * 'close' closes the popup window on `dispatchPopupResult`.
9578
+ * @defaultValue 'close'
9579
+ */
9534
9580
  resultDispatchBehavior?: PopupResultBehavior;
9581
+ /**
9582
+ * Hide the popup window instead of closing when `close` is called on it.
9583
+ * <br>Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
9584
+ * @defaultValue false
9585
+ */
9535
9586
  hideOnClose?: boolean;
9587
+ /**
9588
+ * Determines if the popup window should or should not be focused when it is shown.
9589
+ * @defaultValue true
9590
+ */
9536
9591
  focus?: boolean;
9592
+ /**
9593
+ * 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.
9594
+ */
9537
9595
  onPopupReady?: (popupWindow: _Window) => any;
9596
+ /**
9597
+ * Executed when this window's popup calls `dispatchPopupResult`.
9598
+ * <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
9599
+ */
9538
9600
  onPopupResult?: (payload: PopupResult) => any;
9539
9601
  }
9540
9602
 
9603
+ /**
9604
+ * The Popup result.
9605
+ *
9606
+ * @typeParam T - Type of data the Popup result contains
9607
+ */
9541
9608
  declare interface PopupResult<T = any> {
9609
+ /**
9610
+ * `name` and `uuid` of the popup window that called dispatched this result.
9611
+ */
9542
9612
  identity: {
9543
9613
  name: string;
9544
9614
  uuid: string;
9545
9615
  };
9616
+ /**
9617
+ * Result of the user interaction with the popup window.
9618
+ */
9546
9619
  result: PopupInteraction;
9620
+ /**
9621
+ * Data passed to `dispatchPopupResult`.
9622
+ */
9547
9623
  data?: T;
9624
+ /**
9625
+ * The last dispatch result.
9626
+ */
9548
9627
  lastDispatchResult?: PopupResult;
9549
9628
  }
9550
9629
 
@@ -9780,10 +9859,25 @@ declare type ProcessDetails = {
9780
9859
  pid: number;
9781
9860
  };
9782
9861
 
9862
+ /**
9863
+ * Process logging options
9864
+ */
9783
9865
  declare interface ProcessLoggingOptions {
9866
+ /**
9867
+ * Periodic Logging Interval (in seconds)
9868
+ */
9784
9869
  interval?: number;
9870
+ /**
9871
+ * Outlier Detection options
9872
+ */
9785
9873
  outlierDetection?: {
9874
+ /**
9875
+ * Outlier Interval (in seconds)
9876
+ */
9786
9877
  interval?: number;
9878
+ /**
9879
+ * Number of Process Info entries to collect for outlier analysis
9880
+ */
9787
9881
  entries?: number;
9788
9882
  };
9789
9883
  }
@@ -10335,7 +10429,7 @@ declare type RGB = {
10335
10429
  /**
10336
10430
  * @interface
10337
10431
  */
10338
- declare type RoutingInfo = OpenFin.ProviderIdentity & {
10432
+ declare type RoutingInfo = ProviderIdentity_7 & {
10339
10433
  endpointId: string;
10340
10434
  };
10341
10435
 
@@ -10557,7 +10651,7 @@ declare type SetWindowContextPayload = {
10557
10651
  /**
10558
10652
  * Entity type of the target of the context update ('view' or 'window').
10559
10653
  */
10560
- entityType: EntityType_2;
10654
+ entityType: EntityType_5;
10561
10655
  /**
10562
10656
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
10563
10657
  */
@@ -10650,16 +10744,18 @@ declare type Snapshot = {
10650
10744
  };
10651
10745
  };
10652
10746
 
10653
- declare type SnapshotProvider<T> = {
10654
- getSnapshot: () => Promise<T>;
10655
- applySnapshot: (snapshot: T) => Promise<void>;
10747
+ declare type SnapshotProvider<Snapshot = unknown> = {
10748
+ getSnapshot: () => Promise<Snapshot>;
10749
+ applySnapshot: (snapshot: Snapshot) => Promise<void>;
10656
10750
  };
10657
10751
 
10658
10752
  /**
10659
10753
  * Enables configuring a SnapshotSource with custom getSnapshot and applySnapshot methods.
10660
10754
  *
10755
+ * @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
10756
+ * custom snapshot implementations for legacy applications to define their own snapshot format.
10661
10757
  */
10662
- declare class SnapshotSource<T = any> extends Base {
10758
+ declare class SnapshotSource<Snapshot = unknown> extends Base {
10663
10759
  #private;
10664
10760
  /* Excluded from this release type: __constructor */
10665
10761
  get identity(): OpenFin.ApplicationIdentity;
@@ -10695,12 +10791,12 @@ declare class SnapshotSource<T = any> extends Base {
10695
10791
  * Call the SnapshotSource's getSnapshot method defined by {@link SnapshotSource.SnapshotSourceModule#init init}.
10696
10792
  *
10697
10793
  */
10698
- getSnapshot(): Promise<T>;
10794
+ getSnapshot(): Promise<Snapshot>;
10699
10795
  /**
10700
10796
  * Call the SnapshotSource's applySnapshot method defined by {@link SnapshotSource.SnapshotSourceModule#init init}.
10701
10797
  *
10702
10798
  */
10703
- applySnapshot(snapshot: T): Promise<void>;
10799
+ applySnapshot(snapshot: Snapshot): Promise<void>;
10704
10800
  }
10705
10801
 
10706
10802
  /**
@@ -10710,6 +10806,9 @@ declare class SnapshotSourceModule extends Base {
10710
10806
  /**
10711
10807
  * Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
10712
10808
  *
10809
+ * @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
10810
+ * custom snapshot implementations for legacy applications to define their own snapshot format.
10811
+ *
10713
10812
  * @example
10714
10813
  * ```js
10715
10814
  * const snapshotProvider = {
@@ -10725,8 +10824,9 @@ declare class SnapshotSourceModule extends Base {
10725
10824
  *
10726
10825
  * await fin.SnapshotSource.init(snapshotProvider);
10727
10826
  * ```
10827
+ *
10728
10828
  */
10729
- init<T = any>(provider: OpenFin.SnapshotProvider<T>): Promise<void>;
10829
+ init<Snapshot = unknown>(provider: OpenFin.SnapshotProvider<Snapshot>): Promise<void>;
10730
10830
  /**
10731
10831
  * Synchronously returns a SnapshotSource object that represents the current SnapshotSource.
10732
10832
  *
@@ -12243,7 +12343,10 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
12243
12343
  }
12244
12344
 
12245
12345
  /**
12246
- * A system event.
12346
+ * [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
12347
+ * discriminated by {@link SystemEvent.type | their type}. Event payloads unique to `System` can be found
12348
+ * under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
12349
+ * from which they propagate).
12247
12350
  */
12248
12351
  declare type SystemEvent = {
12249
12352
  topic: 'system';
@@ -12611,7 +12714,7 @@ declare type TransitionOptions = {
12611
12714
  tween?: tween;
12612
12715
  };
12613
12716
 
12614
- declare class Transport<MeType extends EntityType_3 = EntityType_3> extends EventEmitter {
12717
+ declare class Transport<MeType extends EntityType_2 = EntityType_2> extends EventEmitter {
12615
12718
  #private;
12616
12719
  protected wireListeners: Map<number, {
12617
12720
  resolve: Function;
@@ -13340,7 +13443,9 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
13340
13443
  };
13341
13444
 
13342
13445
  /**
13343
- * A View event.
13446
+ * [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
13447
+ * discriminated by {@link ViewEvent.type | their type}. Event payloads unique to `View` can be found
13448
+ * under the {@link OpenFin.ViewEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
13344
13449
  */
13345
13450
  declare type ViewEvent = {
13346
13451
  topic: 'view';
@@ -13504,6 +13609,9 @@ declare class ViewOverlay {
13504
13609
  setIgnoreViewMouseEvents(enabled: boolean): Promise<void>;
13505
13610
  }
13506
13611
 
13612
+ /**
13613
+ * Represents the payload shape for Views that are trying to prevent an unload.
13614
+ */
13507
13615
  declare interface ViewsPreventingUnloadPayload {
13508
13616
  /**
13509
13617
  * Specifies if the Window should close.
@@ -13537,6 +13645,9 @@ declare type ViewState = ViewCreationOptions & {
13537
13645
  minWidth?: number;
13538
13646
  };
13539
13647
 
13648
+ /**
13649
+ * The statuses of views specifying which of them are trying to prevent an unload and which are not.
13650
+ */
13540
13651
  declare interface ViewStatuses {
13541
13652
  /**
13542
13653
  * Identities of the Views that are preventing an unload.
@@ -15994,6 +16105,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
15994
16105
  */
15995
16106
  closePopupMenu(): Promise<void>;
15996
16107
  /**
16108
+ * @PORTED
15997
16109
  * @typedef {object} PopupOptions@typedef {object} PopupOptions
15998
16110
  * @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
16111
  * @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 +16123,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16011
16123
  * @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
16124
  */
16013
16125
  /**
16126
+ * @PORTED
16014
16127
  * @typedef {object} PopupResult@typedef {object} PopupResult
16015
16128
  * @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
16016
16129
  * @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
@@ -16156,7 +16269,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16156
16269
  */
16157
16270
  name: string;
16158
16271
  /**
16159
- * The right-most coordinate of the window
16272
+ * The right-most coordinate of the window.
16160
16273
  */
16161
16274
  right: number;
16162
16275
  state: string;
@@ -16179,7 +16292,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16179
16292
  };
16180
16293
 
16181
16294
  /**
16182
- * A Window event.
16295
+ * [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
16296
+ * discriminated by {@link WindowEvent.type | their type}. Event payloads unique to `Window` can be found
16297
+ * under the {@link OpenFin.WindowEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
16183
16298
  */
16184
16299
  declare type WindowEvent = {
16185
16300
  topic: 'window';