jodit 4.0.0-beta.98 → 4.0.0-beta.99

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 (53) hide show
  1. package/CHANGELOG.md +18 -6
  2. package/README.md +4 -4
  3. package/es2015/jodit.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +24 -19
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.css +1 -1
  13. package/es2018/jodit.fat.min.js +2 -2
  14. package/es2018/jodit.js +24 -19
  15. package/es2018/jodit.min.js +2 -2
  16. package/es2018/plugins/debug/debug.js +1 -1
  17. package/es2018/plugins/debug/debug.min.js +1 -1
  18. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  21. package/es2021/jodit.css +1 -1
  22. package/es2021/jodit.fat.min.js +2 -2
  23. package/es2021/jodit.js +24 -19
  24. package/es2021/jodit.min.js +2 -2
  25. package/es2021/plugins/debug/debug.js +1 -1
  26. package/es2021/plugins/debug/debug.min.js +1 -1
  27. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  28. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  30. package/es2021.en/jodit.css +1 -1
  31. package/es2021.en/jodit.fat.min.js +2 -2
  32. package/es2021.en/jodit.js +24 -19
  33. package/es2021.en/jodit.min.js +2 -2
  34. package/es2021.en/plugins/debug/debug.js +1 -1
  35. package/es2021.en/plugins/debug/debug.min.js +1 -1
  36. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  37. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  38. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  39. package/es5/jodit.css +2 -2
  40. package/es5/jodit.fat.min.js +2 -2
  41. package/es5/jodit.js +33 -28
  42. package/es5/jodit.min.css +2 -2
  43. package/es5/jodit.min.js +2 -2
  44. package/es5/plugins/debug/debug.js +1 -1
  45. package/es5/plugins/debug/debug.min.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  47. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  48. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  49. package/esm/core/async/async.d.ts +1 -1
  50. package/esm/core/async/async.js +4 -0
  51. package/esm/core/constants.js +1 -1
  52. package/package.json +1 -1
  53. package/types/core/async/async.d.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.0.0-beta.98
4
+ * Version: v4.0.0-beta.99
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1023,14 +1023,15 @@ Config.prototype.controls = {};
1023
1023
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1024
1024
  /* harmony export */ e: function() { return /* binding */ Async; }
1025
1025
  /* harmony export */ });
1026
- /* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78037);
1027
- /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(69099);
1028
- /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(45564);
1029
- /* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(59862);
1030
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2926);
1031
- /* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(32952);
1026
+ /* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78037);
1027
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(69099);
1028
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45564);
1029
+ /* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(59862);
1030
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2926);
1031
+ /* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32952);
1032
1032
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52378);
1033
1033
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_0__);
1034
+ /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41240);
1034
1035
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62924);
1035
1036
  /*!
1036
1037
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -1045,6 +1046,7 @@ Config.prototype.controls = {};
1045
1046
 
1046
1047
 
1047
1048
 
1049
+
1048
1050
  class Async {
1049
1051
  constructor() {
1050
1052
  this.timers = new Map();
@@ -1078,14 +1080,17 @@ class Async {
1078
1080
  return 0;
1079
1081
  }
1080
1082
  let options = {};
1081
- if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_2__/* .isNumber */ .h)(timeout)) {
1083
+ if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__/* .isVoid */ .n)(timeout)) {
1084
+ timeout = 0;
1085
+ }
1086
+ if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__/* .isNumber */ .h)(timeout)) {
1082
1087
  options = timeout;
1083
1088
  timeout = options.timeout || 0;
1084
1089
  }
1085
1090
  if (options.label) {
1086
1091
  this.clearLabel(options.label);
1087
1092
  }
1088
- const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_3__/* .setTimeout */ .i)(callback, timeout, ...args), key = options.label || timer;
1093
+ const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .setTimeout */ .i)(callback, timeout, ...args), key = options.label || timer;
1089
1094
  this.timers.set(key, timer);
