jodit 4.1.7 → 4.1.10

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 (75) hide show
  1. package/CHANGELOG.md +21 -5
  2. package/es2015/jodit.css +11 -2
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +112 -82
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +2 -2
  8. package/es2015/plugins/debug/debug.js +1 -1
  9. package/es2015/plugins/debug/debug.min.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  13. package/es2018/jodit.css +11 -2
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +2 -2
  16. package/es2018/jodit.js +115 -85
  17. package/es2018/jodit.min.css +1 -1
  18. package/es2018/jodit.min.js +2 -2
  19. package/es2018/plugins/debug/debug.js +1 -1
  20. package/es2018/plugins/debug/debug.min.js +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  22. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  23. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  24. package/es2021/jodit.css +11 -2
  25. package/es2021/jodit.fat.min.css +1 -1
  26. package/es2021/jodit.fat.min.js +2 -2
  27. package/es2021/jodit.js +115 -85
  28. package/es2021/jodit.min.css +1 -1
  29. package/es2021/jodit.min.js +2 -2
  30. package/es2021/plugins/debug/debug.js +1 -1
  31. package/es2021/plugins/debug/debug.min.js +1 -1
  32. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  33. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  34. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  35. package/es2021.en/jodit.css +11 -2
  36. package/es2021.en/jodit.fat.min.css +1 -1
  37. package/es2021.en/jodit.fat.min.js +2 -2
  38. package/es2021.en/jodit.js +115 -85
  39. package/es2021.en/jodit.min.css +1 -1
  40. package/es2021.en/jodit.min.js +2 -2
  41. package/es2021.en/plugins/debug/debug.js +1 -1
  42. package/es2021.en/plugins/debug/debug.min.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  45. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  46. package/es5/jodit.css +12 -3
  47. package/es5/jodit.fat.min.css +1 -1
  48. package/es5/jodit.fat.min.js +2 -2
  49. package/es5/jodit.js +113 -88
  50. package/es5/jodit.min.css +3 -3
  51. package/es5/jodit.min.js +2 -2
  52. package/es5/plugins/debug/debug.js +1 -1
  53. package/es5/plugins/debug/debug.min.js +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  57. package/esm/core/async/async.js +4 -3
  58. package/esm/core/constants.js +1 -1
  59. package/esm/core/helpers/checker/index.d.ts +1 -0
  60. package/esm/core/helpers/checker/index.js +1 -0
  61. package/esm/core/helpers/checker/is-abort-error.d.ts +10 -0
  62. package/esm/core/helpers/checker/is-abort-error.js +10 -0
  63. package/esm/core/helpers/utils/error/error.d.ts +0 -2
  64. package/esm/core/helpers/utils/error/error.js +1 -7
  65. package/esm/core/helpers/utils/error/errors/abort-error.d.ts +13 -3
  66. package/esm/core/helpers/utils/error/errors/abort-error.js +7 -5
  67. package/esm/modules/file-browser/file-browser.js +3 -3
  68. package/esm/modules/messages/messages.js +3 -0
  69. package/esm/plugins/ai-assistant/ai-assistant.js +7 -3
  70. package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +1 -1
  71. package/package.json +1 -1
  72. package/types/core/helpers/checker/index.d.ts +1 -0
  73. package/types/core/helpers/checker/is-abort-error.d.ts +10 -0
  74. package/types/core/helpers/utils/error/error.d.ts +0 -2
  75. package/types/core/helpers/utils/error/errors/abort-error.d.ts +13 -3
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.1.7
4
+ * Version: v4.1.10
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -2311,6 +2311,7 @@ Config.prototype.controls = {};
2311
2311
  /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35642);
