jodit 4.5.8 → 4.5.11
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 +23 -2
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +76 -29
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.css +1 -1
- 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 +79 -29
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- 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 +79 -28
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.css +1 -1
- 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 +79 -28
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.css +1 -1
- 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/415.fat.min.js +10 -0
- package/es5/{975.js → 415.js} +604 -604
- package/es5/415.min.js +10 -0
- package/es5/5.fat.min.js +2 -2
- package/es5/5.js +5 -5
- package/es5/5.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +79 -29
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- 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 +13 -3
- package/esm/core/async/async.js +59 -11
- package/esm/core/constants.js +1 -1
- package/esm/core/dom/lazy-walker.d.ts +4 -3
- package/esm/core/dom/lazy-walker.js +14 -12
- package/esm/types/async.d.ts +6 -0
- package/package.json +1 -1
- package/types/core/async/async.d.ts +13 -3
- package/types/core/dom/lazy-walker.d.ts +4 -3
- package/types/types/async.d.ts +6 -0
- package/es5/975.fat.min.js +0 -10
- package/es5/975.min.js +0 -10
package/es5/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.5.
|
|
4
|
+
* Version: v4.5.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
return /******/ (function() { // webpackBootstrap
|
|
20
20
|
/******/ var __webpack_modules__ = ({
|
|
21
21
|
|
|
22
|
-
/***/
|
|
22
|
+
/***/ 52201:
|
|
23
23
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
24
24
|
|
|
25
25
|
"use strict";
|
|
@@ -1079,9 +1079,10 @@ var Async = /** @class */ (function () {
|
|
|
1079
1079
|
this.__callbacks = new Map();
|
|
1080
1080
|
this.__queueMicrotaskNative = (_a = queueMicrotask === null || queueMicrotask === void 0 ? void 0 : queueMicrotask.bind(window)) !== null && _a !== void 0 ? _a : Promise.resolve().then.bind(Promise.resolve());
|
|
1081
1081
|
this.promisesRejections = new Set();
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1084
|
-
this.
|
|
1082
|
+
this.__requestsIdle = new Set();
|
|
1083
|
+
this.__controllers = new Set();
|
|
1084
|
+
this.__requestsRaf = new Set();
|
|
1085
|
+
this.__requestIdleCallbackNative = (_c = (_b = window['requestIdleCallback']) === null || _b === void 0 ? void 0 : _b.bind(window)) !== null && _c !== void 0 ? _c : (function (callback, options) {
|
|
1085
1086
|
var _a;
|
|
1086
1087
|
var start = Date.now();
|
|
1087
1088
|
return _this.setTimeout(function () {
|
|
@@ -1344,8 +1345,9 @@ var Async = /** @class */ (function () {
|
|
|
1344
1345
|
return Promise.race([p, t]).then(function (v) { return (v === t ? 'pending' : 'fulfilled'); }, function () { return 'rejected'; });
|
|
1345
1346
|
};
|
|
1346
1347
|
Async.prototype.requestIdleCallback = function (callback, options) {
|
|
1347
|
-
|
|
1348
|
-
this.
|
|
1348
|
+
if (options === void 0) { options = { timeout: 100 }; }
|
|
1349
|
+
var request = this.__requestIdleCallbackNative(callback, options);
|
|
1350
|
+
this.__requestsIdle.add(request);
|
|
1349
1351
|
return request;
|
|
1350
1352
|
};
|
|
1351
1353
|
Async.prototype.requestIdlePromise = function (options) {
|
|
@@ -1354,23 +1356,69 @@ var Async = /** @class */ (function () {
|
|
|
1354
1356
|
var request = _this.requestIdleCallback(function () { return res(request); }, options);
|
|
1355
1357
|
});
|
|
1356
1358
|
};
|
|
1359
|
+
/**
|
|
1360
|
+
* Try to use scheduler.postTask if it is available https://wicg.github.io/scheduling-apis/
|
|
1361
|
+
*/
|
|
1362
|
+
Async.prototype.schedulerPostTask = function (task, options) {
|
|
1363
|
+
var _this = this;
|
|
1364
|
+
if (options === void 0) { options = {
|
|
1365
|
+
delay: 0,
|
|
1366
|
+
priority: 'user-visible'
|
|
1367
|
+
}; }
|
|
1368
|
+
var controller = new AbortController();
|
|
1369
|
+
if (options.signal) {
|
|
1370
|
+
options.signal.addEventListener('abort', function () { return controller.abort(); });
|
|
1371
|
+
}
|
|
1372
|
+
this.__controllers.add(controller);
|
|
1373
|
+
// @ts-ignore
|
|
1374
|
+
if (typeof globalThis.scheduler !== 'undefined') {
|
|
1375
|
+
var scheduler = globalThis.scheduler;
|
|
1376
|
+
var promise = scheduler.postTask(task, (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__assign */ .Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__assign */ .Cl)({}, options), { signal: controller.signal }));
|
|
1377
|
+
promise
|
|
1378
|
+
.finally(function () {
|
|
1379
|
+
_this.__controllers.delete(controller);
|
|
1380
|
+
})
|
|
1381
|
+
.catch(function () { return null; });
|
|
1382
|
+
return promise;
|
|
1383
|
+
}
|
|
1384
|
+
return this.promise(function (resolve, reject) {
|
|
1385
|
+
var timeout = _this.setTimeout(function () {
|
|
1386
|
+
try {
|
|
1387
|
+
resolve(task());
|
|
1388
|
+
}
|
|
1389
|
+
catch (e) {
|
|
1390
|
+
reject(e);
|
|
1391
|
+
}
|
|
1392
|
+
_this.__controllers.delete(controller);
|
|
1393
|
+
}, options.delay || 1);
|
|
1394
|
+
controller.signal.addEventListener('abort', function () {
|
|
1395
|
+
_this.clearTimeout(timeout);
|
|
1396
|
+
_this.__controllers.delete(controller);
|
|
1397
|
+
reject((0,jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_11__/* .abort */ .h)());
|
|
1398
|
+
});
|
|
1399
|
+
});
|
|
1400
|
+
};
|
|
1401
|
+
Async.prototype.schedulerYield = function () {
|
|
1402
|
+
return this.schedulerPostTask(function () { }, { priority: 'user-visible' });
|
|
1403
|
+
};
|
|
1357
1404
|
Async.prototype.cancelIdleCallback = function (request) {
|
|
1358
|
-
this.
|
|
1405
|
+
this.__requestsIdle.delete(request);
|
|
1359
1406
|
return this.__cancelIdleCallbackNative(request);
|
|
1360
1407
|
};
|
|
1361
1408
|
Async.prototype.requestAnimationFrame = function (callback) {
|
|
1362
1409
|
var request = requestAnimationFrame(callback);
|
|
1363
|
-
this.
|
|
1410
|
+
this.__requestsRaf.add(request);
|
|
1364
1411
|
return request;
|
|
1365
1412
|
};
|
|
1366
1413
|
Async.prototype.cancelAnimationFrame = function (request) {
|
|
1367
|
-
this.
|
|
1414
|
+
this.__requestsRaf.delete(request);
|
|
1368
1415
|
cancelAnimationFrame(request);
|
|
1369
1416
|
};
|
|
1370
1417
|
Async.prototype.clear = function () {
|
|
1371
1418
|
var _this = this;
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1419
|
+
this.__requestsIdle.forEach(function (key) { return _this.cancelIdleCallback(key); });
|
|
1420
|
+
this.__requestsRaf.forEach(function (key) { return _this.cancelAnimationFrame(key); });
|
|
1421
|
+
this.__controllers.forEach(function (controller) { return controller.abort(); });
|
|
1374
1422
|
this.timers.forEach(function (key) {
|
|
1375
1423
|
return (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(_this.timers.get(key));
|
|
1376
1424
|
});
|
|
@@ -1849,7 +1897,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1849
1897
|
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1850
1898
|
*/
|
|
1851
1899
|
|
|
1852
|
-
var APP_VERSION = "4.5.
|
|
1900
|
+
var APP_VERSION = "4.5.11";
|
|
1853
1901
|
// prettier-ignore
|
|
1854
1902
|
var ES = "es5";
|
|
1855
1903
|
var IS_ES_MODERN = false;
|
|
@@ -2248,7 +2296,7 @@ var Create = /** @class */ (function () {
|
|
|
2248
2296
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2249
2297
|
/* harmony export */ d: function() { return /* reexport safe */ autobind_decorator__WEBPACK_IMPORTED_MODULE_0__.Ay; }
|
|
2250
2298
|
/* harmony export */ });
|
|
2251
|
-
/* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2299
|
+
/* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52201);
|
|
2252
2300
|
/*!
|
|
2253
2301
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
2254
2302
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -3893,6 +3941,7 @@ var LazyWalker = /** @class */ (function (_super) {
|
|
|
3893
3941
|
_this.isWorked = false;
|
|
3894
3942
|
_this.isFinished = false;
|
|
3895
3943
|
_this.idleId = 0;
|
|
3944
|
+
_this.__schedulerController = null;
|
|
3896
3945
|
return _this;
|
|
3897
3946
|
}
|
|
3898
3947
|
LazyWalker.prototype.setWork = function (root) {
|
|
@@ -3901,14 +3950,17 @@ var LazyWalker = /** @class */ (function (_super) {
|
|
|
3901
3950
|
}
|
|
3902
3951
|
this.workNodes = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.eachGen(root, !this.options.reverse);
|
|
3903
3952
|
this.isFinished = false;
|
|
3904
|
-
this.
|
|
3953
|
+
this._requestStarting();
|
|
3905
3954
|
return this;
|
|
3906
3955
|
};
|
|
3907
|
-
LazyWalker.prototype.
|
|
3908
|
-
|
|
3909
|
-
this.
|
|
3910
|
-
|
|
3911
|
-
|
|
3956
|
+
LazyWalker.prototype._requestStarting = function () {
|
|
3957
|
+
this.__schedulerController = new AbortController();
|
|
3958
|
+
this.async
|
|
3959
|
+
.schedulerPostTask(this.__workPerform, {
|
|
3960
|
+
delay: this.options.timeout,
|
|
3961
|
+
signal: this.__schedulerController.signal
|
|
3962
|
+
})
|
|
3963
|
+
.catch(function () { return null; });
|
|
3912
3964
|
};
|
|
3913
3965
|
LazyWalker.prototype.break = function (reason) {
|
|
3914
3966
|
if (this.isWorked) {
|
|
@@ -3933,15 +3985,13 @@ var LazyWalker = /** @class */ (function (_super) {
|
|
|
3933
3985
|
_super.prototype.destruct.call(this);
|
|
3934
3986
|
this.stop();
|
|
3935
3987
|
};
|
|
3936
|
-
LazyWalker.prototype.
|
|
3988
|
+
LazyWalker.prototype.__workPerform = function () {
|
|
3937
3989
|
var _a;
|
|
3938
3990
|
if (this.workNodes) {
|
|
3939
3991
|
this.isWorked = true;
|
|
3940
3992
|
var count = 0;
|
|
3941
3993
|
var chunkSize = (_a = this.options.timeoutChunkSize) !== null && _a !== void 0 ? _a : 50;
|
|
3942
|
-
while (!this.isFinished &&
|
|
3943
|
-
(deadline.timeRemaining() > 0 ||
|
|
3944
|
-
(deadline.didTimeout && count <= chunkSize))) {
|
|
3994
|
+
while (!this.isFinished && count <= chunkSize) {
|
|
3945
3995
|
var item = this.workNodes.next();
|
|
3946
3996
|
count += 1;
|
|
3947
3997
|
if (this.visitNode(item.value)) {
|
|
@@ -3957,7 +4007,7 @@ var LazyWalker = /** @class */ (function (_super) {
|
|
|
3957
4007
|
this.end();
|
|
3958
4008
|
}
|
|
3959
4009
|
if (!this.isFinished) {
|
|
3960
|
-
this.
|
|
4010
|
+
this._requestStarting();
|
|
3961
4011
|
}
|
|
3962
4012
|
};
|
|
3963
4013
|
LazyWalker.prototype.visitNode = function (nodeElm) {
|
|
@@ -3971,7 +4021,7 @@ var LazyWalker = /** @class */ (function (_super) {
|
|
|
3971
4021
|
};
|
|
3972
4022
|
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
|
|
3973
4023
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
3974
|
-
], LazyWalker.prototype, "
|
|
4024
|
+
], LazyWalker.prototype, "__workPerform", null);
|
|
3975
4025
|
return LazyWalker;
|
|
3976
4026
|
}(jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_2__/* .Eventify */ .h));
|
|
3977
4027
|
|
|
@@ -10216,7 +10266,7 @@ var Plugin = /** @class */ (function (_super) {
|
|
|
10216
10266
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
|
|
10217
10267
|
/* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64890);
|
|
10218
10268
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17352);
|
|
10219
|
-
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
10269
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(52201);
|
|
10220
10270
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
10221
10271
|
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50156);
|
|
10222
10272
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
@@ -16731,7 +16781,7 @@ var ProgressBar = /** @class */ (function (_super) {
|
|
|
16731
16781
|
/* harmony export */ });
|
|
16732
16782
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
|
|
16733
16783
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64567);
|
|
16734
|
-
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
|
|
16784
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(52201);
|
|
16735
16785
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66927);
|
|
16736
16786
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
|
|
16737
16787
|
/* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32709);
|
|
@@ -46866,7 +46916,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46866
46916
|
if (typeof process !== 'undefined' &&
|
|
46867
46917
|
_core_constants__WEBPACK_IMPORTED_MODULE_2__.ES === 'es5' &&
|
|
46868
46918
|
typeof window !== 'undefined') {
|
|
46869
|
-
Promise.all(/* import() */[__webpack_require__.e(
|
|
46919
|
+
Promise.all(/* import() */[__webpack_require__.e(415), __webpack_require__.e(5)]).then(__webpack_require__.bind(__webpack_require__, 19005));
|
|
46870
46920
|
}
|
|
46871
46921
|
// JODIT-SECTION-END:POLYFILLS
|
|
46872
46922
|
// copy constants in Jodit
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.5.
|
|
4
|
+
* Version: v4.5.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.5.
|
|
11
|
+
* Version: v4.5.11
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|