jodit 4.5.5 → 4.5.9

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 (68) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +2 -2
  3. package/es2015/jodit.js +19 -16
  4. package/es2015/jodit.min.js +2 -2
  5. package/es2015/plugins/debug/debug.css +1 -1
  6. package/es2015/plugins/debug/debug.js +1 -1
  7. package/es2015/plugins/debug/debug.min.js +1 -1
  8. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  11. package/es2018/jodit.css +1 -1
  12. package/es2018/jodit.fat.min.js +2 -2
  13. package/es2018/jodit.js +15 -10
  14. package/es2018/jodit.min.js +2 -2
  15. package/es2018/plugins/debug/debug.css +1 -1
  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 +15 -10
  24. package/es2021/jodit.min.js +2 -2
  25. package/es2021/plugins/debug/debug.css +1 -1
  26. package/es2021/plugins/debug/debug.js +1 -1
  27. package/es2021/plugins/debug/debug.min.js +1 -1
  28. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  31. package/es2021.en/jodit.css +1 -1
  32. package/es2021.en/jodit.fat.min.js +2 -2
  33. package/es2021.en/jodit.js +15 -10
  34. package/es2021.en/jodit.min.js +2 -2
  35. package/es2021.en/plugins/debug/debug.css +1 -1
  36. package/es2021.en/plugins/debug/debug.js +1 -1
  37. package/es2021.en/plugins/debug/debug.min.js +1 -1
  38. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  39. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  40. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  41. package/es5/415.fat.min.js +10 -0
  42. package/es5/{975.js → 415.js} +604 -604
  43. package/es5/415.min.js +10 -0
  44. package/es5/5.fat.min.js +2 -2
  45. package/es5/5.js +5 -5
  46. package/es5/5.min.js +2 -2
  47. package/es5/jodit.css +2 -2
  48. package/es5/jodit.fat.min.js +2 -2
  49. package/es5/jodit.js +26 -25
  50. package/es5/jodit.min.css +2 -2
  51. package/es5/jodit.min.js +2 -2
  52. package/es5/plugins/debug/debug.css +1 -1
  53. package/es5/plugins/debug/debug.js +1 -1
  54. package/es5/plugins/debug/debug.min.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  56. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  57. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  58. package/esm/core/async/async.js +1 -1
  59. package/esm/core/constants.js +1 -1
  60. package/esm/core/helpers/utils/append-script.d.ts +1 -4
  61. package/esm/core/helpers/utils/append-script.js +2 -2
  62. package/esm/jodit.d.ts +3 -0
  63. package/esm/jodit.js +4 -1
  64. package/package.json +1 -1
  65. package/types/core/helpers/utils/append-script.d.ts +1 -4
  66. package/types/jodit.d.ts +3 -0
  67. package/es5/975.fat.min.js +0 -10
  68. package/es5/975.min.js +0 -10
package/es2015/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.5
4
+ * Version: v4.5.9
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
- /***/ 7865:
22
+ /***/ 52201:
23
23
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
24
24
 
25
25
  "use strict";
@@ -1298,7 +1298,7 @@ class Async {
1298
1298
  const t = {};
1299
1299
  return Promise.race([p, t]).then(v => (v === t ? 'pending' : 'fulfilled'), () => 'rejected');
1300
1300
  }
1301
- requestIdleCallback(callback, options) {
1301
+ requestIdleCallback(callback, options = { timeout: 100 }) {
1302
1302
  const request = this.requestIdleCallbackNative(callback, options);
1303
1303
  this.requestsIdle.add(request);
1304
1304
  return request;
@@ -1742,7 +1742,7 @@ __webpack_require__.r(__webpack_exports__);
1742
1742
  * Released under MIT see LICENSE.txt in the project root for license information.
1743
1743
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1744
1744
  */
1745
- const APP_VERSION = "4.5.5";
1745
+ const APP_VERSION = "4.5.9";
1746
1746
  // prettier-ignore
1747
1747
  const ES = "es2015";
1748
1748
  const IS_ES_MODERN = true;
@@ -2133,7 +2133,7 @@ class Create {
2133
2133
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2134
2134
  /* harmony export */ d: function() { return /* reexport safe */ autobind_decorator__WEBPACK_IMPORTED_MODULE_0__.Ay; }
2135
2135
  /* harmony export */ });
2136
- /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7865);
2136
+ /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52201);
2137
2137
  /*!
2138
2138
  * Jodit Editor (https://xdsoft.net/jodit/)
2139
2139
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -7437,13 +7437,13 @@ function alignElement(command, box) {
7437
7437
 
7438
7438
  "use strict";
7439
7439
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7440
+ /* harmony export */ EW: function() { return /* binding */ alreadyLoadedList; },
7440
7441
  /* harmony export */ Qt: function() { return /* binding */ loadNext; },