2312
2312
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
2313
2313
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__);
2314
+ /* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(21567);
2314
2315
  /*!
2315
2316
  * Jodit Editor (https://xdsoft.net/jodit/)
2316
2317
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -2326,6 +2327,7 @@ Config.prototype.controls = {};
2326
2327
 
2327
2328
 
2328
2329
 
2330
+
2329
2331
  var Async = /** @class */ (function () {
2330
2332
  function Async() {
2331
2333
  var _this = this;
@@ -2548,9 +2550,9 @@ var Async = /** @class */ (function () {
2548
2550
  var _this = this;
2549
2551
  var rejectCallback = function () { };
2550
2552
  var promise = new Promise(function (resolve, reject) {
2551
- _this.promisesRejections.add(reject);
2552
- rejectCallback = function () { return reject(Error('Reject promise')); };
2553
- return executor(resolve, reject);
2553
+ rejectCallback = function () { return reject((0,jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_10__/* .abort */ .h)()); };
2554
+ _this.promisesRejections.add(rejectCallback);
2555
+ executor(resolve, reject);
2554
2556
  });
2555
2557
  if (!promise.finally && typeof process !== 'undefined' && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_ES_NEXT) {
2556
2558
  promise.finally = function (onfinally) {
@@ -3096,7 +3098,7 @@ __webpack_require__.r(__webpack_exports__);
3096
3098
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
3097
3099
  */
3098
3100
 
3099
- var APP_VERSION = "4.1.7";
3101
+ var APP_VERSION = "4.1.10";
3100
3102
  // prettier-ignore
3101
3103
  var ES = "es5";
3102
3104
  var IS_ES_MODERN = false;
@@ -3106,7 +3108,7 @@ var IS_TEST = false;
3106
3108
  var FAT_MODE = false;
3107
3109
  var HOMEPAGE = "https://xdsoft.net/jodit/";
3108
3110
  var SET_TEST = function () { return (IS_TEST = true); };
3109
- var TOKENS = {"TOKEN_GPT":"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"};
3111
+ var TOKENS = {};
3110
3112
  var INVISIBLE_SPACE = '\uFEFF';
3111
3113
  var NBSP_SPACE = '\u00A0';
3112
3114
  var INVISIBLE_SPACE_REG_EXP = function () { return /[\uFEFF]/g; };
@@ -6318,59 +6320,61 @@ function hasBrowserColorPicker() {
6318
6320
 
6319
6321
  "use strict";
6320
6322
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6321
- /* harmony export */ AH: function() { return /* reexport safe */ _is_html__WEBPACK_IMPORTED_MODULE_5__.A; },
6322
- /* harmony export */ Bo: function() { return /* reexport safe */ _is_string__WEBPACK_IMPORTED_MODULE_18__.B; },
6323
- /* harmony export */ CE: function() { return /* reexport safe */ _is_html_from_word__WEBPACK_IMPORTED_MODULE_6__.C; },
6324
- /* harmony export */ E6: function() { return /* reexport safe */ _is_int__WEBPACK_IMPORTED_MODULE_8__.E; },
6325
- /* harmony export */ Et: function() { return /* reexport safe */ _is_number__WEBPACK_IMPORTED_MODULE_13__.E; },
6326
- /* harmony export */ Gp: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_7__.n4; },
6327
- /* harmony export */ Kg: function() { return /* reexport safe */ _is_string__WEBPACK_IMPORTED_MODULE_18__.K; },
6328
- /* harmony export */ Lm: function() { return /* reexport safe */ _is_boolean__WEBPACK_IMPORTED_MODULE_2__.L; },
6329
- /* harmony export */ Mj: function() { return /* reexport safe */ _is_license__WEBPACK_IMPORTED_MODULE_10__.M; },
6330
- /* harmony export */ P5: function() { return /* reexport safe */ _is_equal__WEBPACK_IMPORTED_MODULE_3__.P; },
6331
- /* harmony export */ Qd: function() { return /* reexport safe */ _is_plain_object__WEBPACK_IMPORTED_MODULE_15__.Q; },
6332
- /* harmony export */ Rd: function() { return /* reexport safe */ _is_void__WEBPACK_IMPORTED_MODULE_22__.R; },
6333
- /* harmony export */ Tn: function() { return /* reexport safe */ _is_function__WEBPACK_IMPORTED_MODULE_4__.T; },
6334
- /* harmony export */ a3: function() { return /* reexport safe */ _is_native_function__WEBPACK_IMPORTED_MODULE_12__.a; },
6335
- /* harmony export */ cy: function() { return /* reexport safe */ _is_array__WEBPACK_IMPORTED_MODULE_1__.c; },
6336
- /* harmony export */ hH: function() { return /* reexport safe */ _is_view_object__WEBPACK_IMPORTED_MODULE_21__.h; },
6323
+ /* harmony export */ AH: function() { return /* reexport safe */ _is_html__WEBPACK_IMPORTED_MODULE_6__.A; },
6324
+ /* harmony export */ Bo: function() { return /* reexport safe */ _is_string__WEBPACK_IMPORTED_MODULE_19__.B; },
6325
+ /* harmony export */ CE: function() { return /* reexport safe */ _is_html_from_word__WEBPACK_IMPORTED_MODULE_7__.C; },
6326
+ /* harmony export */ E6: function() { return /* reexport safe */ _is_int__WEBPACK_IMPORTED_MODULE_9__.E; },
6327
+ /* harmony export */ Et: function() { return /* reexport safe */ _is_number__WEBPACK_IMPORTED_MODULE_14__.E; },
6328
+ /* harmony export */ Gp: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.n4; },
6329
+ /* harmony export */ Kg: function() { return /* reexport safe */ _is_string__WEBPACK_IMPORTED_MODULE_19__.K; },
6330
+ /* harmony export */ Lm: function() { return /* reexport safe */ _is_boolean__WEBPACK_IMPORTED_MODULE_3__.L; },
6331
+ /* harmony export */ Mj: function() { return /* reexport safe */ _is_license__WEBPACK_IMPORTED_MODULE_11__.M; },
6332
+ /* harmony export */ P5: function() { return /* reexport safe */ _is_equal__WEBPACK_IMPORTED_MODULE_4__.P; },
6333
+ /* harmony export */ Qd: function() { return /* reexport safe */ _is_plain_object__WEBPACK_IMPORTED_MODULE_16__.Q; },
6334
+ /* harmony export */ Rd: function() { return /* reexport safe */ _is_void__WEBPACK_IMPORTED_MODULE_23__.R; },
6335
+ /* harmony export */ Tn: function() { return /* reexport safe */ _is_function__WEBPACK_IMPORTED_MODULE_5__.T; },
6336
+ /* harmony export */ a3: function() { return /* reexport safe */ _is_native_function__WEBPACK_IMPORTED_MODULE_13__.a; },
6337
+ /* harmony export */ cy: function() { return /* reexport safe */ _is_array__WEBPACK_IMPORTED_MODULE_2__.c; },
6338
+ /* harmony export */ hH: function() { return /* reexport safe */ _is_view_object__WEBPACK_IMPORTED_MODULE_22__.h; },
6337
6339
  /* harmony export */ kC: function() { return /* reexport safe */ _has_browser_color_picker__WEBPACK_IMPORTED_MODULE_0__.k; },
6338
- /* harmony export */ kO: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_7__.kO; },
6339
- /* harmony export */ kf: function() { return /* reexport safe */ _is_numeric__WEBPACK_IMPORTED_MODULE_14__.k; },
6340
- /* harmony export */ l6: function() { return /* reexport safe */ _is_window__WEBPACK_IMPORTED_MODULE_23__.l; },
6341
- /* harmony export */ mv: function() { return /* reexport safe */ _is_url__WEBPACK_IMPORTED_MODULE_19__.m; },
6342
- /* harmony export */ n4: function() { return /* reexport safe */ _is_equal__WEBPACK_IMPORTED_MODULE_3__.n; },
6343
- /* harmony export */ pV: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_7__.pV; },
6344
- /* harmony export */ rg: function() { return /* reexport safe */ _is_marker__WEBPACK_IMPORTED_MODULE_11__.r; },
6345
- /* harmony export */ uV: function() { return /* reexport safe */ _is_valid_name__WEBPACK_IMPORTED_MODULE_20__.u; },
6346
- /* harmony export */ vM: function() { return /* reexport safe */ _is_set__WEBPACK_IMPORTED_MODULE_17__.v; },
6347
- /* harmony export */ y0: function() { return /* reexport safe */ _is_jodit_object__WEBPACK_IMPORTED_MODULE_9__.y; },
6348
- /* harmony export */ yL: function() { return /* reexport safe */ _is_promise__WEBPACK_IMPORTED_MODULE_16__.y; }
6340
+ /* harmony export */ kO: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.kO; },
6341
+ /* harmony export */ kf: function() { return /* reexport safe */ _is_numeric__WEBPACK_IMPORTED_MODULE_15__.k; },
6342
+ /* harmony export */ l6: function() { return /* reexport safe */ _is_window__WEBPACK_IMPORTED_MODULE_24__.l; },
6343
+ /* harmony export */ mv: function() { return /* reexport safe */ _is_url__WEBPACK_IMPORTED_MODULE_20__.m; },
6344
+ /* harmony export */ n4: function() { return /* reexport safe */ _is_equal__WEBPACK_IMPORTED_MODULE_4__.n; },
6345
+ /* harmony export */ pV: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.pV; },
6346
+ /* harmony export */ rg: function() { return /* reexport safe */ _is_marker__WEBPACK_IMPORTED_MODULE_12__.r; },
6347
+ /* harmony export */ uV: function() { return /* reexport safe */ _is_valid_name__WEBPACK_IMPORTED_MODULE_21__.u; },
6348
+ /* harmony export */ vM: function() { return /* reexport safe */ _is_set__WEBPACK_IMPORTED_MODULE_18__.v; },
6349
+ /* harmony export */ y0: function() { return /* reexport safe */ _is_jodit_object__WEBPACK_IMPORTED_MODULE_10__.y; },
6350
+ /* harmony export */ yL: function() { return /* reexport safe */ _is_promise__WEBPACK_IMPORTED_MODULE_17__.y; },
6351
+ /* harmony export */ zf: function() { return /* reexport safe */ _is_abort_error__WEBPACK_IMPORTED_MODULE_1__.z; }
6349
6352
  /* harmony export */ });
