@openfin/core 34.78.12 → 34.78.13

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
@@ -1181,17 +1181,30 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1181
1181
  * When set to `false` it will disable the same-origin policy for the app.
1182
1182
  */
1183
1183
  webSecurity: boolean;
1184
+ /**
1185
+ * Configuration for keyboard commands.
1186
+ * For details and usage, see {@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands Using Keyboard Commands}.
1187
+ */
1184
1188
  commands: ShortcutOverride[];
1185
1189
  isPlatformController: boolean;
1186
1190
  /**
1187
1191
  * @defaultValue 1000
1188
1192
  *
1189
- * Platforms Only. The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
1193
+ * Platforms Only. The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
1190
1194
  * If you do not wish for views to be pooled on your platform, set this property to zero.
1191
1195
  */
1192
1196
  maxViewPoolSize: number;
1197
+ /**
1198
+ * Platforms Only. Default window options apply to all platform windows.
1199
+ */
1193
1200
  defaultWindowOptions: Partial<WindowOptions>;
1201
+ /**
1202
+ * Platforms Only. Default view options apply to all platform views.
1203
+ */
1194
1204
  defaultViewOptions: Partial<ViewOptions>;
1205
+ /**
1206
+ * Platforms Only. The snapshot to be applied.
1207
+ */
1195
1208
  snapshot: Snapshot;
1196
1209
  /**
1197
1210
  * @defaultValue false
@@ -1201,15 +1214,33 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1201
1214
  * If you want a hidden Platform Provider to remain open after the last Platform Window has been closed, set this property to true.
1202
1215
  */
1203
1216
  preventQuitOnLastWindowClosed: boolean;
1217
+ /**
1218
+ * Configuration for interop broker.
1219
+ */
1204
1220
  interopBrokerConfiguration: InteropBrokerOptions;
1221
+ /**
1222
+ * @defaultValue true
1223
+ *
1224
+ * When set to `false` it will disable OpenFin Diagnostics for the app.
1225
+ */
1205
1226
  apiDiagnostics: boolean;
1227
+ /**
1228
+ * Define the file download rules.
1229
+ * See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
1230
+ */
1206
1231
  defaultDomainSettings: DefaultDomainSettings;
1207
1232
  /**
1208
1233
  * @defaultValue false
1234
+ *
1209
1235
  * Enables the use of the Jumplists API and the 'pin to taskbar' functionality.
1210
1236
  * Only relevant in Windows.
1211
1237
  */
1212
1238
  enableJumpList: boolean;
1239
+ /**
1240
+ * @defaultValue false
1241
+ *
1242
+ * When set to `true`, any `beforeunload` handler set on the app will fire.
1243
+ */
1213
1244
  enableBeforeUnload: boolean;
1214
1245
  };
1215
1246
 
