@openfin/node-adapter 34.78.12 → 34.78.14

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.
@@ -1154,11 +1154,13 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1154
1154
  plugins: boolean;
1155
1155
  /**
1156
1156
  * @defaultValue false
1157
+ *
1157
1158
  * Enable spell check at the application level.
1158
1159
  */
1159
1160
  spellCheck: boolean;
1160
1161
  /**
1161
1162
  * @defaultValue 'about:blank'
1163
+ *
1162
1164
  * The url to the application (specifically the application's main window).
1163
1165
  */
1164
1166
  url: string;
@@ -1175,35 +1177,66 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1175
1177
  * When set to `false` it will disable the same-origin policy for the app.
1176
1178
  */
1177
1179
  webSecurity: boolean;
1180
+ /**
1181
+ * Configuration for keyboard commands.
1182
+ * For details and usage, see {@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands Using Keyboard Commands}.
1183
+ */
1178
1184
  commands: ShortcutOverride[];
1179
1185
  isPlatformController: boolean;
1180
1186
  /**
1181
1187
  * @defaultValue 1000
1182
1188
  *
1183
- * Platforms Only. The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
1189
+ * **Platforms Only.** The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
1184
1190
  * If you do not wish for views to be pooled on your platform, set this property to zero.
1185
1191
  */
1186
1192
  maxViewPoolSize: number;
1187
- defaultWindowOptions: Partial<WindowOptions>;
1193
+ /**
1194
+ * **Platforms Only.** Default window options apply to all platform windows.
1195
+ */
1196
+ defaultWindowOptions: Partial<PlatformWindowOptions>;
1197
+ /**
1198
+ * **Platforms Only.** Default view options apply to all platform views.
1199
+ */
1188
1200
  defaultViewOptions: Partial<ViewOptions>;
1201
+ /**
1202
+ * **Platforms Only.** The snapshot to be applied.
1203
+ */
1189
1204
  snapshot: Snapshot;
1190
1205
  /**
1191
1206
  * @defaultValue false
1192
1207
  *
1193
- * Platforms Only. Prevent the Platform Provider from quitting automatically when the last Platform Window is closed.
1208
+ * **Platforms Only.** Prevent the Platform Provider from quitting automatically when the last Platform Window is closed.
1194
1209
  * Note: if the Platform Provider is showing, it won't close automatically.
1195
1210
  * If you want a hidden Platform Provider to remain open after the last Platform Window has been closed, set this property to true.
1196
1211
  */
1197
1212
  preventQuitOnLastWindowClosed: boolean;
1213
+ /**
1214
+ * Configuration for interop broker.
1215
+ */
1198
1216
  interopBrokerConfiguration: InteropBrokerOptions;
1217
+ /**
1218
+ * @defaultValue true
1219
+ *
1220
+ * When set to `false` it will disable OpenFin Diagnostics for the app.
1221
+ */
1199
1222
  apiDiagnostics: boolean;
1223
+ /**
1224
+ * Define the file download rules.
1225
+ * See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
1226
+ */
1200
1227
  defaultDomainSettings: DefaultDomainSettings;
1201
1228
  /**
1202
1229
  * @defaultValue false
1230
+ *
1203
1231
  * Enables the use of the Jumplists API and the 'pin to taskbar' functionality.
1204
1232
  * Only relevant in Windows.
1205
1233
  */
1206
1234
  enableJumpList: boolean;
1235
+ /**
1236
+ * @defaultValue false
1237
+ *
1238
+ * When set to `true`, any `beforeunload` handler set on the app will fire.
1239
+ */
1207
1240
  enableBeforeUnload: boolean;
1208
1241
  };
1209
1242
 
@@ -1261,7 +1294,7 @@ declare type ApplicationWindowInfo_2 = {
1261
1294
  childWindows: Array<WindowDetail>;
1262
1295
  mainWindow: WindowDetail;
1263
1296
  /**
1264
- * @property { string } uuid The uuid of the application
1297
+ * The uuid of the application.
1265
1298
  */
1266
1299
  uuid: string;
1267
1300
  };