6350
6353
  /* harmony import */ var _has_browser_color_picker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78479);
6351
- /* harmony import */ var _is_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37923);
6352
- /* harmony import */ var _is_boolean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9810);
6353
- /* harmony import */ var _is_equal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69810);
6354
- /* harmony import */ var _is_function__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69052);
6355
- /* harmony import */ var _is_html__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53701);
6356
- /* harmony import */ var _is_html_from_word__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21811);
6357
- /* harmony import */ var _is_imp_interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10058);
6358
- /* harmony import */ var _is_int__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3947);
6359
- /* harmony import */ var _is_jodit_object__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83044);
6360
- /* harmony import */ var _is_license__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(82201);
6361
- /* harmony import */ var _is_marker__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(71274);
6362
- /* harmony import */ var _is_native_function__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34796);
6363
- /* harmony import */ var _is_number__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(2461);
6364
- /* harmony import */ var _is_numeric__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(12461);
6365
- /* harmony import */ var _is_plain_object__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(25376);
6366
- /* harmony import */ var _is_promise__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(92039);
6367
- /* harmony import */ var _is_set__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(53470);
6368
- /* harmony import */ var _is_string__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(98253);
6369
- /* harmony import */ var _is_url__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(6939);
6370
- /* harmony import */ var _is_valid_name__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(59082);
6371
- /* harmony import */ var _is_view_object__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(12041);
6372
- /* harmony import */ var _is_void__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(35642);
6373
- /* harmony import */ var _is_window__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(76776);
6354
+ /* harmony import */ var _is_abort_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99951);
6355
+ /* harmony import */ var _is_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37923);
6356
+ /* harmony import */ var _is_boolean__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9810);
6357
+ /* harmony import */ var _is_equal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69810);
6358
+ /* harmony import */ var _is_function__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(69052);
6359
+ /* harmony import */ var _is_html__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(53701);
6360
+ /* harmony import */ var _is_html_from_word__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21811);
6361
+ /* harmony import */ var _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(10058);
6362
+ /* harmony import */ var _is_int__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3947);
6363
+ /* harmony import */ var _is_jodit_object__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83044);
6364
+ /* harmony import */ var _is_license__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82201);
6365
+ /* harmony import */ var _is_marker__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(71274);
6366
+ /* harmony import */ var _is_native_function__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(34796);
6367
+ /* harmony import */ var _is_number__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2461);
6368
+ /* harmony import */ var _is_numeric__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(12461);
6369
+ /* harmony import */ var _is_plain_object__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(25376);
6370
+ /* harmony import */ var _is_promise__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(92039);
6371
+ /* harmony import */ var _is_set__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(53470);
6372
+ /* harmony import */ var _is_string__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(98253);
6373
+ /* harmony import */ var _is_url__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(6939);
6374
+ /* harmony import */ var _is_valid_name__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(59082);
6375
+ /* harmony import */ var _is_view_object__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(12041);
6376
+ /* harmony import */ var _is_void__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(35642);
6377
+ /* harmony import */ var _is_window__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(76776);
6374
6378
  /*!
6375
6379
  * Jodit Editor (https://xdsoft.net/jodit/)
6376
6380
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -6403,6 +6407,28 @@ function hasBrowserColorPicker() {
6403
6407
 
6404
6408
 
6405
6409
 
6410
+
6411
+
6412
+
6413
+ /***/ }),
6414
+
6415
+ /***/ 99951:
6416
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6417
+
6418
+ "use strict";
6419
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6420
+ /* harmony export */ z: function() { return /* binding */ isAbortError; }
6421
+ /* harmony export */ });
6422
+ /*!
6423
+ * Jodit Editor (https://xdsoft.net/jodit/)
6424
+ * Released under MIT see LICENSE.txt in the project root for license information.
6425
+ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
6426
+ */
6427
+ function isAbortError(error) {
6428
+ return (Boolean(error) &&
6429
+ error instanceof DOMException &&
6430
+ error.name === 'AbortError');
6431
+ }
6406
6432
 
