devexpress-richedit 19.1.14 → 19.1.16

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (dx.richedit.js)
3
- * Version: 19.1.14
4
- * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
3
+ * Version: 19.1.16
4
+ * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
7
7
  var DevExpress = typeof DevExpress === "object" ? DevExpress : {}; DevExpress["RichEdit"] =
@@ -83569,7 +83569,7 @@ module.exports = __webpack_require__(713).polyfill();
83569
83569
  * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
83570
83570
  * @license Licensed under MIT license
83571
83571
  * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
83572
- * @version v4.2.8+1e68dce6
83572
+ * @version v4.2.5+7f2b526d
83573
83573
  */
83574
83574
 
83575
83575
  (function (global, factory) {
@@ -83799,6 +83799,8 @@ var PENDING = void 0;
83799
83799
  var FULFILLED = 1;
83800
83800
  var REJECTED = 2;
83801
83801
 
83802
+ var TRY_CATCH_ERROR = { error: null };
83803
+
83802
83804
  function selfFulfillment() {
83803
83805
  return new TypeError("You cannot resolve a promise with itself");
83804
83806
  }
@@ -83807,6 +83809,15 @@ function cannotReturnOwn() {
83807
83809
  return new TypeError('A promises callback cannot return that same promise.');
83808
83810
  }
83809
83811
 
83812
+ function getThen(promise) {
83813
+ try {
83814
+ return promise.then;
83815
+ } catch (error) {
83816
+ TRY_CATCH_ERROR.error = error;
83817
+ return TRY_CATCH_ERROR;
83818
+ }
83819
+ }
83820
+
83810
83821
  function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {
83811
83822
  try {
83812
83823
  then$$1.call(value, fulfillmentHandler, rejectionHandler);
@@ -83862,7 +83873,10 @@ function handleMaybeThenable(promise, maybeThenable, then$$1) {
83862
83873
  if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {
83863
83874
  handleOwnThenable(promise, maybeThenable);
83864
83875
  } else {
83865
- if (then$$1 === undefined) {
83876
+ if (then$$1 === TRY_CATCH_ERROR) {
83877
+ reject(promise, TRY_CATCH_ERROR.error);
83878
+ TRY_CATCH_ERROR.error = null;
83879
+ } else if (then$$1 === undefined) {
83866
83880
  fulfill(promise, maybeThenable);
83867
83881
  } else if (isFunction(then$$1)) {
83868
83882
  handleForeignThenable(promise, maybeThenable, then$$1);
@@ -83876,14 +83890,7 @@ function resolve(promise, value) {
83876
83890
  if (promise === value) {
83877
83891
  reject(promise, selfFulfillment());
83878
83892
  } else if (objectOrFunction(value)) {
83879
- var then$$1 = void 0;
83880
- try {
83881
- then$$1 = value.then;
83882
- } catch (error) {
83883
- reject(promise, error);
83884
- return;
83885
- }
83886
- handleMaybeThenable(promise, value, then$$1);
83893
+ handleMaybeThenable(promise, value, getThen(value));
83887
83894
  } else {
83888
83895
  fulfill(promise, value);
83889
83896
  }
@@ -83962,18 +83969,31 @@ function publish(promise) {
83962
83969
  promise._subscribers.length = 0;
83963
83970
  }
83964
83971
 
83972
+ function tryCatch(callback, detail) {
83973
+ try {
83974
+ return callback(detail);
83975
+ } catch (e) {
83976
+ TRY_CATCH_ERROR.error = e;
83977
+ return TRY_CATCH_ERROR;
83978
+ }
83979
+ }
83980
+
83965
83981
  function invokeCallback(settled, promise, callback, detail) {
83966
83982
  var hasCallback = isFunction(callback),
83967
83983
  value = void 0,
83968
83984
  error = void 0,
83969
- succeeded = true;
83985
+ succeeded = void 0,
83986
+ failed = void 0;
83970
83987
 
83971
83988
  if (hasCallback) {
83972
- try {
83973
- value = callback(detail);
83974
- } catch (e) {
83975
- succeeded = false;
83976
- error = e;
83989
+ value = tryCatch(callback, detail);
83990
+
83991
+ if (value === TRY_CATCH_ERROR) {
83992
+ failed = true;
83993
+ error = value.error;
83994
+ value.error = null;
83995
+ } else {
83996
+ succeeded = true;
83977
83997
  }
83978
83998
 
83979
83999
  if (promise === value) {
@@ -83982,13 +84002,14 @@ function invokeCallback(settled, promise, callback, detail) {
83982
84002
  }
83983
84003
  } else {
83984
84004
  value = detail;
84005
+ succeeded = true;
83985
84006
  }
83986
84007
 
83987
84008
  if (promise._state !== PENDING) {
83988
84009
  // noop
83989
84010
  } else if (hasCallback && succeeded) {
83990
84011
  resolve(promise, value);
83991
- } else if (succeeded === false) {
84012
+ } else if (failed) {
83992
84013
  reject(promise, error);
83993
84014
  } else if (settled === FULFILLED) {
83994
84015
  fulfill(promise, value);
@@ -84066,15 +84087,7 @@ var Enumerator = function () {
84066
84087
 
84067
84088
 
84068
84089
  if (resolve$$1 === resolve$1) {
84069
- var _then = void 0;
84070
- var error = void 0;
84071
- var didError = false;
84072
- try {
84073
- _then = entry.then;
84074
- } catch (e) {
84075
- didError = true;
84076
- error = e;
84077
- }
84090
+ var _then = getThen(entry);
84078
84091
 
84079
84092
  if (_then === then && entry._state !== PENDING) {
84080
84093
  this._settledAt(entry._state, i, entry._result);
@@ -84083,11 +84096,7 @@ var Enumerator = function () {
84083
84096
  this._result[i] = entry;
84084
84097
  } else if (c === Promise$1) {
84085
84098
  var promise = new c(noop);
84086
- if (didError) {
84087
- reject(promise, error);
84088
- } else {
84089
- handleMaybeThenable(promise, entry, _then);
84090
- }
84099
+ handleMaybeThenable(promise, entry, _then);
84091
84100
  this._willSettleAt(promise, i);
84092
84101
  } else {
84093
84102
  this._willSettleAt(new c(function (resolve$$1) {