@openfin/core 28.71.11 → 28.71.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.
Files changed (2) hide show
  1. package/OpenFin.d.ts +25 -1
  2. package/package.json +1 -1
package/OpenFin.d.ts CHANGED
@@ -301,7 +301,9 @@ declare namespace OpenFin {
301
301
  alwaysOnTop: boolean;
302
302
  aspectRatio: number;
303
303
  contextMenu: boolean;
304
+ // DEPRECATED
304
305
  contextMenuSettings: ContextMenuSettings;
306
+ contextMenuOptions: ContextMenuOptions;
305
307
  cornerRounding: Partial<CornerRounding>;
306
308
  customContext: any;
307
309
  customData: any;
@@ -401,6 +403,7 @@ declare namespace OpenFin {
401
403
  green: number;
402
404
  };
403
405
 
406
+ // DEPRECATED
404
407
  export type ContextMenuSettings = {
405
408
  enable: boolean;
406
409
  devtools?: boolean;
@@ -469,7 +472,10 @@ declare namespace OpenFin {
469
472
 
470
473
  export type MutableViewOptions = {
471
474
  autoResize: AutoResizeOptions;
475
+ contextMenu: boolean;
476
+ // DEPRECATED
472
477
  contextMenuSettings: ContextMenuSettings;
478
+ contextMenuOptions: ContextMenuOptions;
473
479
  backgroundColor: string;
474
480
  customData: any;
475
481
  customContext: any;
@@ -1324,6 +1330,7 @@ declare namespace OpenFin {
1324
1330
  * Defaults to 'normal' unless a 'submenu' key exists
1325
1331
  */
1326
1332
  type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
1333
+ role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
1327
1334
  label?: string;
1328
1335
  /**
1329
1336
  * If false, the menu item will be greyed out and unclickable.
@@ -1348,7 +1355,7 @@ declare namespace OpenFin {
1348
1355
  /**
1349
1356
  * Data to be returned if the user selects the element. Must be serializable
1350
1357
  */
1351
- data: any;
1358
+ data?: any;
1352
1359
 
1353
1360
  /**
1354
1361
  * Image Data URI with image dimensions inferred from the encoded string
@@ -1668,4 +1675,21 @@ declare namespace OpenFin {
1668
1675
  export type PlatformEvents = import('./src/api/events/platform').PlatformEvents;
1669
1676
 
1670
1677
  export type ExternalApplicationEvents = import('./src/api/events/externalApplication').ExternalApplicationEvents;
1678
+
1679
+ export type ContextMenuOptions = {
1680
+ template: Array<PrebuiltContextMenuItems>;
1681
+ enabled?: boolean;
1682
+ };
1683
+
1684
+ export type PrebuiltContextMenuItems =
1685
+ | 'separator'
1686
+ | 'cut'
1687
+ | 'copy'
1688
+ | 'paste'
1689
+ | 'spellCheck'
1690
+ | 'inspect'
1691
+ | 'reload'
1692
+ | 'navigateForward'
1693
+ | 'navigateBack'
1694
+ | 'print';
1671
1695
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "28.71.11",
3
+ "version": "28.71.14",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",