@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.
@@ -1160,11 +1160,13 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1160
1160
  plugins: boolean;
1161
1161
  /**
1162
1162
  * @defaultValue false
1163
+ *
1163
1164
  * Enable spell check at the application level.
1164
1165
  */
1165
1166
  spellCheck: boolean;
1166
1167
  /**
1167
1168
  * @defaultValue 'about:blank'
1169
+ *
1168
1170
  * The url to the application (specifically the application's main window).
1169
1171
  */
1170
1172
  url: string;
@@ -1181,35 +1183,66 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1181
1183
  * When set to `false` it will disable the same-origin policy for the app.
1182
1184
  */
1183
1185
  webSecurity: boolean;
1186
+ /**
1187
+ * Configuration for keyboard commands.
1188
+ * For details and usage, see {@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands Using Keyboard Commands}.
1189
+ */
1184
1190
  commands: ShortcutOverride[];
1185
1191
  isPlatformController: boolean;
1186
1192
  /**
1187
1193
  * @defaultValue 1000
1188
1194
  *
1189
- * Platforms Only. The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
1195
+ * **Platforms Only.** The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
1190
1196
  * If you do not wish for views to be pooled on your platform, set this property to zero.
1191
1197
  */
1192
1198
  maxViewPoolSize: number;
1193
- defaultWindowOptions: Partial<WindowOptions>;
1199
+ /**
1200
+ * **Platforms Only.** Default window options apply to all platform windows.
1201
+ */
1202
+ defaultWindowOptions: Partial<PlatformWindowOptions>;
1203
+ /**
1204
+ * **Platforms Only.** Default view options apply to all platform views.
1205
+ */
1194
1206
  defaultViewOptions: Partial<ViewOptions>;
1207
+ /**
1208
+ * **Platforms Only.** The snapshot to be applied.
1209
+ */
1195
1210
  snapshot: Snapshot;
1196
1211
  /**
1197
1212
  * @defaultValue false
1198
1213
  *
1199
- * Platforms Only. Prevent the Platform Provider from quitting automatically when the last Platform Window is closed.
1214
+ * **Platforms Only.** Prevent the Platform Provider from quitting automatically when the last Platform Window is closed.
1200
1215
  * Note: if the Platform Provider is showing, it won't close automatically.
1201
1216
  * If you want a hidden Platform Provider to remain open after the last Platform Window has been closed, set this property to true.
1202
1217
  */
1203
1218
  preventQuitOnLastWindowClosed: boolean;
1219
+ /**
1220
+ * Configuration for interop broker.
1221
+ */
1204
1222
  interopBrokerConfiguration: InteropBrokerOptions;
1223
+ /**
1224
+ * @defaultValue true
1225
+ *
1226
+ * When set to `false` it will disable OpenFin Diagnostics for the app.
1227
+ */
1205
1228
  apiDiagnostics: boolean;
1229
+ /**
1230
+ * Define the file download rules.
1231
+ * See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
1232
+ */
1206
1233
  defaultDomainSettings: DefaultDomainSettings;
1207
1234
  /**
1208
1235
  * @defaultValue false
1236
+ *
1209
1237
  * Enables the use of the Jumplists API and the 'pin to taskbar' functionality.
1210
1238
  * Only relevant in Windows.
1211
1239
  */
1212
1240
  enableJumpList: boolean;
1241
+ /**
1242
+ * @defaultValue false
1243
+ *
1244
+ * When set to `true`, any `beforeunload` handler set on the app will fire.
1245
+ */
1213
1246
  enableBeforeUnload: boolean;
1214
1247
  };
1215
1248
 
@@ -1267,7 +1300,7 @@ declare type ApplicationWindowInfo_2 = {
1267
1300
  childWindows: Array<WindowDetail>;
1268
1301
  mainWindow: WindowDetail;
1269
1302
  /**
1270
- * @property { string } uuid The uuid of the application
1303
+ * The uuid of the application.
1271
1304
  */
1272
1305
  uuid: string;
1273
1306
  };