6407
6433
 
6408
6434
  /***/ }),
@@ -7607,6 +7633,7 @@ __webpack_require__.r(__webpack_exports__);
7607
7633
  /* harmony export */ htmlspecialchars: function() { return /* reexport safe */ _html__WEBPACK_IMPORTED_MODULE_4__.Gq; },
7608
7634
  /* harmony export */ i18n: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_7__.Ru; },
7609
7635
  /* harmony export */ innerWidth: function() { return /* reexport safe */ _size__WEBPACK_IMPORTED_MODULE_6__.xM; },
7636
+ /* harmony export */ isAbortError: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.zf; },
7610
7637
  /* harmony export */ isArray: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.cy; },
7611
7638
  /* harmony export */ isBoolean: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.Lm; },
7612
7639
  /* harmony export */ isDestructable: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.pV; },
@@ -7670,7 +7697,7 @@ __webpack_require__.r(__webpack_exports__);
7670
7697
  /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6589);
7671
7698
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97369);
7672
7699
  /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
7673
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _utils__WEBPACK_IMPORTED_MODULE_8__) if(["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _utils__WEBPACK_IMPORTED_MODULE_8__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
7700
+ /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _utils__WEBPACK_IMPORTED_MODULE_8__) if(["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _utils__WEBPACK_IMPORTED_MODULE_8__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
7674
7701
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
7675
7702
  /*!
7676
7703
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -9470,8 +9497,6 @@ var defaultLanguage = function (language, defaultLanguage) {
9470
9497
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9471
9498
  /* harmony export */ FI: function() { return /* binding */ connection; },
9472
9499
  /* harmony export */ fF: function() { return /* binding */ options; },
9473
- /* harmony export */ h2: function() { return /* binding */ abort; },
9474
- /* harmony export */ rV: function() { return /* binding */ isAbort; },
9475
9500
  /* harmony export */ z3: function() { return /* binding */ error; }
9476
9501
  /* harmony export */ });
9477
9502
  /* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20222);
@@ -9496,12 +9521,6 @@ function connection(message) {
9496
9521
  function options(message) {
9497
9522
  return new _errors__WEBPACK_IMPORTED_MODULE_0__/* .OptionsError */ .ZW(message);
9498
9523
  }
