jodit 4.1.8 → 4.1.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 +25 -5
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +135 -103
- 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 +138 -106
- 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 +138 -106
- 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 +138 -106
- 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 +138 -111
- 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.js +4 -3
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/checker/index.d.ts +1 -0
- package/esm/core/helpers/checker/index.js +1 -0
- package/esm/core/helpers/checker/is-abort-error.d.ts +10 -0
- package/esm/core/helpers/checker/is-abort-error.js +10 -0
- package/esm/core/helpers/utils/error/error.d.ts +0 -2
- package/esm/core/helpers/utils/error/error.js +1 -7
- package/esm/core/helpers/utils/error/errors/abort-error.d.ts +13 -3
- package/esm/core/helpers/utils/error/errors/abort-error.js +7 -5
- package/esm/modules/file-browser/config.d.ts +1 -0
- package/esm/modules/file-browser/config.js +1 -0
- package/esm/modules/file-browser/data-provider.d.ts +1 -1
- package/esm/modules/file-browser/data-provider.js +9 -9
- package/esm/modules/file-browser/file-browser.js +3 -3
- package/esm/modules/messages/messages.js +3 -0
- package/esm/plugins/ai-assistant/ai-assistant.js +4 -0
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +1 -1
- package/package.json +1 -1
- package/types/core/helpers/checker/index.d.ts +1 -0
- package/types/core/helpers/checker/is-abort-error.d.ts +10 -0
- package/types/core/helpers/utils/error/error.d.ts +0 -2
- package/types/core/helpers/utils/error/errors/abort-error.d.ts +13 -3
- package/types/modules/file-browser/config.d.ts +1 -0
- package/types/modules/file-browser/data-provider.d.ts +1 -1
package/es2021.en/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.
|
|
4
|
+
* Version: v4.1.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1017,6 +1017,7 @@ Config.prototype.controls = {};
|
|
|
1017
1017
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35642);
|
|
1018
1018
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
|
|
1019
1019
|
/* 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__);
|
|
1020
|
+
/* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(21567);
|
|
1020
1021
|
/*!
|
|
1021
1022
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
1022
1023
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -1031,6 +1032,7 @@ Config.prototype.controls = {};
|
|
|
1031
1032
|
|
|
1032
1033
|
|
|
1033
1034
|
|
|
1035
|
+
|
|
1034
1036
|
class Async {
|
|
1035
1037
|
constructor() {
|
|
1036
1038
|
this.timers = new Map();
|
|
@@ -1221,9 +1223,9 @@ class Async {
|
|
|
1221
1223
|
promise(executor) {
|
|
1222
1224
|
let rejectCallback = () => { };
|
|
1223
1225
|
const promise = new Promise((resolve, reject) => {
|
|
1224
|
-
|
|
1225
|
-
rejectCallback
|
|
1226
|
-
|
|
1226
|
+
rejectCallback = () => reject((0,jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_9__/* .abort */ .h)());
|
|
1227
|
+
this.promisesRejections.add(rejectCallback);
|
|
1228
|
+
executor(resolve, reject);
|
|
1227
1229
|
});
|
|
1228
1230
|
if (!promise.finally && typeof process !== 'undefined' && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_ES_NEXT) {
|
|
1229
1231
|
promise.finally = (onfinally) => {
|
|
@@ -1706,7 +1708,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1706
1708
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1707
1709
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1708
1710
|
*/
|
|
1709
|
-
const APP_VERSION = "4.1.
|
|
1711
|
+
const APP_VERSION = "4.1.11";
|
|
1710
1712
|
// prettier-ignore
|
|
1711
1713
|
const ES = "es2021";
|
|
1712
1714
|
const IS_ES_MODERN = true;
|
|
@@ -4720,59 +4722,61 @@ function hasBrowserColorPicker() {
|
|
|
4720
4722
|
|
|
4721
4723
|
"use strict";
|
|
4722
4724
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4723
|
-
/* harmony export */ AH: function() { return /* reexport safe */
|
|
4724
|
-
/* harmony export */ Bo: function() { return /* reexport safe */
|
|
4725
|
-
/* harmony export */ CE: function() { return /* reexport safe */
|
|
4726
|
-
/* harmony export */ E6: function() { return /* reexport safe */
|
|
4727
|
-
/* harmony export */ Et: function() { return /* reexport safe */
|
|
4728
|
-
/* harmony export */ Gp: function() { return /* reexport safe */
|
|
4729
|
-
/* harmony export */ Kg: function() { return /* reexport safe */
|
|
4730
|
-
/* harmony export */ Lm: function() { return /* reexport safe */
|
|
4731
|
-
/* harmony export */ Mj: function() { return /* reexport safe */
|
|
4732
|
-
/* harmony export */ P5: function() { return /* reexport safe */
|
|
4733
|
-
/* harmony export */ Qd: function() { return /* reexport safe */
|
|
4734
|
-
/* harmony export */ Rd: function() { return /* reexport safe */
|
|
4735
|
-
/* harmony export */ Tn: function() { return /* reexport safe */
|
|
4736
|
-
/* harmony export */ a3: function() { return /* reexport safe */
|
|
4737
|
-
/* harmony export */ cy: function() { return /* reexport safe */
|
|
4738
|
-
/* harmony export */ hH: function() { return /* reexport safe */
|
|
4725
|
+
/* harmony export */ AH: function() { return /* reexport safe */ _is_html__WEBPACK_IMPORTED_MODULE_6__.A; },
|
|
4726
|
+
/* harmony export */ Bo: function() { return /* reexport safe */ _is_string__WEBPACK_IMPORTED_MODULE_19__.B; },
|
|
4727
|
+
/* harmony export */ CE: function() { return /* reexport safe */ _is_html_from_word__WEBPACK_IMPORTED_MODULE_7__.C; },
|
|
4728
|
+
/* harmony export */ E6: function() { return /* reexport safe */ _is_int__WEBPACK_IMPORTED_MODULE_9__.E; },
|
|
4729
|
+
/* harmony export */ Et: function() { return /* reexport safe */ _is_number__WEBPACK_IMPORTED_MODULE_14__.E; },
|
|
4730
|
+
/* harmony export */ Gp: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.n4; },
|
|
4731
|
+
/* harmony export */ Kg: function() { return /* reexport safe */ _is_string__WEBPACK_IMPORTED_MODULE_19__.K; },
|
|
4732
|
+
/* harmony export */ Lm: function() { return /* reexport safe */ _is_boolean__WEBPACK_IMPORTED_MODULE_3__.L; },
|
|
4733
|
+
/* harmony export */ Mj: function() { return /* reexport safe */ _is_license__WEBPACK_IMPORTED_MODULE_11__.M; },
|
|
4734
|
+
/* harmony export */ P5: function() { return /* reexport safe */ _is_equal__WEBPACK_IMPORTED_MODULE_4__.P; },
|
|
4735
|
+
/* harmony export */ Qd: function() { return /* reexport safe */ _is_plain_object__WEBPACK_IMPORTED_MODULE_16__.Q; },
|
|
4736
|
+
/* harmony export */ Rd: function() { return /* reexport safe */ _is_void__WEBPACK_IMPORTED_MODULE_23__.R; },
|
|
4737
|
+
/* harmony export */ Tn: function() { return /* reexport safe */ _is_function__WEBPACK_IMPORTED_MODULE_5__.T; },
|
|
4738
|
+
/* harmony export */ a3: function() { return /* reexport safe */ _is_native_function__WEBPACK_IMPORTED_MODULE_13__.a; },
|
|
4739
|
+
/* harmony export */ cy: function() { return /* reexport safe */ _is_array__WEBPACK_IMPORTED_MODULE_2__.c; },
|
|
4740
|
+
/* harmony export */ hH: function() { return /* reexport safe */ _is_view_object__WEBPACK_IMPORTED_MODULE_22__.h; },
|
|
4739
4741
|
/* harmony export */ kC: function() { return /* reexport safe */ _has_browser_color_picker__WEBPACK_IMPORTED_MODULE_0__.k; },
|
|
4740
|
-
/* harmony export */ kO: function() { return /* reexport safe */
|
|
4741
|
-
/* harmony export */ kf: function() { return /* reexport safe */
|
|
4742
|
-
/* harmony export */ l6: function() { return /* reexport safe */
|
|
4743
|
-
/* harmony export */ mv: function() { return /* reexport safe */
|
|
4744
|
-
/* harmony export */ n4: function() { return /* reexport safe */
|
|
4745
|
-
/* harmony export */ pV: function() { return /* reexport safe */
|
|
4746
|
-
/* harmony export */ rg: function() { return /* reexport safe */
|
|
4747
|
-
/* harmony export */ uV: function() { return /* reexport safe */
|
|
4748
|
-
/* harmony export */ vM: function() { return /* reexport safe */
|
|
4749
|
-
/* harmony export */ y0: function() { return /* reexport safe */
|
|
4750
|
-
/* harmony export */ yL: function() { return /* reexport safe */
|
|
4742
|
+
/* harmony export */ kO: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.kO; },
|
|
4743
|
+
/* harmony export */ kf: function() { return /* reexport safe */ _is_numeric__WEBPACK_IMPORTED_MODULE_15__.k; },
|
|
4744
|
+
/* harmony export */ l6: function() { return /* reexport safe */ _is_window__WEBPACK_IMPORTED_MODULE_24__.l; },
|
|
4745
|
+
/* harmony export */ mv: function() { return /* reexport safe */ _is_url__WEBPACK_IMPORTED_MODULE_20__.m; },
|
|
4746
|
+
/* harmony export */ n4: function() { return /* reexport safe */ _is_equal__WEBPACK_IMPORTED_MODULE_4__.n; },
|
|
4747
|
+
/* harmony export */ pV: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.pV; },
|
|
4748
|
+
/* harmony export */ rg: function() { return /* reexport safe */ _is_marker__WEBPACK_IMPORTED_MODULE_12__.r; },
|
|
4749
|
+
/* harmony export */ uV: function() { return /* reexport safe */ _is_valid_name__WEBPACK_IMPORTED_MODULE_21__.u; },
|
|
4750
|
+
/* harmony export */ vM: function() { return /* reexport safe */ _is_set__WEBPACK_IMPORTED_MODULE_18__.v; },
|
|
4751
|
+
/* harmony export */ y0: function() { return /* reexport safe */ _is_jodit_object__WEBPACK_IMPORTED_MODULE_10__.y; },
|
|
4752
|
+
/* harmony export */ yL: function() { return /* reexport safe */ _is_promise__WEBPACK_IMPORTED_MODULE_17__.y; },
|
|
4753
|
+
/* harmony export */ zf: function() { return /* reexport safe */ _is_abort_error__WEBPACK_IMPORTED_MODULE_1__.z; }
|
|
4751
4754
|
/* harmony export */ });
|
|
4752
4755
|
/* harmony import */ var _has_browser_color_picker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78479);
|
|
4753
|
-
/* harmony import */ var
|
|
4754
|
-
/* harmony import */ var
|
|
4755
|
-
/* harmony import */ var
|
|
4756
|
-
/* harmony import */ var
|
|
4757
|
-
/* harmony import */ var
|
|
4758
|
-
/* harmony import */ var
|
|
4759
|
-
/* harmony import */ var
|
|
4760
|
-
/* harmony import */ var
|
|
4761
|
-
/* harmony import */ var
|
|
4762
|
-
/* harmony import */ var
|
|
4763
|
-
/* harmony import */ var
|
|
4764
|
-
/* harmony import */ var
|
|
4765
|
-
/* harmony import */ var
|
|
4766
|
-
/* harmony import */ var
|
|
4767
|
-
/* harmony import */ var
|
|
4768
|
-
/* harmony import */ var
|
|
4769
|
-
/* harmony import */ var
|
|
4770
|
-
/* harmony import */ var
|
|
4771
|
-
/* harmony import */ var
|
|
4772
|
-
/* harmony import */ var
|
|
4773
|
-
/* harmony import */ var
|
|
4774
|
-
/* harmony import */ var
|
|
4775
|
-
/* harmony import */ var
|
|
4756
|
+
/* harmony import */ var _is_abort_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99951);
|
|
4757
|
+
/* harmony import */ var _is_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37923);
|
|
4758
|
+
/* harmony import */ var _is_boolean__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9810);
|
|
4759
|
+
/* harmony import */ var _is_equal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69810);
|
|
4760
|
+
/* harmony import */ var _is_function__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(69052);
|
|
4761
|
+
/* harmony import */ var _is_html__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(53701);
|
|
4762
|
+
/* harmony import */ var _is_html_from_word__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21811);
|
|
4763
|
+
/* harmony import */ var _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(10058);
|
|
4764
|
+
/* harmony import */ var _is_int__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3947);
|
|
4765
|
+
/* harmony import */ var _is_jodit_object__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83044);
|
|
4766
|
+
/* harmony import */ var _is_license__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82201);
|
|
4767
|
+
/* harmony import */ var _is_marker__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(71274);
|
|
4768
|
+
/* harmony import */ var _is_native_function__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(34796);
|
|
4769
|
+
/* harmony import */ var _is_number__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2461);
|
|
4770
|
+
/* harmony import */ var _is_numeric__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(12461);
|
|
4771
|
+
/* harmony import */ var _is_plain_object__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(25376);
|
|
4772
|
+
/* harmony import */ var _is_promise__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(92039);
|
|
4773
|
+
/* harmony import */ var _is_set__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(53470);
|
|
4774
|
+
/* harmony import */ var _is_string__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(98253);
|
|
4775
|
+
/* harmony import */ var _is_url__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(6939);
|
|
4776
|
+
/* harmony import */ var _is_valid_name__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(59082);
|
|
4777
|
+
/* harmony import */ var _is_view_object__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(12041);
|
|
4778
|
+
/* harmony import */ var _is_void__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(35642);
|
|
4779
|
+
/* harmony import */ var _is_window__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(76776);
|
|
4776
4780
|
/*!
|
|
4777
4781
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4778
4782
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4805,6 +4809,28 @@ function hasBrowserColorPicker() {
|
|
|
4805
4809
|
|
|
4806
4810
|
|
|
4807
4811
|
|
|
4812
|
+
|
|
4813
|
+
|
|
4814
|
+
|
|
4815
|
+
/***/ }),
|
|
4816
|
+
|
|
4817
|
+
/***/ 99951:
|
|
4818
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4819
|
+
|
|
4820
|
+
"use strict";
|
|
4821
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4822
|
+
/* harmony export */ z: function() { return /* binding */ isAbortError; }
|
|
4823
|
+
/* harmony export */ });
|
|
4824
|
+
/*!
|
|
4825
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4826
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4827
|
+
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
4828
|
+
*/
|
|
4829
|
+
function isAbortError(error) {
|
|
4830
|
+
return (Boolean(error) &&
|
|
4831
|
+
error instanceof DOMException &&
|
|
4832
|
+
error.name === 'AbortError');
|
|
4833
|
+
}
|
|
4808
4834
|
|
|
4809
4835
|
|
|
4810
4836
|
/***/ }),
|
|
@@ -5994,6 +6020,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5994
6020
|
/* harmony export */ htmlspecialchars: function() { return /* reexport safe */ _html__WEBPACK_IMPORTED_MODULE_4__.Gq; },
|
|
5995
6021
|
/* harmony export */ i18n: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_7__.Ru; },
|
|
5996
6022
|
/* harmony export */ innerWidth: function() { return /* reexport safe */ _size__WEBPACK_IMPORTED_MODULE_6__.xM; },
|
|
6023
|
+
/* harmony export */ isAbortError: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.zf; },
|
|
5997
6024
|
/* harmony export */ isArray: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.cy; },
|
|
5998
6025
|
/* harmony export */ isBoolean: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.Lm; },
|
|
5999
6026
|
/* harmony export */ isDestructable: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.pV; },
|
|
@@ -6057,7 +6084,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6057
6084
|
/* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6589);
|
|
6058
6085
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97369);
|
|
6059
6086
|
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
6060
|
-
/* 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__)
|
|
6087
|
+
/* 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__)
|
|
6061
6088
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
6062
6089
|
/*!
|
|
6063
6090
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -7823,8 +7850,6 @@ const defaultLanguage = (language, defaultLanguage = 'en') => {
|
|
|
7823
7850
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7824
7851
|
/* harmony export */ FI: function() { return /* binding */ connection; },
|
|
7825
7852
|
/* harmony export */ fF: function() { return /* binding */ options; },
|
|
7826
|
-
/* harmony export */ h2: function() { return /* binding */ abort; },
|
|
7827
|
-
/* harmony export */ rV: function() { return /* binding */ isAbort; },
|
|
7828
7853
|
/* harmony export */ z3: function() { return /* binding */ error; }
|
|
7829
7854
|
/* harmony export */ });
|
|
7830
7855
|
/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20222);
|
|
@@ -7849,12 +7874,6 @@ function connection(message) {
|
|
|
7849
7874
|
function options(message) {
|
|
7850
7875
|
return new _errors__WEBPACK_IMPORTED_MODULE_0__/* .OptionsError */ .ZW(message);
|
|
7851
7876
|
}
|
|
7852
|
-
function abort(message) {
|
|
7853
|
-
return new _errors__WEBPACK_IMPORTED_MODULE_0__/* .AbortError */ .lc(message);
|
|
7854
|
-
}
|
|
7855
|
-
function isAbort(error) {
|
|
7856
|
-
return error instanceof _errors__WEBPACK_IMPORTED_MODULE_0__/* .AbortError */ .lc;
|
|
7857
|
-
}
|
|
7858
7877
|
|
|
7859
7878
|
|
|
7860
7879
|
/***/ }),
|
|
@@ -7864,8 +7883,10 @@ function isAbort(error) {
|
|
|
7864
7883
|
|
|
7865
7884
|
"use strict";
|
|
7866
7885
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7867
|
-
/* harmony export */
|
|
7886
|
+
/* harmony export */ h: function() { return /* binding */ abort; },
|
|
7887
|
+
/* harmony export */ r: function() { return /* binding */ isAbort; }
|
|
7868
7888
|
/* harmony export */ });
|
|
7889
|
+
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(99951);
|
|
7869
7890
|
/*!
|
|
7870
7891
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7871
7892
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7874,12 +7895,14 @@ function isAbort(error) {
|
|
|
7874
7895
|
/**
|
|
7875
7896
|
* @module helpers/utils
|
|
7876
7897
|
*/
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
Object.setPrototypeOf(this, AbortError.prototype);
|
|
7881
|
-
}
|
|
7898
|
+
|
|
7899
|
+
function abort(message = 'Aborted') {
|
|
7900
|
+
return new DOMException(message, 'AbortError');
|
|
7882
7901
|
}
|
|
7902
|
+
/**
|
|
7903
|
+
* @deprecated use `isAbortError` instead
|
|
7904
|
+
*/
|
|
7905
|
+
const isAbort = jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__/* .isAbortError */ .z;
|
|
7883
7906
|
|
|
7884
7907
|
|
|
7885
7908
|
/***/ }),
|
|
@@ -7916,7 +7939,8 @@ class ConnectionError extends Error {
|
|
|
7916
7939
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7917
7940
|
/* harmony export */ Rc: function() { return /* reexport safe */ _connection_error__WEBPACK_IMPORTED_MODULE_1__.R; },
|
|
7918
7941
|
/* harmony export */ ZW: function() { return /* reexport safe */ _options_error__WEBPACK_IMPORTED_MODULE_2__.Z; },
|
|
7919
|
-
/* harmony export */
|
|
7942
|
+
/* harmony export */ h2: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.h; },
|
|
7943
|
+
/* harmony export */ rV: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.r; }
|
|
7920
7944
|
/* harmony export */ });
|
|
7921
7945
|
/* harmony import */ var _abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21567);
|
|
7922
7946
|
/* harmony import */ var _connection_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30495);
|
|
@@ -7970,9 +7994,8 @@ class OptionsError extends TypeError {
|
|
|
7970
7994
|
/* harmony export */ Rc: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.Rc; },
|
|
7971
7995
|
/* harmony export */ ZW: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.ZW; },
|
|
7972
7996
|
/* harmony export */ fF: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.fF; },
|
|
7973
|
-
/* harmony export */ h2: function() { return /* reexport safe */
|
|
7974
|
-
/* harmony export */
|
|
7975
|
-
/* harmony export */ rV: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.rV; },
|
|
7997
|
+
/* harmony export */ h2: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.h2; },
|
|
7998
|
+
/* harmony export */ rV: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.rV; },
|
|
7976
7999
|
/* harmony export */ z3: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.z3; }
|
|
7977
8000
|
/* harmony export */ });
|
|
7978
8001
|
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76166);
|
|
@@ -8163,7 +8186,6 @@ const humanSizeToBytes = (human) => {
|
|
|
8163
8186
|
__webpack_require__.r(__webpack_exports__);
|
|
8164
8187
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8165
8188
|
/* harmony export */ $$: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_23__.$$; },
|
|
8166
|
-
/* harmony export */ AbortError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.lc; },
|
|
8167
8189
|
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.V; },
|
|
8168
8190
|
/* harmony export */ ConfigProto: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.t; },
|
|
8169
8191
|
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.Rc; },
|
|
@@ -18639,10 +18661,11 @@ class FileBrowserItem {
|
|
|
18639
18661
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
18640
18662
|
|
|
18641
18663
|
"use strict";
|
|
18642
|
-
/* harmony import */ var
|
|
18643
|
-
/* harmony import */ var
|
|
18644
|
-
/* harmony import */ var
|
|
18645
|
-
/* harmony import */ var
|
|
18664
|
+
/* harmony import */ var jodit_core_request_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27337);
|
|
18665
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9823);
|
|
18666
|
+
/* harmony import */ var jodit_core_helpers_utils_human_size_to_bytes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(99898);
|
|
18667
|
+
/* harmony import */ var jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(47964);
|
|
18668
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
18646
18669
|
/*!
|
|
18647
18670
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
18648
18671
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -18652,19 +18675,20 @@ class FileBrowserItem {
|
|
|
18652
18675
|
|
|
18653
18676
|
|
|
18654
18677
|
|
|
18655
|
-
|
|
18678
|
+
|
|
18679
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser = {
|
|
18656
18680
|
namespace: '',
|
|
18657
18681
|
cache: true,
|
|
18658
18682
|
extraButtons: [],
|
|
18659
18683
|
filter(item, search) {
|
|
18660
18684
|
search = search.toLowerCase();
|
|
18661
|
-
if ((0,
|
|
18685
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(item)) {
|
|
18662
18686
|
return item.toLowerCase().indexOf(search) !== -1;
|
|
18663
18687
|
}
|
|
18664
|
-
if ((0,
|
|
18688
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(item.name)) {
|
|
18665
18689
|
return item.name.toLowerCase().indexOf(search) !== -1;
|
|
18666
18690
|
}
|
|
18667
|
-
if ((0,
|
|
18691
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(item.file)) {
|
|
18668
18692
|
return item.file.toLowerCase().indexOf(search) !== -1;
|
|
18669
18693
|
}
|
|
18670
18694
|
return true;
|
|
@@ -18681,14 +18705,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18681
18705
|
}
|
|
18682
18706
|
return 0;
|
|
18683
18707
|
};
|
|
18684
|
-
if ((0,
|
|
18708
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(a)) {
|
|
18685
18709
|
return compareStr(a.toLowerCase(), b.toLowerCase());
|
|
18686
18710
|
}
|
|
18687
18711
|
if (a[sortAttr] === undefined || sortAttr === 'name') {
|
|
18688
|
-
if ((0,
|
|
18712
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(a.name)) {
|
|
18689
18713
|
return compareStr(a.name.toLowerCase(), b.name.toLowerCase());
|
|
18690
18714
|
}
|
|
18691
|
-
if ((0,
|
|
18715
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(a.file)) {
|
|
18692
18716
|
return compareStr(a.file.toLowerCase(), b.file.toLowerCase());
|
|
18693
18717
|
}
|
|
18694
18718
|
return 0;
|
|
@@ -18699,7 +18723,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18699
18723
|
return asc ? f - s : s - f;
|
|
18700
18724
|
}
|
|
18701
18725
|
case 'size': {
|
|
18702
|
-
const f = (0,
|
|
18726
|
+
const f = (0,jodit_core_helpers_utils_human_size_to_bytes__WEBPACK_IMPORTED_MODULE_4__/* .humanSizeToBytes */ .z)(a.size), s = (0,jodit_core_helpers_utils_human_size_to_bytes__WEBPACK_IMPORTED_MODULE_4__/* .humanSizeToBytes */ .z)(b.size);
|
|
18703
18727
|
return asc ? f - s : s - f;
|
|
18704
18728
|
}
|
|
18705
18729
|
}
|
|
@@ -18760,7 +18784,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18760
18784
|
return resp.success;
|
|
18761
18785
|
},
|
|
18762
18786
|
getMessage(resp) {
|
|
18763
|
-
return resp.data.messages !== undefined && (0,
|
|
18787
|
+
return resp.data.messages !== undefined && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isArray */ .cy)(resp.data.messages)
|
|
18764
18788
|
? resp.data.messages.join(' ')
|
|
18765
18789
|
: '';
|
|
18766
18790
|
},
|
|
@@ -18806,7 +18830,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18806
18830
|
</a>`;
|
|
18807
18831
|
},
|
|
18808
18832
|
ajax: {
|
|
18809
|
-
...
|
|
18833
|
+
...jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions,
|
|
18810
18834
|
url: '',
|
|
18811
18835
|
data: {},
|
|
18812
18836
|
cache: true,
|
|
@@ -18861,13 +18885,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18861
18885
|
data: { action: 'permissions' }
|
|
18862
18886
|
}
|
|
18863
18887
|
};
|
|
18864
|
-
|
|
18888
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
|
|
18865
18889
|
upload: {
|
|
18866
18890
|
icon: 'plus',
|
|
18867
18891
|
isInput: true,
|
|
18868
18892
|
isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
|
|
18869
18893
|
getContent: (filebrowser) => {
|
|
18870
|
-
const btn = new
|
|
18894
|
+
const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
|
|
18871
18895
|
onlyImages: filebrowser.state.onlyImages
|
|
18872
18896
|
});
|
|
18873
18897
|
filebrowser.e.fire('bindUploader.filebrowser', btn.container);
|
|
@@ -19015,7 +19039,7 @@ let DataProvider = class DataProvider {
|
|
|
19015
19039
|
this.parent = parent;
|
|
19016
19040
|
this.options = options;
|
|
19017
19041
|
this.__currentPermissions = null;
|
|
19018
|
-
this.
|
|
19042
|
+
this.__ajaxInstances = new Map();
|
|
19019
19043
|
this.progressHandler = (ignore) => { };
|
|
19020
19044
|
}
|
|
19021
19045
|
/**
|
|
@@ -19025,11 +19049,11 @@ let DataProvider = class DataProvider {
|
|
|
19025
19049
|
return this.options;
|
|
19026
19050
|
}
|
|
19027
19051
|
get(name) {
|
|
19028
|
-
const
|
|
19029
|
-
if (
|
|
19030
|
-
const ajax =
|
|
19052
|
+
const instances = this.__ajaxInstances;
|
|
19053
|
+
if (instances.has(name)) {
|
|
19054
|
+
const ajax = instances.get(name);
|
|
19031
19055
|
ajax?.abort();
|
|
19032
|
-
|
|
19056
|
+
instances.delete(name);
|
|
19033
19057
|
}
|
|
19034
19058
|
const opts = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(this.options[name] !== undefined
|
|
19035
19059
|
? this.options[name]
|
|
@@ -19040,12 +19064,12 @@ let DataProvider = class DataProvider {
|
|
|
19040
19064
|
opts.data = opts.prepareData.call(this, opts.data);
|
|
19041
19065
|
}
|
|
19042
19066
|
const ajax = new jodit_core_request__WEBPACK_IMPORTED_MODULE_3__/* .Ajax */ .d(opts);
|
|
19043
|
-
|
|
19067
|
+
instances.set(name, ajax);
|
|
19044
19068
|
const promise = ajax.send();
|
|
19045
19069
|
promise
|
|
19046
19070
|
.finally(() => {
|
|
19047
19071
|
ajax.destruct();
|
|
19048
|
-
|
|
19072
|
+
instances.delete(name);
|
|
19049
19073
|
this.progressHandler(100);
|
|
19050
19074
|
})
|
|
19051
19075
|
.catch(() => null);
|
|
@@ -19363,8 +19387,8 @@ let DataProvider = class DataProvider {
|
|
|
19363
19387
|
return this.options.isSuccess(resp);
|
|
19364
19388
|
}
|
|
19365
19389
|
destruct() {
|
|
19366
|
-
this.
|
|
19367
|
-
this.
|
|
19390
|
+
this.__ajaxInstances.forEach(a => a.destruct());
|
|
19391
|
+
this.__ajaxInstances.clear();
|
|
19368
19392
|
}
|
|
19369
19393
|
};
|
|
19370
19394
|
DataProvider = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
@@ -19627,7 +19651,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19627
19651
|
* ```
|
|
19628
19652
|
*/
|
|
19629
19653
|
status(message, success) {
|
|
19630
|
-
if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.
|
|
19654
|
+
if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbortError)(message)) {
|
|
19631
19655
|
return;
|
|
19632
19656
|
}
|
|
19633
19657
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(message)) {
|
|
@@ -19742,7 +19766,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19742
19766
|
onlyImages: false
|
|
19743
19767
|
});
|
|
19744
19768
|
this.errorHandler = (resp) => {
|
|
19745
|
-
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.
|
|
19769
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbortError)(resp)) {
|
|
19746
19770
|
return;
|
|
19747
19771
|
}
|
|
19748
19772
|
if (resp instanceof Error) {
|
|
@@ -21854,6 +21878,9 @@ let UIMessages = class UIMessages extends jodit_core_ui_group_group__WEBPACK_IMP
|
|
|
21854
21878
|
this.async.updateTimeout(key, timeout || this.options.defaultTimeout);
|
|
21855
21879
|
return;
|
|
21856
21880
|
}
|
|
21881
|
+
if (!this.__box) {
|
|
21882
|
+
throw new Error('Container is not defined: ' + key);
|
|
21883
|
+
}
|
|
21857
21884
|
this.__box.appendChild(this.container);
|
|
21858
21885
|
const msg = new jodit_modules_messages_message__WEBPACK_IMPORTED_MODULE_1__/* .UIMessage */ .C(this.j, { text, variant });
|
|
21859
21886
|
this.append(msg);
|
|
@@ -24999,9 +25026,10 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_ent
|
|
|
24999
25026
|
|
|
25000
25027
|
"use strict";
|
|
25001
25028
|
/* unused harmony export aiAssistant */
|
|
25002
|
-
/* harmony import */ var
|
|
25029
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
|
|
25003
25030
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66927);
|
|
25004
25031
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
25032
|
+
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(99951);
|
|
25005
25033
|
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29866);
|
|
25006
25034
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66888);
|
|
25007
25035
|
/* harmony import */ var _ui_ui_ai_assistant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20785);
|
|
@@ -25018,6 +25046,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_ent
|
|
|
25018
25046
|
|
|
25019
25047
|
|
|
25020
25048
|
|
|
25049
|
+
|
|
25021
25050
|
/**
|
|
25022
25051
|
* The plugin inserts content generated by AI into the editor.
|
|
25023
25052
|
*/
|
|
@@ -25087,6 +25116,9 @@ class aiAssistant extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/
|
|
|
25087
25116
|
jodit.e.fire('ai-assistant-response', htmlFragment);
|
|
25088
25117
|
})
|
|
25089
25118
|
.catch(error => {
|
|
25119
|
+
if ((0,jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_6__/* .isAbortError */ .z)(error)) {
|
|
25120
|
+
return;
|
|
25121
|
+
}
|
|
25090
25122
|
jodit.message.error(error.message);
|
|
25091
25123
|
jodit.e.fire('ai-assistant-error', error.message);
|
|
25092
25124
|
});
|
|
@@ -25094,10 +25126,10 @@ class aiAssistant extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/
|
|
|
25094
25126
|
/** @override */
|
|
25095
25127
|
beforeDestruct(_) { }
|
|
25096
25128
|
}
|
|
25097
|
-
(0,
|
|
25129
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
25098
25130
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)(':generateAiAssistantForm.ai-assistant')
|
|
25099
25131
|
], aiAssistant.prototype, "onGenerateAiAssistantForm", null);
|
|
25100
|
-
(0,
|
|
25132
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
25101
25133
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)(':invokeAiAssistant')
|
|
25102
25134
|
], aiAssistant.prototype, "onInvokeAiAssistant", null);
|
|
25103
25135
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('ai-assistant', aiAssistant);
|
|
@@ -25409,7 +25441,7 @@ let UiAiAssistant = class UiAiAssistant extends jodit_core_ui_element__WEBPACK_I
|
|
|
25409
25441
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)(':ai-assistant-error')
|
|
25410
25442
|
], UiAiAssistant.prototype, "onAiAssistentError", null);
|
|
25411
25443
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
25412
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)('promptInput
|
|
25444
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)('promptInput:change')
|
|
25413
25445
|
], UiAiAssistant.prototype, "onChangePromptValue", null);
|
|
25414
25446
|
UiAiAssistant = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
25415
25447
|
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__/* .component */ .s
|