@openfin/core 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.
package/out/mock.d.ts CHANGED
@@ -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_2.Fin<OpenFin_2.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_2.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_2.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
  */
@@ -3181,6 +3221,11 @@ declare type ConstViewOptions = {
3181
3221
  zoomLevel: number;
3182
3222
  experimental: any;
3183
3223
  fdc3InteropApi?: string;
3224
+ /**
3225
+ * @defaultValue false
3226
+ *
3227
+ * When set to `true`, any `beforeunload` handler set on Views will fire.
3228
+ */
3184
3229
  enableBeforeUnload: boolean;
3185
3230
  /**
3186
3231
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -3413,15 +3458,12 @@ declare type ContentCreationOptions = {
3413
3458
  * A rule for creating content in OpenFin; maps a content type to the way in which
3414
3459
  * newly-opened content of that type will be handled.
3415
3460
  *
3416
- * @property { string } behavior 'view' | 'window' | 'browser' | 'block'
3417
- * @property { string[] } match List of [match patterns](https://developer.chrome.com/extensions/match_patterns).
3418
- * @property { object } options Window creation options or View creation options.
3419
3461
  *
3420
3462
  * @interface
3421
3463
  */
3422
3464
  declare type ContentCreationRule<T = ContentCreationBehaviorNames> = {
3423
3465
  /**
3424
- * Behavior to use when opening matched content.
3466
+ * Behavior to use when opening matched content. The value could be 'view' | 'window' | 'browser' | 'block'.
3425
3467
  */
3426
3468
  behavior: T;
3427
3469
  /**
@@ -3456,7 +3498,8 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3456
3498
  */
3457
3499
  frameName: string;
3458
3500
  /**
3459
- * The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation
3501
+ * The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation.
3502
+ * <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.
3460
3503
  */
3461
3504
  rule: OpenFin_2.ContentCreationRule;
3462
3505
  /**
@@ -3514,6 +3557,7 @@ declare type ContextForIntent<MetadataType = any> = Context & {
3514
3557
  };
3515
3558
 
3516
3559
  /**
3560
+ * Information for a Context Group. Contains metadata for displaying the group properly.
3517
3561
  * @interface
3518
3562
  */
3519
3563
  declare type ContextGroupInfo = {
@@ -3533,6 +3577,9 @@ declare type ContextGroupStates = {
3533
3577
  };
3534
3578
  };
3535
3579
 
3580
+ /**
3581
+ * Subscription function for addContextHandler.
3582
+ */
3536
3583
  declare type ContextHandler = (context: Context) => void;
3537
3584
 
3538
3585
  /**
@@ -4009,7 +4056,7 @@ declare type EntityInfo = OpenFin_2.EntityInfo;
4009
4056
  declare type EntityInfo_2 = {
4010
4057
  uuid: string;
4011
4058
  name: string;
4012
- entityType: EntityType_5;
4059
+ entityType: EntityType_4;
4013
4060
  };
4014
4061
 
4015
4062
  /**
@@ -4027,11 +4074,9 @@ declare type EntityType_2 = OpenFin_2.EntityType;
4027
4074
 
4028
4075
  declare type EntityType_3 = OpenFin_2.EntityType;
4029
4076
 
4030
- declare type EntityType_4 = OpenFin_2.EntityType;
4031
-
4032
- declare type EntityType_5 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
4077
+ declare type EntityType_4 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
4033
4078
 
4034
- declare type EntityTypeHelpers<T extends EntityType_3> = T extends 'view' ? {
4079
+ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
4035
4080
  isView: true;
4036
4081
  isWindow: false;
4037
4082
  isExternal: false;
@@ -4069,7 +4114,7 @@ declare interface Environment {
4069
4114
  createChildContent(options: ChildContentOptions): Promise<any>;
4070
4115
  getWebWindow(identity: OpenFin_2.Identity): globalThis.Window;
4071
4116
  getCurrentEntityIdentity(): OpenFin_2.EntityInfo;
4072
- getCurrentEntityType(): EntityType_4;
4117
+ getCurrentEntityType(): EntityType_3;
4073
4118
  raiseEvent(eventName: string, eventArgs: any): void;
4074
4119
  childViews: boolean;
4075
4120
  getUrl(): string;
@@ -4510,14 +4555,14 @@ declare type FileDownloadStartedEvent = FileDownloadEvent & {
4510
4555
  state: 'started';
4511
4556
  };
4512
4557
 
4513
- declare type Fin<MeType extends EntityType_5 = 'window' | 'view'> = FinApi<MeType>;
4558
+ declare type Fin<MeType extends EntityType_4 = 'window' | 'view'> = FinApi<MeType>;
4514
4559
 
4515
4560
  export declare const fin: OpenFin_2.Fin<"window" | "view">;
4516
4561
 
4517
4562
  /**
4518
4563
  * Type of the global `fin` entry point for the OpenFin API.
4519
4564
  */
4520
- declare interface FinApi<MeType extends EntityType> {
4565
+ declare interface FinApi<MeType extends OpenFin_2.EntityType> {
4521
4566
  readonly System: System;
4522
4567
  readonly Window: _WindowModule;
4523
4568
  readonly Application: ApplicationModule;
@@ -4799,7 +4844,7 @@ declare type FrameInfo = {
4799
4844
  name: string;
4800
4845
  uuid: string;
4801
4846
  url: string;
4802
- entityType: EntityType_5;
4847
+ entityType: EntityType_4;
4803
4848
  parent: Identity_5;
4804
4849
  };
4805
4850
 
@@ -4898,7 +4943,7 @@ declare type GetWindowContextPayload = {
4898
4943
  /**
4899
4944
  * Entity type of the target of the context update ('view' or 'window').
4900
4945
  */
4901
- entityType: EntityType_5;
4946
+ entityType: EntityType_4;
4902
4947
  /**
4903
4948
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
4904
4949
  */
@@ -5282,9 +5327,13 @@ declare type Intent<MetadataType = IntentMetadata> = {
5282
5327
  metadata?: MetadataType;
5283
5328
  };
5284
5329
 
5330
+ /**
5331
+ * Subscription function for registerIntentHandler.
5332
+ */
5285
5333
  declare type IntentHandler = (intent: Intent) => void;
5286
5334
 
5287
5335
  /**
5336
+ * The type used to describe an intent within the platform.
5288
5337
  * @interface
5289
5338
  */
5290
5339
  declare type IntentMetadata<TargetType = any> = {
@@ -6610,6 +6659,7 @@ declare class InteropClient extends Base {
6610
6659
  declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionEvent: InteropBrokerDisconnectionEvent) => any;
6611
6660
 
6612
6661
  /**
6662
+ * Information relevant to the Interop Broker.
6613
6663
  * @interface
6614
6664
  */
6615
6665
  declare type InteropConfig = {
@@ -6722,7 +6772,7 @@ declare type JumpListTask = {
6722
6772
  */
6723
6773
  description: string;
6724
6774
  /**
6725
- * @property Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1.
6775
+ * Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1.
6726
6776
  * See {@link https://developers.openfin.co/docs/deep-linking deep-linking} for more information.
6727
6777
  */
6728
6778
  deepLink: string;
@@ -7114,7 +7164,13 @@ declare type LayoutColumn = LayoutItemConfig & {
7114
7164
  * @interface
7115
7165
  */
7116
7166
  declare type LayoutComponent = LayoutItemConfig & {
7167
+ /**
7168
+ * Only a component type will have this property and it should be set to view.
7169
+ */
7117
7170
  componentName: 'view';
7171
+ /**
7172
+ * Only a component type will have this property and it represents the view options of a given component.
7173
+ */
7118
7174
  componentState?: Partial<ViewCreationOptions>;
7119
7175
  };
7120
7176
 
@@ -7270,7 +7326,7 @@ declare type LayoutInitializedEvent = NamedEvent & {
7270
7326
  };
7271
7327
 
7272
7328
  /**
7273
- * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7329
+ * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7274
7330
  * to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7275
7331
  * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7276
7332
  *
@@ -7700,6 +7756,11 @@ declare type LayoutOptions = {
7700
7756
  * (not to be confused with close button on every tab).
7701
7757
  */
7702
7758
  showCloseIcon?: boolean;
7759
+ /**
7760
+ * @defaultValue false
7761
+ *
7762
+ * Limits the area to which tabs can be dragged. If true, stack headers are the only areas where tabs can be dropped.
7763
+ */
7703
7764
  constrainDragToHeaders?: boolean;
7704
7765
  /**
7705
7766
  * @defaultValue true
@@ -7728,6 +7789,11 @@ declare type LayoutOptions = {
7728
7789
  */
7729
7790
  preventDragIn?: boolean;
7730
7791
  };
7792
+ /**
7793
+ * Content of the layout. There can only be one top-level LayoutItem in the content array.
7794
+ * We do not recommend trying to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7795
+ * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7796
+ */
7731
7797
  content?: LayoutContent;
7732
7798
  dimensions?: {
7733
7799
  borderWidth?: number;
@@ -7892,6 +7958,9 @@ declare type ManifestInfo = {
7892
7958
  * @interface
7893
7959
  */
7894
7960
  declare type Margins = {
7961
+ /**
7962
+ * The margin type. If `custom` is chosen, you will also need to specify top, bottom, left, and right.
7963
+ */
7895
7964
  marginType?: 'default' | 'none' | 'printableArea' | 'custom';
7896
7965
  /**
7897
7966
  * The top margin of the printed webpage, in pixels.
@@ -7921,20 +7990,36 @@ declare type MaximizedEvent = NamedEvent & {
7921
7990
  type: 'maximized';
7922
7991
  };
7923
7992
 
7924
- declare type Me<MeType extends EntityType_3> = OpenFin_2.EntityInfo & (MeType extends 'view' ? EntityTypeHelpers<'view'> & OpenFin_2.View & WithInterop : MeType extends 'window' ? EntityTypeHelpers<'window'> & OpenFin_2.Window & WithInterop : MeType extends 'iframe' ? EntityTypeHelpers<'iframe'> & OpenFin_2.Frame & WithInterop : MeType extends 'external connection' ? EntityTypeHelpers<'external connection'> & OpenFin_2.ExternalApplication & WithInterop : EntityTypeHelpers<MeType> & WithInterop) & {
7993
+ /**
7994
+ * Type of the OpenFin `me` API handle, which provides access to the OpenFin representation of the current
7995
+ * code context (usually a document such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as
7996
+ * to the current `Interop` context.
7997
+ *
7998
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
7999
+ * on the context in which the devtools panel was opened.
8000
+ */
8001
+ declare type Me<MeType extends EntityType_2> = OpenFin_2.EntityInfo & (MeType extends 'view' ? EntityTypeHelpers<'view'> & OpenFin_2.View & WithInterop : MeType extends 'window' ? EntityTypeHelpers<'window'> & OpenFin_2.Window & WithInterop : MeType extends 'iframe' ? EntityTypeHelpers<'iframe'> & OpenFin_2.Frame & WithInterop : MeType extends 'external connection' ? EntityTypeHelpers<'external connection'> & OpenFin_2.ExternalApplication & WithInterop : EntityTypeHelpers<MeType> & WithInterop) & {
7925
8002
  isOpenFin: boolean;
7926
8003
  };
7927
8004
 
7928
8005
  /**
7929
8006
  * @interface
8007
+ *
8008
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
8009
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
8010
+ * of all possible data shapes for the entire menu, and the click handler should process
8011
+ * these with a "reducer" pattern.
7930
8012
  */
7931
- declare type MenuItemTemplate<T extends unknown = unknown> = {
8013
+ declare type MenuItemTemplate<Data extends unknown = unknown> = {
7932
8014
  /**
7933
8015
  * Can be `normal`, `separator`, `submenu`, or `checkbox`.
7934
8016
  * Defaults to 'normal' unless a 'submenu' key exists
7935
8017
  */
7936
8018
  type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
7937
8019
  role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
8020
+ /**
8021
+ * The text to show on the menu item. Should be left undefined for type: 'separator'
8022
+ */
7938
8023
  label?: string;
7939
8024
  /**
7940
8025
  * If false, the menu item will be greyed out and unclickable.
@@ -7952,18 +8037,26 @@ declare type MenuItemTemplate<T extends unknown = unknown> = {
7952
8037
  * Should be specified for `submenu` type menu items. If `submenu` is specified,
7953
8038
  * the `type: 'submenu'` can be omitted.
7954
8039
  */
7955
- submenu?: MenuItemTemplate<T>[];
8040
+ submenu?: MenuItemTemplate<Data>[];
7956
8041
  /**
7957
8042
  * Data to be returned if the user selects the element. Must be serializable
7958
8043
  */
7959
- data?: T;
8044
+ data?: Data;
7960
8045
  /**
7961
8046
  * Image Data URI with image dimensions inferred from the encoded string
7962
8047
  */
7963
8048
  icon?: string;
7964
8049
  };
7965
8050
 
7966
- declare type MenuResult<T extends unknown = unknown> = ClickedMenuResult<T> | ClosedMenuResult;
8051
+ /**
8052
+ * Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
8053
+ *
8054
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
8055
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
8056
+ * of all possible data shapes for the entire menu, and the click handler should process
8057
+ * these with a "reducer" pattern.
8058
+ */
8059
+ declare type MenuResult<Data extends unknown = unknown> = ClickedMenuResult<Data> | ClosedMenuResult;
7967
8060
 
7968
8061
  declare interface Message<T> {
7969
8062
  action: string;
@@ -8128,7 +8221,7 @@ declare type MutableViewOptions = {
8128
8221
  /**
8129
8222
  * @defaultValue false
8130
8223
  *
8131
- * Platforms Only. If true, will hide and detach the View from the window for later use instead of closing,
8224
+ * **Platforms Only.** If true, will hide and detach the View from the window for later use instead of closing,
8132
8225
  * allowing the state of the View to be saved and the View to be immediately shown in a new Layout.
8133
8226
  */
8134
8227
  detachOnClose: boolean;
@@ -8143,7 +8236,7 @@ declare type MutableViewOptions = {
8143
8236
  /**
8144
8237
  * @defaultValue false
8145
8238
  *
8146
- * @property {boolean} [preventDragOut=false] **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
8239
+ * **Platforms Only.** If true, the tab of the view can't be dragged out of its host window.
8147
8240
  */
8148
8241
  preventDragOut: boolean;
8149
8242
  interop?: InteropConfig;
@@ -8381,7 +8474,7 @@ declare type MutableWindowOptions = {
8381
8474
  /**
8382
8475
  * @defaultValue false
8383
8476
  *
8384
- * Platforms Only. If true, will show background images in the layout when the Views are hidden.
8477
+ * **Platforms Only.** If true, will show background images in the layout when the Views are hidden.
8385
8478
  * This occurs when the window is resizing or a tab is being dragged within the layout.
8386
8479
  */
8387
8480
  showBackgroundImages: boolean;
@@ -8530,7 +8623,7 @@ declare namespace OpenFin_2 {
8530
8623
  ClientIdentityMultiRuntime,
8531
8624
  ClientConnectionPayload,
8532
8625
  EntityInfo_2 as EntityInfo,
8533
- EntityType_5 as EntityType,
8626
+ EntityType_4 as EntityType,
8534
8627
  Bounds,
8535
8628
  WindowBounds,
8536
8629
  Rectangle,
@@ -9697,20 +9790,20 @@ declare class PlatformModule extends Base {
9697
9790
  * @interface
9698
9791
  */
9699
9792
  declare type PlatformOptions = ApplicationCreationOptions & {
9700
- /**
9701
- * Default window options apply to all platform windows.
9702
- */
9703
- defaultWindowOptions?: Partial<PlatformWindowOptions>;
9704
- /**
9705
- * Default view options apply to all platform views.
9706
- */
9707
- defaultViewOptions?: Partial<PlatformViewCreationOptions>;
9708
9793
  disableDefaultCommands?: boolean;
9709
9794
  /**
9710
9795
  * Strategy to assign views to process affinity by domain.
9796
+ * * `same` - The views in the same domain will have same renderer processes.
9797
+ * * `different` - The views in the same domain will have their own renderer processes.
9711
9798
  */
9712
9799
  viewProcessAffinityStrategy?: ProcessAffinityStrategy;
9800
+ /**
9801
+ * The provider url.
9802
+ */
9713
9803
  providerUrl?: string;
9804
+ /**
9805
+ * The permissions for secured APIs.
9806
+ */
9714
9807
  permissions?: Partial<Permissions_2>;
9715
9808
  };
9716
9809
 
@@ -10441,11 +10534,10 @@ declare type Position = TransitionBase & {
10441
10534
  * - {@link OpenFin.Window.setBounds}
10442
10535
  * - {@link OpenFin.Window.resizeBy}
10443
10536
  * - {@link OpenFin.Window.resizeTo}
10444
- * @example ```js
10445
- fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
10446
- ```
10447
- */
10448
- /**
10537
+ * @example
10538
+ * ```js
10539
+ * fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
10540
+ * ```
10449
10541
  * @interface
10450
10542
  */
10451
10543
  declare type PositioningOptions = {
@@ -10543,9 +10635,21 @@ declare type PrinterInfo = OpenFin_2.PrinterInfo;
10543
10635
  * @interface
10544
10636
  */
10545
10637
  declare type PrinterInfo_2 = {
10638
+ /**
10639
+ * Printer Name
10640
+ */
10546
10641
  name: string;
10642
+ /**
10643
+ * Printer Description
10644
+ */
10547
10645
  description: string;
10646
+ /**
10647
+ * Printer Status
10648
+ */
10548
10649
  status: number;
10650
+ /**
10651
+ * Indicates that system's default printer.
10652
+ */
10549
10653
  isDefault: boolean;
10550
10654
  };
10551
10655
 
@@ -10557,10 +10661,14 @@ declare type PrinterInfo_2 = {
10557
10661
  declare type PrintOptions = {
10558
10662
  content?: 'self';
10559
10663
  /**
10664
+ * @defaultValue false
10665
+ *
10560
10666
  * Disables prompting the user for print settings.
10561
10667
  */
10562
10668
  silent?: boolean;
10563
10669
  /**
10670
+ * @defaultValue false
10671
+ *
10564
10672
  * Includes the webpage background color and image when printing.
10565
10673
  */
10566
10674
  printBackground?: boolean;
@@ -10569,6 +10677,8 @@ declare type PrintOptions = {
10569
10677
  */
10570
10678
  deviceName?: string;
10571
10679
  /**
10680
+ * @defaultValue true
10681
+ *
10572
10682
  * Prints in full color (greyscale otherwise).
10573
10683
  */
10574
10684
  color?: boolean;
@@ -10577,6 +10687,8 @@ declare type PrintOptions = {
10577
10687
  */
10578
10688
  margins?: Margins;
10579
10689
  /**
10690
+ * @defaultValue true
10691
+ *
10580
10692
  * Prints in landscape mode (portrait otherwise).
10581
10693
  */
10582
10694
  landscape?: boolean;
@@ -11355,9 +11467,12 @@ declare type RuntimeDownloadOptions = {
11355
11467
  */
11356
11468
  declare type RuntimeDownloadProgress = {
11357
11469
  /**
11358
- * @property { string } alias The name of the asset
11470
+ * The downloaded bytes of the download item.
11359
11471
  */
11360
11472
  downloadedBytes: number;
11473
+ /**
11474
+ * The total size in bytes of the file.
11475
+ */
11361
11476
  totalBytes: number;
11362
11477
  };
11363
11478
 
@@ -11507,12 +11622,30 @@ declare type SessionChangedEvent = {
11507
11622
  };
11508
11623
 
11509
11624
  /**
11625
+ * An instance of a SessionContextGroup
11510
11626
  * @interface
11511
11627
  */
11512
11628
  declare type SessionContextGroup = {
11629
+ /**
11630
+ * The SessionContextGroup's id.
11631
+ */
11513
11632
  id: string;
11633
+ /**
11634
+ * A SessionContextGroup instance method for setting a context in the SessionContextGroup.
11635
+ * @param context The Context to be set.
11636
+ */
11514
11637
  setContext: (context: Context) => Promise<void>;
11638
+ /**
11639
+ * A SessionContextGroup instance method for getting the current context of a certain type.
11640
+ * @param type The Context Type to get. If not specified the last contextType set would get used.
11641
+ */
11515
11642
  getCurrentContext: (type?: string) => Promise<Context>;
11643
+ /**
11644
+ * A SessionContextGroup instance method for adding a handler for context change.
11645
+ * @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.
11646
+ * @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.
11647
+ *
11648
+ */
11516
11649
  addContextHandler: (handler: ContextHandler, contextType?: string) => Promise<{
11517
11650
  unsubscribe: () => void;
11518
11651
  }>;
@@ -11529,7 +11662,7 @@ declare type SetWindowContextPayload = {
11529
11662
  /**
11530
11663
  * Entity type of the target of the context update ('view' or 'window').
11531
11664
  */
11532
- entityType: EntityType_5;
11665
+ entityType: EntityType_4;
11533
11666
  /**
11534
11667
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
11535
11668
  */
@@ -11540,7 +11673,13 @@ declare type SetWindowContextPayload = {
11540
11673
  * @interface
11541
11674
  */
11542
11675
  declare type SharedWorkerInfo = {
11676
+ /**
11677
+ * The unique id of the shared worker.
11678
+ */
11543
11679
  id: string;
11680
+ /**
11681
+ * The url of the shared worker.
11682
+ */
11544
11683
  url: string;
11545
11684
  };
11546
11685
 
@@ -11578,11 +11717,27 @@ declare type ShownEvent = BaseViewEvent & {
11578
11717
  };
11579
11718
 
11580
11719
  /**
11720
+ * Options for showing a popup menu
11721
+ *
11722
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
11723
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
11724
+ * of all possible data shapes for the entire menu, and the click handler should process
11725
+ * these with a "reducer" pattern.
11726
+ *
11581
11727
  * @interface
11582
11728
  */
11583
- declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
11584
- template: MenuItemTemplate<T>[];
11729
+ declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
11730
+ /**
11731
+ * An array describing the menu to show.
11732
+ */
11733
+ template: MenuItemTemplate<Data>[];
11734
+ /**
11735
+ * The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
11736
+ */
11585
11737
  x?: number;
11738
+ /**
11739
+ * The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
11740
+ */
11586
11741
  y?: number;
11587
11742
  };
11588
11743
 
@@ -11592,12 +11747,6 @@ declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
11592
11747
  * @interface
11593
11748
  */
11594
11749
  declare type ShowViewOnWindowResizeOptions = ViewVisibilityOption & {
11595
- /**
11596
- * @defaultValue false
11597
- *
11598
- * Enables showing Views when a Platform Window is being resized.
11599
- */
11600
- enabled?: boolean;
11601
11750
  /**
11602
11751
  * @defaultValue 0
11603
11752
  *
@@ -11624,6 +11773,9 @@ declare type Size = TransitionBase & {
11624
11773
  * @interface
11625
11774
  */
11626
11775
  declare type Snapshot = {
11776
+ /**
11777
+ * The array of window options objects
11778
+ */
11627
11779
  windows: WindowCreationOptions[];
11628
11780
  snapshotDetails?: {
11629
11781
  monitorInfo: MonitorInfo;
@@ -13651,8 +13803,17 @@ declare type Time = {
13651
13803
  * @interface
13652
13804
  */
13653
13805
  declare type Transition = {
13806
+ /**
13807
+ * The Opacity transition
13808
+ */
13654
13809
  opacity?: Opacity;
13810
+ /**
13811
+ * The Position transition
13812
+ */
13655
13813
  position?: Position;
13814
+ /**
13815
+ * The Size transition
13816
+ */
13656
13817
  size?: Size;
13657
13818
  };
13658
13819
 
@@ -13693,7 +13854,7 @@ declare type TransitionOptions = {
13693
13854
  tween?: tween;
13694
13855
  };
13695
13856
 
13696
- declare class Transport<MeType extends EntityType_2 = EntityType_2> extends EventEmitter {
13857
+ declare class Transport<MeType extends EntityType = EntityType> extends EventEmitter {
13697
13858
  #private;
13698
13859
  protected wireListeners: Map<number, {
13699
13860
  resolve: Function;
@@ -14695,6 +14856,11 @@ declare interface ViewStatuses {
14695
14856
  * @interface
14696
14857
  */
14697
14858
  declare type ViewVisibilityOption = {
14859
+ /**
14860
+ * @defaultValue false
14861
+ *
14862
+ * Enables or disables showing views when the layout splitter or a tab is being dragged or a Platform Window is being resized.
14863
+ */
14698
14864
  enabled?: boolean;
14699
14865
  };
14700
14866
 
@@ -14724,8 +14890,12 @@ declare type WebContent = View_2 | _Window;
14724
14890
 
14725
14891
  declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14726
14892
  identity: OpenFin_2.Identity;
14727
- entityType: string;
14728
- constructor(wire: Transport, identity: OpenFin_2.Identity, entityType: string);
14893
+ entityType: 'window' | 'view';
14894
+ /**
14895
+ * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
14896
+ * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
14897
+ */
14898
+ constructor(wire: Transport, identity: OpenFin_2.Identity, entityType: 'window' | 'view');
14729
14899
  /**
14730
14900
  * Gets a base64 encoded image of all or part of the WebContents.
14731
14901
  * @param options Options for the capturePage call.
@@ -14773,6 +14943,11 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14773
14943
  * }
14774
14944
  * console.log(await wnd.capturePage(options));
14775
14945
  * ```
14946
+ *
14947
+ * @remarks
14948
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14949
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14950
+ * {@link OpenFin.WebContentsEvents event namespace}.
14776
14951
  */
14777
14952
  capturePage(options?: OpenFin_2.CapturePageOptions): Promise<string>;
14778
14953
  /**
@@ -14806,6 +14981,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14806
14981
  *
14807
14982
  * executeJavaScript(`console.log('Hello, Openfin')`).then(() => console.log('Javascript excuted')).catch(err => console.log(err));
14808
14983
  * ```
14984
+ * @remarks
14985
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
14986
+ * We do not expose an explicit superclass for this functionality, but it does have its own
14987
+ * {@link OpenFin.WebContentsEvents event namespace}.
14809
14988
  */
14810
14989
  executeJavaScript(code: string): Promise<void>;
14811
14990
  /**
@@ -14841,6 +15020,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14841
15020
  *
14842
15021
  * getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));
14843
15022
  * ```
15023
+ * @remarks
15024
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15025
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15026
+ * {@link OpenFin.WebContentsEvents event namespace}.
14844
15027
  */
14845
15028
  getZoomLevel(): Promise<number>;
14846
15029
  /**
@@ -14877,6 +15060,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14877
15060
  *
14878
15061
  * setZoomLevel(4).then(() => console.log('Setting a zoom level')).catch(err => console.log(err));
14879
15062
  * ```
15063
+ * @remarks
15064
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15065
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15066
+ * {@link OpenFin.WebContentsEvents event namespace}.
14880
15067
  */
14881
15068
  setZoomLevel(level: number): Promise<void>;
14882
15069
  /**
@@ -14912,6 +15099,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14912
15099
  * navigate().then(() => console.log('Navigate to tutorial')).catch(err => console.log(err));
14913
15100
  * ```
14914
15101
  * @experimental
15102
+ * @remarks
15103
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15104
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15105
+ * {@link OpenFin.WebContentsEvents event namespace}.
14915
15106
  */
14916
15107
  navigate(url: string): Promise<void>;
14917
15108
  /**
@@ -14937,6 +15128,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14937
15128
  * }
14938
15129
  * navigateBack().then(() => console.log('Navigated back')).catch(err => console.log(err));
14939
15130
  * ```
15131
+ * @remarks
15132
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15133
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15134
+ * {@link OpenFin.WebContentsEvents event namespace}.
14940
15135
  */
14941
15136
  navigateBack(): Promise<void>;
14942
15137
  /**
@@ -14964,6 +15159,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14964
15159
  * }
14965
15160
  * navigateForward().then(() => console.log('Navigated forward')).catch(err => console.log(err));
14966
15161
  * ```
15162
+ * @remarks
15163
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15164
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15165
+ * {@link OpenFin.WebContentsEvents event namespace}.
14967
15166
  */
14968
15167
  navigateForward(): Promise<void>;
14969
15168
  /**
@@ -14989,6 +15188,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14989
15188
  * }
14990
15189
  * stopNavigation().then(() => console.log('you shall not navigate')).catch(err => console.log(err));
14991
15190
  * ```
15191
+ * @remarks
15192
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15193
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15194
+ * {@link OpenFin.WebContentsEvents event namespace}.
14992
15195
  */
14993
15196
  stopNavigation(): Promise<void>;
14994
15197
  /**
@@ -15024,6 +15227,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15024
15227
  * console.log('Reloaded window')
15025
15228
  * }).catch(err => console.log(err));
15026
15229
  * ```
15230
+ * @remarks
15231
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15232
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15233
+ * {@link OpenFin.WebContentsEvents event namespace}.
15027
15234
  */
15028
15235
  reload(ignoreCache?: boolean): Promise<void>;
15029
15236
  /**
@@ -15043,6 +15250,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15043
15250
  * console.log('print call has been sent to the system');
15044
15251
  * });
15045
15252
  * ```
15253
+ * @remarks
15254
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15255
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15256
+ * {@link OpenFin.WebContentsEvents event namespace}.
15046
15257
  */
15047
15258
  print(options?: OpenFin_2.PrintOptions): Promise<void>;
15048
15259
  /**
@@ -15085,6 +15296,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15085
15296
  * console.log(result)
15086
15297
  * });
15087
15298
  * ```
15299
+ * @remarks
15300
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15301
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15302
+ * {@link OpenFin.WebContentsEvents event namespace}.
15088
15303
  */
15089
15304
  findInPage(searchTerm: string, options?: OpenFin_2.FindInPageOptions): Promise<void>;
15090
15305
  /**
@@ -15124,6 +15339,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15124
15339
  * console.log(results);
15125
15340
  * });
15126
15341
  * ```
15342
+ * @remarks
15343
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15344
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15345
+ * {@link OpenFin.WebContentsEvents event namespace}.
15127
15346
  */
15128
15347
  stopFindInPage(action: string): Promise<void>;
15129
15348
  /**
@@ -15164,6 +15383,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15164
15383
  * console.log(err);
15165
15384
  * });
15166
15385
  * ```
15386
+ * @remarks
15387
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15388
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15389
+ * {@link OpenFin.WebContentsEvents event namespace}.
15167
15390
  */
15168
15391
  getPrinters(): Promise<OpenFin_2.PrinterInfo>;
15169
15392
  /**
@@ -15184,6 +15407,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15184
15407
  *
15185
15408
  * focusWindow().then(() => console.log('Window focused')).catch(err => console.log(err));
15186
15409
  * ```
15410
+ * @remarks
15411
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15412
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15413
+ * {@link OpenFin.WebContentsEvents event namespace}.
15187
15414
  */
15188
15415
  focus({ emitSynthFocused }?: {
15189
15416
  emitSynthFocused: boolean;
@@ -15215,6 +15442,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15215
15442
  * .then(() => console.log('Showing dev tools'))
15216
15443
  * .catch(err => console.error(err));
15217
15444
  * ```
15445
+ * @remarks
15446
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15447
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15448
+ * {@link OpenFin.WebContentsEvents event namespace}.
15218
15449
  */
15219
15450
  showDeveloperTools(): Promise<void>;
15220
15451
  /**
@@ -15234,6 +15465,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15234
15465
  * const win = await fin.Window.getCurrent();
15235
15466
  * const processInfo = await win.getProcessInfo();
15236
15467
  * ```
15468
+ * @remarks
15469
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15470
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15471
+ * {@link OpenFin.WebContentsEvents event namespace}.
15237
15472
  */
15238
15473
  getProcessInfo(): Promise<OpenFin_2.EntityProcessDetails>;
15239
15474
  /**
@@ -15266,6 +15501,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15266
15501
  * const win = await fin.Window.create(winOption);
15267
15502
  * const sharedWorkers = await win.getSharedWorkers();
15268
15503
  * ```
15504
+ * @remarks
15505
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15506
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15507
+ * {@link OpenFin.WebContentsEvents event namespace}.
15269
15508
  */
15270
15509
  getSharedWorkers(): Promise<OpenFin_2.SharedWorkerInfo[]>;
15271
15510
  /**
@@ -15298,6 +15537,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15298
15537
  * const win = await fin.Window.create(winOption);
15299
15538
  * await win.inspectSharedWorker();
15300
15539
  * ```
15540
+ * @remarks
15541
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15542
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15543
+ * {@link OpenFin.WebContentsEvents event namespace}.
15301
15544
  */
15302
15545
  inspectSharedWorker(): Promise<void>;
15303
15546
  /**
@@ -15333,6 +15576,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15333
15576
  * const sharedWorkers = await win.getSharedWorkers();
15334
15577
  * await win.inspectSharedWorkerById(sharedWorkers[0].id);
15335
15578
  * ```
15579
+ * @remarks
15580
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15581
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15582
+ * {@link OpenFin.WebContentsEvents event namespace}.
15336
15583
  */
15337
15584
  inspectSharedWorkerById(workerId: string): Promise<void>;
15338
15585
  /**
@@ -15365,6 +15612,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15365
15612
  * const win = await fin.Window.create(winOption);
15366
15613
  * await win.inspectServiceWorker();
15367
15614
  * ```
15615
+ * @remarks
15616
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15617
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15618
+ * {@link OpenFin.WebContentsEvents event namespace}.
15368
15619
  */
15369
15620
  inspectServiceWorker(): Promise<void>;
15370
15621
  /**
@@ -15573,6 +15824,10 @@ declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
15573
15824
  * onPopupReady: popupWindowCallback;
15574
15825
  * });
15575
15826
  * ```
15827
+ * @remarks
15828
+ * `WebContents` refers to shared functionality between {@link OpenFin.Window} and {@link OpenFin.View}.
15829
+ * We do not expose an explicit superclass for this functionality, but it does have its own
15830
+ * {@link OpenFin.WebContentsEvents event namespace}.
15576
15831
  */
15577
15832
  showPopupWindow(options: OpenFin_2.PopupOptions): Promise<OpenFin_2.PopupResult>;
15578
15833
  }
@@ -16181,7 +16436,6 @@ declare type WillResizeEvent = WillMoveOrResizeEvent & {
16181
16436
  * It has the ability to listen for {@link OpenFin.WindowEvents window specific events}.
16182
16437
  */
16183
16438
  declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
16184
- identity: OpenFin_2.Identity;
16185
16439
  /**
16186
16440
  * @internal
16187
16441
  */
@@ -17138,7 +17392,10 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17138
17392
  * Calling this method will close previously opened menus.
17139
17393
  * @experimental
17140
17394
  * @param options
17141
- *
17395
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
17396
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
17397
+ * of all possible data shapes for the entire menu, and the click handler should process
17398
+ * these with a "reducer" pattern.
17142
17399
  * @example
17143
17400
  * This could be used to show a drop down menu over views in a platform window:
17144
17401
  * ```js
@@ -17205,7 +17462,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17205
17462
  * })
17206
17463
  * ```
17207
17464
  */
17208
- showPopupMenu<T>(options: OpenFin_2.ShowPopupMenuOptions<T>): Promise<OpenFin_2.MenuResult<T>>;
17465
+ showPopupMenu<Data>(options: OpenFin_2.ShowPopupMenuOptions<Data>): Promise<OpenFin_2.MenuResult<Data>>;
17209
17466
  /**
17210
17467
  * Closes the window's popup menu, if one exists.
17211
17468
  * @experimental
@@ -17747,6 +18004,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17747
18004
  * @interface
17748
18005
  */
17749
18006
  declare type WriteAnyClipboardRequest = BaseClipboardRequest & {
18007
+ /**
18008
+ * Data to be written
18009
+ */
17750
18010
  data: {
17751
18011
  text?: string;
17752
18012
  html?: string;