7441
7442
  /* harmony export */ S5: function() { return /* binding */ appendStyleAsync; },
7442
7443
  /* harmony export */ w4: function() { return /* binding */ appendScriptAsync; },
7443
7444
  /* harmony export */ x_: function() { return /* binding */ loadNextStyle; }
7444
7445
  /* harmony export */ });
7445
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
7446
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
7446
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98253);
7447
7447
  /* harmony import */ var _complete_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60346);
7448
7448
  /*!
7449
7449
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -7452,17 +7452,16 @@ function alignElement(command, box) {
7452
7452
  */
7453
7453
 
7454
7454
 
7455
-
7456
7455
  const alreadyLoadedList = new Map();
7457
7456
  const cacheLoaders = (loader) => {
7458
- return (jodit, url) => (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__awaiter */ .sH)(void 0, void 0, void 0, function* () {
7457
+ return (jodit, url) => {
7459
7458
  if (alreadyLoadedList.has(url)) {
7460
7459
  return alreadyLoadedList.get(url);
7461
7460
  }
7462
7461
  const promise = loader(jodit, url);
7463
7462
  alreadyLoadedList.set(url, promise);
7464
7463
  return promise;
7465
- });
7464
+ };
7466
7465
  };
7467
7466
  /**
7468
7467
  * Load script and return promise
@@ -7508,13 +7507,13 @@ const appendStyleAsync = cacheLoaders((jodit, url) => {
7508
7507
  });
7509
7508
  });
7510
7509
  function loadNext(jodit, urls, i = 0) {
7511
- if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(urls[i])) {
7510
+ if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(urls[i])) {
7512
7511
  return Promise.resolve();
7513
7512
  }
7514
7513
  return appendScriptAsync(jodit, urls[i]).then(() => loadNext(jodit, urls, i + 1));
7515
7514
  }
7516
7515
  function loadNextStyle(jodit, urls, i = 0) {
7517
- if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(urls[i])) {
7516
+ if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(urls[i])) {
7518
7517
  return Promise.resolve();
7519
7518
  }
7520
7519
  return appendStyleAsync(jodit, urls[i]).then(() => loadNextStyle(jodit, urls, i + 1));
@@ -8468,6 +8467,7 @@ __webpack_require__.r(__webpack_exports__);
8468
8467
  /* harmony export */ OptionsError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.ZW; },
8469
8468
  /* harmony export */ abort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.h2; },
8470
8469
  /* harmony export */ alignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.Op; },
8470
+ /* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.EW; },
8471
8471
  /* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.w4; },
8472
8472
  /* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.S5; },
8473
8473
  /* harmony export */ attr: function() { return /* reexport safe */ _attr__WEBPACK_IMPORTED_MODULE_3__.C; },
@@ -8520,7 +8520,7 @@ __webpack_require__.r(__webpack_exports__);
8520
8520
  /* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
8521
8521
  /* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_assert__WEBPACK_IMPORTED_MODULE_2__);
8522
8522
  /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
8523
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _assert__WEBPACK_IMPORTED_MODULE_2__) if(["default","alignElement","clearAlign","hAlignElement","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _assert__WEBPACK_IMPORTED_MODULE_2__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
8523
+ /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _assert__WEBPACK_IMPORTED_MODULE_2__) if(["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _assert__WEBPACK_IMPORTED_MODULE_2__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
8524
8524
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
8525
8525
  /* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26150);
8526
8526
  /* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65717);
@@ -9805,7 +9805,7 @@ Plugin.requires = [];
9805
9805
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
9806
9806
  /* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64890);
9807
9807
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17352);
9808
- /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7865);
9808
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(52201);
9809
9809
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
9810
9810
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50156);
9811
9811
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
@@ -15954,7 +15954,7 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
15954
15954
  /* harmony export */ });
15955
15955
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
15956
15956
  /* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64567);
15957
- /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7865);
15957
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(52201);
15958
15958
  /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66927);
15959
15959
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
15960
15960
  /* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32709);
@@ -16495,9 +16495,12 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16495
16495
  this.hookStatus('ready', () => resolve(this));
16496
16496
  });
16497
16497
  }
16498
+ /**
16499
+ * @deprecated I don't know why I wrote itp
16500
+ */
16498
16501
  static get ready() {
16499
16502
  return new Promise(resolve => {
16500
- jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .eventEmitter */ .RR.on('oditready', resolve);
16503
+ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .eventEmitter */ .RR.on('joditready', resolve);
16501
16504
  });
16502
16505
  }
16503
16506
  /**