@openfin/core 29.71.15 → 29.71.22
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/OpenFin.d.ts +2 -2
- package/package.json +1 -1
- package/src/api/view/Instance.d.ts +16 -0
- package/src/api/view/Instance.js +16 -0
- package/src/api/window/Instance.d.ts +16 -0
- package/src/api/window/Instance.js +16 -0
package/OpenFin.d.ts
CHANGED
|
@@ -1700,11 +1700,11 @@ declare namespace OpenFin {
|
|
|
1700
1700
|
export type ExternalApplicationEvents = import('./src/api/events/externalApplication').ExternalApplicationEvents;
|
|
1701
1701
|
|
|
1702
1702
|
export type ContextMenuOptions = {
|
|
1703
|
-
template
|
|
1703
|
+
template?: Array<PrebuiltContextMenuItem>;
|
|
1704
1704
|
enabled?: boolean;
|
|
1705
1705
|
};
|
|
1706
1706
|
|
|
1707
|
-
export type
|
|
1707
|
+
export type PrebuiltContextMenuItem =
|
|
1708
1708
|
| 'separator'
|
|
1709
1709
|
| 'cut'
|
|
1710
1710
|
| 'copy'
|
package/package.json
CHANGED
|
@@ -51,11 +51,27 @@ import UpdatableViewOptions = OpenFin.UpdatableViewOptions;
|
|
|
51
51
|
* @property {string[]} [contentRedirect.blacklist=[]] List of blacklisted URLs.
|
|
52
52
|
*
|
|
53
53
|
* @property {object} [contextMenuSettings] - _Updatable._
|
|
54
|
+
* Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
|
|
54
55
|
* Configure the context menu when right-clicking on a view.
|
|
55
56
|
* @property {boolean} [contextMenuSettings.enable=true] Should the context menu display on right click.
|
|
56
57
|
* @property {boolean} [contextMenuSettings.devtools=true] Should the context menu contain a button for opening devtools.
|
|
57
58
|
* @property {boolean} [contextMenuSettings.reload=true] Should the context menu contain a button for reloading the page.
|
|
58
59
|
*
|
|
60
|
+
* @property {object} [contextMenuOptions] - _Updatable._
|
|
61
|
+
* Configure the context menu when right-clicking on a view. Supported menu items:
|
|
62
|
+
* 'separator'
|
|
63
|
+
* 'cut'
|
|
64
|
+
* 'copy'
|
|
65
|
+
* 'paste'
|
|
66
|
+
* 'spellCheck'
|
|
67
|
+
* 'inspect'
|
|
68
|
+
* 'reload'
|
|
69
|
+
* 'navigateForward'
|
|
70
|
+
* 'navigateBack'
|
|
71
|
+
* 'print'
|
|
72
|
+
* @property {boolean} [contextMenuOptions.enabled = true] Should the context menu display on right click.
|
|
73
|
+
* @property {string[]} [contextMenuOptions.template=[]] List of context menu items to display on right-click.
|
|
74
|
+
*
|
|
59
75
|
* @property {any} [customData=""] - _Updatable._
|
|
60
76
|
* A field that the user can attach serializable data to be ferried around with the view options.
|
|
61
77
|
* _When omitted, the default value of this property is the empty string (`""`)._
|
package/src/api/view/Instance.js
CHANGED
|
@@ -54,11 +54,27 @@ const window_1 = require("../window");
|
|
|
54
54
|
* @property {string[]} [contentRedirect.blacklist=[]] List of blacklisted URLs.
|
|
55
55
|
*
|
|
56
56
|
* @property {object} [contextMenuSettings] - _Updatable._
|
|
57
|
+
* Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
|
|
57
58
|
* Configure the context menu when right-clicking on a view.
|
|
58
59
|
* @property {boolean} [contextMenuSettings.enable=true] Should the context menu display on right click.
|
|
59
60
|
* @property {boolean} [contextMenuSettings.devtools=true] Should the context menu contain a button for opening devtools.
|
|
60
61
|
* @property {boolean} [contextMenuSettings.reload=true] Should the context menu contain a button for reloading the page.
|
|
61
62
|
*
|
|
63
|
+
* @property {object} [contextMenuOptions] - _Updatable._
|
|
64
|
+
* Configure the context menu when right-clicking on a view. Supported menu items:
|
|
65
|
+
* 'separator'
|
|
66
|
+
* 'cut'
|
|
67
|
+
* 'copy'
|
|
68
|
+
* 'paste'
|
|
69
|
+
* 'spellCheck'
|
|
70
|
+
* 'inspect'
|
|
71
|
+
* 'reload'
|
|
72
|
+
* 'navigateForward'
|
|
73
|
+
* 'navigateBack'
|
|
74
|
+
* 'print'
|
|
75
|
+
* @property {boolean} [contextMenuOptions.enabled = true] Should the context menu display on right click.
|
|
76
|
+
* @property {string[]} [contextMenuOptions.template=[]] List of context menu items to display on right-click.
|
|
77
|
+
*
|
|
62
78
|
* @property {any} [customData=""] - _Updatable._
|
|
63
79
|
* A field that the user can attach serializable data to be ferried around with the view options.
|
|
64
80
|
* _When omitted, the default value of this property is the empty string (`""`)._
|
|
@@ -160,11 +160,27 @@ import WindowEvents = OpenFin.WindowEvents;
|
|
|
160
160
|
* Gives access to the devtools for the window.
|
|
161
161
|
*
|
|
162
162
|
* @property {object} [contextMenuSettings] - _Updatable._
|
|
163
|
+
* Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
|
|
163
164
|
* Configure the context menu when right-clicking on a window.
|
|
164
165
|
* @property {boolean} [contextMenuSettings.enable=true] Should the context menu display on right click.
|
|
165
166
|
* @property {boolean} [contextMenuSettings.devtools=true] Should the context menu contain a button for opening devtools.
|
|
166
167
|
* @property {boolean} [contextMenuSettings.reload=true] Should the context menu contain a button for reloading the page.
|
|
167
168
|
*
|
|
169
|
+
* @property {object} [contextMenuOptions] - _Updatable._
|
|
170
|
+
* Configure the context menu when right-clicking on a window. Supported menu items:
|
|
171
|
+
* 'separator'
|
|
172
|
+
* 'cut'
|
|
173
|
+
* 'copy'
|
|
174
|
+
* 'paste'
|
|
175
|
+
* 'spellCheck'
|
|
176
|
+
* 'inspect'
|
|
177
|
+
* 'reload'
|
|
178
|
+
* 'navigateForward'
|
|
179
|
+
* 'navigateBack'
|
|
180
|
+
* 'print'
|
|
181
|
+
* @property {boolean} [contextMenuOptions.enabled = true] Should the context menu display on right click.
|
|
182
|
+
* @property {string[]} [contextMenuSettings.template=[]] List of context menu items to display on right-click.
|
|
183
|
+
*
|
|
168
184
|
* @property {object} [cornerRounding] - _Updatable._
|
|
169
185
|
* Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
|
|
170
186
|
* average of _height_ and _width_.
|
|
@@ -167,11 +167,27 @@ const view_1 = require("../view");
|
|
|
167
167
|
* Gives access to the devtools for the window.
|
|
168
168
|
*
|
|
169
169
|
* @property {object} [contextMenuSettings] - _Updatable._
|
|
170
|
+
* Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
|
|
170
171
|
* Configure the context menu when right-clicking on a window.
|
|
171
172
|
* @property {boolean} [contextMenuSettings.enable=true] Should the context menu display on right click.
|
|
172
173
|
* @property {boolean} [contextMenuSettings.devtools=true] Should the context menu contain a button for opening devtools.
|
|
173
174
|
* @property {boolean} [contextMenuSettings.reload=true] Should the context menu contain a button for reloading the page.
|
|
174
175
|
*
|
|
176
|
+
* @property {object} [contextMenuOptions] - _Updatable._
|
|
177
|
+
* Configure the context menu when right-clicking on a window. Supported menu items:
|
|
178
|
+
* 'separator'
|
|
179
|
+
* 'cut'
|
|
180
|
+
* 'copy'
|
|
181
|
+
* 'paste'
|
|
182
|
+
* 'spellCheck'
|
|
183
|
+
* 'inspect'
|
|
184
|
+
* 'reload'
|
|
185
|
+
* 'navigateForward'
|
|
186
|
+
* 'navigateBack'
|
|
187
|
+
* 'print'
|
|
188
|
+
* @property {boolean} [contextMenuOptions.enabled = true] Should the context menu display on right click.
|
|
189
|
+
* @property {string[]} [contextMenuSettings.template=[]] List of context menu items to display on right-click.
|
|
190
|
+
*
|
|
175
191
|
* @property {object} [cornerRounding] - _Updatable._
|
|
176
192
|
* Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
|
|
177
193
|
* average of _height_ and _width_.
|