9499
- function abort(message) {
9500
- return new _errors__WEBPACK_IMPORTED_MODULE_0__/* .AbortError */ .lc(message);
9501
- }
9502
- function isAbort(error) {
9503
- return error instanceof _errors__WEBPACK_IMPORTED_MODULE_0__/* .AbortError */ .lc;
9504
- }
9505
9524
 
9506
9525
 
9507
9526
  /***/ }),
@@ -9511,28 +9530,27 @@ function isAbort(error) {
9511
9530
 
9512
9531
  "use strict";
9513
9532
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9514
- /* harmony export */ l: function() { return /* binding */ AbortError; }
9533
+ /* harmony export */ h: function() { return /* binding */ abort; },
9534
+ /* harmony export */ r: function() { return /* binding */ isAbort; }
9515
9535
  /* harmony export */ });
9516
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
9536
+ /* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(99951);
9517
9537
  /*!
9518
9538
  * Jodit Editor (https://xdsoft.net/jodit/)
9519
9539
  * Released under MIT see LICENSE.txt in the project root for license information.
9520
9540
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
9521
9541
  */
9522
-
9523
9542
  /**
9524
9543
  * @module helpers/utils
9525
9544
  */
9526
- var AbortError = /** @class */ (function (_super) {
9527
- (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(AbortError, _super);
9528
- function AbortError(m) {
9529
- var _this = _super.call(this, m) || this;
9530
- Object.setPrototypeOf(_this, AbortError.prototype);
9531
- return _this;
9532
- }
9533
- return AbortError;
9534
- }(Error));
9535
9545
 
9546
+ function abort(message) {
9547
+ if (message === void 0) { message = 'Aborted'; }
9548
+ return new DOMException(message, 'AbortError');
9549
+ }
9550
+ /**
9551
+ * @deprecated use `isAbortError` instead
9552
+ */
9553
+ var isAbort = jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__/* .isAbortError */ .z;
9536
9554
 
9537
9555
 
9538
9556
  /***/ }),