@@ -1307,7 +1340,7 @@ declare type ApplySnapshotOptions = {
1307
1340
  */
1308
1341
  declare type ApplySnapshotPayload = {
1309
1342
  /**
1310
- * TThe snapshot to be applied.
1343
+ * The snapshot to be applied.
1311
1344
  */
1312
1345
  snapshot: Snapshot;
1313
1346
  /**
@@ -1543,6 +1576,13 @@ declare class Base {
1543
1576
  */
1544
1577
  constructor(wire: Transport);
1545
1578
  protected get fin(): OpenFin.Fin<OpenFin.EntityType>;
1579
+ /**
1580
+ * Provides access to the OpenFin representation of the current code context (usually a document
1581
+ * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
1582
+ *
1583
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
1584
+ * on the context in which the devtools panel was opened.
1585
+ */
1546
1586
  get me(): Identity;
1547
1587
  protected isNodeEnvironment: () => boolean;
1548
1588
  protected isOpenFinEnvironment: () => boolean;
@@ -2668,7 +2708,7 @@ declare type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
2668
2708
 
2669
2709
  declare interface ChildContentOptions {
2670
2710
  options: any;
2671
- entityType: EntityType_4;
2711
+ entityType: EntityType_3;
2672
2712
  }
2673
2713
 
2674
2714
  /**
@@ -2693,11 +2733,6 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
2693
2733
  * The options the child Window was created with.
2694
2734
  */
2695
2735
  childOptions: OpenFin.WindowOptions;
2696
- /**
2697
- * On `child-window-created` rule may be undefined.
2698
- * 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.
2699
- */
2700
- rule?: OpenFin.ContentCreationRule;
2701
2736
  };
2702
2737
 
2703
2738
  declare interface ClassicProtocolOffer extends ProtocolPacketBase {
@@ -2744,11 +2779,16 @@ declare type ClearCacheOption = {
2744
2779
  };
2745
2780
 
2746
2781
  /**
2782
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
2783
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
2784
+ * of all possible data shapes for the entire menu, and the click handler should process
2785
+ * these with a "reducer" pattern.
2786
+ *
2747
2787
  * @interface
2748
2788
  */
2749
- declare type ClickedMenuResult<T extends unknown = unknown> = {
2789
+ declare type ClickedMenuResult<Data extends unknown = unknown> = {
2750
2790
  result: 'clicked';
2751
- data: T;
2791
+ data: Data;
2752
2792
  };
2753
2793
 
2754
2794
  /**
@@ -2757,7 +2797,7 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
2757
2797
  declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
2758
2798
 
2759
2799
  /**
2760
- * Identity of a channel client
2800
+ * Identity of a channel client. Includes endpointId to differentiate between different connections for an entity.
2761
2801
  * @interface
2762
2802
  */
2763
2803
  declare type ClientIdentity = Identity_5 & {
@@ -2783,7 +2823,7 @@ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
2783
2823
  /**
2784
2824
  * Indicates if the client belongs to a Window, View or IFrame
2785
2825
  */
2786
- entityType: EntityType_5;
2826
+ entityType: EntityType_4;
2787
2827
  /**
2788
2828
  * URL of the Window, View or IFrame at the time of connection to the Channel Provider.
2789
2829
  */
@@ -3185,6 +3225,11 @@ declare type ConstViewOptions = {
3185
3225
  zoomLevel: number;
3186
3226
  experimental: any;
3187
3227
  fdc3InteropApi?: string;
3228
+ /**
3229
+ * @defaultValue false
3230
+ *
3231
+ * When set to `true`, any `beforeunload` handler set on Views will fire.
3232
+ */
3188
3233
  enableBeforeUnload: boolean;
3189
3234
  /**
3190
3235
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -3417,15 +3462,12 @@ declare type ContentCreationOptions = {
3417
3462
  * A rule for creating content in OpenFin; maps a content type to the way in which
3418
3463
  * newly-opened content of that type will be handled.
3419
3464
  *
3420
- * @property { string } behavior 'view' | 'window' | 'browser' | 'block'
3421
- * @property { string[] } match List of [match patterns](https://developer.chrome.com/extensions/match_patterns).
3422
- * @property { object } options Window creation options or View creation options.
3423
3465
  *
3424
3466
  * @interface
3425
3467
  */
3426
3468
  declare type ContentCreationRule<T = ContentCreationBehaviorNames> = {
3427
3469
  /**
3428
- * Behavior to use when opening matched content.
3470
+ * Behavior to use when opening matched content. The value could be 'view' | 'window' | 'browser' | 'block'.
3429
3471
  */
3430
3472
  behavior: T;
3431
3473
  /**
@@ -3460,7 +3502,8 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3460
3502
  */
3461
3503
  frameName: string;
3462
3504
  /**
3463
- * The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation
3505
+ * The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation.
3506
+ * <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.
3464
3507
  */
3465
3508
  rule: OpenFin.ContentCreationRule;
3466
3509
  /**
@@ -3518,6 +3561,7 @@ declare type ContextForIntent<MetadataType = any> = Context & {
3518
3561
  };
3519
3562
 
3520
3563
  /**
3564
+ * Information for a Context Group. Contains metadata for displaying the group properly.
3521
3565
  * @interface
3522
3566
  */
3523
3567
  declare type ContextGroupInfo = {
@@ -3537,6 +3581,9 @@ declare type ContextGroupStates = {
3537
3581
  };
3538
3582
  };
3539
3583
 
3584
+ /**
3585
+ * Subscription function for addContextHandler.
3586
+ */
3540
3587
  declare type ContextHandler = (context: Context) => void;
3541
3588
 
3542
3589
  /**
@@ -4013,7 +4060,7 @@ declare type EntityInfo = OpenFin.EntityInfo;
4013
4060
  declare type EntityInfo_2 = {
4014
4061
  uuid: string;
4015
4062
  name: string;
4016
- entityType: EntityType_5;
4063
+ entityType: EntityType_4;
4017
4064
  };
4018
4065
 
4019
4066
  /**
@@ -4031,11 +4078,9 @@ declare type EntityType_2 = OpenFin.EntityType;
4031
4078
 
4032
4079
  declare type EntityType_3 = OpenFin.EntityType;
4033
4080
 
4034
- declare type EntityType_4 = OpenFin.EntityType;
4035
-
4036
- declare type EntityType_5 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
4081
+ declare type EntityType_4 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
4037
4082
 
4038
- declare type EntityTypeHelpers<T extends EntityType_3> = T extends 'view' ? {
4083
+ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
4039
4084
  isView: true;
4040
4085
  isWindow: false;
4041
4086
  isExternal: false;
@@ -4073,7 +4118,7 @@ declare interface Environment {
4073
4118
  createChildContent(options: ChildContentOptions): Promise<any>;
4074
4119
  getWebWindow(identity: OpenFin.Identity): globalThis.Window;
4075
4120
  getCurrentEntityIdentity(): OpenFin.EntityInfo;
4076
- getCurrentEntityType(): EntityType_4;
4121
+ getCurrentEntityType(): EntityType_3;
4077
4122
  raiseEvent(eventName: string, eventArgs: any): void;
4078
4123
  childViews: boolean;
4079
4124
  getUrl(): string;
@@ -4521,7 +4566,7 @@ declare type FileDownloadStartedEvent = FileDownloadEvent & {
4521
4566
  /**
4522
4567
  * @internal
4523
4568
  */
4524
- declare class Fin<MeType extends EntityType = EntityType> extends EventEmitter implements FinApi<MeType> {
4569
+ declare class Fin<MeType extends OpenFin.EntityType = OpenFin.EntityType> extends EventEmitter implements FinApi<MeType> {
4525
4570
  private wire;
4526
4571
  System: System;
4527
4572
  Window: _WindowModule;
@@ -4542,12 +4587,12 @@ declare class Fin<MeType extends EntityType = EntityType> extends EventEmitter i
4542
4587
  constructor(wire: Transport<MeType>);
4543
4588
  }
4544
4589
 
4545
- declare type Fin_2<MeType extends EntityType_5 = 'window' | 'view'> = FinApi<MeType>;
4590
+ declare type Fin_2<MeType extends EntityType_4 = 'window' | 'view'> = FinApi<MeType>;
4546
4591
 
4547
4592
  /**
4548
4593
  * Type of the global `fin` entry point for the OpenFin API.
4549
4594
  */
4550
- declare interface FinApi<MeType extends EntityType> {
4595
+ declare interface FinApi<MeType extends OpenFin.EntityType> {
4551
4596
  readonly System: System;
4552
4597
  readonly Window: _WindowModule;
4553
4598
  readonly Application: ApplicationModule;
@@ -4829,7 +4874,7 @@ declare type FrameInfo = {
4829
4874
  name: string;
4830
4875
  uuid: string;
4831
4876
  url: string;
4832
- entityType: EntityType_5;
4877
+ entityType: EntityType_4;
4833
4878
  parent: Identity_5;
4834
4879
  };
4835
4880
 
@@ -4928,7 +4973,7 @@ declare type GetWindowContextPayload = {
4928
4973
  /**
4929
4974
  * Entity type of the target of the context update ('view' or 'window').
4930
4975
  */
4931
- entityType: EntityType_5;
4976
+ entityType: EntityType_4;
4932
4977
  /**
4933
4978
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
4934
4979
  */
@@ -5312,9 +5357,13 @@ declare type Intent<MetadataType = IntentMetadata> = {
5312
5357
  metadata?: MetadataType;
5313
5358
  };
5314
5359
 
5360
+ /**
5361
+ * Subscription function for registerIntentHandler.
5362
+ */
5315
5363
  declare type IntentHandler = (intent: Intent) => void;
5316
5364
 
5317
5365
  /**
5366
+ * The type used to describe an intent within the platform.
5318
5367
  * @interface
5319
5368
  */
5320
5369
  declare type IntentMetadata<TargetType = any> = {
@@ -6640,6 +6689,7 @@ declare class InteropClient extends Base {
6640
6689
  declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionEvent: InteropBrokerDisconnectionEvent) => any;
6641
6690
 
6642
6691
  /**
6692
+ * Information relevant to the Interop Broker.
6643
6693
  * @interface
6644
6694
  */
6645
6695
  declare type InteropConfig = {
@@ -6752,7 +6802,7 @@ declare type JumpListTask = {
6752
6802
  */
6753
6803
  description: string;
6754
6804
  /**
6755
- * @property Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1.
6805
+ * Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1.
6756
6806
  * See {@link https://developers.openfin.co/docs/deep-linking deep-linking} for more information.
6757
6807
  */
6758
6808
  deepLink: string;
@@ -7146,7 +7196,13 @@ declare type LayoutColumn = LayoutItemConfig & {
7146
7196
  * @interface
7147
7197
  */
7148
7198
  declare type LayoutComponent = LayoutItemConfig & {
7199
+ /**
7200
+ * Only a component type will have this property and it should be set to view.
7201
+ */
7149
7202
  componentName: 'view';
7203
+ /**
7204
+ * Only a component type will have this property and it represents the view options of a given component.
7205
+ */
7150
7206
  componentState?: Partial<ViewCreationOptions>;
7151
7207
  };
7152
7208
 
@@ -7302,7 +7358,7 @@ declare type LayoutInitializedEvent = NamedEvent & {
7302
7358
  };
7303
7359
 
7304
7360
  /**
7305
- * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7361
+ * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7306
7362
  * to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7307
7363
  * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7308
7364
  *
@@ -7732,6 +7788,11 @@ declare type LayoutOptions = {
7732
7788
  * (not to be confused with close button on every tab).
7733
7789
  */
7734
7790
  showCloseIcon?: boolean;
7791
+ /**
7792
+ * @defaultValue false
7793
+ *
7794
+ * Limits the area to which tabs can be dragged. If true, stack headers are the only areas where tabs can be dropped.
7795
+ */
7735
7796
  constrainDragToHeaders?: boolean;
7736
7797
  /**
7737
7798
  * @defaultValue true
@@ -7760,6 +7821,11 @@ declare type LayoutOptions = {
7760
7821
  */
7761
7822
  preventDragIn?: boolean;
7762
7823
  };
7824
+ /**
7825
+ * Content of the layout. There can only be one top-level LayoutItem in the content array.
7826
+ * We do not recommend trying to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7827
+ * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7828
+ */
7763
7829
  content?: LayoutContent;
7764
7830
  dimensions?: {
7765
7831
  borderWidth?: number;
@@ -7924,6 +7990,9 @@ declare type ManifestInfo = {
7924
7990
  * @interface
7925
7991
  */
7926
7992
  declare type Margins = {
7993
+ /**
7994
+ * The margin type. If `custom` is chosen, you will also need to specify top, bottom, left, and right.
7995
+ */
7927
7996
  marginType?: 'default' | 'none' | 'printableArea' | 'custom';
7928
7997
  /**
7929
7998
  * The top margin of the printed webpage, in pixels.
@@ -7953,20 +8022,36 @@ declare type MaximizedEvent = NamedEvent & {
7953
8022
  type: 'maximized';
7954
8023
  };
7955
8024
 
7956
- 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) & {
8025
+ /**
8026
+ * Type of the OpenFin `me` API handle, which provides access to the OpenFin representation of the current
8027
+ * code context (usually a document such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as
8028
+ * to the current `Interop` context.
8029
+ *
8030
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
8031
+ * on the context in which the devtools panel was opened.
8032
+ */
8033
+ 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) & {
7957
8034
  isOpenFin: boolean;
7958
8035
  };
7959
8036
 
7960
8037
  /**
7961
8038
  * @interface
8039
+ *
8040
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
8041
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
8042
+ * of all possible data shapes for the entire menu, and the click handler should process
8043
+ * these with a "reducer" pattern.
7962
8044
  */
7963
- declare type MenuItemTemplate<T extends unknown = unknown> = {
8045
+ declare type MenuItemTemplate<Data extends unknown = unknown> = {
7964
8046
  /**
7965
8047
  * Can be `normal`, `separator`, `submenu`, or `checkbox`.
7966
8048
  * Defaults to 'normal' unless a 'submenu' key exists
7967
8049
  */
7968
8050
  type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
7969
8051
  role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
8052
+ /**
8053
+ * The text to show on the menu item. Should be left undefined for type: 'separator'
8054
+ */
7970
8055
  label?: string;
7971
8056
  /**
7972
8057
  * If false, the menu item will be greyed out and unclickable.
@@ -7984,18 +8069,26 @@ declare type MenuItemTemplate<T extends unknown = unknown> = {
7984
8069
  * Should be specified for `submenu` type menu items. If `submenu` is specified,
7985
8070
  * the `type: 'submenu'` can be omitted.
7986
8071
  */
7987
- submenu?: MenuItemTemplate<T>[];
8072
+ submenu?: MenuItemTemplate<Data>[];
7988
8073
  /**
7989
8074
  * Data to be returned if the user selects the element. Must be serializable
7990
8075
  */
7991
- data?: T;
8076
+ data?: Data;
7992
8077
  /**
7993
8078
  * Image Data URI with image dimensions inferred from the encoded string
7994
8079
  */
7995
8080
  icon?: string;
7996
8081
  };
7997
8082
 
7998
- declare type MenuResult<T extends unknown = unknown> = ClickedMenuResult<T> | ClosedMenuResult;
8083
+ /**
8084
+ * Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
8085
+ *
8086
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
8087
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
8088
+ * of all possible data shapes for the entire menu, and the click handler should process
8089
+ * these with a "reducer" pattern.
8090
+ */
8091
+ declare type MenuResult<Data extends unknown = unknown> = ClickedMenuResult<Data> | ClosedMenuResult;
7999
8092
 
8000
8093
  declare interface Message<T> {
8001
8094
  action: string;
@@ -8160,7 +8253,7 @@ declare type MutableViewOptions = {
8160
8253
  /**
8161
8254
  * @defaultValue false
8162
8255
  *
8163
- * Platforms Only. If true, will hide and detach the View from the window for later use instead of closing,
8256
+ * **Platforms Only.** If true, will hide and detach the View from the window for later use instead of closing,
8164
8257
  * allowing the state of the View to be saved and the View to be immediately shown in a new Layout.
8165
8258
  */
8166
8259
  detachOnClose: boolean;
@@ -8175,7 +8268,7 @@ declare type MutableViewOptions = {
8175
8268
  /**
8176
8269
  * @defaultValue false
8177
8270
  *
8178
- * @property {boolean} [preventDragOut=false] **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
8271
+ * **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
8179
8272
  */
8180
8273
  preventDragOut: boolean;
8181
8274
  interop?: InteropConfig;
@@ -8413,7 +8506,7 @@ declare type MutableWindowOptions = {
8413
8506
  /**
8414
8507
  * @defaultValue false
8415
8508
  *
8416
- * Platforms Only. If true, will show background images in the layout when the Views are hidden.
8509
+ * **Platforms Only.** If true, will show background images in the layout when the Views are hidden.
8417
8510
  * This occurs when the window is resizing or a tab is being dragged within the layout.
8418
8511
  */
8419
8512
  showBackgroundImages: boolean;
@@ -8562,7 +8655,7 @@ declare namespace OpenFin {
8562
8655
  ClientIdentityMultiRuntime,
8563
8656
  ClientConnectionPayload,
8564
8657
  EntityInfo_2 as EntityInfo,
8565
- EntityType_5 as EntityType,
8658
+ EntityType_4 as EntityType,
8566
8659
  Bounds,
8567
8660
  WindowBounds,
8568
8661
  Rectangle,
@@ -9729,20 +9822,20 @@ declare class PlatformModule extends Base {
9729
9822
  * @interface
9730
9823
  */
9731
9824
  declare type PlatformOptions = ApplicationCreationOptions & {
9732
- /**
9733
- * Default window options apply to all platform windows.
9734
- */
9735
- defaultWindowOptions?: Partial<PlatformWindowOptions>;
9736
- /**
9737
- * Default view options apply to all platform views.
9738
- */
9739
- defaultViewOptions?: Partial<PlatformViewCreationOptions>;
9740
9825
  disableDefaultCommands?: boolean;
9741
9826
  /**
9742
9827
  * Strategy to assign views to process affinity by domain.
9828
+ * * `same` - The views in the same domain will have same renderer processes.
9829
+ * * `different` - The views in the same domain will have their own renderer processes.
9743
9830
  */
9744
9831
  viewProcessAffinityStrategy?: ProcessAffinityStrategy;
9832
+ /**
9833
+ * The provider url.
9834
+ */
9745
9835
  providerUrl?: string;
9836
+ /**
9837
+ * The permissions for secured APIs.
9838
+ */
9746
9839
  permissions?: Partial<Permissions_2>;
9747
9840
  };
9748
9841
 
@@ -10473,11 +10566,10 @@ declare type Position = TransitionBase & {
10473
10566
  * - {@link OpenFin.Window.setBounds}
10474
10567
  * - {@link OpenFin.Window.resizeBy}
10475
10568
  * - {@link OpenFin.Window.resizeTo}
10476
- * @example ```js
10477
- fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
10478
- ```
10479
- */
10480
- /**
10569
+ * @example
10570
+ * ```js
10571
+ * fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
10572
+ * ```
10481
10573
  * @interface
10482
10574
  */
10483
10575
  declare type PositioningOptions = {
@@ -10575,9 +10667,21 @@ declare type PrinterInfo = OpenFin.PrinterInfo;
10575
10667
  * @interface
10576
10668
  */
10577
10669
  declare type PrinterInfo_2 = {
10670
+ /**
10671
+ * Printer Name
10672
+ */
10578
10673
  name: string;
10674
+ /**
10675
+ * Printer Description
10676
+ */
10579
10677
  description: string;
10678
+ /**
10679
+ * Printer Status
10680
+ */
10580
10681
  status: number;
10682
+ /**
10683
+ * Indicates that system's default printer.
10684
+ */
10581
10685
  isDefault: boolean;
10582
10686
  };
10583
10687
 
@@ -10589,10 +10693,14 @@ declare type PrinterInfo_2 = {
10589
10693
  declare type PrintOptions = {
10590
10694
  content?: 'self';
10591
10695
  /**
10696
+ * @defaultValue false
10697
+ *
10592
10698
  * Disables prompting the user for print settings.
10593
10699
  */
10594
10700
  silent?: boolean;
10595
10701
  /**
10702
+ * @defaultValue false
10703
+ *
10596
10704
  * Includes the webpage background color and image when printing.
10597
10705
  */
10598
10706
  printBackground?: boolean;
@@ -10601,6 +10709,8 @@ declare type PrintOptions = {
10601
10709
  */
10602
10710
  deviceName?: string;
10603
10711
  /**
10712
+ * @defaultValue true
10713
+ *
10604
10714
  * Prints in full color (greyscale otherwise).
10605
10715
  */
10606
10716
  color?: boolean;
@@ -10609,6 +10719,8 @@ declare type PrintOptions = {
10609
10719
  */
10610
10720
  margins?: Margins;
10611
10721
  /**
10722
+ * @defaultValue true
10723
+ *
10612
10724
  * Prints in landscape mode (portrait otherwise).
10613
10725
  */
10614
10726
  landscape?: boolean;
@@ -11387,9 +11499,12 @@ declare type RuntimeDownloadOptions = {
11387
11499
  */
11388
11500
  declare type RuntimeDownloadProgress = {
11389
11501
  /**
11390
- * @property { string } alias The name of the asset
11502
+ * The downloaded bytes of the download item.
11391
11503
  */
11392
11504
  downloadedBytes: number;
11505
+ /**
11506
+ * The total size in bytes of the file.
11507
+ */
11393
11508
  totalBytes: number;
11394
11509
  };
11395
11510
 
@@ -11539,12 +11654,30 @@ declare type SessionChangedEvent = {
11539
11654
  };
11540
11655
 
11541
11656
  /**
11657
+ * An instance of a SessionContextGroup
11542
11658
  * @interface
11543
11659
  */
11544
11660
  declare type SessionContextGroup = {
11661
+ /**
11662
+ * The SessionContextGroup's id.
11663
+ */
11545
11664
  id: string;
11665
+ /**
11666
+ * A SessionContextGroup instance method for setting a context in the SessionContextGroup.
11667
+ * @param context The Context to be set.
11668
+ */
11546
11669
  setContext: (context: Context) => Promise<void>;
11670
+ /**
11671
+ * A SessionContextGroup instance method for getting the current context of a certain type.
11672
+ * @param type The Context Type to get. If not specified the last contextType set would get used.
11673
+ */
11547
11674
  getCurrentContext: (type?: string) => Promise<Context>;
11675
+ /**
11676
+ * A SessionContextGroup instance method for adding a handler for context change.
11677
+ * @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.
11678
+ * @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.
11679
+ *
11680
+ */
11548
11681
  addContextHandler: (handler: ContextHandler, contextType?: string) => Promise<{
11549
11682
  unsubscribe: () => void;
11550
11683
  }>;
@@ -11561,7 +11694,7 @@ declare type SetWindowContextPayload = {
11561
11694
  /**
11562
11695
  * Entity type of the target of the context update ('view' or 'window').
11563
11696
  */
11564
- entityType: EntityType_5;
11697
+ entityType: EntityType_4;
11565
11698
  /**
11566
11699
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
11567
11700
  */
@@ -11572,7 +11705,13 @@ declare type SetWindowContextPayload = {
11572
11705
  * @interface
11573
11706
  */
11574
11707
  declare type SharedWorkerInfo = {
11708
+ /**
11709
+ * The unique id of the shared worker.
11710
+ */
11575
11711
  id: string;
11712
+ /**
11713
+ * The url of the shared worker.
11714
+ */
11576
11715
  url: string;
11577
11716
  };
11578
11717
 
@@ -11610,11 +11749,27 @@ declare type ShownEvent = BaseViewEvent & {
11610
11749
  };
11611
11750
 
11612
11751
  /**
11752
+ * Options for showing a popup menu
11753
+ *
11754
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
11755
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
11756
+ * of all possible data shapes for the entire menu, and the click handler should process
11757
+ * these with a "reducer" pattern.
11758
+ *
11613
11759
  * @interface
11614
11760
  */
11615
- declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
11616
- template: MenuItemTemplate<T>[];
11761
+ declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
11762
+ /**
11763
+ * An array describing the menu to show.
11764
+ */
11765
+ template: MenuItemTemplate<Data>[];
11766
+ /**
11767
+ * The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
11768
+ */
11617
11769
  x?: number;
11770
+ /**
11771
+ * The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
11772
+ */
11618
11773
  y?: number;
11619
11774
  };
11620
11775
 
@@ -11624,12 +11779,6 @@ declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
11624
11779
  * @interface
11625
11780
  */
11626
11781
  declare type ShowViewOnWindowResizeOptions = ViewVisibilityOption & {
11627
- /**
11628
- * @defaultValue false
11629
- *
11630
- * Enables showing Views when a Platform Window is being resized.
11631
- */
11632
- enabled?: boolean;
11633
11782
  /**
11634
11783
  * @defaultValue 0
11635
11784
  *
@@ -11656,6 +11805,9 @@ declare type Size = TransitionBase & {
11656
11805
  * @interface
11657
11806
  */
11658
11807
  declare type Snapshot = {
11808
+ /**
11809
+ * The array of window options objects
11810
+ */
11659
11811
  windows: WindowCreationOptions[];
11660
11812
  snapshotDetails?: {
11661
11813
  monitorInfo: MonitorInfo;
@@ -13683,8 +13835,17 @@ declare type Time = {
13683
13835
  * @interface
13684
13836
  */
13685
13837
  declare type Transition = {
13838
+ /**
13839
+ * The Opacity transition
13840
+ */
13686
13841
  opacity?: Opacity;
13842
+ /**
13843
+ * The Position transition
13844
+ */
13687
13845
  position?: Position;
13846
+ /**
13847
+ * The Size transition
13848
+ */
13688
13849
  size?: Size;
13689
13850
  };
13690
13851
 
@@ -13725,7 +13886,7 @@ declare type TransitionOptions = {
13725
13886
  tween?: tween;
13726
13887
  };
13727
13888
 
13728
- declare class Transport<MeType extends EntityType_2 = EntityType_2> extends EventEmitter {
13889
+ declare class Transport<MeType extends EntityType = EntityType> extends EventEmitter {
13729
13890
  #private;
13730
13891
  protected wireListeners: Map<number, {
13731
13892
  resolve: Function;
@@ -14727,6 +14888,11 @@ declare interface ViewStatuses {
14727
14888
  * @interface
14728
14889
  */
14729
14890
  declare type ViewVisibilityOption = {
14891
+ /**
14892
+ * @defaultValue false
14893
+ *
14894
+ * Enables or disables showing views when the layout splitter or a tab is being dragged or a Platform Window is being resized.
14895
+ */
14730
14896
  enabled?: boolean;
14731
14897
  };
14732
14898
 
@@ -14756,8 +14922,12 @@ declare type WebContent = View_2 | _Window;
14756
14922
 
14757
14923
  declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14758
14924
  identity: OpenFin.Identity;
14759
- entityType: string;
14760
- constructor(wire: Transport, identity: OpenFin.Identity, entityType: string);
14925
+ entityType: 'window' | 'view';
14926
+ /**
14927
+ * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
14928
+ * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
14929
+ */
14930
+ constructor(wire: Transport, identity: OpenFin.Identity, entityType: 'window' | 'view');
14761
14931
  /**
14762
14932
  * Gets a base64 encoded image of all or part of the WebContents.
14763
14933
  * @param options Options for the capturePage call.
@@ -14805,6 +14975,11 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14805
14975
  * }
14806
14976
  * console.log(await wnd.capturePage(options));
14807
14977
  * ```
14978
+ *
14979
+ * @remarks
14980
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14981
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14982
+ * {@link OpenFin.WebContentsEvents event namespace}.
14808
14983
  */
14809
14984
  capturePage(options?: OpenFin.CapturePageOptions): Promise<string>;
14810
14985
  /**
@@ -14838,6 +15013,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14838
15013
  *
14839
15014
  * executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));
14840
15015
  * ```
15016
+ * @remarks
15017
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15018
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15019
+ * {@link OpenFin.WebContentsEvents event namespace}.
14841
15020
  */
14842
15021
  executeJavaScript(code: string): Promise<void>;
14843
15022
  /**
@@ -14873,6 +15052,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14873
15052
  *
14874
15053
  * getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));
14875
15054
  * ```
15055
+ * @remarks
15056
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15057
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15058
+ * {@link OpenFin.WebContentsEvents event namespace}.
14876
15059
  */
14877
15060
  getZoomLevel(): Promise<number>;
14878
15061
  /**
@@ -14909,6 +15092,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14909
15092
  *
14910
15093
  * setZoomLevel(4).then(() => console.log('Setting a zoom level')).catch(err => console.log(err));
14911
15094
  * ```
15095
+ * @remarks
15096
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15097
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15098
+ * {@link OpenFin.WebContentsEvents event namespace}.
14912
15099
  */
14913
15100
  setZoomLevel(level: number): Promise<void>;
14914
15101
  /**
@@ -14944,6 +15131,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14944
15131
  * navigate().then(() => console.log('Navigate to tutorial')).catch(err => console.log(err));
14945
15132
  * ```
14946
15133
  * @experimental
15134
+ * @remarks
15135
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15136
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15137
+ * {@link OpenFin.WebContentsEvents event namespace}.
14947
15138
  */
14948
15139
  navigate(url: string): Promise<void>;
14949
15140
  /**
@@ -14969,6 +15160,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14969
15160
  * }
14970
15161
  * navigateBack().then(() => console.log('Navigated back')).catch(err => console.log(err));
14971
15162
  * ```
15163
+ * @remarks
15164
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15165
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15166
+ * {@link OpenFin.WebContentsEvents event namespace}.
14972
15167
  */
14973
15168
  navigateBack(): Promise<void>;
14974
15169
  /**
@@ -14996,6 +15191,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14996
15191
  * }
14997
15192
  * navigateForward().then(() => console.log('Navigated forward')).catch(err => console.log(err));
14998
15193
  * ```
15194
+ * @remarks
15195
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15196
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15197
+ * {@link OpenFin.WebContentsEvents event namespace}.
14999
15198
  */
15000
15199
  navigateForward(): Promise<void>;
15001
15200
  /**
@@ -15021,6 +15220,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15021
15220
  * }
15022
15221
  * stopNavigation().then(() => console.log('you shall not navigate')).catch(err => console.log(err));
15023
15222
  * ```
15223
+ * @remarks
15224
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15225
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15226
+ * {@link OpenFin.WebContentsEvents event namespace}.
15024
15227
  */
15025
15228
  stopNavigation(): Promise<void>;
15026
15229
  /**
@@ -15056,6 +15259,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15056
15259
  * console.log('Reloaded window')
15057
15260
  * }).catch(err => console.log(err));
15058
15261
  * ```
15262
+ * @remarks
15263
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15264
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15265
+ * {@link OpenFin.WebContentsEvents event namespace}.
15059
15266
  */
15060
15267
  reload(ignoreCache?: boolean): Promise<void>;
15061
15268
  /**
@@ -15075,6 +15282,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15075
15282
  * console.log('print call has been sent to the system');
15076
15283
  * });
15077
15284
  * ```
15285
+ * @remarks
15286
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15287
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15288
+ * {@link OpenFin.WebContentsEvents event namespace}.
15078
15289
  */
15079
15290
  print(options?: OpenFin.PrintOptions): Promise<void>;
15080
15291
  /**
@@ -15117,6 +15328,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15117
15328
  * console.log(result)
15118
15329
  * });
15119
15330
  * ```
15331
+ * @remarks
15332
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15333
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15334
+ * {@link OpenFin.WebContentsEvents event namespace}.
15120
15335
  */
15121
15336
  findInPage(searchTerm: string, options?: OpenFin.FindInPageOptions): Promise<void>;
15122
15337
  /**
@@ -15156,6 +15371,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15156
15371
  * console.log(results);
15157
15372
  * });
15158
15373
  * ```
15374
+ * @remarks
15375
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15376
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15377
+ * {@link OpenFin.WebContentsEvents event namespace}.
15159
15378
  */
15160
15379
  stopFindInPage(action: string): Promise<void>;
15161
15380
  /**
@@ -15196,6 +15415,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15196
15415
  * console.log(err);
15197
15416
  * });
15198
15417
  * ```
15418
+ * @remarks
15419
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15420
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15421
+ * {@link OpenFin.WebContentsEvents event namespace}.
15199
15422
  */
15200
15423
  getPrinters(): Promise<OpenFin.PrinterInfo>;
15201
15424
  /**
@@ -15216,6 +15439,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15216
15439
  *
15217
15440
  * focusWindow().then(() => console.log('Window focused')).catch(err => console.log(err));
15218
15441
  * ```
15442
+ * @remarks
15443
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15444
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15445
+ * {@link OpenFin.WebContentsEvents event namespace}.
15219
15446
  */
15220
15447
  focus({ emitSynthFocused }?: {
15221
15448
  emitSynthFocused: boolean;
@@ -15247,6 +15474,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15247
15474
  * .then(() => console.log('Showing dev tools'))
15248
15475
  * .catch(err => console.error(err));
15249
15476
  * ```
15477
+ * @remarks
15478
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15479
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15480
+ * {@link OpenFin.WebContentsEvents event namespace}.
15250
15481
  */
15251
15482
  showDeveloperTools(): Promise<void>;
15252
15483
  /**
@@ -15266,6 +15497,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15266
15497
  * const win = await fin.Window.getCurrent();
15267
15498
  * const processInfo = await win.getProcessInfo();
15268
15499
  * ```
15500
+ * @remarks
15501
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15502
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15503
+ * {@link OpenFin.WebContentsEvents event namespace}.
15269
15504
  */
15270
15505
  getProcessInfo(): Promise<OpenFin.EntityProcessDetails>;
15271
15506
  /**
@@ -15298,6 +15533,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15298
15533
  * const win = await fin.Window.create(winOption);
15299
15534
  * const sharedWorkers = await win.getSharedWorkers();
15300
15535
  * ```
15536
+ * @remarks
15537
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15538
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15539
+ * {@link OpenFin.WebContentsEvents event namespace}.
15301
15540
  */
15302
15541
  getSharedWorkers(): Promise<OpenFin.SharedWorkerInfo[]>;
15303
15542
  /**
@@ -15330,6 +15569,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15330
15569
  * const win = await fin.Window.create(winOption);
15331
15570
  * await win.inspectSharedWorker();
15332
15571
  * ```
15572
+ * @remarks
15573
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15574
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15575
+ * {@link OpenFin.WebContentsEvents event namespace}.
15333
15576
  */
15334
15577
  inspectSharedWorker(): Promise<void>;
15335
15578
  /**
@@ -15365,6 +15608,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15365
15608
  * const sharedWorkers = await win.getSharedWorkers();
15366
15609
  * await win.inspectSharedWorkerById(sharedWorkers[0].id);
15367
15610
  * ```
15611
+ * @remarks
15612
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15613
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15614
+ * {@link OpenFin.WebContentsEvents event namespace}.
15368
15615
  */
15369
15616
  inspectSharedWorkerById(workerId: string): Promise<void>;
15370
15617
  /**
@@ -15397,6 +15644,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15397
15644
  * const win = await fin.Window.create(winOption);
15398
15645
  * await win.inspectServiceWorker();
15399
15646
  * ```
15647
+ * @remarks
15648
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15649
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15650
+ * {@link OpenFin.WebContentsEvents event namespace}.
15400
15651
  */
15401
15652
  inspectServiceWorker(): Promise<void>;
15402
15653
  /**
@@ -15605,6 +15856,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15605
15856
  * onPopupReady: popupWindowCallback;
15606
15857
  * });
15607
15858
  * ```
15859
+ * @remarks
15860
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15861
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15862
+ * {@link OpenFin.WebContentsEvents event namespace}.
15608
15863
  */
15609
15864
  showPopupWindow(options: OpenFin.PopupOptions): Promise<OpenFin.PopupResult>;
15610
15865
  }
@@ -16213,7 +16468,6 @@ declare type WillResizeEvent = WillMoveOrResizeEvent & {
16213
16468
  * It has the ability to listen for {@link OpenFin.WindowEvents window specific events}.
16214
16469
  */
16215
16470
  declare class _Window extends WebContents<OpenFin.WindowEvent> {
16216
- identity: OpenFin.Identity;
16217
16471
  /**
16218
16472
  * @internal
16219
16473
  */
@@ -17170,7 +17424,10 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17170
17424
  * Calling this method will close previously opened menus.
17171
17425
  * @experimental
17172
17426
  * @param options
17173
- *
17427
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
17428
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
17429
+ * of all possible data shapes for the entire menu, and the click handler should process
17430
+ * these with a "reducer" pattern.
17174
17431
  * @example
17175
17432
  * This could be used to show a drop down menu over views in a platform window:
17176
17433
  * ```js
@@ -17237,7 +17494,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17237
17494
  * })
17238
17495
  * ```
17239
17496
  */
17240
- showPopupMenu<T>(options: OpenFin.ShowPopupMenuOptions<T>): Promise<OpenFin.MenuResult<T>>;
17497
+ showPopupMenu<Data>(options: OpenFin.ShowPopupMenuOptions<Data>): Promise<OpenFin.MenuResult<Data>>;
17241
17498
  /**
17242
17499
  * Closes the window's popup menu, if one exists.
17243
17500
  * @experimental
@@ -17779,6 +18036,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17779
18036
  * @interface
17780
18037
  */
17781
18038
  declare type WriteAnyClipboardRequest = BaseClipboardRequest & {
18039
+ /**
18040
+ * Data to be written
18041
+ */
17782
18042
  data: {
17783
18043
  text?: string;
17784
18044
  html?: string;