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/es5/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
|
*/
|
|
@@ -2316,15 +2316,16 @@ Config.prototype.controls = {};
|
|
|
2316
2316
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2317
2317
|
/* harmony export */ e: function() { return /* binding */ Async; }
|
|
2318
2318
|
/* harmony export */ });
|
|
2319
|
-
/* harmony import */ var
|
|
2320
|
-
/* harmony import */ var
|
|
2321
|
-
/* harmony import */ var
|
|
2322
|
-
/* harmony import */ var
|
|
2323
|
-
/* harmony import */ var
|
|
2324
|
-
/* harmony import */ var
|
|
2325
|
-
/* harmony import */ var
|
|
2319
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
2320
|
+
/* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78037);
|
|
2321
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(69099);
|
|
2322
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(45564);
|
|
2323
|
+
/* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59862);
|
|
2324
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2926);
|
|
2325
|
+
/* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32952);
|
|
2326
2326
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52378);
|
|
2327
2327
|
/* 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__);
|
|
2328
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41240);
|
|
2328
2329
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62924);
|
|
2329
2330
|
/*!
|
|
2330
2331
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -2340,6 +2341,7 @@ Config.prototype.controls = {};
|
|
|
2340
2341
|
|
|
2341
2342
|
|
|
2342
2343
|
|
|
2344
|
+
|
|
2343
2345
|
var Async = /** @class */ (function () {
|
|
2344
2346
|
function Async() {
|
|
2345
2347
|
var _this = this;
|
|
@@ -2380,14 +2382,17 @@ var Async = /** @class */ (function () {
|
|
|
2380
2382
|
return 0;
|
|
2381
2383
|
}
|
|
2382
2384
|
var options = {};
|
|
2383
|
-
if (
|
|
2385
|
+
if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__/* .isVoid */ .n)(timeout)) {
|
|
2386
|
+
timeout = 0;
|
|
2387
|
+
}
|
|
2388
|
+
if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__/* .isNumber */ .h)(timeout)) {
|
|
2384
2389
|
options = timeout;
|
|
2385
2390
|
timeout = options.timeout || 0;
|
|
2386
2391
|
}
|
|
2387
2392
|
if (options.label) {
|
|
2388
2393
|
this.clearLabel(options.label);
|
|
2389
2394
|
}
|
|
2390
|
-
var timer =
|
|
2395
|
+
var timer = jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .setTimeout */ .i.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([callback, timeout], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false)), key = options.label || timer;
|
|
2391
2396
|
this.timers.set(key, timer);
|
|
2392
2397
|
this.__callbacks.set(key, callback);
|
|
2393
2398
|
return timer;
|
|
@@ -2403,16 +2408,16 @@ var Async = /** @class */ (function () {
|
|
|
2403
2408
|
};
|
|
2404
2409
|
Async.prototype.clearLabel = function (label) {
|
|
2405
2410
|
if (label && this.timers.has(label)) {
|
|
2406
|
-
(0,
|
|
2411
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(this.timers.get(label));
|
|
2407
2412
|
this.timers.delete(label);
|
|
2408
2413
|
this.__callbacks.delete(label);
|
|
2409
2414
|
}
|
|
2410
2415
|
};
|
|
2411
2416
|
Async.prototype.clearTimeout = function (timerOrLabel) {
|
|
2412
|
-
if ((0,
|
|
2417
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__/* .isString */ .H)(timerOrLabel)) {
|
|
2413
2418
|
return this.clearLabel(timerOrLabel);
|
|
2414
2419
|
}
|
|
2415
|
-
(0,
|
|
2420
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(timerOrLabel);
|
|
2416
2421
|
this.timers.delete(timerOrLabel);
|
|
2417
2422
|
this.__callbacks.delete(timerOrLabel);
|
|
2418
2423
|
};
|
|
@@ -2440,14 +2445,14 @@ var Async = /** @class */ (function () {
|
|
|
2440
2445
|
}
|
|
2441
2446
|
if (!fired) {
|
|
2442
2447
|
timer = 0;
|
|
2443
|
-
var res = fn.apply(void 0, (0,
|
|
2448
|
+
var res = fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false));
|
|
2444
2449
|
fired = true;
|
|
2445
2450
|
if (promises.length) {
|
|
2446
2451
|
var runPromises = function () {
|
|
2447
2452
|
promises.forEach(function (res) { return res(); });
|
|
2448
2453
|
promises.length = 0;
|
|
2449
2454
|
};
|
|
2450
|
-
(0,
|
|
2455
|
+
(0,jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_7__/* .isPromise */ .t)(res) ? res.finally(runPromises) : runPromises();
|
|
2451
2456
|
}
|
|
2452
2457
|
}
|
|
2453
2458
|
};
|
|
@@ -2458,18 +2463,18 @@ var Async = /** @class */ (function () {
|
|
|
2458
2463
|
}
|
|
2459
2464
|
fired = false;
|
|
2460
2465
|
if (!timeout) {
|
|
2461
|
-
callFn.apply(void 0, (0,
|
|
2466
|
+
callFn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false));
|
|
2462
2467
|
}
|
|
2463
2468
|
else {
|
|
2464
2469
|
if (!timer && firstCallImmediately) {
|
|
2465
|
-
callFn.apply(void 0, (0,
|
|
2470
|
+
callFn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false));
|
|
2466
2471
|
}
|
|
2467
|
-
(0,
|
|
2468
|
-
timer = _this.setTimeout(function () { return callFn.apply(void 0, (0,
|
|
2472
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(timer);
|
|
2473
|
+
timer = _this.setTimeout(function () { return callFn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false)); }, (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
|
|
2469
2474
|
_this.timers.set(fn, timer);
|
|
2470
2475
|
}
|
|
2471
2476
|
};
|
|
2472
|
-
return (0,
|
|
2477
|
+
return (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_9__/* .isPlainObject */ .P)(timeout) && timeout.promisify
|
|
2473
2478
|
? function () {
|
|
2474
2479
|
var args = [];
|
|
2475
2480
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -2478,7 +2483,7 @@ var Async = /** @class */ (function () {
|
|
|
2478
2483
|
var promise = _this.promise(function (res) {
|
|
2479
2484
|
promises.push(res);
|
|
2480
2485
|
});
|
|
2481
|
-
onFire.apply(void 0, (0,
|
|
2486
|
+
onFire.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(args), false));
|
|
2482
2487
|
return promise;
|
|
2483
2488
|
}
|
|
2484
2489
|
: onFire;
|
|
@@ -2502,7 +2507,7 @@ var Async = /** @class */ (function () {
|
|
|
2502
2507
|
needCall = true;
|
|
2503
2508
|
if (firstCallImmediately) {
|
|
2504
2509
|
needCall = false;
|
|
2505
|
-
fn.apply(void 0, (0,
|
|
2510
|
+
fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(savedArgs), false));
|
|
2506
2511
|
}
|
|
2507
2512
|
scheduled = true;
|
|
2508
2513
|
_this.__queueMicrotaskNative(function () {
|
|
@@ -2510,7 +2515,7 @@ var Async = /** @class */ (function () {
|
|
|
2510
2515
|
if (_this.isDestructed) {
|
|
2511
2516
|
return;
|
|
2512
2517
|
}
|
|
2513
|
-
needCall && fn.apply(void 0, (0,
|
|
2518
|
+
needCall && fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(savedArgs), false));
|
|
2514
2519
|
});
|
|
2515
2520
|
});
|
|
2516
2521
|
};
|
|
@@ -2538,15 +2543,15 @@ var Async = /** @class */ (function () {
|
|
|
2538
2543
|
needInvoke = true;
|
|
2539
2544
|
lastArgs = args;
|
|
2540
2545
|
if (!timeout) {
|
|
2541
|
-
fn.apply(void 0, (0,
|
|
2546
|
+
fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(lastArgs), false));
|
|
2542
2547
|
return;
|
|
2543
2548
|
}
|
|
2544
2549
|
if (!timer) {
|
|
2545
2550
|
callee = function () {
|
|
2546
2551
|
if (needInvoke) {
|
|
2547
|
-
fn.apply(void 0, (0,
|
|
2552
|
+
fn.apply(void 0, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__spreadArray */ .ev)([], (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__read */ .CR)(lastArgs), false));
|
|
2548
2553
|
needInvoke = false;
|
|
2549
|
-
timer = _this.setTimeout(callee, (0,
|
|
2554
|
+
timer = _this.setTimeout(callee, (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .m)(timeout) ? timeout() : timeout);
|
|
2550
2555
|
_this.timers.set(callee, timer);
|
|
2551
2556
|
}
|
|
2552
2557
|
else {
|
|
@@ -2634,7 +2639,7 @@ var Async = /** @class */ (function () {
|
|
|
2634
2639
|
this.requestsIdle.forEach(function (key) { return _this.cancelIdleCallback(key); });
|
|
2635
2640
|
this.requestsRaf.forEach(function (key) { return _this.cancelAnimationFrame(key); });
|
|
2636
2641
|
this.timers.forEach(function (key) {
|
|
2637
|
-
return (0,
|
|
2642
|
+
return (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .g)(_this.timers.get(key));
|
|
2638
2643
|
});
|
|
2639
2644
|
this.timers.clear();
|
|
2640
2645
|
this.promisesRejections.forEach(function (reject) { return reject(); });
|
|
@@ -3108,7 +3113,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3108
3113
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
3109
3114
|
*/
|
|
3110
3115
|
|
|
3111
|
-
var APP_VERSION = "4.0.0-beta.
|
|
3116
|
+
var APP_VERSION = "4.0.0-beta.99";
|
|
3112
3117
|
// prettier-ignore
|
|
3113
3118
|
var ES = "es5";
|
|
3114
3119
|
var IS_ES_MODERN = false;
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.0.0-beta.
|
|
11
|
+
* Version: v4.0.0-beta.99
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|