1090
1095
  this.__callbacks.set(key, callback);
1091
1096
  return timer;
@@ -1101,16 +1106,16 @@ class Async {
1101
1106
  }
1102
1107
  clearLabel(label) {
1103
1108
  if (label && this.timers.has(label)) {
1104
- (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_3__/* .clearTimeout */ .g)(this.timers.get(label));
1109
+ (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(this.timers.get(label));
1105
1110
  this.timers.delete(label);
1106
1111
  this.__callbacks.delete(label);
1107
1112
  }
1108
1113
  }
1109
1114
  clearTimeout(timerOrLabel) {
1110
- if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .H)(timerOrLabel)) {
1115
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .H)(timerOrLabel)) {
1111
1116
  return this.clearLabel(timerOrLabel);
1112
1117
  }
1113
- (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_3__/* .clearTimeout */ .g)(timerOrLabel);
1118
+ (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(timerOrLabel);
1114
1119
  this.timers.delete(timerOrLabel);
1115
1120
  this.__callbacks.delete(timerOrLabel);
1116
1121
  }
@@ -1139,7 +1144,7 @@ class Async {
1139
1144
  promises.forEach(res => res());
1140
1145
  promises.length = 0;
1141
1146
  };
1142
- (0,jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_5__/* .isPromise */ .t)(res) ? res.finally(runPromises) : runPromises();
1147
+ (0,jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_6__/* .isPromise */ .t)(res) ? res.finally(runPromises) : runPromises();
1143
1148
  }
1144
1149
  }
1145
1150
  };
@@ -1152,12 +1157,12 @@ class Async {
1152
1157
  if (!timer && firstCallImmediately) {
1153
1158
  callFn(...args);
1154
1159
  }
1155
- (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_3__/* .clearTimeout */ .g)(timer);
1156
- timer = this.setTimeout(() => callFn(...args), (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_6__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
1160
+ (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(timer);
1161
+ timer = this.setTimeout(() => callFn(...args), (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
1157
1162
  this.timers.set(fn, timer);
1158
1163
  }
1159
1164
  };
1160
- return (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_7__/* .isPlainObject */ .P)(timeout) && timeout.promisify
1165
+ return (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_8__/* .isPlainObject */ .P)(timeout) && timeout.promisify
1161
1166
  ? (...args) => {
1162
1167
  const promise = this.promise(res => {
1163
1168
  promises.push(res);
@@ -1218,7 +1223,7 @@ class Async {
1218
1223
  if (needInvoke) {
1219
1224
  fn(...lastArgs);
1220
1225
  needInvoke = false;
1221
- timer = this.setTimeout(callee, (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_6__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
1226
+ timer = this.setTimeout(callee, (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
1222
1227
  this.timers.set(callee, timer);
1223
1228
  }
1224
1229
  else {
@@ -1301,7 +1306,7 @@ class Async {
1301
1306
  clear() {
1302
1307
  this.requestsIdle.forEach(key => this.cancelIdleCallback(key));
1303
1308
  this.requestsRaf.forEach(key => this.cancelAnimationFrame(key));
1304
- this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_3__/* .clearTimeout */ .g)(this.timers.get(key)));
1309
+ this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(this.timers.get(key)));
1305
1310
  this.timers.clear();
1306
1311
  this.promisesRejections.forEach(reject => reject());
1307
1312
  this.promisesRejections.clear();
@@ -1716,7 +1721,7 @@ __webpack_require__.r(__webpack_exports__);
1716
1721
  * Released under MIT see LICENSE.txt in the project root for license information.
1717
1722
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1718
1723
  */
1719
- const APP_VERSION = "4.0.0-beta.98";
1724
+ const APP_VERSION = "4.0.0-beta.99";
1720
1725
  // prettier-ignore
1721
1726
  const ES = "es2021";
1722
1727
  const IS_ES_MODERN = true;