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.
- package/CHANGELOG.md +18 -6
- package/README.md +4 -4
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +24 -19
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +24 -19
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +24 -19
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +24 -19
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +33 -28
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/core/async/async.d.ts +1 -1
- package/esm/core/async/async.js +4 -0
- package/esm/core/constants.js +1 -1
- package/package.json +1 -1
- package/types/core/async/async.d.ts +1 -1
package/es2015/jodit.js
CHANGED
|
@@ -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.
|
|
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
|
|
1027
|
-
/* harmony import */ var
|
|
1028
|
-
/* harmony import */ var
|
|
1029
|
-
/* harmony import */ var
|
|
1030
|
-
/* harmony import */ var
|
|
1031
|
-
/* harmony import */ var
|
|
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
|
var _a, _b, _c, _d, _e;
|
|
@@ -1077,14 +1079,17 @@ class Async {
|
|
|
1077
1079
|
return 0;
|
|
1078
1080
|
}
|
|
1079
1081
|
let options = {};
|
|
1080
|
-
if (
|
|
1082
|
+
if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__/* .isVoid */ .n)(timeout)) {
|
|
1083
|
+
timeout = 0;
|
|
1084
|
+
}
|
|
1085
|
+
if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__/* .isNumber */ .h)(timeout)) {
|
|
1081
1086
|
options = timeout;
|
|
1082
1087
|
timeout = options.timeout || 0;
|
|
1083
1088
|
}
|
|
1084
1089
|
if (options.label) {
|
|
1085
1090
|
this.clearLabel(options.label);
|
|
1086
1091
|
}
|
|
1087
|
-
const timer = (0,
|
|
1092
|
+
const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .setTimeout */ .i)(callback, timeout, ...args), key = options.label || timer;
|
|
1088
1093
|
this.timers.set(key, timer);
|
|
1089
1094
|
this.__callbacks.set(key, callback);
|
|
1090
1095
|
return timer;
|
|
@@ -1100,16 +1105,16 @@ class Async {
|
|
|
1100
1105
|
}
|
|
1101
1106
|
clearLabel(label) {
|
|
1102
1107
|
if (label && this.timers.has(label)) {
|
|
1103
|
-
(0,
|
|
1108
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(this.timers.get(label));
|
|
1104
1109
|
this.timers.delete(label);
|
|
1105
1110
|
this.__callbacks.delete(label);
|
|
1106
1111
|
}
|
|
1107
1112
|
}
|
|
1108
1113
|
clearTimeout(timerOrLabel) {
|
|
1109
|
-
if ((0,
|
|
1114
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .H)(timerOrLabel)) {
|
|
1110
1115
|
return this.clearLabel(timerOrLabel);
|
|
1111
1116
|
}
|
|
1112
|
-
(0,
|
|
1117
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(timerOrLabel);
|
|
1113
1118
|
this.timers.delete(timerOrLabel);
|
|
1114
1119
|
this.__callbacks.delete(timerOrLabel);
|
|
1115
1120
|
}
|
|
@@ -1138,7 +1143,7 @@ class Async {
|
|
|
1138
1143
|
promises.forEach(res => res());
|
|
1139
1144
|
promises.length = 0;
|
|
1140
1145
|
};
|
|
1141
|
-
(0,
|
|
1146
|
+
(0,jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_6__/* .isPromise */ .t)(res) ? res.finally(runPromises) : runPromises();
|
|
1142
1147
|
}
|
|
1143
1148
|
}
|
|
1144
1149
|
};
|
|
@@ -1151,12 +1156,12 @@ class Async {
|
|
|
1151
1156
|
if (!timer && firstCallImmediately) {
|
|
1152
1157
|
callFn(...args);
|
|
1153
1158
|
}
|
|
1154
|
-
(0,
|
|
1155
|
-
timer = this.setTimeout(() => callFn(...args), (0,
|
|
1159
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(timer);
|
|
1160
|
+
timer = this.setTimeout(() => callFn(...args), (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
|
|
1156
1161
|
this.timers.set(fn, timer);
|
|
1157
1162
|
}
|
|
1158
1163
|
};
|
|
1159
|
-
return (0,
|
|
1164
|
+
return (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_8__/* .isPlainObject */ .P)(timeout) && timeout.promisify
|
|
1160
1165
|
? (...args) => {
|
|
1161
1166
|
const promise = this.promise(res => {
|
|
1162
1167
|
promises.push(res);
|
|
@@ -1217,7 +1222,7 @@ class Async {
|
|
|
1217
1222
|
if (needInvoke) {
|
|
1218
1223
|
fn(...lastArgs);
|
|
1219
1224
|
needInvoke = false;
|
|
1220
|
-
timer = this.setTimeout(callee, (0,
|
|
1225
|
+
timer = this.setTimeout(callee, (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
|
|
1221
1226
|
this.timers.set(callee, timer);
|
|
1222
1227
|
}
|
|
1223
1228
|
else {
|
|
@@ -1300,7 +1305,7 @@ class Async {
|
|
|
1300
1305
|
clear() {
|
|
1301
1306
|
this.requestsIdle.forEach(key => this.cancelIdleCallback(key));
|
|
1302
1307
|
this.requestsRaf.forEach(key => this.cancelAnimationFrame(key));
|
|
1303
|
-
this.timers.forEach(key => (0,
|
|
1308
|
+
this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(this.timers.get(key)));
|
|
1304
1309
|
this.timers.clear();
|
|
1305
1310
|
this.promisesRejections.forEach(reject => reject());
|
|
1306
1311
|
this.promisesRejections.clear();
|
|
@@ -1715,7 +1720,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1715
1720
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1716
1721
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1717
1722
|
*/
|
|
1718
|
-
const APP_VERSION = "4.0.0-beta.
|
|
1723
|
+
const APP_VERSION = "4.0.0-beta.99";
|
|
1719
1724
|
// prettier-ignore
|
|
1720
1725
|
const ES = "es2015";
|
|
1721
1726
|
const IS_ES_MODERN = true;
|