devexpress-richedit 24.1.6-build-24246-0102 → 24.1.7-build-24274-0102

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/bin/gulpfile.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (gulpfile.js)
3
- * Version: 24.1.6
3
+ * Version: 24.1.7
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (index-custom.js)
3
- * Version: 24.1.6
3
+ * Version: 24.1.7
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (localization-builder.js)
3
- * Version: 24.1.6
3
+ * Version: 24.1.7
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (nspell-index.js)
3
- * Version: 24.1.6
3
+ * Version: 24.1.7
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (nspell.webpack.config.js)
3
- * Version: 24.1.6
3
+ * Version: 24.1.7
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (webpack-externals.js)
3
- * Version: 24.1.6
3
+ * Version: 24.1.7
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (webpack.config.js)
3
- * Version: 24.1.6
3
+ * Version: 24.1.7
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (dx.richedit.d.ts)
3
- * Version: 24.1.6
3
+ * Version: 24.1.7
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (dx.richedit.js)
3
- * Version: 24.1.6
3
+ * Version: 24.1.7
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -10243,6 +10243,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
10243
10243
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10244
10244
  /* harmony export */ Ev: function() { return /* binding */ splitByLines; },
10245
10245
  /* harmony export */ Fw: function() { return /* binding */ searchTreeItem; },
10246
+ /* harmony export */ jE: function() { return /* binding */ UrlUtils; },
10246
10247
  /* harmony export */ tm: function() { return /* binding */ convertToFunction; },
10247
10248
  /* harmony export */ xj: function() { return /* binding */ rotatePoint; }
10248
10249
  /* harmony export */ });
@@ -10307,6 +10308,23 @@ function convertToFunction(func) {
10307
10308
  function splitByLines(text) {
10308
10309
  return text ? text.split(/\r\n|\r|\n/) : [''];
10309
10310
  }
10311
+ const disallowedProtocols = [
10312
+ 'data',
10313
+ 'javascript'
10314
+ ];
10315
+ class UrlUtils {
10316
+ static isValid(url) {
10317
+ const currentLocation = window.location.href;
10318
+ try {
10319
+ const resultUrl = new URL(url, currentLocation);
10320
+ const protocol = resultUrl.protocol.slice(0, -1);
10321
+ return !disallowedProtocols.includes(protocol);
10322
+ }
10323
+ catch (_a) { }
10324
+ return false;
10325
+ }
10326
+ }
10327
+ UrlUtils.EmptyPage = "about:blank";
10310
10328
 
10311
10329
 
10312
10330
  /***/ })
@@ -117890,9 +117908,8 @@ class FieldsSettings {
117890
117908
  this.openHyperlinkOnClick = obj.openHyperlinkOnClick;
117891
117909
  if ((0,common.isDefined)(obj.keepHyperlinkResultForInvalidReference))
117892
117910
  this.keepHyperlinkResultForInvalidReference = obj.keepHyperlinkResultForInvalidReference;
117893
- if ((0,common.isDefined)(obj.createHyperlinkTooltip) && obj.createHyperlinkTooltip !== '') {
117911
+ if ((0,common.isDefined)(obj.createHyperlinkTooltip) && obj.createHyperlinkTooltip !== '')
117894
117912
  this.createHyperlinkTooltip = (0,utils/* convertToFunction */.tm)(obj.createHyperlinkTooltip);
117895
- }
117896
117913
  }
117897
117914
  clone() {
117898
117915
  const result = new FieldsSettings();
@@ -130280,7 +130297,7 @@ class GoToLastDataRecordCommand extends GoToRecordCommandBase {
130280
130297
  }
130281
130298
 
130282
130299
  // EXTERNAL MODULE: ./node_modules/@devexpress/utils/lib/utils/url.js
130283
- var url = __webpack_require__(6795);
130300
+ var utils_url = __webpack_require__(6795);
130284
130301
  ;// CONCATENATED MODULE: ./src/common/commands/fields/hyperlink-command-base.ts
130285
130302
 
130286
130303
 
@@ -130306,6 +130323,7 @@ class HyperlinkCommandBase extends CommandBase {
130306
130323
 
130307
130324
 
130308
130325
 
130326
+
130309
130327
  class OpenHyperlinkCommand extends HyperlinkCommandBase {
130310
130328
  executeCore(state, options) {
130311
130329
  let field;
@@ -130329,8 +130347,10 @@ class OpenHyperlinkCommand extends HyperlinkCommandBase {
130329
130347
  if (hyperlinkInfo.anchor)
130330
130348
  this.control.commandManager.getCommand(RichEditClientCommand.GoToBookmark)
130331
130349
  .execute(this.control.commandManager.isPublicApiCall, new CommandSimpleOptions(this.control, hyperlinkInfo.anchor));
130332
- else if (!(url/* Url */.R.containsClientScript(hyperlinkInfo.uri) || /^\s*data\s*\:\s*/gi.test(hyperlinkInfo.uri)))
130333
- url/* Url */.R.navigate(hyperlinkInfo.uri, "_blank");
130350
+ else {
130351
+ const url = utils/* UrlUtils */.jE.isValid(hyperlinkInfo.uri) ? hyperlinkInfo.uri : utils/* UrlUtils */.jE.EmptyPage;
130352
+ utils_url/* Url */.R.navigate(url, "_blank");
130353
+ }
130334
130354
  return true;
130335
130355
  }
130336
130356
  isEnabledInReadOnlyMode() {
@@ -143799,7 +143819,7 @@ class ClientRichEdit {
143799
143819
  this.contextMenuSettings = settings.contextMenuSettings;
143800
143820
  this.fullScreenHelper = new FullScreenHelper(element);
143801
143821
  if (true)
143802
- external_DevExpress_config_default()(JSON.parse(atob('eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaWExcHBaR1pSWjA1WGEyVkxaVmx6U2tJNFdHcFhaeUlLZlE9PS5mL01XY3Z5bDUyTFJMRWlMaEVyYnF1eW5yQ3FEQjdvZ0U1QVgxcGdpMXduSW9sT1MySFluNjBWeDBTb0VJVVpEUGhIRlBSQkdpSzg2cFA1K0xjMG56dUd6RFpEZkVUUS9CeklldjJoNTYzdWc2SzlKMCswMER0eTlvVW1GU2xvRTl6WTdQZz09In0=')));
143822
+ external_DevExpress_config_default()(JSON.parse(atob('eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaWNIQktkR3hUTlRaeU1HRjZNV3R4VldwWFNuTXRaeUlLZlE9PS5GSzV0WCtSUkt0akY2Q2NwaExOa0R2V0RCTHVkb0ZrdTN3LzJEMGMxRVlWMXp4KzJEYURkYnA0MGtPbXpKTnBRMXB0TUpiT1NTUm1JVmJaSU5VejRINDE3ejZMTDF4cDRZdWpyL2hQU3RiZlNodkNJMGFmemN4TzhXL1ZaVUJUR2gyZUh6UT09In0=')));
143803
143823
  this.prepareElement(element, settings);
143804
143824
  this.initDefaultFontsAndStyles();
143805
143825
  this.initBars(settings.ribbon, settings.fonts);