@openfin/node-adapter 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.
@@ -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.Fin<OpenFin.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 & {
@@ -3185,6 +3228,11 @@ declare type ConstViewOptions = {
3185
3228
  zoomLevel: number;
3186
3229
  experimental: any;
3187
3230
  fdc3InteropApi?: string;
3231
+ /**
3232
+ * @defaultValue false
3233
+ *
3234
+ * When set to `true`, any `beforeunload` handler set on Views will fire.
3235
+ */
3188
3236
  enableBeforeUnload: boolean;
3189
3237
  /**
3190
3238
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -3417,15 +3465,12 @@ declare type ContentCreationOptions = {
3417
3465
  * A rule for creating content in OpenFin; maps a content type to the way in which
3418
3466
  * newly-opened content of that type will be handled.
3419
3467
  *
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
3468
  *
3424
3469
  * @interface
3425
3470
  */
3426
3471
  declare type ContentCreationRule<T = ContentCreationBehaviorNames> = {
3427
3472
  /**
3428
- * Behavior to use when opening matched content.
3473
+ * Behavior to use when opening matched content. The value could be 'view' | 'window' | 'browser' | 'block'.
3429
3474
  */
3430
3475
  behavior: T;
3431
3476
  /**
@@ -3517,6 +3562,9 @@ declare type ContextForIntent<MetadataType = any> = Context & {
3517
3562
  metadata?: MetadataType;
3518
3563
  };
3519
3564
 
3565
+ /**
3566
+ * Information for a Context Group. Contains metadata for displaying the group properly.
3567
+ */
3520
3568
  /**
3521
3569
  * @interface
3522
3570
  */
@@ -3537,6 +3585,9 @@ declare type ContextGroupStates = {
3537
3585
  };
3538
3586
  };
3539
3587
 
3588
+ /**
3589
+ * Subscription function for addContextHandler.
3590
+ */
3540
3591
  declare type ContextHandler = (context: Context) => void;
3541
3592
 
3542
3593
  /**
@@ -5312,8 +5363,14 @@ declare type Intent<MetadataType = IntentMetadata> = {
5312
5363
  metadata?: MetadataType;
5313
5364
  };
5314
5365
 
5366
+ /**
5367
+ * Subscription function for registerIntentHandler.
5368
+ */
5315
5369
  declare type IntentHandler = (intent: Intent) => void;
5316
5370
 
5371
+ /**
5372
+ * The type used to describe an intent within the platform.
5373
+ */
5317
5374
  /**
5318
5375
  * @interface
5319
5376
  */
@@ -6639,6 +6696,9 @@ declare class InteropClient extends Base {
6639
6696
  */
6640
6697
  declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionEvent: InteropBrokerDisconnectionEvent) => any;
6641
6698
 
6699
+ /**
6700
+ * Information relevant to the Interop Broker.
6701
+ */
6642
6702
  /**
6643
6703
  * @interface
6644
6704
  */
@@ -7146,7 +7206,13 @@ declare type LayoutColumn = LayoutItemConfig & {
7146
7206
  * @interface
7147
7207
  */
7148
7208
  declare type LayoutComponent = LayoutItemConfig & {
7209
+ /**
7210
+ * Only a component type will have this property and it should be set to view.
7211
+ */
7149
7212
  componentName: 'view';
7213
+ /**
7214
+ * Only a component type will have this property and it represents the view options of a given component.
7215
+ */
7150
7216
  componentState?: Partial<ViewCreationOptions>;
7151
7217
  };
7152
7218
 
@@ -7302,7 +7368,7 @@ declare type LayoutInitializedEvent = NamedEvent & {
7302
7368
  };
7303
7369
 
7304
7370
  /**
7305
- * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7371
+ * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7306
7372
  * to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7307
7373
  * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7308
7374
  *
@@ -7732,6 +7798,11 @@ declare type LayoutOptions = {
7732
7798
  * (not to be confused with close button on every tab).
7733
7799
  */
7734
7800
  showCloseIcon?: boolean;
7801
+ /**
7802
+ * @defaultValue false
7803
+ *
7804
+ * Limits the area to which tabs can be dragged. If true, stack headers are the only areas where tabs can be dropped.
7805
+ */
7735
7806
  constrainDragToHeaders?: boolean;
7736
7807
  /**
7737
7808
  * @defaultValue true
@@ -7760,6 +7831,11 @@ declare type LayoutOptions = {
7760
7831
  */
7761
7832
  preventDragIn?: boolean;
7762
7833
  };
7834
+ /**
7835
+ * Content of the layout. There can only be one top-level LayoutItem in the content array.
7836
+ * We do not recommend trying to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7837
+ * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7838
+ */
7763
7839
  content?: LayoutContent;
7764
7840
  dimensions?: {
7765
7841
  borderWidth?: number;
@@ -7924,6 +8000,9 @@ declare type ManifestInfo = {
7924
8000
  * @interface
7925
8001
  */
7926
8002
  declare type Margins = {
8003
+ /**
8004
+ * The margin type. If `custom` is chosen, you will also need to specify top, bottom, left, and right.
8005
+ */
7927
8006
  marginType?: 'default' | 'none' | 'printableArea' | 'custom';
7928
8007
  /**
7929
8008
  * The top margin of the printed webpage, in pixels.
@@ -7953,20 +8032,36 @@ declare type MaximizedEvent = NamedEvent & {
7953
8032
  type: 'maximized';
7954
8033
  };
7955
8034
 
8035
+ /**
8036
+ * Type of the OpenFin `me` API handle, which provides access to the OpenFin representation of the current
8037
+ * code context (usually a document such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as
8038
+ * to the current `Interop` context.
8039
+ *
8040
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
8041
+ * on the context in which the devtools panel was opened.
8042
+ */
7956
8043
  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) & {
7957
8044
  isOpenFin: boolean;
7958
8045
  };
7959
8046
 
7960
8047
  /**
7961
8048
  * @interface
8049
+ *
8050
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
8051
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
8052
+ * of all possible data shapes for the entire menu, and the click handler should process
8053
+ * these with a "reducer" pattern.
7962
8054
  */
7963
- declare type MenuItemTemplate<T extends unknown = unknown> = {
8055
+ declare type MenuItemTemplate<Data extends unknown = unknown> = {
7964
8056
  /**
7965
8057
  * Can be `normal`, `separator`, `submenu`, or `checkbox`.
7966
8058
  * Defaults to 'normal' unless a 'submenu' key exists
7967
8059
  */
7968
8060
  type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
7969
8061
  role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
8062
+ /**
8063
+ * The text to show on the menu item. Should be left undefined for type: 'separator'
8064
+ */
7970
8065
  label?: string;
7971
8066
  /**
7972
8067
  * If false, the menu item will be greyed out and unclickable.
@@ -7984,18 +8079,26 @@ declare type MenuItemTemplate<T extends unknown = unknown> = {
7984
8079
  * Should be specified for `submenu` type menu items. If `submenu` is specified,
7985
8080
  * the `type: 'submenu'` can be omitted.
7986
8081
  */
7987
- submenu?: MenuItemTemplate<T>[];
8082
+ submenu?: MenuItemTemplate<Data>[];
7988
8083
  /**
7989
8084
  * Data to be returned if the user selects the element. Must be serializable
7990
8085
  */
7991
- data?: T;
8086
+ data?: Data;
7992
8087
  /**
7993
8088
  * Image Data URI with image dimensions inferred from the encoded string
7994
8089
  */
7995
8090
  icon?: string;
7996
8091
  };
7997
8092
 
7998
- declare type MenuResult<T extends unknown = unknown> = ClickedMenuResult<T> | ClosedMenuResult;
8093
+ /**
8094
+ * Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
8095
+ *
8096
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
8097
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
8098
+ * of all possible data shapes for the entire menu, and the click handler should process
8099
+ * these with a "reducer" pattern.
8100
+ */
8101
+ declare type MenuResult<Data extends unknown = unknown> = ClickedMenuResult<Data> | ClosedMenuResult;
7999
8102
 
8000
8103
  declare interface Message<T> {
8001
8104
  action: string;
@@ -9740,9 +9843,17 @@ declare type PlatformOptions = ApplicationCreationOptions & {
9740
9843
  disableDefaultCommands?: boolean;
9741
9844
  /**
9742
9845
  * Strategy to assign views to process affinity by domain.
9846
+ * * `same` - The views in the same domain will have same renderer processes.
9847
+ * * `different` - The views in the same domain will have their own renderer processes.
9743
9848
  */
9744
9849
  viewProcessAffinityStrategy?: ProcessAffinityStrategy;
9850
+ /**
9851
+ * The provider url.
9852
+ */
9745
9853
  providerUrl?: string;
9854
+ /**
9855
+ * The permissions for secured APIs.
9856
+ */
9746
9857
  permissions?: Partial<Permissions_2>;
9747
9858
  };
9748
9859
 
@@ -10575,9 +10686,21 @@ declare type PrinterInfo = OpenFin.PrinterInfo;
10575
10686
  * @interface
10576
10687
  */
10577
10688
  declare type PrinterInfo_2 = {
10689
+ /**
10690
+ * Printer Name
10691
+ */
10578
10692
  name: string;
10693
+ /**
10694
+ * Printer Description
10695
+ */
10579
10696
  description: string;
10697
+ /**
10698
+ * Printer Status
10699
+ */
10580
10700
  status: number;
10701
+ /**
10702
+ * Indicates that system's default printer.
10703
+ */
10581
10704
  isDefault: boolean;
10582
10705
  };
10583
10706
 
@@ -10589,10 +10712,14 @@ declare type PrinterInfo_2 = {
10589
10712
  declare type PrintOptions = {
10590
10713
  content?: 'self';
10591
10714
  /**
10715
+ * @defaultValue false
10716
+ *
10592
10717
  * Disables prompting the user for print settings.
10593
10718
  */
10594
10719
  silent?: boolean;
10595
10720
  /**
10721
+ * @defaultValue false
10722
+ *
10596
10723
  * Includes the webpage background color and image when printing.
10597
10724
  */
10598
10725
  printBackground?: boolean;
@@ -10601,6 +10728,8 @@ declare type PrintOptions = {
10601
10728
  */
10602
10729
  deviceName?: string;
10603
10730
  /**
10731
+ * @defaultValue true
10732
+ *
10604
10733
  * Prints in full color (greyscale otherwise).
10605
10734
  */
10606
10735
  color?: boolean;
@@ -10609,6 +10738,8 @@ declare type PrintOptions = {
10609
10738
  */
10610
10739
  margins?: Margins;
10611
10740
  /**
10741
+ * @defaultValue true
10742
+ *
10612
10743
  * Prints in landscape mode (portrait otherwise).
10613
10744
  */
10614
10745
  landscape?: boolean;
@@ -11538,13 +11669,33 @@ declare type SessionChangedEvent = {
11538
11669
  reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
11539
11670
  };
11540
11671
 
11672
+ /**
11673
+ * An instance of a SessionContextGroup
11674
+ */
11541
11675
  /**
11542
11676
  * @interface
11543
11677
  */
11544
11678
  declare type SessionContextGroup = {
11679
+ /**
11680
+ * The SessionContextGroup's id.
11681
+ */
11545
11682
  id: string;
11683
+ /**
11684
+ * A SessionContextGroup instance method for setting a context in the SessionContextGroup.
11685
+ * @param context The Context to be set.
11686
+ */
11546
11687
  setContext: (context: Context) => Promise<void>;
11688
+ /**
11689
+ * A SessionContextGroup instance method for getting the current context of a certain type.
11690
+ * @param type The Context Type to get. If not specified the last contextType set would get used.
11691
+ */
11547
11692
  getCurrentContext: (type?: string) => Promise<Context>;
11693
+ /**
11694
+ * A SessionContextGroup instance method for adding a handler for context change.
11695
+ * @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.
11696
+ * @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.
11697
+ *
11698
+ */
11548
11699
  addContextHandler: (handler: ContextHandler, contextType?: string) => Promise<{
11549
11700
  unsubscribe: () => void;
11550
11701
  }>;
@@ -11572,7 +11723,13 @@ declare type SetWindowContextPayload = {
11572
11723
  * @interface
11573
11724
  */
11574
11725
  declare type SharedWorkerInfo = {
11726
+ /**
11727
+ * The unique id of the shared worker.
11728
+ */
11575
11729
  id: string;
11730
+ /**
11731
+ * The url of the shared worker.
11732
+ */
11576
11733
  url: string;
11577
11734
  };
11578
11735
 
@@ -11610,11 +11767,27 @@ declare type ShownEvent = BaseViewEvent & {
11610
11767
  };
11611
11768
 
11612
11769
  /**
11770
+ * Options for showing a popup menu
11771
+ *
11772
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
11773
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
11774
+ * of all possible data shapes for the entire menu, and the click handler should process
11775
+ * these with a "reducer" pattern.
11776
+ *
11613
11777
  * @interface
11614
11778
  */
11615
- declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
11616
- template: MenuItemTemplate<T>[];
11779
+ declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
11780
+ /**
11781
+ * An array describing the menu to show.
11782
+ */
11783
+ template: MenuItemTemplate<Data>[];
11784
+ /**
11785
+ * The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
11786
+ */
11617
11787
  x?: number;
11788
+ /**
11789
+ * The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
11790
+ */
11618
11791
  y?: number;
11619
11792
  };
11620
11793
 
@@ -11656,6 +11829,9 @@ declare type Size = TransitionBase & {
11656
11829
  * @interface
11657
11830
  */
11658
11831
  declare type Snapshot = {
11832
+ /**
11833
+ * The array of window options objects
11834
+ */
11659
11835
  windows: WindowCreationOptions[];
11660
11836
  snapshotDetails?: {
11661
11837
  monitorInfo: MonitorInfo;
@@ -13683,8 +13859,17 @@ declare type Time = {
13683
13859
  * @interface
13684
13860
  */
13685
13861
  declare type Transition = {
13862
+ /**
13863
+ * The Opacity transition
13864
+ */
13686
13865
  opacity?: Opacity;
13866
+ /**
13867
+ * The Position transition
13868
+ */
13687
13869
  position?: Position;
13870
+ /**
13871
+ * The Size transition
13872
+ */
13688
13873
  size?: Size;
13689
13874
  };
13690
13875
 
@@ -14727,6 +14912,11 @@ declare interface ViewStatuses {
14727
14912
  * @interface
14728
14913
  */
14729
14914
  declare type ViewVisibilityOption = {
14915
+ /**
14916
+ * @defaultValue false
14917
+ *
14918
+ * Enables or disables showing views when the layout splitter or a tab is being dragged.
14919
+ */
14730
14920
  enabled?: boolean;
14731
14921
  };
14732
14922
 
@@ -14756,8 +14946,12 @@ declare type WebContent = View_2 | _Window;
14756
14946
 
14757
14947
  declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
14758
14948
  identity: OpenFin.Identity;
14759
- entityType: string;
14760
- constructor(wire: Transport, identity: OpenFin.Identity, entityType: string);
14949
+ entityType: 'window' | 'view';
14950
+ /**
14951
+ * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
14952
+ * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
14953
+ */
14954
+ constructor(wire: Transport, identity: OpenFin.Identity, entityType: 'window' | 'view');
14761
14955
  /**
14762
14956
  * Gets a base64 encoded image of all or part of the WebContents.
14763
14957
  * @param options Options for the capturePage call.
@@ -17170,7 +17364,10 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17170
17364
  * Calling this method will close previously opened menus.
17171
17365
  * @experimental
17172
17366
  * @param options
17173
- *
17367
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
17368
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
17369
+ * of all possible data shapes for the entire menu, and the click handler should process
17370
+ * these with a "reducer" pattern.
17174
17371
  * @example
17175
17372
  * This could be used to show a drop down menu over views in a platform window:
17176
17373
  * ```js
@@ -17237,7 +17434,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17237
17434
  * })
17238
17435
  * ```
17239
17436
  */
17240
- showPopupMenu<T>(options: OpenFin.ShowPopupMenuOptions<T>): Promise<OpenFin.MenuResult<T>>;
17437
+ showPopupMenu<Data>(options: OpenFin.ShowPopupMenuOptions<Data>): Promise<OpenFin.MenuResult<Data>>;
17241
17438
  /**
17242
17439
  * Closes the window's popup menu, if one exists.
17243
17440
  * @experimental
@@ -17779,6 +17976,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
17779
17976
  * @interface
17780
17977
  */
17781
17978
  declare type WriteAnyClipboardRequest = BaseClipboardRequest & {
17979
+ /**
17980
+ * Data to be written
17981
+ */
17782
17982
  data: {
17783
17983
  text?: string;
17784
17984
  html?: string;
@@ -102,6 +102,13 @@ class Base {
102
102
  get fin() {
103
103
  return this.wire.getFin();
104
104
  }
105
+ /**
106
+ * Provides access to the OpenFin representation of the current code context (usually a document
107
+ * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
108
+ *
109
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
110
+ * on the context in which the devtools panel was opened.
111
+ */
105
112
  get me() {
106
113
  return this.wire.me;
107
114
  }
@@ -1381,6 +1388,10 @@ Object.defineProperty(main, "__esModule", { value: true });
1381
1388
  main.WebContents = void 0;
1382
1389
  const base_1$k = base;
1383
1390
  class WebContents extends base_1$k.EmitterBase {
1391
+ /**
1392
+ * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
1393
+ * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
1394
+ */
1384
1395
  constructor(wire, identity, entityType) {
1385
1396
  super(wire, entityType, identity.uuid, identity.name);
1386
1397
  this.identity = identity;
@@ -5883,7 +5894,10 @@ function requireInstance () {
5883
5894
  * Calling this method will close previously opened menus.
5884
5895
  * @experimental
5885
5896
  * @param options
5886
- *
5897
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
5898
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
5899
+ * of all possible data shapes for the entire menu, and the click handler should process
5900
+ * these with a "reducer" pattern.
5887
5901
  * @example
5888
5902
  * This could be used to show a drop down menu over views in a platform window:
5889
5903
  * ```js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "34.78.12",
3
+ "version": "34.78.13",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",