@openfin/core 33.76.20 → 33.76.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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "33.76.20",
3
+ "version": "33.76.22",
4
4
  "license": "SEE LICENSE IN LICENSE.MD",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",
package/src/OpenFin.d.ts CHANGED
@@ -481,14 +481,14 @@ export type ConstWindowOptions = {
481
481
  */
482
482
  contentCreation: ContentCreationOptions;
483
483
  /**
484
- * Restrict navigation to URLs that match a whitelisted pattern.
485
- * In the lack of a whitelist, navigation to URLs that match a blacklisted pattern would be prohibited.
484
+ * Restrict navigation to URLs that match an allowed pattern.
485
+ * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
486
486
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
487
487
  */
488
488
  contentNavigation: ContentNavigation;
489
489
  /**
490
- * Restrict redirects to URLs that match a whitelisted pattern.
491
- * In the lack of a whitelist, redirects to URLs that match a blacklisted pattern would be prohibited.
490
+ * Restrict redirects to URLs that match an allowed pattern.
491
+ * In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
492
492
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
493
493
  */
494
494
  contentRedirect: Partial<ContentRedirect>;
@@ -945,36 +945,28 @@ export type Api = {
945
945
  enableDeprecatedSharedName?: boolean;
946
946
  };
947
947
  };
948
- /**
949
- * Restrict navigation to URLs that match a whitelisted pattern.
950
- * In the lack of a whitelist, navigation to URLs that match a blacklisted pattern would be prohibited.
951
- * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
952
- */
953
- export type ContentNavigation = {
954
- /**
955
- * Allowed URLs for navigation.
956
- */
948
+ export type NavigationRules = {
949
+ /** @deprecated Use allowlist property instead. */
957
950
  whitelist?: string[];
958
- /**
959
- * Forbidden URLs for navigation.
960
- */
951
+ /** @deprecated Use denylist property instead. */
961
952
  blacklist?: string[];
953
+ /** Allowed URLs for navigation. */
954
+ allowlist?: string[];
955
+ /** Forbidden URLs for navigation. */
956
+ denylist?: string[];
962
957
  };
963
958
  /**
964
- * Restrict redirects to URLs that match a whitelisted pattern.
965
- * In the lack of a whitelist, redirects to URLs that match a blacklisted pattern would be prohibited.
959
+ * Restrict navigation to URLs that match an allowed pattern.
960
+ * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
966
961
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
967
962
  */
968
- export type ContentRedirect = {
969
- /**
970
- * Allowed URLs for redirects.
971
- */
972
- whitelist: string[];
973
- /**
974
- * Forbidden URLs for redirects.
975
- */
976
- blacklist: string[];
977
- };
963
+ export type ContentNavigation = NavigationRules;
964
+ /**
965
+ * Restrict redirects to URLs that match an allowed pattern.
966
+ * In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
967
+ * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
968
+ */
969
+ export type ContentRedirect = NavigationRules;
978
970
  /**
979
971
  * Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
980
972
  * average of _height_ and _width_.
@@ -1182,11 +1174,12 @@ export type MutableViewOptions = {
1182
1174
  */
1183
1175
  api: Api;
1184
1176
  /**
1185
- * Restrict navigation to URLs that match a whitelisted pattern.
1177
+ * Restrict navigation to URLs that match an allowed pattern.
1186
1178
  * In the lack of a whitelist, navigation to URLs that match a blacklisted pattern would be prohibited.
1187
1179
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
1188
1180
  */
1189
1181
  contentNavigation: ContentNavigation;
1182
+ contentRedirect: ContentRedirect;
1190
1183
  /**
1191
1184
  * @defaultValue false
1192
1185
  *
@@ -60,7 +60,7 @@ export type FaviconUpdatedEvent = NamedEvent & {
60
60
  favicons: string[];
61
61
  };
62
62
  /**
63
- * Generated when view navigation is rejected as per contentNavigation whitelist/blacklist rules.
63
+ * Generated when view navigation is rejected as per contentNavigation allowlist/denylist rules.
64
64
  */
65
65
  export type NavigationRejectedEvent = NamedEvent & {
66
66
  type: 'navigation-rejected';
@@ -33,7 +33,7 @@ export type EndLoadEvent = NamedEvent & {
33
33
  isMain: boolean;
34
34
  };
35
35
  /**
36
- * Generated when window is being redirected as per contentRedirect whitelist/blacklist rules.
36
+ * Generated when window is being redirected as per contentRedirect allowlist/denylist rules.
37
37
  */
38
38
  export type WillRedirectEvent = NamedEvent & {
39
39
  type: 'will-redirect';
@@ -73,18 +73,18 @@ type ViewEvent = OpenFin.ViewEvent;
73
73
  * Default is white.
74
74
  *
75
75
  * @property {object} [contentNavigation]
76
- * Restrict navigation to URLs that match a whitelisted pattern.
77
- * In the lack of a whitelist, navigation to URLs that match a blacklisted pattern would be prohibited.
76
+ * Restrict navigation to URLs that match an allowed pattern.
77
+ * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
78
78
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
79
- * @property {string[]} [contentNavigation.whitelist=[]] List of whitelisted URLs.
80
- * @property {string[]} [contentNavigation.blacklist=[]] List of blacklisted URLs.
79
+ * @property {string[]} [contentNavigation.allowlist=[]] List of allowed URLs.
80
+ * @property {string[]} [contentNavigation.denylist=[]] List of denied URLs.
81
81
  *
82
82
  * @property {object} [contentRedirect]
83
- * Restrict redirects to URLs that match a whitelisted pattern.
84
- * In the lack of a whitelist, redirects to URLs that match a blacklisted pattern would be prohibited.
83
+ * Restrict redirects to URLs that match an allowed pattern.
84
+ * In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
85
85
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
86
- * @property {string[]} [contentRedirect.whitelist=[]] List of whitelisted URLs.
87
- * @property {string[]} [contentRedirect.blacklist=[]] List of blacklisted URLs.
86
+ * @property {string[]} [contentRedirect.allowlist=[]] List of allowed URLs.
87
+ * @property {string[]} [contentRedirect.denylist=[]] List of denied URLs.
88
88
  *
89
89
  * @property {object} [contextMenuSettings] - _Updatable._
90
90
  * Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
@@ -98,6 +98,7 @@ type ViewEvent = OpenFin.ViewEvent;
98
98
  * 'separator'
99
99
  * 'cut'
100
100
  * 'copy'
101
+ * 'copyImage',
101
102
  * 'paste'
102
103
  * 'spellCheck'
103
104
  * 'inspect'
@@ -83,18 +83,18 @@ const window_1 = require("../window");
83
83
  * Default is white.
84
84
  *
85
85
  * @property {object} [contentNavigation]
86
- * Restrict navigation to URLs that match a whitelisted pattern.
87
- * In the lack of a whitelist, navigation to URLs that match a blacklisted pattern would be prohibited.
86
+ * Restrict navigation to URLs that match an allowed pattern.
87
+ * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
88
88
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
89
- * @property {string[]} [contentNavigation.whitelist=[]] List of whitelisted URLs.
90
- * @property {string[]} [contentNavigation.blacklist=[]] List of blacklisted URLs.
89
+ * @property {string[]} [contentNavigation.allowlist=[]] List of allowed URLs.
90
+ * @property {string[]} [contentNavigation.denylist=[]] List of denied URLs.
91
91
  *
92
92
  * @property {object} [contentRedirect]
93
- * Restrict redirects to URLs that match a whitelisted pattern.
94
- * In the lack of a whitelist, redirects to URLs that match a blacklisted pattern would be prohibited.
93
+ * Restrict redirects to URLs that match an allowed pattern.
94
+ * In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
95
95
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
96
- * @property {string[]} [contentRedirect.whitelist=[]] List of whitelisted URLs.
97
- * @property {string[]} [contentRedirect.blacklist=[]] List of blacklisted URLs.
96
+ * @property {string[]} [contentRedirect.allowlist=[]] List of allowed URLs.
97
+ * @property {string[]} [contentRedirect.denylist=[]] List of denied URLs.
98
98
  *
99
99
  * @property {object} [contextMenuSettings] - _Updatable._
100
100
  * Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
@@ -108,6 +108,7 @@ const window_1 = require("../window");
108
108
  * 'separator'
109
109
  * 'cut'
110
110
  * 'copy'
111
+ * 'copyImage',
111
112
  * 'paste'
112
113
  * 'spellCheck'
113
114
  * 'inspect'
@@ -155,18 +155,18 @@ import { WebContents } from '../webcontents/main';
155
155
  * @property {ContentCreationRule[]} [contentCreation.rules = []] List of content creation rules.
156
156
  *
157
157
  * @property {object} [contentNavigation]
158
- * Restrict navigation to URLs that match a whitelisted pattern.
159
- * In the lack of a whitelist, navigation to URLs that match a blacklisted pattern would be prohibited.
158
+ * Restrict navigation to URLs that match an allowed pattern.
159
+ * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
160
160
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
161
- * @property {string[]} [contentNavigation.whitelist=[]] List of whitelisted URLs.
162
- * @property {string[]} [contentNavigation.blacklist=[]] List of blacklisted URLs.
161
+ * @property {string[]} [contentNavigation.allowlist=[]] List of allowed URLs.
162
+ * @property {string[]} [contentNavigation.denylist=[]] List of denied URLs.
163
163
  *
164
164
  * @property {object} [contentRedirect]
165
- * Restrict redirects to URLs that match a whitelisted pattern.
166
- * In the lack of a whitelist, redirects to URLs that match a blacklisted pattern would be prohibited.
165
+ * Restrict redirects to URLs that match an allowed pattern.
166
+ * In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
167
167
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
168
- * @property {string[]} [contentRedirect.whitelist=[]] List of whitelisted URLs.
169
- * @property {string[]} [contentRedirect.blacklist=[]] List of blacklisted URLs.
168
+ * @property {string[]} [contentRedirect.allowlist=[]] List of allowed URLs.
169
+ * @property {string[]} [contentRedirect.denylist=[]] List of denied URLs.
170
170
  *
171
171
  * @property {boolean} [contextMenu=true] - _Updatable._
172
172
  * A flag to show the context menu when right-clicking on a window.
@@ -162,18 +162,18 @@ const view_1 = require("../view");
162
162
  * @property {ContentCreationRule[]} [contentCreation.rules = []] List of content creation rules.
163
163
  *
164
164
  * @property {object} [contentNavigation]
165
- * Restrict navigation to URLs that match a whitelisted pattern.
166
- * In the lack of a whitelist, navigation to URLs that match a blacklisted pattern would be prohibited.
165
+ * Restrict navigation to URLs that match an allowed pattern.
166
+ * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
167
167
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
168
- * @property {string[]} [contentNavigation.whitelist=[]] List of whitelisted URLs.
169
- * @property {string[]} [contentNavigation.blacklist=[]] List of blacklisted URLs.
168
+ * @property {string[]} [contentNavigation.allowlist=[]] List of allowed URLs.
169
+ * @property {string[]} [contentNavigation.denylist=[]] List of denied URLs.
170
170
  *
171
171
  * @property {object} [contentRedirect]
172
- * Restrict redirects to URLs that match a whitelisted pattern.
173
- * In the lack of a whitelist, redirects to URLs that match a blacklisted pattern would be prohibited.
172
+ * Restrict redirects to URLs that match an allowed pattern.
173
+ * In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
174
174
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
175
- * @property {string[]} [contentRedirect.whitelist=[]] List of whitelisted URLs.
176
- * @property {string[]} [contentRedirect.blacklist=[]] List of blacklisted URLs.
175
+ * @property {string[]} [contentRedirect.allowlist=[]] List of allowed URLs.
176
+ * @property {string[]} [contentRedirect.denylist=[]] List of denied URLs.
177
177
  *
178
178
  * @property {boolean} [contextMenu=true] - _Updatable._
179
179
  * A flag to show the context menu when right-clicking on a window.
Binary file