@@ -9575,7 +9593,8 @@ var ConnectionError = /** @class */ (function (_super) {
9575
9593
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9576
9594
  /* harmony export */ Rc: function() { return /* reexport safe */ _connection_error__WEBPACK_IMPORTED_MODULE_1__.R; },
9577
9595
  /* harmony export */ ZW: function() { return /* reexport safe */ _options_error__WEBPACK_IMPORTED_MODULE_2__.Z; },
9578
- /* harmony export */ lc: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.l; }
9596
+ /* harmony export */ h2: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.h; },
9597
+ /* harmony export */ rV: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.r; }
9579
9598
  /* harmony export */ });
9580
9599
  /* harmony import */ var _abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21567);
9581
9600
  /* harmony import */ var _connection_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30495);
@@ -9635,9 +9654,8 @@ var OptionsError = /** @class */ (function (_super) {
9635
9654
  /* harmony export */ Rc: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.Rc; },
9636
9655
  /* harmony export */ ZW: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.ZW; },
9637
9656
  /* harmony export */ fF: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.fF; },
9638
- /* harmony export */ h2: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.h2; },
9639
- /* harmony export */ lc: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.lc; },
9640
- /* harmony export */ rV: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.rV; },
9657
+ /* harmony export */ h2: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.h2; },
9658
+ /* harmony export */ rV: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.rV; },
9641
9659
  /* harmony export */ z3: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.z3; }
9642
9660
  /* harmony export */ });
9643
9661
  /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76166);
@@ -9842,7 +9860,6 @@ var humanSizeToBytes = function (human) {
9842
9860
  __webpack_require__.r(__webpack_exports__);
9843
9861
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9844
9862
  /* harmony export */ $$: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_23__.$$; },
