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/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.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
|
var _a, _b, _c, _d, _e;
|
|
@@ -1220,9 +1222,9 @@ class Async {
|
|
|
1220
1222
|
promise(executor) {
|
|
1221
1223
|
let rejectCallback = () => { };
|
|
1222
1224
|
const promise = new Promise((resolve, reject) => {
|
|
1223
|
-
|
|
1224
|
-
rejectCallback
|
|
1225
|
-
|
|
1225
|
+
rejectCallback = () => reject((0,jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_9__/* .abort */ .h)());
|
|
1226
|
+
this.promisesRejections.add(rejectCallback);
|
|
1227
|
+
executor(resolve, reject);
|
|
1226
1228
|
});
|
|
1227
1229
|
if (!promise.finally && typeof process !== 'undefined' && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_ES_NEXT) {
|
|
1228
1230
|
promise.finally = (onfinally) => {
|
|
@@ -1705,7 +1707,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1705
1707
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1706
1708
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1707
1709
|
*/
|
|
1708
|
-
const APP_VERSION = "4.1.
|
|
1710
|
+
const APP_VERSION = "4.1.11";
|
|
1709
1711
|
// prettier-ignore
|
|
1710
1712
|
const ES = "es2015";
|
|
1711
1713
|
const IS_ES_MODERN = true;
|
|
@@ -4736,59 +4738,61 @@ function hasBrowserColorPicker() {
|
|
|
4736
4738
|
|
|
4737
4739
|
"use strict";
|
|
4738
4740
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4739
|
-
/* harmony export */ AH: function() { return /* reexport safe */
|
|
4740
|
-
/* harmony export */ Bo: function() { return /* reexport safe */
|
|
4741
|
-
/* harmony export */ CE: function() { return /* reexport safe */
|
|
4742
|
-
/* harmony export */ E6: function() { return /* reexport safe */
|
|
4743
|
-
/* harmony export */ Et: function() { return /* reexport safe */
|
|
4744
|
-
/* harmony export */ Gp: function() { return /* reexport safe */
|
|
4745
|
-
/* harmony export */ Kg: function() { return /* reexport safe */
|
|
4746
|
-
/* harmony export */ Lm: function() { return /* reexport safe */
|
|
4747
|
-
/* harmony export */ Mj: function() { return /* reexport safe */
|
|
4748
|
-
/* harmony export */ P5: function() { return /* reexport safe */
|
|
4749
|
-
/* harmony export */ Qd: function() { return /* reexport safe */
|
|
4750
|
-
/* harmony export */ Rd: function() { return /* reexport safe */
|
|
4751
|
-
/* harmony export */ Tn: function() { return /* reexport safe */
|
|
4752
|
-
/* harmony export */ a3: function() { return /* reexport safe */
|
|
4753
|
-
/* harmony export */ cy: function() { return /* reexport safe */
|
|
4754
|
-
/* harmony export */ hH: function() { return /* reexport safe */
|
|
4741
|
+
/* harmony export */ AH: function() { return /* reexport safe */ _is_html__WEBPACK_IMPORTED_MODULE_6__.A; },
|
|
4742
|
+
/* harmony export */ Bo: function() { return /* reexport safe */ _is_string__WEBPACK_IMPORTED_MODULE_19__.B; },
|
|
4743
|
+
/* harmony export */ CE: function() { return /* reexport safe */ _is_html_from_word__WEBPACK_IMPORTED_MODULE_7__.C; },
|
|
4744
|
+
/* harmony export */ E6: function() { return /* reexport safe */ _is_int__WEBPACK_IMPORTED_MODULE_9__.E; },
|
|
4745
|
+
/* harmony export */ Et: function() { return /* reexport safe */ _is_number__WEBPACK_IMPORTED_MODULE_14__.E; },
|
|
4746
|
+
/* harmony export */ Gp: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.n4; },
|
|
4747
|
+
/* harmony export */ Kg: function() { return /* reexport safe */ _is_string__WEBPACK_IMPORTED_MODULE_19__.K; },
|
|
4748
|
+
/* harmony export */ Lm: function() { return /* reexport safe */ _is_boolean__WEBPACK_IMPORTED_MODULE_3__.L; },
|
|
4749
|
+
/* harmony export */ Mj: function() { return /* reexport safe */ _is_license__WEBPACK_IMPORTED_MODULE_11__.M; },
|
|
4750
|
+
/* harmony export */ P5: function() { return /* reexport safe */ _is_equal__WEBPACK_IMPORTED_MODULE_4__.P; },
|
|
4751
|
+
/* harmony export */ Qd: function() { return /* reexport safe */ _is_plain_object__WEBPACK_IMPORTED_MODULE_16__.Q; },
|
|
4752
|
+
/* harmony export */ Rd: function() { return /* reexport safe */ _is_void__WEBPACK_IMPORTED_MODULE_23__.R; },
|
|
4753
|
+
/* harmony export */ Tn: function() { return /* reexport safe */ _is_function__WEBPACK_IMPORTED_MODULE_5__.T; },
|
|
4754
|
+
/* harmony export */ a3: function() { return /* reexport safe */ _is_native_function__WEBPACK_IMPORTED_MODULE_13__.a; },
|
|
4755
|
+
/* harmony export */ cy: function() { return /* reexport safe */ _is_array__WEBPACK_IMPORTED_MODULE_2__.c; },
|
|
4756
|
+
/* harmony export */ hH: function() { return /* reexport safe */ _is_view_object__WEBPACK_IMPORTED_MODULE_22__.h; },
|
|
4755
4757
|
/* harmony export */ kC: function() { return /* reexport safe */ _has_browser_color_picker__WEBPACK_IMPORTED_MODULE_0__.k; },
|
|
4756
|
-
/* harmony export */ kO: function() { return /* reexport safe */
|
|
4757
|
-
/* harmony export */ kf: function() { return /* reexport safe */
|
|
4758
|
-
/* harmony export */ l6: function() { return /* reexport safe */
|
|
4759
|
-
/* harmony export */ mv: function() { return /* reexport safe */
|
|
4760
|
-
/* harmony export */ n4: function() { return /* reexport safe */
|
|
4761
|
-
/* harmony export */ pV: function() { return /* reexport safe */
|
|
4762
|
-
/* harmony export */ rg: function() { return /* reexport safe */
|
|
4763
|
-
/* harmony export */ uV: function() { return /* reexport safe */
|
|
4764
|
-
/* harmony export */ vM: function() { return /* reexport safe */
|
|
4765
|
-
/* harmony export */ y0: function() { return /* reexport safe */
|
|
4766
|
-
/* harmony export */ yL: function() { return /* reexport safe */
|
|
4758
|
+
/* harmony export */ kO: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.kO; },
|
|
4759
|
+
/* harmony export */ kf: function() { return /* reexport safe */ _is_numeric__WEBPACK_IMPORTED_MODULE_15__.k; },
|
|
4760
|
+
/* harmony export */ l6: function() { return /* reexport safe */ _is_window__WEBPACK_IMPORTED_MODULE_24__.l; },
|
|
4761
|
+
/* harmony export */ mv: function() { return /* reexport safe */ _is_url__WEBPACK_IMPORTED_MODULE_20__.m; },
|
|
4762
|
+
/* harmony export */ n4: function() { return /* reexport safe */ _is_equal__WEBPACK_IMPORTED_MODULE_4__.n; },
|
|
4763
|
+
/* harmony export */ pV: function() { return /* reexport safe */ _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__.pV; },
|
|
4764
|
+
/* harmony export */ rg: function() { return /* reexport safe */ _is_marker__WEBPACK_IMPORTED_MODULE_12__.r; },
|
|
4765
|
+
/* harmony export */ uV: function() { return /* reexport safe */ _is_valid_name__WEBPACK_IMPORTED_MODULE_21__.u; },
|
|
4766
|
+
/* harmony export */ vM: function() { return /* reexport safe */ _is_set__WEBPACK_IMPORTED_MODULE_18__.v; },
|
|
4767
|
+
/* harmony export */ y0: function() { return /* reexport safe */ _is_jodit_object__WEBPACK_IMPORTED_MODULE_10__.y; },
|
|
4768
|
+
/* harmony export */ yL: function() { return /* reexport safe */ _is_promise__WEBPACK_IMPORTED_MODULE_17__.y; },
|
|
4769
|
+
/* harmony export */ zf: function() { return /* reexport safe */ _is_abort_error__WEBPACK_IMPORTED_MODULE_1__.z; }
|
|
4767
4770
|
/* harmony export */ });
|
|
4768
4771
|
/* harmony import */ var _has_browser_color_picker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78479);
|
|
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
|
|
4776
|
-
/* harmony import */ var
|
|
4777
|
-
/* harmony import */ var
|
|
4778
|
-
/* harmony import */ var
|
|
4779
|
-
/* harmony import */ var
|
|
4780
|
-
/* harmony import */ var
|
|
4781
|
-
/* harmony import */ var
|
|
4782
|
-
/* harmony import */ var
|
|
4783
|
-
/* harmony import */ var
|
|
4784
|
-
/* harmony import */ var
|
|
4785
|
-
/* harmony import */ var
|
|
4786
|
-
/* harmony import */ var
|
|
4787
|
-
/* harmony import */ var
|
|
4788
|
-
/* harmony import */ var
|
|
4789
|
-
/* harmony import */ var
|
|
4790
|
-
/* harmony import */ var
|
|
4791
|
-
/* harmony import */ var
|
|
4772
|
+
/* harmony import */ var _is_abort_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99951);
|
|
4773
|
+
/* harmony import */ var _is_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37923);
|
|
4774
|
+
/* harmony import */ var _is_boolean__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9810);
|
|
4775
|
+
/* harmony import */ var _is_equal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69810);
|
|
4776
|
+
/* harmony import */ var _is_function__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(69052);
|
|
4777
|
+
/* harmony import */ var _is_html__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(53701);
|
|
4778
|
+
/* harmony import */ var _is_html_from_word__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21811);
|
|
4779
|
+
/* harmony import */ var _is_imp_interface__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(10058);
|
|
4780
|
+
/* harmony import */ var _is_int__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3947);
|
|
4781
|
+
/* harmony import */ var _is_jodit_object__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83044);
|
|
4782
|
+
/* harmony import */ var _is_license__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82201);
|
|
4783
|
+
/* harmony import */ var _is_marker__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(71274);
|
|
4784
|
+
/* harmony import */ var _is_native_function__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(34796);
|
|
4785
|
+
/* harmony import */ var _is_number__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2461);
|
|
4786
|
+
/* harmony import */ var _is_numeric__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(12461);
|
|
4787
|
+
/* harmony import */ var _is_plain_object__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(25376);
|
|
4788
|
+
/* harmony import */ var _is_promise__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(92039);
|
|
4789
|
+
/* harmony import */ var _is_set__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(53470);
|
|
4790
|
+
/* harmony import */ var _is_string__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(98253);
|
|
4791
|
+
/* harmony import */ var _is_url__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(6939);
|
|
4792
|
+
/* harmony import */ var _is_valid_name__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(59082);
|
|
4793
|
+
/* harmony import */ var _is_view_object__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(12041);
|
|
4794
|
+
/* harmony import */ var _is_void__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(35642);
|
|
4795
|
+
/* harmony import */ var _is_window__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(76776);
|
|
4792
4796
|
/*!
|
|
4793
4797
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4794
4798
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4821,6 +4825,28 @@ function hasBrowserColorPicker() {
|
|
|
4821
4825
|
|
|
4822
4826
|
|
|
4823
4827
|
|
|
4828
|
+
|
|
4829
|
+
|
|
4830
|
+
|
|
4831
|
+
/***/ }),
|
|
4832
|
+
|
|
4833
|
+
/***/ 99951:
|
|
4834
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4835
|
+
|
|
4836
|
+
"use strict";
|
|
4837
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4838
|
+
/* harmony export */ z: function() { return /* binding */ isAbortError; }
|
|
4839
|
+
/* harmony export */ });
|
|
4840
|
+
/*!
|
|
4841
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4842
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4843
|
+
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
4844
|
+
*/
|
|
4845
|
+
function isAbortError(error) {
|
|
4846
|
+
return (Boolean(error) &&
|
|
4847
|
+
error instanceof DOMException &&
|
|
4848
|
+
error.name === 'AbortError');
|
|
4849
|
+
}
|
|
4824
4850
|
|
|
4825
4851
|
|
|
4826
4852
|
/***/ }),
|
|
@@ -6010,6 +6036,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6010
6036
|
/* harmony export */ htmlspecialchars: function() { return /* reexport safe */ _html__WEBPACK_IMPORTED_MODULE_4__.Gq; },
|
|
6011
6037
|
/* harmony export */ i18n: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_7__.Ru; },
|
|
6012
6038
|
/* harmony export */ innerWidth: function() { return /* reexport safe */ _size__WEBPACK_IMPORTED_MODULE_6__.xM; },
|
|
6039
|
+
/* harmony export */ isAbortError: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.zf; },
|
|
6013
6040
|
/* harmony export */ isArray: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.cy; },
|
|
6014
6041
|
/* harmony export */ isBoolean: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.Lm; },
|
|
6015
6042
|
/* harmony export */ isDestructable: function() { return /* reexport safe */ _checker__WEBPACK_IMPORTED_MODULE_2__.pV; },
|
|
@@ -6073,7 +6100,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6073
6100
|
/* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6589);
|
|
6074
6101
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97369);
|
|
6075
6102
|
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
6076
|
-
/* 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__)
|
|
6103
|
+
/* 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__)
|
|
6077
6104
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
6078
6105
|
/*!
|
|
6079
6106
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -7841,8 +7868,6 @@ const defaultLanguage = (language, defaultLanguage = 'en') => {
|
|
|
7841
7868
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7842
7869
|
/* harmony export */ FI: function() { return /* binding */ connection; },
|
|
7843
7870
|
/* harmony export */ fF: function() { return /* binding */ options; },
|
|
7844
|
-
/* harmony export */ h2: function() { return /* binding */ abort; },
|
|
7845
|
-
/* harmony export */ rV: function() { return /* binding */ isAbort; },
|
|
7846
7871
|
/* harmony export */ z3: function() { return /* binding */ error; }
|
|
7847
7872
|
/* harmony export */ });
|
|
7848
7873
|
/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20222);
|
|
@@ -7867,12 +7892,6 @@ function connection(message) {
|
|
|
7867
7892
|
function options(message) {
|
|
7868
7893
|
return new _errors__WEBPACK_IMPORTED_MODULE_0__/* .OptionsError */ .ZW(message);
|
|
7869
7894
|
}
|
|
7870
|
-
function abort(message) {
|
|
7871
|
-
return new _errors__WEBPACK_IMPORTED_MODULE_0__/* .AbortError */ .lc(message);
|
|
7872
|
-
}
|
|
7873
|
-
function isAbort(error) {
|
|
7874
|
-
return error instanceof _errors__WEBPACK_IMPORTED_MODULE_0__/* .AbortError */ .lc;
|
|
7875
|
-
}
|
|
7876
7895
|
|
|
7877
7896
|
|
|
7878
7897
|
/***/ }),
|
|
@@ -7882,8 +7901,10 @@ function isAbort(error) {
|
|
|
7882
7901
|
|
|
7883
7902
|
"use strict";
|
|
7884
7903
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7885
|
-
/* harmony export */
|
|
7904
|
+
/* harmony export */ h: function() { return /* binding */ abort; },
|
|
7905
|
+
/* harmony export */ r: function() { return /* binding */ isAbort; }
|
|
7886
7906
|
/* harmony export */ });
|
|
7907
|
+
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(99951);
|
|
7887
7908
|
/*!
|
|
7888
7909
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7889
7910
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7892,12 +7913,14 @@ function isAbort(error) {
|
|
|
7892
7913
|
/**
|
|
7893
7914
|
* @module helpers/utils
|
|
7894
7915
|
*/
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
Object.setPrototypeOf(this, AbortError.prototype);
|
|
7899
|
-
}
|
|
7916
|
+
|
|
7917
|
+
function abort(message = 'Aborted') {
|
|
7918
|
+
return new DOMException(message, 'AbortError');
|
|
7900
7919
|
}
|
|
7920
|
+
/**
|
|
7921
|
+
* @deprecated use `isAbortError` instead
|
|
7922
|
+
*/
|
|
7923
|
+
const isAbort = jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__/* .isAbortError */ .z;
|
|
7901
7924
|
|
|
7902
7925
|
|
|
7903
7926
|
/***/ }),
|
|
@@ -7934,7 +7957,8 @@ class ConnectionError extends Error {
|
|
|
7934
7957
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7935
7958
|
/* harmony export */ Rc: function() { return /* reexport safe */ _connection_error__WEBPACK_IMPORTED_MODULE_1__.R; },
|
|
7936
7959
|
/* harmony export */ ZW: function() { return /* reexport safe */ _options_error__WEBPACK_IMPORTED_MODULE_2__.Z; },
|
|
7937
|
-
/* harmony export */
|
|
7960
|
+
/* harmony export */ h2: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.h; },
|
|
7961
|
+
/* harmony export */ rV: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.r; }
|
|
7938
7962
|
/* harmony export */ });
|
|
7939
7963
|
/* harmony import */ var _abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21567);
|
|
7940
7964
|
/* harmony import */ var _connection_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30495);
|
|
@@ -7988,9 +8012,8 @@ class OptionsError extends TypeError {
|
|
|
7988
8012
|
/* harmony export */ Rc: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.Rc; },
|
|
7989
8013
|
/* harmony export */ ZW: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.ZW; },
|
|
7990
8014
|
/* harmony export */ fF: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.fF; },
|
|
7991
|
-
/* harmony export */ h2: function() { return /* reexport safe */
|
|
7992
|
-
/* harmony export */
|
|
7993
|
-
/* harmony export */ rV: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.rV; },
|
|
8015
|
+
/* harmony export */ h2: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.h2; },
|
|
8016
|
+
/* harmony export */ rV: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.rV; },
|
|
7994
8017
|
/* harmony export */ z3: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.z3; }
|
|
7995
8018
|
/* harmony export */ });
|
|
7996
8019
|
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76166);
|
|
@@ -8182,7 +8205,6 @@ const humanSizeToBytes = (human) => {
|
|
|
8182
8205
|
__webpack_require__.r(__webpack_exports__);
|
|
8183
8206
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8184
8207
|
/* harmony export */ $$: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_23__.$$; },
|
|
8185
|
-
/* harmony export */ AbortError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.lc; },
|
|
8186
8208
|
/* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.V; },
|
|
8187
8209
|
/* harmony export */ ConfigProto: function() { return /* reexport safe */ _config_proto__WEBPACK_IMPORTED_MODULE_7__.t; },
|
|
8188
8210
|
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.Rc; },
|
|
@@ -18647,10 +18669,11 @@ class FileBrowserItem {
|
|
|
18647
18669
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
18648
18670
|
|
|
18649
18671
|
"use strict";
|
|
18650
|
-
/* harmony import */ var
|
|
18651
|
-
/* harmony import */ var
|
|
18652
|
-
/* harmony import */ var
|
|
18653
|
-
/* harmony import */ var
|
|
18672
|
+
/* harmony import */ var jodit_core_request_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27337);
|
|
18673
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9823);
|
|
18674
|
+
/* harmony import */ var jodit_core_helpers_utils_human_size_to_bytes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(99898);
|
|
18675
|
+
/* harmony import */ var jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(47964);
|
|
18676
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
18654
18677
|
/*!
|
|
18655
18678
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
18656
18679
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -18660,19 +18683,20 @@ class FileBrowserItem {
|
|
|
18660
18683
|
|
|
18661
18684
|
|
|
18662
18685
|
|
|
18663
|
-
|
|
18686
|
+
|
|
18687
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser = {
|
|
18664
18688
|
namespace: '',
|
|
18665
18689
|
cache: true,
|
|
18666
18690
|
extraButtons: [],
|
|
18667
18691
|
filter(item, search) {
|
|
18668
18692
|
search = search.toLowerCase();
|
|
18669
|
-
if ((0,
|
|
18693
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(item)) {
|
|
18670
18694
|
return item.toLowerCase().indexOf(search) !== -1;
|
|
18671
18695
|
}
|
|
18672
|
-
if ((0,
|
|
18696
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(item.name)) {
|
|
18673
18697
|
return item.name.toLowerCase().indexOf(search) !== -1;
|
|
18674
18698
|
}
|
|
18675
|
-
if ((0,
|
|
18699
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(item.file)) {
|
|
18676
18700
|
return item.file.toLowerCase().indexOf(search) !== -1;
|
|
18677
18701
|
}
|
|
18678
18702
|
return true;
|
|
@@ -18689,14 +18713,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18689
18713
|
}
|
|
18690
18714
|
return 0;
|
|
18691
18715
|
};
|
|
18692
|
-
if ((0,
|
|
18716
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(a)) {
|
|
18693
18717
|
return compareStr(a.toLowerCase(), b.toLowerCase());
|
|
18694
18718
|
}
|
|
18695
18719
|
if (a[sortAttr] === undefined || sortAttr === 'name') {
|
|
18696
|
-
if ((0,
|
|
18720
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(a.name)) {
|
|
18697
18721
|
return compareStr(a.name.toLowerCase(), b.name.toLowerCase());
|
|
18698
18722
|
}
|
|
18699
|
-
if ((0,
|
|
18723
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(a.file)) {
|
|
18700
18724
|
return compareStr(a.file.toLowerCase(), b.file.toLowerCase());
|
|
18701
18725
|
}
|
|
18702
18726
|
return 0;
|
|
@@ -18707,7 +18731,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18707
18731
|
return asc ? f - s : s - f;
|
|
18708
18732
|
}
|
|
18709
18733
|
case 'size': {
|
|
18710
|
-
const f = (0,
|
|
18734
|
+
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);
|
|
18711
18735
|
return asc ? f - s : s - f;
|
|
18712
18736
|
}
|
|
18713
18737
|
}
|
|
@@ -18768,7 +18792,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18768
18792
|
return resp.success;
|
|
18769
18793
|
},
|
|
18770
18794
|
getMessage(resp) {
|
|
18771
|
-
return resp.data.messages !== undefined && (0,
|
|
18795
|
+
return resp.data.messages !== undefined && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isArray */ .cy)(resp.data.messages)
|
|
18772
18796
|
? resp.data.messages.join(' ')
|
|
18773
18797
|
: '';
|
|
18774
18798
|
},
|
|
@@ -18813,7 +18837,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18813
18837
|
${showName || showSize || showTime ? info : ''}
|
|
18814
18838
|
</a>`;
|
|
18815
18839
|
},
|
|
18816
|
-
ajax: Object.assign(Object.assign({},
|
|
18840
|
+
ajax: Object.assign(Object.assign({}, jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions), { url: '', data: {}, cache: true, contentType: 'application/x-www-form-urlencoded; charset=UTF-8', method: 'POST', processData: true, headers: {}, prepareData(data) {
|
|
18817
18841
|
return data;
|
|
18818
18842
|
},
|
|
18819
18843
|
process(resp) {
|
|
@@ -18859,13 +18883,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
18859
18883
|
data: { action: 'permissions' }
|
|
18860
18884
|
}
|
|
18861
18885
|
};
|
|
18862
|
-
|
|
18886
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
|
|
18863
18887
|
upload: {
|
|
18864
18888
|
icon: 'plus',
|
|
18865
18889
|
isInput: true,
|
|
18866
18890
|
isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
|
|
18867
18891
|
getContent: (filebrowser) => {
|
|
18868
|
-
const btn = new
|
|
18892
|
+
const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
|
|
18869
18893
|
onlyImages: filebrowser.state.onlyImages
|
|
18870
18894
|
});
|
|
18871
18895
|
filebrowser.e.fire('bindUploader.filebrowser', btn.container);
|
|
@@ -19013,7 +19037,7 @@ let DataProvider = class DataProvider {
|
|
|
19013
19037
|
this.parent = parent;
|
|
19014
19038
|
this.options = options;
|
|
19015
19039
|
this.__currentPermissions = null;
|
|
19016
|
-
this.
|
|
19040
|
+
this.__ajaxInstances = new Map();
|
|
19017
19041
|
this.progressHandler = (ignore) => { };
|
|
19018
19042
|
}
|
|
19019
19043
|
/**
|
|
@@ -19023,11 +19047,11 @@ let DataProvider = class DataProvider {
|
|
|
19023
19047
|
return this.options;
|
|
19024
19048
|
}
|
|
19025
19049
|
get(name) {
|
|
19026
|
-
const
|
|
19027
|
-
if (
|
|
19028
|
-
const ajax =
|
|
19050
|
+
const instances = this.__ajaxInstances;
|
|
19051
|
+
if (instances.has(name)) {
|
|
19052
|
+
const ajax = instances.get(name);
|
|
19029
19053
|
ajax === null || ajax === void 0 ? void 0 : ajax.abort();
|
|
19030
|
-
|
|
19054
|
+
instances.delete(name);
|
|
19031
19055
|
}
|
|
19032
19056
|
const opts = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(this.options[name] !== undefined
|
|
19033
19057
|
? this.options[name]
|
|
@@ -19038,12 +19062,12 @@ let DataProvider = class DataProvider {
|
|
|
19038
19062
|
opts.data = opts.prepareData.call(this, opts.data);
|
|
19039
19063
|
}
|
|
19040
19064
|
const ajax = new jodit_core_request__WEBPACK_IMPORTED_MODULE_3__/* .Ajax */ .d(opts);
|
|
19041
|
-
|
|
19065
|
+
instances.set(name, ajax);
|
|
19042
19066
|
const promise = ajax.send();
|
|
19043
19067
|
promise
|
|
19044
19068
|
.finally(() => {
|
|
19045
19069
|
ajax.destruct();
|
|
19046
|
-
|
|
19070
|
+
instances.delete(name);
|
|
19047
19071
|
this.progressHandler(100);
|
|
19048
19072
|
})
|
|
19049
19073
|
.catch(() => null);
|
|
@@ -19364,8 +19388,8 @@ let DataProvider = class DataProvider {
|
|
|
19364
19388
|
return this.options.isSuccess(resp);
|
|
19365
19389
|
}
|
|
19366
19390
|
destruct() {
|
|
19367
|
-
this.
|
|
19368
|
-
this.
|
|
19391
|
+
this.__ajaxInstances.forEach(a => a.destruct());
|
|
19392
|
+
this.__ajaxInstances.clear();
|
|
19369
19393
|
}
|
|
19370
19394
|
};
|
|
19371
19395
|
DataProvider = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
@@ -19633,7 +19657,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19633
19657
|
* ```
|
|
19634
19658
|
*/
|
|
19635
19659
|
status(message, success) {
|
|
19636
|
-
if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.
|
|
19660
|
+
if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbortError)(message)) {
|
|
19637
19661
|
return;
|
|
19638
19662
|
}
|
|
19639
19663
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(message)) {
|
|
@@ -19751,7 +19775,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19751
19775
|
onlyImages: false
|
|
19752
19776
|
});
|
|
19753
19777
|
this.errorHandler = (resp) => {
|
|
19754
|
-
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.
|
|
19778
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbortError)(resp)) {
|
|
19755
19779
|
return;
|
|
19756
19780
|
}
|
|
19757
19781
|
if (resp instanceof Error) {
|
|
@@ -21864,6 +21888,9 @@ let UIMessages = class UIMessages extends jodit_core_ui_group_group__WEBPACK_IMP
|
|
|
21864
21888
|
this.async.updateTimeout(key, timeout || this.options.defaultTimeout);
|
|
21865
21889
|
return;
|
|
21866
21890
|
}
|
|
21891
|
+
if (!this.__box) {
|
|
21892
|
+
throw new Error('Container is not defined: ' + key);
|
|
21893
|
+
}
|
|
21867
21894
|
this.__box.appendChild(this.container);
|
|
21868
21895
|
const msg = new jodit_modules_messages_message__WEBPACK_IMPORTED_MODULE_1__/* .UIMessage */ .C(this.j, { text, variant });
|
|
21869
21896
|
this.append(msg);
|
|
@@ -25014,6 +25041,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_ent
|
|
|
25014
25041
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
25015
25042
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66927);
|
|
25016
25043
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
25044
|
+
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99951);
|
|
25017
25045
|
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29866);
|
|
25018
25046
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66888);
|
|
25019
25047
|
/* harmony import */ var _ui_ui_ai_assistant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20785);
|
|
@@ -25030,6 +25058,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_ent
|
|
|
25030
25058
|
|
|
25031
25059
|
|
|
25032
25060
|
|
|
25061
|
+
|
|
25033
25062
|
/**
|
|
25034
25063
|
* The plugin inserts content generated by AI into the editor.
|
|
25035
25064
|
*/
|
|
@@ -25099,6 +25128,9 @@ class aiAssistant extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/
|
|
|
25099
25128
|
jodit.e.fire('ai-assistant-response', htmlFragment);
|
|
25100
25129
|
})
|
|
25101
25130
|
.catch(error => {
|
|
25131
|
+
if ((0,jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_7__/* .isAbortError */ .z)(error)) {
|
|
25132
|
+
return;
|
|
25133
|
+
}
|
|
25102
25134
|
jodit.message.error(error.message);
|
|
25103
25135
|
jodit.e.fire('ai-assistant-error', error.message);
|
|
25104
25136
|
});
|
|
@@ -25474,7 +25506,7 @@ let UiAiAssistant = class UiAiAssistant extends jodit_core_ui_element__WEBPACK_I
|
|
|
25474
25506
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)(':ai-assistant-error')
|
|
25475
25507
|
], UiAiAssistant.prototype, "onAiAssistentError", null);
|
|
25476
25508
|
(0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
25477
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)('promptInput
|
|
25509
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)('promptInput:change')
|
|
25478
25510
|
], UiAiAssistant.prototype, "onChangePromptValue", null);
|
|
25479
25511
|
UiAiAssistant = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
25480
25512
|
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__/* .component */ .s
|