@@ -1301,7 +1334,7 @@ declare type ApplySnapshotOptions = {
1301
1334
  */
1302
1335
  declare type ApplySnapshotPayload = {
1303
1336
  /**
1304
- * TThe snapshot to be applied.
1337
+ * The snapshot to be applied.
1305
1338
  */
1306
1339
  snapshot: Snapshot;
1307
1340
  /**
@@ -1523,6 +1556,13 @@ declare class Base {
1523
1556
  /* Excluded from this release type: wire */
1524
1557
  /* Excluded from this release type: __constructor */
1525
1558
  protected get fin(): OpenFin.Fin<OpenFin.EntityType>;
1559
+ /**
1560
+ * Provides access to the OpenFin representation of the current code context (usually a document
1561
+ * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
1562
+ *
1563
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
1564
+ * on the context in which the devtools panel was opened.
1565
+ */
1526
1566
  get me(): Identity;
1527
1567
  protected isNodeEnvironment: () => boolean;
1528
1568
  protected isOpenFinEnvironment: () => boolean;
@@ -2628,7 +2668,7 @@ declare type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
2628
2668
 
2629
2669
  declare interface ChildContentOptions {
2630
2670
  options: any;
2631
- entityType: EntityType_4;
2671
+ entityType: EntityType_3;
2632
2672
  }
2633
2673
 
2634
2674
  /**
@@ -2653,11 +2693,6 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
2653
2693
  * The options the child Window was created with.
2654
2694
  */
2655
2695
  childOptions: OpenFin.WindowOptions;
2656
- /**
2657
- * On `child-window-created` rule may be undefined.
2658
- * It is only defined if the rules engine found a match for a user-supplied rule, not in the case of an api call or the default behavior.
2659
- */
2660
- rule?: OpenFin.ContentCreationRule;
2661
2696
  };
2662
2697
 
2663
2698
  declare interface ClassicProtocolOffer extends ProtocolPacketBase {
@@ -2704,11 +2739,16 @@ declare type ClearCacheOption = {
2704
2739
  };
2705
2740
 
2706
2741
  /**
2742
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
2743
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
2744
+ * of all possible data shapes for the entire menu, and the click handler should process
2745
+ * these with a "reducer" pattern.
2746
+ *
2707
2747
  * @interface
2708
2748
  */
2709
- declare type ClickedMenuResult<T extends unknown = unknown> = {
2749
+ declare type ClickedMenuResult<Data extends unknown = unknown> = {
2710
2750
  result: 'clicked';
2711
- data: T;
2751
+ data: Data;
2712
2752
  };
2713
2753
 
2714
2754
  /**
@@ -2717,7 +2757,7 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
2717
2757
  declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
2718
2758
 
2719
2759
  /**
2720
- * Identity of a channel client
2760
+ * Identity of a channel client. Includes endpointId to differentiate between different connections for an entity.
2721
2761
  * @interface
2722
2762
  */
2723
2763
  declare type ClientIdentity = Identity_5 & {
@@ -2743,7 +2783,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
2743
2783
  /**
2744
2784
  * Indicates if the client belongs to a Window, View or IFrame
2745
2785
  */
2746
- entityType: EntityType_5;
2786
+ entityType: EntityType_4;
2747
2787
  /**
2748
2788
  * URL of the Window, View or IFrame at the time of connection to the Channel Provider.
2749
2789
  */
@@ -3091,6 +3131,11 @@ declare type ConstViewOptions = {
3091
3131
  zoomLevel: number;
3092
3132
  experimental: any;
3093
3133
  fdc3InteropApi?: string;
3134
+ /**
3135
+ * @defaultValue false
3136
+ *
3137
+ * When set to `true`, any `beforeunload` handler set on Views will fire.
3138
+ */
3094
3139
  enableBeforeUnload: boolean;
3095
3140
  /**
3096
3141
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -3323,15 +3368,12 @@ declare type ContentCreationOptions = {
3323
3368
  * A rule for creating content in OpenFin; maps a content type to the way in which
3324
3369
  * newly-opened content of that type will be handled.
3325
3370
  *
3326
- * @property { string } behavior 'view' | 'window' | 'browser' | 'block'
3327
- * @property { string[] } match List of [match patterns](https://developer.chrome.com/extensions/match_patterns).
3328
- * @property { object } options Window creation options or View creation options.
3329
3371
  *
3330
3372
  * @interface
3331
3373
  */
3332
3374
  declare type ContentCreationRule<T = ContentCreationBehaviorNames> = {
3333
3375
  /**
3334
- * Behavior to use when opening matched content.
3376
+ * Behavior to use when opening matched content. The value could be 'view' | 'window' | 'browser' | 'block'.
3335
3377
  */
3336
3378
  behavior: T;
3337
3379
  /**
@@ -3366,7 +3408,8 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3366
3408
  */
3367
3409
  frameName: string;
3368
3410
  /**
3369
- * The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation
3411
+ * The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation.
3412
+ * <br>Note: It is only defined if the rules engine found a match for a user-supplied rule, not in the case of an api call or the default behavior.
3370
3413
  */
3371
3414
  rule: OpenFin.ContentCreationRule;
3372
3415
  /**
@@ -3424,6 +3467,7 @@ declare type ContextForIntent<MetadataType = any> = Context & {
3424
3467
  };
3425
3468
 
3426
3469
  /**
3470
+ * Information for a Context Group. Contains metadata for displaying the group properly.
3427
3471
  * @interface
3428
3472
  */
3429
3473
  declare type ContextGroupInfo = {
@@ -3443,6 +3487,9 @@ declare type ContextGroupStates = {
3443
3487
  };
3444
3488
  };
3445
3489
 
3490
+ /**
3491
+ * Subscription function for addContextHandler.
3492
+ */
3446
3493
  declare type ContextHandler = (context: Context) => void;
3447
3494
 
3448
3495
  /**
@@ -3919,7 +3966,7 @@ declare type EntityInfo = OpenFin.EntityInfo;
3919
3966
  declare type EntityInfo_2 = {
3920
3967
  uuid: string;
3921
3968
  name: string;
3922
- entityType: EntityType_5;
3969
+ entityType: EntityType_4;
3923
3970
  };
3924
3971
 
3925
3972
  /**
@@ -3937,11 +3984,9 @@ declare type EntityType_2 = OpenFin.EntityType;
3937
3984
 
3938
3985
  declare type EntityType_3 = OpenFin.EntityType;
3939
3986
 
3940
- declare type EntityType_4 = OpenFin.EntityType;
3941
-
3942
- declare type EntityType_5 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
3987
+ declare type EntityType_4 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
3943
3988
 
3944
- declare type EntityTypeHelpers<T extends EntityType_3> = T extends 'view' ? {
3989
+ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
3945
3990
  isView: true;
3946
3991
  isWindow: false;
3947
3992
  isExternal: false;
@@ -3979,7 +4024,7 @@ declare interface Environment {
3979
4024
  createChildContent(options: ChildContentOptions): Promise<any>;
3980
4025
  getWebWindow(identity: OpenFin.Identity): globalThis.Window;
3981
4026
  getCurrentEntityIdentity(): OpenFin.EntityInfo;
3982
- getCurrentEntityType(): EntityType_4;
4027
+ getCurrentEntityType(): EntityType_3;
3983
4028
  raiseEvent(eventName: string, eventArgs: any): void;
3984
4029
  childViews: boolean;
3985
4030
  getUrl(): string;
@@ -4407,12 +4452,12 @@ declare type FileDownloadStartedEvent = FileDownloadEvent & {
4407
4452
 
4408
4453
  /* Excluded from this release type: Fin */
4409
4454
 
4410
- declare type Fin_2<MeType extends EntityType_5 = 'window' | 'view'> = FinApi<MeType>;
4455
+ declare type Fin_2<MeType extends EntityType_4 = 'window' | 'view'> = FinApi<MeType>;
4411
4456
 
4412
4457
  /**
4413
4458
  * Type of the global `fin` entry point for the OpenFin API.
4414
4459
  */
4415
- declare interface FinApi<MeType extends EntityType> {
4460
+ declare interface FinApi<MeType extends OpenFin.EntityType> {
4416
4461
  readonly System: System;
4417
4462
  readonly Window: _WindowModule;
4418
4463
  readonly Application: ApplicationModule;
@@ -4691,7 +4736,7 @@ declare type FrameInfo = {
4691
4736
  name: string;
4692
4737
  uuid: string;
4693
4738
  url: string;
4694
- entityType: EntityType_5;
4739
+ entityType: EntityType_4;
4695
4740
  parent: Identity_5;
4696
4741
  };
4697
4742
 
@@ -4790,7 +4835,7 @@ declare type GetWindowContextPayload = {
4790
4835
  /**
4791
4836
  * Entity type of the target of the context update ('view' or 'window').
4792
4837
  */
4793
- entityType: EntityType_5;
4838
+ entityType: EntityType_4;
4794
4839
  /**
4795
4840
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
4796
4841
  */
@@ -5168,9 +5213,13 @@ declare type Intent<MetadataType = IntentMetadata> = {
5168
5213
  metadata?: MetadataType;
5169
5214
  };
5170
5215
 
5216
+ /**
5217
+ * Subscription function for registerIntentHandler.
5218
+ */
5171
5219
  declare type IntentHandler = (intent: Intent) => void;
5172
5220
 
5173
5221
  /**
5222
+ * The type used to describe an intent within the platform.
5174
5223
  * @interface
5175
5224
  */
5176
5225
  declare type IntentMetadata<TargetType = any> = {
@@ -6478,6 +6527,7 @@ declare class InteropClient extends Base {
6478
6527
  declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionEvent: InteropBrokerDisconnectionEvent) => any;
6479
6528
 
6480
6529
  /**
6530
+ * Information relevant to the Interop Broker.
6481
6531
  * @interface
6482
6532
  */
6483
6533
  declare type InteropConfig = {
@@ -6590,7 +6640,7 @@ declare type JumpListTask = {
6590
6640
  */
6591
6641
  description: string;
6592
6642
  /**
6593
- * @property Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1.
6643
+ * Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1.
6594
6644
  * See {@link https://developers.openfin.co/docs/deep-linking deep-linking} for more information.
6595
6645
  */
6596
6646
  deepLink: string;
@@ -6978,7 +7028,13 @@ declare type LayoutColumn = LayoutItemConfig & {
6978
7028
  * @interface
6979
7029
  */
6980
7030
  declare type LayoutComponent = LayoutItemConfig & {
7031
+ /**
7032
+ * Only a component type will have this property and it should be set to view.
7033
+ */
6981
7034
  componentName: 'view';
7035
+ /**
7036
+ * Only a component type will have this property and it represents the view options of a given component.
7037
+ */
6982
7038
  componentState?: Partial<ViewCreationOptions>;
6983
7039
  };
6984
7040
 
@@ -7020,7 +7076,7 @@ declare type LayoutInitializedEvent = NamedEvent & {
7020
7076
  };
7021
7077
 
7022
7078
  /**
7023
- * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7079
+ * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7024
7080
  * to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7025
7081
  * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7026
7082
  *
@@ -7289,6 +7345,11 @@ declare type LayoutOptions = {
7289
7345
  * (not to be confused with close button on every tab).
7290
7346
  */
7291
7347
  showCloseIcon?: boolean;
7348
+ /**
7349
+ * @defaultValue false
7350
+ *
7351
+ * Limits the area to which tabs can be dragged. If true, stack headers are the only areas where tabs can be dropped.
7352
+ */
7292
7353
  constrainDragToHeaders?: boolean;
7293
7354
  /**
7294
7355
  * @defaultValue true
@@ -7317,6 +7378,11 @@ declare type LayoutOptions = {
7317
7378
  */
7318
7379
  preventDragIn?: boolean;
7319
7380
  };
7381
+ /**
7382
+ * Content of the layout. There can only be one top-level LayoutItem in the content array.
7383
+ * We do not recommend trying to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7384
+ * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7385
+ */
7320
7386
  content?: LayoutContent;
7321
7387
  dimensions?: {
7322
7388
  borderWidth?: number;
@@ -7481,6 +7547,9 @@ declare type ManifestInfo = {
7481
7547
  * @interface
7482
7548
  */
7483
7549
  declare type Margins = {
7550
+ /**
7551
+ * The margin type. If `custom` is chosen, you will also need to specify top, bottom, left, and right.
7552
+ */
7484
7553
  marginType?: 'default' | 'none' | 'printableArea' | 'custom';
7485
7554
  /**
7486
7555
  * The top margin of the printed webpage, in pixels.
@@ -7510,20 +7579,36 @@ declare type MaximizedEvent = NamedEvent & {
7510
7579
  type: 'maximized';
7511
7580
  };
7512
7581
 
7513
- 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) & {
7582
+ /**
7583
+ * Type of the OpenFin `me` API handle, which provides access to the OpenFin representation of the current
7584
+ * code context (usually a document such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as
7585
+ * to the current `Interop` context.
7586
+ *
7587
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
7588
+ * on the context in which the devtools panel was opened.
7589
+ */
7590
+ declare type Me<MeType extends EntityType_2> = 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) & {
7514
7591
  isOpenFin: boolean;
7515
7592
  };
7516
7593
 
7517
7594
  /**
7518
7595
  * @interface
7596
+ *
7597
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
7598
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
7599
+ * of all possible data shapes for the entire menu, and the click handler should process
7600
+ * these with a "reducer" pattern.
7519
7601
  */
7520
- declare type MenuItemTemplate<T extends unknown = unknown> = {
7602
+ declare type MenuItemTemplate<Data extends unknown = unknown> = {
7521
7603
  /**
7522
7604
  * Can be `normal`, `separator`, `submenu`, or `checkbox`.
7523
7605
  * Defaults to 'normal' unless a 'submenu' key exists
7524
7606
  */
7525
7607
  type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
7526
7608
  role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
7609
+ /**
7610
+ * The text to show on the menu item. Should be left undefined for type: 'separator'
7611
+ */
7527
7612
  label?: string;
7528
7613
  /**
7529
7614
  * If false, the menu item will be greyed out and unclickable.
@@ -7541,18 +7626,26 @@ declare type MenuItemTemplate<T extends unknown = unknown> = {
7541
7626
  * Should be specified for `submenu` type menu items. If `submenu` is specified,
7542
7627
  * the `type: 'submenu'` can be omitted.
7543
7628
  */
7544
- submenu?: MenuItemTemplate<T>[];
7629
+ submenu?: MenuItemTemplate<Data>[];
7545
7630
  /**
7546
7631
  * Data to be returned if the user selects the element. Must be serializable
7547
7632
  */
7548
- data?: T;
7633
+ data?: Data;
7549
7634
  /**
7550
7635
  * Image Data URI with image dimensions inferred from the encoded string
7551
7636
  */
7552
7637
  icon?: string;
7553
7638
  };
7554
7639
 
7555
- declare type MenuResult<T extends unknown = unknown> = ClickedMenuResult<T> | ClosedMenuResult;
7640
+ /**
7641
+ * Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
7642
+ *
7643
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
7644
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
7645
+ * of all possible data shapes for the entire menu, and the click handler should process
7646
+ * these with a "reducer" pattern.
7647
+ */
7648
+ declare type MenuResult<Data extends unknown = unknown> = ClickedMenuResult<Data> | ClosedMenuResult;
7556
7649
 
7557
7650
  declare interface Message<T> {
7558
7651
  action: string;
@@ -7717,7 +7810,7 @@ declare type MutableViewOptions = {
7717
7810
  /**
7718
7811
  * @defaultValue false
7719
7812
  *
7720
- * Platforms Only. If true, will hide and detach the View from the window for later use instead of closing,
7813
+ * **Platforms Only.** If true, will hide and detach the View from the window for later use instead of closing,
7721
7814
  * allowing the state of the View to be saved and the View to be immediately shown in a new Layout.
7722
7815
  */
7723
7816
  detachOnClose: boolean;
@@ -7732,7 +7825,7 @@ declare type MutableViewOptions = {
7732
7825
  /**
7733
7826
  * @defaultValue false
7734
7827
  *
7735
- * @property {boolean} [preventDragOut=false] **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
7828
+ * **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
7736
7829
  */
7737
7830
  preventDragOut: boolean;
7738
7831
  interop?: InteropConfig;
@@ -7966,7 +8059,7 @@ declare type MutableWindowOptions = {
7966
8059
  /**
7967
8060
  * @defaultValue false
7968
8061
  *
7969
- * Platforms Only. If true, will show background images in the layout when the Views are hidden.
8062
+ * **Platforms Only.** If true, will show background images in the layout when the Views are hidden.
7970
8063
  * This occurs when the window is resizing or a tab is being dragged within the layout.
7971
8064
  */
7972
8065
  showBackgroundImages: boolean;
@@ -8108,7 +8201,7 @@ declare namespace OpenFin {
8108
8201
  ClientIdentityMultiRuntime,
8109
8202
  ClientConnectionPayload,
8110
8203
  EntityInfo_2 as EntityInfo,
8111
- EntityType_5 as EntityType,
8204
+ EntityType_4 as EntityType,
8112
8205
  Bounds,
8113
8206
  WindowBounds,
8114
8207
  Rectangle,
@@ -9242,20 +9335,20 @@ declare class PlatformModule extends Base {
9242
9335
  * @interface
9243
9336
  */
9244
9337
  declare type PlatformOptions = ApplicationCreationOptions & {
9245
- /**
9246
- * Default window options apply to all platform windows.
9247
- */
9248
- defaultWindowOptions?: Partial<PlatformWindowOptions>;
9249
- /**
9250
- * Default view options apply to all platform views.
9251
- */
9252
- defaultViewOptions?: Partial<PlatformViewCreationOptions>;
9253
9338
  disableDefaultCommands?: boolean;
9254
9339
  /**
9255
9340
  * Strategy to assign views to process affinity by domain.
9341
+ * * `same` - The views in the same domain will have same renderer processes.
9342
+ * * `different` - The views in the same domain will have their own renderer processes.
9256
9343
  */
9257
9344
  viewProcessAffinityStrategy?: ProcessAffinityStrategy;
9345
+ /**
9346
+ * The provider url.
9347
+ */
9258
9348
  providerUrl?: string;
9349
+ /**
9350
+ * The permissions for secured APIs.
9351
+ */
9259
9352
  permissions?: Partial<Permissions_2>;
9260
9353
  };
9261
9354
 
@@ -9950,11 +10043,10 @@ declare type Position = TransitionBase & {
9950
10043
  * - {@link OpenFin.Window.setBounds}
9951
10044
  * - {@link OpenFin.Window.resizeBy}
9952
10045
  * - {@link OpenFin.Window.resizeTo}
9953
- * @example ```js
9954
- fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
9955
- ```
9956
- */
9957
- /**
10046
+ * @example
10047
+ * ```js
10048
+ * fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
10049
+ * ```
9958
10050
  * @interface
9959
10051
  */
9960
10052
  declare type PositioningOptions = {
@@ -10052,9 +10144,21 @@ declare type PrinterInfo = OpenFin.PrinterInfo;
10052
10144
  * @interface
10053
10145
  */
10054
10146
  declare type PrinterInfo_2 = {
10147
+ /**
10148
+ * Printer Name
10149
+ */
10055
10150
  name: string;
10151
+ /**
10152
+ * Printer Description
10153
+ */
10056
10154
  description: string;
10155
+ /**
10156
+ * Printer Status
10157
+ */
10057
10158
  status: number;
10159
+ /**
10160
+ * Indicates that system's default printer.
10161
+ */
10058
10162
  isDefault: boolean;
10059
10163
  };
10060
10164
 
@@ -10066,10 +10170,14 @@ declare type PrinterInfo_2 = {
10066
10170
  declare type PrintOptions = {
10067
10171
  content?: 'self';
10068
10172
  /**
10173
+ * @defaultValue false
10174
+ *
10069
10175
  * Disables prompting the user for print settings.
10070
10176
  */
10071
10177
  silent?: boolean;
10072
10178
  /**
10179
+ * @defaultValue false
10180
+ *
10073
10181
  * Includes the webpage background color and image when printing.
10074
10182
  */
10075
10183
  printBackground?: boolean;
@@ -10078,6 +10186,8 @@ declare type PrintOptions = {
10078
10186
  */
10079
10187
  deviceName?: string;
10080
10188
  /**
10189
+ * @defaultValue true
10190
+ *
10081
10191
  * Prints in full color (greyscale otherwise).
10082
10192
  */
10083
10193
  color?: boolean;
@@ -10086,6 +10196,8 @@ declare type PrintOptions = {
10086
10196
  */
10087
10197
  margins?: Margins;
10088
10198
  /**
10199
+ * @defaultValue true
10200
+ *
10089
10201
  * Prints in landscape mode (portrait otherwise).
10090
10202
  */
10091
10203
  landscape?: boolean;
@@ -10864,9 +10976,12 @@ declare type RuntimeDownloadOptions = {
10864
10976
  */
10865
10977
  declare type RuntimeDownloadProgress = {
10866
10978
  /**
10867
- * @property { string } alias The name of the asset
10979
+ * The downloaded bytes of the download item.
10868
10980
  */
10869
10981
  downloadedBytes: number;
10982
+ /**
10983
+ * The total size in bytes of the file.
10984
+ */
10870
10985
  totalBytes: number;
10871
10986
  };
10872
10987
 
@@ -11016,12 +11131,30 @@ declare type SessionChangedEvent = {
11016
11131
  };
11017
11132
 
11018
11133
  /**
11134
+ * An instance of a SessionContextGroup
11019
11135
  * @interface
11020
11136
  */
11021
11137
  declare type SessionContextGroup = {
11138
+ /**
11139
+ * The SessionContextGroup's id.
11140
+ */
11022
11141
  id: string;
11142
+ /**
11143
+ * A SessionContextGroup instance method for setting a context in the SessionContextGroup.
11144
+ * @param context The Context to be set.
11145
+ */
11023
11146
  setContext: (context: Context) => Promise<void>;
11147
+ /**
11148
+ * A SessionContextGroup instance method for getting the current context of a certain type.
11149
+ * @param type The Context Type to get. If not specified the last contextType set would get used.
11150
+ */
11024
11151
  getCurrentContext: (type?: string) => Promise<Context>;
11152
+ /**
11153
+ * A SessionContextGroup instance method for adding a handler for context change.
11154
+ * @param handler The callback to be invoked. Is invoked when (a) the context changes or (b) immediately after getting created if the context is already set.
11155
+ * @param contextType The context type this handler should listen to. If not specified, a global handler for all context types will get created. Only one global handler is allowed per SessionContextGroup.
11156
+ *
11157
+ */
11025
11158
  addContextHandler: (handler: ContextHandler, contextType?: string) => Promise<{
11026
11159
  unsubscribe: () => void;
11027
11160
  }>;
@@ -11038,7 +11171,7 @@ declare type SetWindowContextPayload = {
11038
11171
  /**
11039
11172
  * Entity type of the target of the context update ('view' or 'window').
11040
11173
  */
11041
- entityType: EntityType_5;
11174
+ entityType: EntityType_4;
11042
11175
  /**
11043
11176
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
11044
11177
  */
@@ -11049,7 +11182,13 @@ declare type SetWindowContextPayload = {
11049
11182
  * @interface
11050
11183
  */
11051
11184
  declare type SharedWorkerInfo = {
11185
+ /**
11186
+ * The unique id of the shared worker.
11187
+ */
11052
11188
  id: string;
11189
+ /**
11190
+ * The url of the shared worker.
11191
+ */
11053
11192
  url: string;
11054
11193
  };
11055
11194
 
@@ -11087,11 +11226,27 @@ declare type ShownEvent = BaseViewEvent & {
11087
11226
  };
11088
11227
 
11089
11228
  /**
11229
+ * Options for showing a popup menu
11230
+ *
11231
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
11232
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
11233
+ * of all possible data shapes for the entire menu, and the click handler should process
11234
+ * these with a "reducer" pattern.
11235
+ *
11090
11236
  * @interface
11091
11237
  */
11092
- declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
11093
- template: MenuItemTemplate<T>[];
11238
+ declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
11239
+ /**
11240
+ * An array describing the menu to show.
11241
+ */
11242
+ template: MenuItemTemplate<Data>[];
11243
+ /**
11244
+ * The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
11245
+ */
11094
11246
  x?: number;
11247
+ /**
11248
+ * The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
11249
+ */
11095
11250
  y?: number;
11096
11251
  };
11097
11252
 
@@ -11101,12 +11256,6 @@ declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
11101
11256
  * @interface
11102
11257
  */
11103
11258
  declare type ShowViewOnWindowResizeOptions = ViewVisibilityOption & {
11104
- /**
11105
- * @defaultValue false
11106
- *
11107
- * Enables showing Views when a Platform Window is being resized.
11108
- */
11109
- enabled?: boolean;
11110
11259
  /**
11111
11260
  * @defaultValue 0
11112
11261
  *
@@ -11133,6 +11282,9 @@ declare type Size = TransitionBase & {
11133
11282
  * @interface
11134
11283
  */
11135
11284
  declare type Snapshot = {
11285
+ /**
11286
+ * The array of window options objects
11287
+ */
11136
11288
  windows: WindowCreationOptions[];
11137
11289
  snapshotDetails?: {
11138
11290
  monitorInfo: MonitorInfo;
@@ -13097,8 +13249,17 @@ declare type Time = {
13097
13249
  * @interface
13098
13250
  */
13099
13251
  declare type Transition = {
13252
+ /**
13253
+ * The Opacity transition
13254
+ */
13100
13255
  opacity?: Opacity;
13256
+ /**
13257
+ * The Position transition
13258
+ */
13101
13259
  position?: Position;
13260
+ /**
13261
+ * The Size transition
13262
+ */
13102
13263
  size?: Size;
13103
13264
  };
13104
13265
 
@@ -13139,7 +13300,7 @@ declare type TransitionOptions = {
13139
13300
  tween?: tween;
13140
13301
  };
13141
13302
 
13142
- declare class Transport<MeType extends EntityType_2 = EntityType_2> extends EventEmitter {
13303
+ declare class Transport<MeType extends EntityType = EntityType> extends EventEmitter {
13143
13304
  #private;
13144
13305
  protected wireListeners: Map<number, {
13145
13306
  resolve: Function;
@@ -14104,6 +14265,11 @@ declare interface ViewStatuses {
14104
14265
  * @interface
14105
14266
  */
14106
14267
  declare type ViewVisibilityOption = {
14268
+ /**
14269
+ * @defaultValue false
14270
+ *
14271
+ * Enables or disables showing views when the layout splitter or a tab is being dragged or a Platform Window is being resized.
14272
+ */
14107
14273
  enabled?: boolean;
14108
14274
  };
14109
14275
 
@@ -14133,8 +14299,12 @@ declare type WebContent = View_2 | _Window;
14133
14299
 
14134
14300
  declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14135
14301
  identity: OpenFin.Identity;
14136
- entityType: string;
14137
- constructor(wire: Transport, identity: OpenFin.Identity, entityType: string);
14302
+ entityType: 'window' | 'view';
14303
+ /**
14304
+ * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
14305
+ * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
14306
+ */
14307
+ constructor(wire: Transport, identity: OpenFin.Identity, entityType: 'window' | 'view');
14138
14308
  /**
14139
14309
  * Gets a base64 encoded image of all or part of the WebContents.
14140
14310
  * @param options Options for the capturePage call.
@@ -14182,6 +14352,11 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14182
14352
  * }
14183
14353
  * console.log(await wnd.capturePage(options));
14184
14354
  * ```
14355
+ *
14356
+ * @remarks
14357
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14358
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14359
+ * {@link OpenFin.WebContentsEvents event namespace}.
14185
14360
  */
14186
14361
  capturePage(options?: OpenFin.CapturePageOptions): Promise<string>;
14187
14362
  /**
@@ -14215,6 +14390,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14215
14390
  *
14216
14391
  * executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));
14217
14392
  * ```
14393
+ * @remarks
14394
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14395
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14396
+ * {@link OpenFin.WebContentsEvents event namespace}.
14218
14397
  */
14219
14398
  executeJavaScript(code: string): Promise<void>;
14220
14399
  /**
@@ -14250,6 +14429,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14250
14429
  *
14251
14430
  * getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));
14252
14431
  * ```
14432
+ * @remarks
14433
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14434
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14435
+ * {@link OpenFin.WebContentsEvents event namespace}.
14253
14436
  */
14254
14437
  getZoomLevel(): Promise<number>;
14255
14438
  /**
@@ -14286,6 +14469,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14286
14469
  *
14287
14470
  * setZoomLevel(4).then(() => console.log('Setting a zoom level')).catch(err => console.log(err));
14288
14471
  * ```
14472
+ * @remarks
14473
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14474
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14475
+ * {@link OpenFin.WebContentsEvents event namespace}.
14289
14476
  */
14290
14477
  setZoomLevel(level: number): Promise<void>;
14291
14478
  /**
@@ -14321,6 +14508,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14321
14508
  * navigate().then(() => console.log('Navigate to tutorial')).catch(err => console.log(err));
14322
14509
  * ```
14323
14510
  * @experimental
14511
+ * @remarks
14512
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14513
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14514
+ * {@link OpenFin.WebContentsEvents event namespace}.
14324
14515
  */
14325
14516
  navigate(url: string): Promise<void>;
14326
14517
  /**
@@ -14346,6 +14537,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14346
14537
  * }
14347
14538
  * navigateBack().then(() => console.log('Navigated back')).catch(err => console.log(err));
14348
14539
  * ```
14540
+ * @remarks
14541
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14542
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14543
+ * {@link OpenFin.WebContentsEvents event namespace}.
14349
14544
  */
14350
14545
  navigateBack(): Promise<void>;
14351
14546
  /**
@@ -14373,6 +14568,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14373
14568
  * }
14374
14569
  * navigateForward().then(() => console.log('Navigated forward')).catch(err => console.log(err));
14375
14570
  * ```
14571
+ * @remarks
14572
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14573
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14574
+ * {@link OpenFin.WebContentsEvents event namespace}.
14376
14575
  */
14377
14576
  navigateForward(): Promise<void>;
14378
14577
  /**
@@ -14398,6 +14597,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14398
14597
  * }
14399
14598
  * stopNavigation().then(() => console.log('you shall not navigate')).catch(err => console.log(err));
14400
14599
  * ```
14600
+ * @remarks
14601
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14602
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14603
+ * {@link OpenFin.WebContentsEvents event namespace}.
14401
14604
  */
14402
14605
  stopNavigation(): Promise<void>;
14403
14606
  /**
@@ -14433,6 +14636,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14433
14636
  * console.log('Reloaded window')
14434
14637
  * }).catch(err => console.log(err));
14435
14638
  * ```
14639
+ * @remarks
14640
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14641
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14642
+ * {@link OpenFin.WebContentsEvents event namespace}.
14436
14643
  */
14437
14644
  reload(ignoreCache?: boolean): Promise<void>;
14438
14645
  /**
@@ -14452,6 +14659,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14452
14659
  * console.log('print call has been sent to the system');
14453
14660
  * });
14454
14661
  * ```
14662
+ * @remarks
14663
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14664
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14665
+ * {@link OpenFin.WebContentsEvents event namespace}.
14455
14666
  */
14456
14667
  print(options?: OpenFin.PrintOptions): Promise<void>;
14457
14668
  /**
@@ -14494,6 +14705,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14494
14705
  * console.log(result)
14495
14706
  * });
14496
14707
  * ```
14708
+ * @remarks
14709
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14710
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14711
+ * {@link OpenFin.WebContentsEvents event namespace}.
14497
14712
  */
14498
14713
  findInPage(searchTerm: string, options?: OpenFin.FindInPageOptions): Promise<void>;
14499
14714
  /**
@@ -14533,6 +14748,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14533
14748
  * console.log(results);
14534
14749
  * });
14535
14750
  * ```
14751
+ * @remarks
14752
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14753
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14754
+ * {@link OpenFin.WebContentsEvents event namespace}.
14536
14755
  */
14537
14756
  stopFindInPage(action: string): Promise<void>;
14538
14757
  /**
@@ -14573,6 +14792,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14573
14792
  * console.log(err);
14574
14793
  * });
14575
14794
  * ```
14795
+ * @remarks
14796
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14797
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14798
+ * {@link OpenFin.WebContentsEvents event namespace}.
14576
14799
  */
14577
14800
  getPrinters(): Promise<OpenFin.PrinterInfo>;
14578
14801
  /**
@@ -14593,6 +14816,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14593
14816
  *
14594
14817
  * focusWindow().then(() => console.log('Window focused')).catch(err => console.log(err));
14595
14818
  * ```
14819
+ * @remarks
14820
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14821
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14822
+ * {@link OpenFin.WebContentsEvents event namespace}.
14596
14823
  */
14597
14824
  focus({ emitSynthFocused }?: {
14598
14825
  emitSynthFocused: boolean;
@@ -14624,6 +14851,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14624
14851
  * .then(() => console.log('Showing dev tools'))
14625
14852
  * .catch(err => console.error(err));
14626
14853
  * ```
14854
+ * @remarks
14855
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14856
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14857
+ * {@link OpenFin.WebContentsEvents event namespace}.
14627
14858
  */
14628
14859
  showDeveloperTools(): Promise<void>;
14629
14860
  /**
@@ -14643,6 +14874,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14643
14874
  * const win = await fin.Window.getCurrent();
14644
14875
  * const processInfo = await win.getProcessInfo();
14645
14876
  * ```
14877
+ * @remarks
14878
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14879
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14880
+ * {@link OpenFin.WebContentsEvents event namespace}.
14646
14881
  */
14647
14882
  getProcessInfo(): Promise<OpenFin.EntityProcessDetails>;
14648
14883
  /**
@@ -14675,6 +14910,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14675
14910
  * const win = await fin.Window.create(winOption);
14676
14911
  * const sharedWorkers = await win.getSharedWorkers();
14677
14912
  * ```
14913
+ * @remarks
14914
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14915
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14916
+ * {@link OpenFin.WebContentsEvents event namespace}.
14678
14917
  */
14679
14918
  getSharedWorkers(): Promise<OpenFin.SharedWorkerInfo[]>;
14680
14919
  /**
@@ -14707,6 +14946,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14707
14946
  * const win = await fin.Window.create(winOption);
14708
14947
  * await win.inspectSharedWorker();
14709
14948
  * ```
14949
+ * @remarks
14950
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14951
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14952
+ * {@link OpenFin.WebContentsEvents event namespace}.
14710
14953
  */
14711
14954
  inspectSharedWorker(): Promise<void>;
14712
14955
  /**
@@ -14742,6 +14985,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14742
14985
  * const sharedWorkers = await win.getSharedWorkers();
14743
14986
  * await win.inspectSharedWorkerById(sharedWorkers[0].id);
14744
14987
  * ```
14988
+ * @remarks
14989
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14990
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14991
+ * {@link OpenFin.WebContentsEvents event namespace}.
14745
14992
  */
14746
14993
  inspectSharedWorkerById(workerId: string): Promise<void>;
14747
14994
  /**
@@ -14774,6 +15021,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14774
15021
  * const win = await fin.Window.create(winOption);
14775
15022
  * await win.inspectServiceWorker();
14776
15023
  * ```
15024
+ * @remarks
15025
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15026
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15027
+ * {@link OpenFin.WebContentsEvents event namespace}.
14777
15028
  */
14778
15029
  inspectServiceWorker(): Promise<void>;
14779
15030
  /**
@@ -14982,6 +15233,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14982
15233
  * onPopupReady: popupWindowCallback;
14983
15234
  * });
14984
15235
  * ```
15236
+ * @remarks
15237
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15238
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15239
+ * {@link OpenFin.WebContentsEvents event namespace}.
14985
15240
  */
14986
15241
  showPopupWindow(options: OpenFin.PopupOptions): Promise<OpenFin.PopupResult>;
14987
15242
  }
@@ -15590,7 +15845,6 @@ declare type WillResizeEvent = WillMoveOrResizeEvent & {
15590
15845
  * It has the ability to listen for {@link OpenFin.WindowEvents window specific events}.
15591
15846
  */
15592
15847
  declare class _Window extends WebContents<OpenFin.WindowEvent> {
15593
- identity: OpenFin.Identity;
15594
15848
  /* Excluded from this release type: __constructor */
15595
15849
  /* Excluded from this release type: createWindow */
15596
15850
  /**
@@ -16463,7 +16717,10 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16463
16717
  * Calling this method will close previously opened menus.
16464
16718
  * @experimental
16465
16719
  * @param options
16466
- *
16720
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
16721
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
16722
+ * of all possible data shapes for the entire menu, and the click handler should process
16723
+ * these with a "reducer" pattern.
16467
16724
  * @example
16468
16725
  * This could be used to show a drop down menu over views in a platform window:
16469
16726
  * ```js
@@ -16530,7 +16787,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16530
16787
  * })
16531
16788
  * ```
16532
16789
  */
16533
- showPopupMenu<T>(options: OpenFin.ShowPopupMenuOptions<T>): Promise<OpenFin.MenuResult<T>>;
16790
+ showPopupMenu<Data>(options: OpenFin.ShowPopupMenuOptions<Data>): Promise<OpenFin.MenuResult<Data>>;
16534
16791
  /**
16535
16792
  * Closes the window's popup menu, if one exists.
16536
16793
  * @experimental
@@ -17059,6 +17316,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17059
17316
  * @interface
17060
17317
  */
17061
17318
  declare type WriteAnyClipboardRequest = BaseClipboardRequest & {
17319
+ /**
17320
+ * Data to be written
17321
+ */
17062
17322
  data: {
17063
17323
  text?: string;
17064
17324
  html?: string;