9845
- /* harmony export */ AbortError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.lc; },
9846
9863
  /* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.V; },
9847
9864
  /* harmony export */ ConfigProto: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.t; },
9848
9865
  /* harmony export */ ConnectionError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.Rc; },
@@ -21929,7 +21946,7 @@ var FileBrowser = /** @class */ (function (_super) {
21929
21946
  onlyImages: false
21930
21947
  });
21931
21948
  _this.errorHandler = function (resp) {
21932
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbort)(resp)) {
21949
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbortError)(resp)) {
21933
21950
  return;
21934
21951
  }
21935
21952
  if (resp instanceof Error) {
@@ -22096,7 +22113,7 @@ var FileBrowser = /** @class */ (function (_super) {
22096
22113
  * ```
22097
22114
  */
22098
22115
  FileBrowser.prototype.status = function (message, success) {
22099
- if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbort)(message)) {
22116
+ if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbortError)(message)) {
22100
22117
  return;
22101
22118
  }
22102
22119
  if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(message)) {
@@ -24261,6 +24278,9 @@ var UIMessages = /** @class */ (function (_super) {
24261
24278
  this.async.updateTimeout(key, timeout || this.options.defaultTimeout);
24262
24279
  return;
24263
24280
  }
24281
+ if (!this.__box) {
24282
+ throw new Error('Container is not defined: ' + key);
24283
+ }
24264
24284
  this.__box.appendChild(this.container);
24265
24285
  var msg = new jodit_modules_messages_message__WEBPACK_IMPORTED_MODULE_1__/* .UIMessage */ .C(this.j, { text: text, variant: variant });
24266
24286
  this.append(msg);
@@ -27494,6 +27514,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_ent
27494
27514
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
27495
27515
  /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66927);
27496
27516
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
27517
+ /* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99951);
27497
27518
  /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29866);
27498
27519
  /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66888);
27499
27520
  /* harmony import */ var _ui_ui_ai_assistant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20785);
@@ -27510,6 +27531,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_ent
27510
27531
 
27511
27532
 
27512
27533
 
27534
+
27513
27535
  /**
27514
27536
  * The plugin inserts content generated by AI into the editor.
27515
27537
  */
@@ -27540,9 +27562,9 @@ var aiAssistant = /** @class */ (function (_super) {
27540
27562
  closeOnClickOverlay: true,
27541
27563
  closeOnEsc: true,
27542
27564
  resizable: false,
27543
- draggable: true,
27544
- minWidth: 460,
27545
- maxWidth: 460
27565
+ draggable: true
27566
+ // minWidth: 460,
27567
+ // maxWidth: 460
27546
27568
  });
27547
27569
  dialog.bindDestruct(jodit);
27548
27570
  var container = new _ui_ui_ai_assistant__WEBPACK_IMPORTED_MODULE_4__/* .UiAiAssistant */ .b(jodit, {
@@ -27592,6 +27614,9 @@ var aiAssistant = /** @class */ (function (_super) {
27592
27614
  jodit.e.fire('ai-assistant-response', htmlFragment);
27593
27615
  })
27594
27616
  .catch(function (error) {
27617
+ if ((0,jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_7__/* .isAbortError */ .z)(error)) {
27618
+ return;
27619
+ }
27595
27620
  jodit.message.error(error.message);
27596
27621
  jodit.e.fire('ai-assistant-error', error.message);
27597
27622
  });
@@ -27963,7 +27988,7 @@ var UiAiAssistant = /** @class */ (function (_super) {
27963
27988
  (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)(':ai-assistant-error')
27964
27989
  ], UiAiAssistant.prototype, "onAiAssistentError", null);
27965
27990
  (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
27966
- (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)('promptInput.nativeInput:input')
27991
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)('promptInput:change')
27967
27992
  ], UiAiAssistant.prototype, "onChangePromptValue", null);
27968
27993
  UiAiAssistant = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
27969
27994
  jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__/* .component */ .s