@@ -1307,7 +1338,7 @@ declare type ApplySnapshotOptions = {
1307
1338
  */
1308
1339
  declare type ApplySnapshotPayload = {
1309
1340
  /**
1310
- * TThe snapshot to be applied.
1341
+ * The snapshot to be applied.
1311
1342
  */
1312
1343
  snapshot: Snapshot;
1313
1344
  /**
@@ -1543,6 +1574,13 @@ declare class Base {
1543
1574
  */
1544
1575
  constructor(wire: Transport);
1545
1576
  protected get fin(): OpenFin_2.Fin<OpenFin_2.EntityType>;
1577
+ /**
1578
+ * Provides access to the OpenFin representation of the current code context (usually a document
1579
+ * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
1580
+ *
1581
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
1582
+ * on the context in which the devtools panel was opened.
1583
+ */
1546
1584
  get me(): Identity;
1547
1585
  protected isNodeEnvironment: () => boolean;
1548
1586
  protected isOpenFinEnvironment: () => boolean;
@@ -2744,11 +2782,16 @@ declare type ClearCacheOption = {
2744
2782
  };
2745
2783
 
2746
2784
  /**
2785
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
2786
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
2787
+ * of all possible data shapes for the entire menu, and the click handler should process
2788
+ * these with a "reducer" pattern.
2789
+ *
2747
2790
  * @interface
2748
2791
  */
2749
- declare type ClickedMenuResult<T extends unknown = unknown> = {
2792
+ declare type ClickedMenuResult<Data extends unknown = unknown> = {
2750
2793
  result: 'clicked';
2751
- data: T;
2794
+ data: Data;
2752
2795
  };
2753
2796
 
2754
2797
  /**
@@ -2757,7 +2800,7 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
2757
2800
  declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
2758
2801
 
2759
2802
  /**
2760
- * Identity of a channel client
2803
+ * Identity of a channel client. Includes endpointId to differentiate between different connections for an entity.
2761
2804
  * @interface
2762
2805
  */
2763
2806
  declare type ClientIdentity = Identity_5 & {
@@ -3181,6 +3224,11 @@ declare type ConstViewOptions = {
3181
3224
  zoomLevel: number;
3182
3225
  experimental: any;
3183
3226
  fdc3InteropApi?: string;
3227
+ /**
3228
+ * @defaultValue false
3229
+ *
3230
+ * When set to `true`, any `beforeunload` handler set on Views will fire.
3231
+ */
3184
3232
  enableBeforeUnload: boolean;
3185
3233
  /**
3186
3234
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -3413,15 +3461,12 @@ declare type ContentCreationOptions = {
3413
3461
  * A rule for creating content in OpenFin; maps a content type to the way in which
3414
3462
  * newly-opened content of that type will be handled.
3415
3463
  *
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
3464
  *
3420
3465
  * @interface
3421
3466
  */
3422
3467
  declare type ContentCreationRule<T = ContentCreationBehaviorNames> = {
3423
3468
  /**
3424
- * Behavior to use when opening matched content.
3469
+ * Behavior to use when opening matched content. The value could be 'view' | 'window' | 'browser' | 'block'.
3425
3470
  */
3426
3471
  behavior: T;
3427
3472
  /**
@@ -3513,6 +3558,9 @@ declare type ContextForIntent<MetadataType = any> = Context & {
3513
3558
  metadata?: MetadataType;
3514
3559
  };
3515
3560
 
3561
+ /**
3562
+ * Information for a Context Group. Contains metadata for displaying the group properly.
3563
+ */
3516
3564
  /**
3517
3565
  * @interface
3518
3566
  */
@@ -3533,6 +3581,9 @@ declare type ContextGroupStates = {
3533
3581
  };
3534
3582
  };
3535
3583
 
3584
+ /**
3585
+ * Subscription function for addContextHandler.
3586
+ */
3536
3587
  declare type ContextHandler = (context: Context) => void;
3537
3588
 
3538
3589
  /**
@@ -5282,8 +5333,14 @@ declare type Intent<MetadataType = IntentMetadata> = {
5282
5333
  metadata?: MetadataType;
5283
5334
  };
5284
5335
 
5336
+ /**
5337
+ * Subscription function for registerIntentHandler.
5338
+ */
5285
5339
  declare type IntentHandler = (intent: Intent) => void;
5286
5340
 
5341
+ /**
5342
+ * The type used to describe an intent within the platform.
5343
+ */
5287
5344
  /**
5288
5345
  * @interface
5289
5346
  */
@@ -6609,6 +6666,9 @@ declare class InteropClient extends Base {
6609
6666
  */
6610
6667
  declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionEvent: InteropBrokerDisconnectionEvent) => any;
6611
6668
 
6669
+ /**
6670
+ * Information relevant to the Interop Broker.
6671
+ */
6612
6672
  /**
6613
6673
  * @interface
6614
6674
  */
@@ -7114,7 +7174,13 @@ declare type LayoutColumn = LayoutItemConfig & {
7114
7174
  * @interface
7115
7175
  */
7116
7176
  declare type LayoutComponent = LayoutItemConfig & {
7177
+ /**
7178
+ * Only a component type will have this property and it should be set to view.
7179
+ */
7117
7180
  componentName: 'view';
7181
+ /**
7182
+ * Only a component type will have this property and it represents the view options of a given component.
7183
+ */
7118
7184
  componentState?: Partial<ViewCreationOptions>;
7119
7185
  };
7120
7186
 
@@ -7270,7 +7336,7 @@ declare type LayoutInitializedEvent = NamedEvent & {
7270
7336
  };
7271
7337
 
7272
7338
  /**
7273
- * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7339
+ * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7274
7340
  * to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7275
7341
  * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7276
7342
  *
@@ -7700,6 +7766,11 @@ declare type LayoutOptions = {
7700
7766
  * (not to be confused with close button on every tab).
7701
7767
  */
7702
7768
  showCloseIcon?: boolean;
7769
+ /**
7770
+ * @defaultValue false
7771
+ *
7772
+ * Limits the area to which tabs can be dragged. If true, stack headers are the only areas where tabs can be dropped.
7773
+ */
7703
7774
  constrainDragToHeaders?: boolean;
7704
7775
  /**
7705
7776
  * @defaultValue true
@@ -7728,6 +7799,11 @@ declare type LayoutOptions = {
7728
7799
  */
7729
7800
  preventDragIn?: boolean;
7730
7801
  };
7802
+ /**
7803
+ * Content of the layout. There can only be one top-level LayoutItem in the content array.
7804
+ * We do not recommend trying to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7805
+ * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7806
+ */
7731
7807
  content?: LayoutContent;
7732
7808
  dimensions?: {
7733
7809
  borderWidth?: number;
@@ -7892,6 +7968,9 @@ declare type ManifestInfo = {
7892
7968
  * @interface
7893
7969
  */
7894
7970
  declare type Margins = {
7971
+ /**
7972
+ * The margin type. If `custom` is chosen, you will also need to specify top, bottom, left, and right.
7973
+ */
7895
7974
  marginType?: 'default' | 'none' | 'printableArea' | 'custom';
7896
7975
  /**
7897
7976
  * The top margin of the printed webpage, in pixels.
@@ -7921,20 +8000,36 @@ declare type MaximizedEvent = NamedEvent & {
7921
8000
  type: 'maximized';
7922
8001
  };
7923
8002
 
8003
+ /**
8004
+ * Type of the OpenFin `me` API handle, which provides access to the OpenFin representation of the current
8005
+ * code context (usually a document such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as
8006
+ * to the current `Interop` context.
8007
+ *
8008
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
8009
+ * on the context in which the devtools panel was opened.
8010
+ */
7924
8011
  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) & {
7925
8012
  isOpenFin: boolean;
7926
8013
  };
7927
8014
 
7928
8015
  /**
7929
8016
  * @interface
8017
+ *
8018
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
8019
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
8020
+ * of all possible data shapes for the entire menu, and the click handler should process
8021
+ * these with a "reducer" pattern.
7930
8022
  */
7931
- declare type MenuItemTemplate<T extends unknown = unknown> = {
8023
+ declare type MenuItemTemplate<Data extends unknown = unknown> = {
7932
8024
  /**
7933
8025
  * Can be `normal`, `separator`, `submenu`, or `checkbox`.
7934
8026
  * Defaults to 'normal' unless a 'submenu' key exists
7935
8027
  */
7936
8028
  type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
7937
8029
  role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
8030
+ /**
8031
+ * The text to show on the menu item. Should be left undefined for type: 'separator'
8032
+ */
7938
8033
  label?: string;
7939
8034
  /**
7940
8035
  * If false, the menu item will be greyed out and unclickable.
@@ -7952,18 +8047,26 @@ declare type MenuItemTemplate<T extends unknown = unknown> = {
7952
8047
  * Should be specified for `submenu` type menu items. If `submenu` is specified,
7953
8048
  * the `type: 'submenu'` can be omitted.
7954
8049
  */
7955
- submenu?: MenuItemTemplate<T>[];
8050
+ submenu?: MenuItemTemplate<Data>[];
7956
8051
  /**
7957
8052
  * Data to be returned if the user selects the element. Must be serializable
7958
8053
  */
7959
- data?: T;
8054
+ data?: Data;
7960
8055
  /**
7961
8056
  * Image Data URI with image dimensions inferred from the encoded string
7962
8057
  */
7963
8058
  icon?: string;
7964
8059
  };
7965
8060
 
7966
- declare type MenuResult<T extends unknown = unknown> = ClickedMenuResult<T> | ClosedMenuResult;
8061
+ /**
8062
+ * Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
8063
+ *
8064
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
8065
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
8066
+ * of all possible data shapes for the entire menu, and the click handler should process
8067
+ * these with a "reducer" pattern.
8068
+ */
8069
+ declare type MenuResult<Data extends unknown = unknown> = ClickedMenuResult<Data> | ClosedMenuResult;
7967
8070
 
7968
8071
  declare interface Message<T> {
7969
8072
  action: string;
@@ -9708,9 +9811,17 @@ declare type PlatformOptions = ApplicationCreationOptions & {
9708
9811
  disableDefaultCommands?: boolean;
9709
9812
  /**
9710
9813
  * Strategy to assign views to process affinity by domain.
9814
+ * * `same` - The views in the same domain will have same renderer processes.
9815
+ * * `different` - The views in the same domain will have their own renderer processes.
9711
9816
  */
9712
9817
  viewProcessAffinityStrategy?: ProcessAffinityStrategy;
9818
+ /**
9819
+ * The provider url.
9820
+ */
9713
9821
  providerUrl?: string;
9822
+ /**
9823
+ * The permissions for secured APIs.
9824
+ */
9714
9825
  permissions?: Partial<Permissions_2>;
9715
9826
  };
9716
9827
 
@@ -10543,9 +10654,21 @@ declare type PrinterInfo = OpenFin_2.PrinterInfo;
10543
10654
  * @interface
10544
10655
  */
10545
10656
  declare type PrinterInfo_2 = {
10657
+ /**
10658
+ * Printer Name
10659
+ */
10546
10660
  name: string;
10661
+ /**
10662
+ * Printer Description
10663
+ */
10547
10664
  description: string;
10665
+ /**
10666
+ * Printer Status
10667
+ */
10548
10668
  status: number;
10669
+ /**
10670
+ * Indicates that system's default printer.
10671
+ */
10549
10672
  isDefault: boolean;
10550
10673
  };
10551
10674
 
@@ -10557,10 +10680,14 @@ declare type PrinterInfo_2 = {
10557
10680
  declare type PrintOptions = {
10558
10681
  content?: 'self';
10559
10682
  /**
10683
+ * @defaultValue false
10684
+ *
10560
10685
  * Disables prompting the user for print settings.
10561
10686
  */
10562
10687
  silent?: boolean;
10563
10688
  /**
10689
+ * @defaultValue false
10690
+ *
10564
10691
  * Includes the webpage background color and image when printing.
10565
10692
  */
10566
10693
  printBackground?: boolean;
@@ -10569,6 +10696,8 @@ declare type PrintOptions = {
10569
10696
  */
10570
10697
  deviceName?: string;
10571
10698
  /**
10699
+ * @defaultValue true
10700
+ *
10572
10701
  * Prints in full color (greyscale otherwise).
10573
10702
  */
10574
10703
  color?: boolean;
@@ -10577,6 +10706,8 @@ declare type PrintOptions = {
10577
10706
  */
10578
10707
  margins?: Margins;
10579
10708
  /**
10709
+ * @defaultValue true
10710
+ *
10580
10711
  * Prints in landscape mode (portrait otherwise).
10581
10712
  */
10582
10713
  landscape?: boolean;
@@ -11506,13 +11637,33 @@ declare type SessionChangedEvent = {
11506
11637
  reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
11507
11638
  };
11508
11639
 
11640
+ /**
11641
+ * An instance of a SessionContextGroup
11642
+ */
11509
11643
  /**
11510
11644
  * @interface
11511
11645
  */
11512
11646
  declare type SessionContextGroup = {
11647
+ /**
11648
+ * The SessionContextGroup's id.
11649
+ */
11513
11650
  id: string;
11651
+ /**
11652
+ * A SessionContextGroup instance method for setting a context in the SessionContextGroup.
11653
+ * @param context The Context to be set.
11654
+ */
11514
11655
  setContext: (context: Context) => Promise<void>;
11656
+ /**
11657
+ * A SessionContextGroup instance method for getting the current context of a certain type.
11658
+ * @param type The Context Type to get. If not specified the last contextType set would get used.
11659
+ */
11515
11660
  getCurrentContext: (type?: string) => Promise<Context>;
11661
+ /**
11662
+ * A SessionContextGroup instance method for adding a handler for context change.
11663
+ * @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.
11664
+ * @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.
11665
+ *
11666
+ */
11516
11667
  addContextHandler: (handler: ContextHandler, contextType?: string) => Promise<{
11517
11668
  unsubscribe: () => void;
11518
11669
  }>;
@@ -11540,7 +11691,13 @@ declare type SetWindowContextPayload = {
11540
11691
  * @interface
11541
11692
  */
11542
11693
  declare type SharedWorkerInfo = {
11694
+ /**
11695
+ * The unique id of the shared worker.
11696
+ */
11543
11697
  id: string;
11698
+ /**
11699
+ * The url of the shared worker.
11700
+ */
11544
11701
  url: string;
11545
11702
  };
11546
11703
 
@@ -11578,11 +11735,27 @@ declare type ShownEvent = BaseViewEvent & {
11578
11735
  };
11579
11736
 
11580
11737
  /**
11738
+ * Options for showing a popup menu
11739
+ *
11740
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
11741
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
11742
+ * of all possible data shapes for the entire menu, and the click handler should process
11743
+ * these with a "reducer" pattern.
11744
+ *
11581
11745
  * @interface
11582
11746
  */
11583
- declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
11584
- template: MenuItemTemplate<T>[];
11747
+ declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
11748
+ /**
11749
+ * An array describing the menu to show.
11750
+ */
11751
+ template: MenuItemTemplate<Data>[];
11752
+ /**
11753
+ * The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
11754
+ */
11585
11755
  x?: number;
11756
+ /**
11757
+ * The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
11758
+ */
11586
11759
  y?: number;
11587
11760
  };
11588
11761
 
@@ -11624,6 +11797,9 @@ declare type Size = TransitionBase & {
11624
11797
  * @interface
11625
11798
  */
11626
11799
  declare type Snapshot = {
11800
+ /**
11801
+ * The array of window options objects
11802
+ */
11627
11803
  windows: WindowCreationOptions[];
11628
11804
  snapshotDetails?: {
11629
11805
  monitorInfo: MonitorInfo;
@@ -13651,8 +13827,17 @@ declare type Time = {
13651
13827
  * @interface
13652
13828
  */
13653
13829
  declare type Transition = {
13830
+ /**
13831
+ * The Opacity transition
13832
+ */
13654
13833
  opacity?: Opacity;
13834
+ /**
13835
+ * The Position transition
13836
+ */
13655
13837
  position?: Position;
13838
+ /**
13839
+ * The Size transition
13840
+ */
13656
13841
  size?: Size;
13657
13842
  };
13658
13843
 
@@ -14695,6 +14880,11 @@ declare interface ViewStatuses {
14695
14880
  * @interface
14696
14881
  */
14697
14882
  declare type ViewVisibilityOption = {
14883
+ /**
14884
+ * @defaultValue false
14885
+ *
14886
+ * Enables or disables showing views when the layout splitter or a tab is being dragged.
14887
+ */
14698
14888
  enabled?: boolean;
14699
14889
  };
14700
14890
 
@@ -14724,8 +14914,12 @@ declare type WebContent = View_2 | _Window;
14724
14914
 
14725
14915
  declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14726
14916
  identity: OpenFin_2.Identity;
14727
- entityType: string;
14728
- constructor(wire: Transport, identity: OpenFin_2.Identity, entityType: string);
14917
+ entityType: 'window' | 'view';
14918
+ /**
14919
+ * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
14920
+ * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
14921
+ */
14922
+ constructor(wire: Transport, identity: OpenFin_2.Identity, entityType: 'window' | 'view');
14729
14923
  /**
14730
14924
  * Gets a base64 encoded image of all or part of the WebContents.
14731
14925
  * @param options Options for the capturePage call.
@@ -17138,7 +17332,10 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17138
17332
  * Calling this method will close previously opened menus.
17139
17333
  * @experimental
17140
17334
  * @param options
17141
- *
17335
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
17336
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
17337
+ * of all possible data shapes for the entire menu, and the click handler should process
17338
+ * these with a "reducer" pattern.
17142
17339
  * @example
17143
17340
  * This could be used to show a drop down menu over views in a platform window:
17144
17341
  * ```js
@@ -17205,7 +17402,7 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17205
17402
  * })
17206
17403
  * ```
17207
17404
  */
17208
- showPopupMenu<T>(options: OpenFin_2.ShowPopupMenuOptions<T>): Promise<OpenFin_2.MenuResult<T>>;
17405
+ showPopupMenu<Data>(options: OpenFin_2.ShowPopupMenuOptions<Data>): Promise<OpenFin_2.MenuResult<Data>>;
17209
17406
  /**
17210
17407
  * Closes the window's popup menu, if one exists.
17211
17408
  * @experimental
@@ -17747,6 +17944,9 @@ declare class _Window extends WebContents<OpenFin_2.WindowEvent> {
17747
17944
  * @interface
17748
17945
  */
17749
17946
  declare type WriteAnyClipboardRequest = BaseClipboardRequest & {
17947
+ /**
17948
+ * Data to be written
17949
+ */
17750
17950
  data: {
17751
17951
  text?: string;
17752
17952
  html?: string;
package/out/mock.js CHANGED
@@ -93,6 +93,13 @@ class Base {
93
93
  get fin() {
94
94
  return this.wire.getFin();
95
95
  }
96
+ /**
97
+ * Provides access to the OpenFin representation of the current code context (usually a document
98
+ * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
99
+ *
100
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
101
+ * on the context in which the devtools panel was opened.
102
+ */
96
103
  get me() {
97
104
  return this.wire.me;
98
105
  }
@@ -1372,6 +1379,10 @@ Object.defineProperty(main, "__esModule", { value: true });
1372
1379
  main.WebContents = void 0;
1373
1380
  const base_1$k = base;
1374
1381
  class WebContents extends base_1$k.EmitterBase {
1382
+ /**
1383
+ * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
1384
+ * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
1385
+ */
1375
1386
  constructor(wire, identity, entityType) {
1376
1387
  super(wire, entityType, identity.uuid, identity.name);
1377
1388
  this.identity = identity;
@@ -5874,7 +5885,10 @@ function requireInstance () {
5874
5885
  * Calling this method will close previously opened menus.
5875
5886
  * @experimental
5876
5887
  * @param options
5877
- *
5888
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
5889
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
5890
+ * of all possible data shapes for the entire menu, and the click handler should process
5891
+ * these with a "reducer" pattern.
5878
5892
  * @example
5879
5893
  * This could be used to show a drop down menu over views in a platform window:
5880
5894
  * ```js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "34.78.12",
3
+ "version": "34.78.13",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.MD",
6
6
  "main": "out/mock.js",