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/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.
|
|
4
|
+
* Version: v4.1.11
|
|
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
|
-
|
|
2552
|
-
rejectCallback
|
|
2553
|
-
|
|
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.
|
|
3101
|
+
var APP_VERSION = "4.1.11";
|
|
3100
3102
|
// prettier-ignore
|
|
3101
3103
|
var ES = "es5";
|
|
3102
3104
|
var IS_ES_MODERN = false;
|
|
@@ -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 */
|
|
6322
|
-
/* harmony export */ Bo: function() { return /* reexport safe */
|
|
6323
|
-
/* harmony export */ CE: function() { return /* reexport safe */
|
|
6324
|
-
/* harmony export */ E6: function() { return /* reexport safe */
|
|
6325
|
-
/* harmony export */ Et: function() { return /* reexport safe */
|
|
6326
|
-
/* harmony export */ Gp: function() { return /* reexport safe */
|
|
6327
|
-
/* harmony export */ Kg: function() { return /* reexport safe */
|
|
6328
|
-
/* harmony export */ Lm: function() { return /* reexport safe */
|
|
6329
|
-
/* harmony export */ Mj: function() { return /* reexport safe */
|
|
6330
|
-
/* harmony export */ P5: function() { return /* reexport safe */
|
|
6331
|
-
/* harmony export */ Qd: function() { return /* reexport safe */
|
|
6332
|
-
/* harmony export */ Rd: function() { return /* reexport safe */
|
|
6333
|
-
/* harmony export */ Tn: function() { return /* reexport safe */
|
|
6334
|
-
/* harmony export */ a3: function() { return /* reexport safe */
|
|
6335
|
-
/* harmony export */ cy: function() { return /* reexport safe */
|
|
6336
|
-
/* harmony export */ hH: function() { return /* reexport safe */
|
|
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 */
|
|
6339
|
-
/* harmony export */ kf: function() { return /* reexport safe */
|
|
6340
|
-
/* harmony export */ l6: function() { return /* reexport safe */
|
|
6341
|
-
/* harmony export */ mv: function() { return /* reexport safe */
|
|
6342
|
-
/* harmony export */ n4: function() { return /* reexport safe */
|
|
6343
|
-
/* harmony export */ pV: function() { return /* reexport safe */
|
|
6344
|
-
/* harmony export */ rg: function() { return /* reexport safe */
|
|
6345
|
-
/* harmony export */ uV: function() { return /* reexport safe */
|
|
6346
|
-
/* harmony export */ vM: function() { return /* reexport safe */
|
|
6347
|
-
/* harmony export */ y0: function() { return /* reexport safe */
|
|
6348
|
-
/* harmony export */ yL: function() { return /* reexport safe */
|
|
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
|
|
6352
|
-
/* harmony import */ var
|
|
6353
|
-
/* harmony import */ var
|
|
6354
|
-
/* harmony import */ var
|
|
6355
|
-
/* harmony import */ var
|
|
6356
|
-
/* harmony import */ var
|
|
6357
|
-
/* harmony import */ var
|
|
6358
|
-
/* harmony import */ var
|
|
6359
|
-
/* harmony import */ var
|
|
6360
|
-
/* harmony import */ var
|
|
6361
|
-
/* harmony import */ var
|
|
6362
|
-
/* harmony import */ var
|
|
6363
|
-
/* harmony import */ var
|
|
6364
|
-
/* harmony import */ var
|
|
6365
|
-
/* harmony import */ var
|
|
6366
|
-
/* harmony import */ var
|
|
6367
|
-
/* harmony import */ var
|
|
6368
|
-
/* harmony import */ var
|
|
6369
|
-
/* harmony import */ var
|
|
6370
|
-
/* harmony import */ var
|
|
6371
|
-
/* harmony import */ var
|
|
6372
|
-
/* harmony import */ var
|
|
6373
|
-
/* harmony import */ var
|
|
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 */
|
|
9533
|
+
/* harmony export */ h: function() { return /* binding */ abort; },
|
|
9534
|
+
/* harmony export */ r: function() { return /* binding */ isAbort; }
|
|
9515
9535
|
/* harmony export */ });
|
|
9516
|
-
/* harmony import */ var
|
|
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 */
|
|
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 */
|
|
9639
|
-
/* harmony export */
|
|
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; },
|
|
@@ -20960,11 +20977,12 @@ var FileBrowserItem = /** @class */ (function () {
|
|
|
20960
20977
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
20961
20978
|
|
|
20962
20979
|
"use strict";
|
|
20963
|
-
/* harmony import */ var
|
|
20964
|
-
/* harmony import */ var
|
|
20965
|
-
/* harmony import */ var
|
|
20966
|
-
/* harmony import */ var
|
|
20967
|
-
/* harmony import */ var
|
|
20980
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
|
|
20981
|
+
/* harmony import */ var jodit_core_request_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27337);
|
|
20982
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9823);
|
|
20983
|
+
/* harmony import */ var jodit_core_helpers_utils_human_size_to_bytes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(99898);
|
|
20984
|
+
/* harmony import */ var jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(47964);
|
|
20985
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
|
|
20968
20986
|
/*!
|
|
20969
20987
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
20970
20988
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -20975,26 +20993,27 @@ var FileBrowserItem = /** @class */ (function () {
|
|
|
20975
20993
|
|
|
20976
20994
|
|
|
20977
20995
|
|
|
20978
|
-
|
|
20996
|
+
|
|
20997
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser = {
|
|
20979
20998
|
namespace: '',
|
|
20980
20999
|
cache: true,
|
|
20981
21000
|
extraButtons: [],
|
|
20982
21001
|
filter: function (item, search) {
|
|
20983
21002
|
search = search.toLowerCase();
|
|
20984
|
-
if ((0,
|
|
21003
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(item)) {
|
|
20985
21004
|
return item.toLowerCase().indexOf(search) !== -1;
|
|
20986
21005
|
}
|
|
20987
|
-
if ((0,
|
|
21006
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(item.name)) {
|
|
20988
21007
|
return item.name.toLowerCase().indexOf(search) !== -1;
|
|
20989
21008
|
}
|
|
20990
|
-
if ((0,
|
|
21009
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(item.file)) {
|
|
20991
21010
|
return item.file.toLowerCase().indexOf(search) !== -1;
|
|
20992
21011
|
}
|
|
20993
21012
|
return true;
|
|
20994
21013
|
},
|
|
20995
21014
|
sortBy: 'changed-desc',
|
|
20996
21015
|
sort: function (a, b, sortBy) {
|
|
20997
|
-
var _a = (0,
|
|
21016
|
+
var _a = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__read */ .zs)(sortBy.toLowerCase().split('-'), 2), sortAttr = _a[0], arrow = _a[1], asc = arrow === 'asc';
|
|
20998
21017
|
var compareStr = function (f, s) {
|
|
20999
21018
|
if (f < s) {
|
|
21000
21019
|
return asc ? -1 : 1;
|
|
@@ -21004,14 +21023,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
21004
21023
|
}
|
|
21005
21024
|
return 0;
|
|
21006
21025
|
};
|
|
21007
|
-
if ((0,
|
|
21026
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(a)) {
|
|
21008
21027
|
return compareStr(a.toLowerCase(), b.toLowerCase());
|
|
21009
21028
|
}
|
|
21010
21029
|
if (a[sortAttr] === undefined || sortAttr === 'name') {
|
|
21011
|
-
if ((0,
|
|
21030
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(a.name)) {
|
|
21012
21031
|
return compareStr(a.name.toLowerCase(), b.name.toLowerCase());
|
|
21013
21032
|
}
|
|
21014
|
-
if ((0,
|
|
21033
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(a.file)) {
|
|
21015
21034
|
return compareStr(a.file.toLowerCase(), b.file.toLowerCase());
|
|
21016
21035
|
}
|
|
21017
21036
|
return 0;
|
|
@@ -21022,7 +21041,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
21022
21041
|
return asc ? f - s : s - f;
|
|
21023
21042
|
}
|
|
21024
21043
|
case 'size': {
|
|
21025
|
-
var f = (0,
|
|
21044
|
+
var f = (0,jodit_core_helpers_utils_human_size_to_bytes__WEBPACK_IMPORTED_MODULE_5__/* .humanSizeToBytes */ .z)(a.size), s = (0,jodit_core_helpers_utils_human_size_to_bytes__WEBPACK_IMPORTED_MODULE_5__/* .humanSizeToBytes */ .z)(b.size);
|
|
21026
21045
|
return asc ? f - s : s - f;
|
|
21027
21046
|
}
|
|
21028
21047
|
}
|
|
@@ -21083,7 +21102,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
21083
21102
|
return resp.success;
|
|
21084
21103
|
},
|
|
21085
21104
|
getMessage: function (resp) {
|
|
21086
|
-
return resp.data.messages !== undefined && (0,
|
|
21105
|
+
return resp.data.messages !== undefined && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isArray */ .cy)(resp.data.messages)
|
|
21087
21106
|
? resp.data.messages.join(' ')
|
|
21088
21107
|
: '';
|
|
21089
21108
|
},
|
|
@@ -21109,7 +21128,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
21109
21128
|
: '', "</div>");
|
|
21110
21129
|
return "<a\n\t\t\tdata-jodit-file-browser-item=\"true\"\n\t\t\tdata-is-file=\"".concat(item.isImage ? 0 : 1, "\"\n\t\t\tdraggable=\"true\"\n\t\t\tclass=\"").concat(IC, "\"\n\t\t\thref=\"").concat(item.fileURL, "\"\n\t\t\tdata-source=\"").concat(source_name, "\"\n\t\t\tdata-path=\"").concat(item.path, "\"\n\t\t\tdata-name=\"").concat(name, "\"\n\t\t\ttitle=\"").concat(name, "\"\n\t\t\tdata-url=\"").concat(item.fileURL, "\">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file=\"").concat(item.isImage ? 0 : 1, "\"\n\t\t\t\t\tdata-src=\"").concat(item.fileURL, "\"\n\t\t\t\t\tsrc=\"").concat(item.imageURL, "\"\n\t\t\t\t\talt=\"").concat(name, "\"\n\t\t\t\t\tloading=\"lazy\"\n\t\t\t\t/>\n\t\t\t\t").concat(showName || showSize || showTime ? info : '', "\n\t\t\t</a>");
|
|
21111
21130
|
},
|
|
21112
|
-
ajax: (0,
|
|
21131
|
+
ajax: (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__assign */ .Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__assign */ .Cl)({}, 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: function (data) {
|
|
21113
21132
|
return data;
|
|
21114
21133
|
}, process: function (resp) {
|
|
21115
21134
|
return resp;
|
|
@@ -21154,7 +21173,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.filebrowser
|
|
|
21154
21173
|
data: { action: 'permissions' }
|
|
21155
21174
|
}
|
|
21156
21175
|
};
|
|
21157
|
-
|
|
21176
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
|
|
21158
21177
|
upload: {
|
|
21159
21178
|
icon: 'plus',
|
|
21160
21179
|
isInput: true,
|
|
@@ -21162,7 +21181,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fil
|
|
|
21162
21181
|
return !browser.dataProvider.canI('FileUpload');
|
|
21163
21182
|
},
|
|
21164
21183
|
getContent: function (filebrowser) {
|
|
21165
|
-
var btn = new
|
|
21184
|
+
var btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
|
|
21166
21185
|
onlyImages: filebrowser.state.onlyImages
|
|
21167
21186
|
});
|
|
21168
21187
|
filebrowser.e.fire('bindUploader.filebrowser', btn.container);
|
|
@@ -21316,7 +21335,7 @@ var DataProvider = /** @class */ (function () {
|
|
|
21316
21335
|
this.parent = parent;
|
|
21317
21336
|
this.options = options;
|
|
21318
21337
|
this.__currentPermissions = null;
|
|
21319
|
-
this.
|
|
21338
|
+
this.__ajaxInstances = new Map();
|
|
21320
21339
|
this.progressHandler = function (ignore) { };
|
|
21321
21340
|
}
|
|
21322
21341
|
Object.defineProperty(DataProvider.prototype, "o", {
|
|
@@ -21331,11 +21350,11 @@ var DataProvider = /** @class */ (function () {
|
|
|
21331
21350
|
});
|
|
21332
21351
|
DataProvider.prototype.get = function (name) {
|
|
21333
21352
|
var _this = this;
|
|
21334
|
-
var
|
|
21335
|
-
if (
|
|
21336
|
-
var ajax_1 =
|
|
21353
|
+
var instances = this.__ajaxInstances;
|
|
21354
|
+
if (instances.has(name)) {
|
|
21355
|
+
var ajax_1 = instances.get(name);
|
|
21337
21356
|
ajax_1 === null || ajax_1 === void 0 ? void 0 : ajax_1.abort();
|
|
21338
|
-
|
|
21357
|
+
instances.delete(name);
|
|
21339
21358
|
}
|
|
21340
21359
|
var opts = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(this.options[name] !== undefined
|
|
21341
21360
|
? this.options[name]
|
|
@@ -21346,12 +21365,12 @@ var DataProvider = /** @class */ (function () {
|
|
|
21346
21365
|
opts.data = opts.prepareData.call(this, opts.data);
|
|
21347
21366
|
}
|
|
21348
21367
|
var ajax = new jodit_core_request__WEBPACK_IMPORTED_MODULE_3__/* .Ajax */ .d(opts);
|
|
21349
|
-
|
|
21368
|
+
instances.set(name, ajax);
|
|
21350
21369
|
var promise = ajax.send();
|
|
21351
21370
|
promise
|
|
21352
21371
|
.finally(function () {
|
|
21353
21372
|
ajax.destruct();
|
|
21354
|
-
|
|
21373
|
+
instances.delete(name);
|
|
21355
21374
|
_this.progressHandler(100);
|
|
21356
21375
|
})
|
|
21357
21376
|
.catch(function () { return null; });
|
|
@@ -21701,8 +21720,8 @@ var DataProvider = /** @class */ (function () {
|
|
|
21701
21720
|
return this.options.isSuccess(resp);
|
|
21702
21721
|
};
|
|
21703
21722
|
DataProvider.prototype.destruct = function () {
|
|
21704
|
-
this.
|
|
21705
|
-
this.
|
|
21723
|
+
this.__ajaxInstances.forEach(function (a) { return a.destruct(); });
|
|
21724
|
+
this.__ajaxInstances.clear();
|
|
21706
21725
|
};
|
|
21707
21726
|
DataProvider = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
|
|
21708
21727
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
@@ -21929,7 +21948,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
21929
21948
|
onlyImages: false
|
|
21930
21949
|
});
|
|
21931
21950
|
_this.errorHandler = function (resp) {
|
|
21932
|
-
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.
|
|
21951
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbortError)(resp)) {
|
|
21933
21952
|
return;
|
|
21934
21953
|
}
|
|
21935
21954
|
if (resp instanceof Error) {
|
|
@@ -22096,7 +22115,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22096
22115
|
* ```
|
|
22097
22116
|
*/
|
|
22098
22117
|
FileBrowser.prototype.status = function (message, success) {
|
|
22099
|
-
if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.
|
|
22118
|
+
if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isAbortError)(message)) {
|
|
22100
22119
|
return;
|
|
22101
22120
|
}
|
|
22102
22121
|
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.isString)(message)) {
|
|
@@ -24261,6 +24280,9 @@ var UIMessages = /** @class */ (function (_super) {
|
|
|
24261
24280
|
this.async.updateTimeout(key, timeout || this.options.defaultTimeout);
|
|
24262
24281
|
return;
|
|
24263
24282
|
}
|
|
24283
|
+
if (!this.__box) {
|
|
24284
|
+
throw new Error('Container is not defined: ' + key);
|
|
24285
|
+
}
|
|
24264
24286
|
this.__box.appendChild(this.container);
|
|
24265
24287
|
var msg = new jodit_modules_messages_message__WEBPACK_IMPORTED_MODULE_1__/* .UIMessage */ .C(this.j, { text: text, variant: variant });
|
|
24266
24288
|
this.append(msg);
|
|
@@ -27494,6 +27516,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_ent
|
|
|
27494
27516
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
27495
27517
|
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66927);
|
|
27496
27518
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
|
|
27519
|
+
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99951);
|
|
27497
27520
|
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29866);
|
|
27498
27521
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66888);
|
|
27499
27522
|
/* harmony import */ var _ui_ui_ai_assistant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20785);
|
|
@@ -27510,6 +27533,7 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_ent
|
|
|
27510
27533
|
|
|
27511
27534
|
|
|
27512
27535
|
|
|
27536
|
+
|
|
27513
27537
|
/**
|
|
27514
27538
|
* The plugin inserts content generated by AI into the editor.
|
|
27515
27539
|
*/
|
|
@@ -27592,6 +27616,9 @@ var aiAssistant = /** @class */ (function (_super) {
|
|
|
27592
27616
|
jodit.e.fire('ai-assistant-response', htmlFragment);
|
|
27593
27617
|
})
|
|
27594
27618
|
.catch(function (error) {
|
|
27619
|
+
if ((0,jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_7__/* .isAbortError */ .z)(error)) {
|
|
27620
|
+
return;
|
|
27621
|
+
}
|
|
27595
27622
|
jodit.message.error(error.message);
|
|
27596
27623
|
jodit.e.fire('ai-assistant-error', error.message);
|
|
27597
27624
|
});
|
|
@@ -27963,7 +27990,7 @@ var UiAiAssistant = /** @class */ (function (_super) {
|
|
|
27963
27990
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)(':ai-assistant-error')
|
|
27964
27991
|
], UiAiAssistant.prototype, "onAiAssistentError", null);
|
|
27965
27992
|
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
27966
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)('promptInput
|
|
27993
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)('promptInput:change')
|
|
27967
27994
|
], UiAiAssistant.prototype, "onChangePromptValue", null);
|
|
27968
27995
|
UiAiAssistant = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
27969
27996
|
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__/* .component */ .s
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.1.
|
|
4
|
+
* Version: v4.1.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.1.
|
|
11
|
+
* Version: v4.1.11
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|