jodit-pro 4.11.22 → 4.11.23
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/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +190 -2
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +8 -4
- package/es2021/jodit.js +102 -2
- package/es2021/jodit.min.js +7 -3
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +9 -5
- package/es2021.en/jodit.js +102 -2
- package/es2021.en/jodit.min.js +11 -7
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +293 -2
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/ai-assistant-pro/core/block-utils.js +1 -1
- package/package.json +1 -1
package/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.11.
|
|
4
|
+
* Version: v4.11.23
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1772,7 +1772,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1772
1772
|
* ```
|
|
1773
1773
|
* @packageDocumentation
|
|
1774
1774
|
* @module constants
|
|
1775
|
-
*/ const APP_VERSION = "4.11.
|
|
1775
|
+
*/ const APP_VERSION = "4.11.23";
|
|
1776
1776
|
// prettier-ignore
|
|
1777
1777
|
const ES = "es2015";
|
|
1778
1778
|
const IS_ES_MODERN = true;
|
|
@@ -9390,6 +9390,80 @@ __decorate([
|
|
|
9390
9390
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
|
|
9391
9391
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(57459);
|
|
9392
9392
|
/* harmony import */ var _response_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(98582);
|
|
9393
|
+
function _async_generator(gen) {
|
|
9394
|
+
var front, back;
|
|
9395
|
+
function send(key, arg) {
|
|
9396
|
+
return new Promise(function(resolve, reject) {
|
|
9397
|
+
var request = {
|
|
9398
|
+
key: key,
|
|
9399
|
+
arg: arg,
|
|
9400
|
+
resolve: resolve,
|
|
9401
|
+
reject: reject,
|
|
9402
|
+
next: null
|
|
9403
|
+
};
|
|
9404
|
+
if (back) back = back.next = request;
|
|
9405
|
+
else {
|
|
9406
|
+
front = back = request;
|
|
9407
|
+
resume(key, arg);
|
|
9408
|
+
}
|
|
9409
|
+
});
|
|
9410
|
+
}
|
|
9411
|
+
function resume(key, arg) {
|
|
9412
|
+
try {
|
|
9413
|
+
var result = gen[key](arg);
|
|
9414
|
+
var value = result.value;
|
|
9415
|
+
var overloaded = value instanceof _overload_yield;
|
|
9416
|
+
Promise.resolve(overloaded ? value.v : value).then(function(arg) {
|
|
9417
|
+
if (overloaded) {
|
|
9418
|
+
var nextKey = key === "return" ? "return" : "next";
|
|
9419
|
+
if (!value.k || arg.done) return resume(nextKey, arg);
|
|
9420
|
+
else arg = gen[nextKey](arg).value;
|
|
9421
|
+
}
|
|
9422
|
+
settle(result.done ? "return" : "normal", arg);
|
|
9423
|
+
}, function(err) {
|
|
9424
|
+
resume("throw", err);
|
|
9425
|
+
});
|
|
9426
|
+
} catch (err) {
|
|
9427
|
+
settle("throw", err);
|
|
9428
|
+
}
|
|
9429
|
+
}
|
|
9430
|
+
function settle(type, value) {
|
|
9431
|
+
switch(type){
|
|
9432
|
+
case "return":
|
|
9433
|
+
front.resolve({
|
|
9434
|
+
value: value,
|
|
9435
|
+
done: true
|
|
9436
|
+
});
|
|
9437
|
+
break;
|
|
9438
|
+
case "throw":
|
|
9439
|
+
front.reject(value);
|
|
9440
|
+
break;
|
|
9441
|
+
default:
|
|
9442
|
+
front.resolve({
|
|
9443
|
+
value: value,
|
|
9444
|
+
done: false
|
|
9445
|
+
});
|
|
9446
|
+
break;
|
|
9447
|
+
}
|
|
9448
|
+
front = front.next;
|
|
9449
|
+
if (front) resume(front.key, front.arg);
|
|
9450
|
+
else back = null;
|
|
9451
|
+
}
|
|
9452
|
+
this._invoke = send;
|
|
9453
|
+
if (typeof gen.return !== "function") this.return = undefined;
|
|
9454
|
+
}
|
|
9455
|
+
_async_generator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
9456
|
+
return this;
|
|
9457
|
+
};
|
|
9458
|
+
_async_generator.prototype.next = function(arg) {
|
|
9459
|
+
return this._invoke("next", arg);
|
|
9460
|
+
};
|
|
9461
|
+
_async_generator.prototype.throw = function(arg) {
|
|
9462
|
+
return this._invoke("throw", arg);
|
|
9463
|
+
};
|
|
9464
|
+
_async_generator.prototype.return = function(arg) {
|
|
9465
|
+
return this._invoke("return", arg);
|
|
9466
|
+
};
|
|
9393
9467
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
9394
9468
|
try {
|
|
9395
9469
|
var info = gen[key](arg);
|
|
@@ -9419,6 +9493,9 @@ function _async_to_generator(fn) {
|
|
|
9419
9493
|
});
|
|
9420
9494
|
};
|
|
9421
9495
|
}
|
|
9496
|
+
function _await_async_generator(value) {
|
|
9497
|
+
return new _overload_yield(value, 0);
|
|
9498
|
+
}
|
|
9422
9499
|
function _define_property(obj, key, value) {
|
|
9423
9500
|
if (key in obj) {
|
|
9424
9501
|
Object.defineProperty(obj, key, {
|
|
@@ -9447,6 +9524,15 @@ function _object_spread(target) {
|
|
|
9447
9524
|
}
|
|
9448
9525
|
return target;
|
|
9449
9526
|
}
|
|
9527
|
+
function _overload_yield(value, kind) {
|
|
9528
|
+
this.v = value;
|
|
9529
|
+
this.k = kind;
|
|
9530
|
+
}
|
|
9531
|
+
function _wrap_async_generator(fn) {
|
|
9532
|
+
return function() {
|
|
9533
|
+
return new _async_generator(fn.apply(this, arguments));
|
|
9534
|
+
};
|
|
9535
|
+
}
|
|
9450
9536
|
/*!
|
|
9451
9537
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9452
9538
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9559,6 +9645,108 @@ class Ajax {
|
|
|
9559
9645
|
}, 0);
|
|
9560
9646
|
}).call(this));
|
|
9561
9647
|
}
|
|
9648
|
+
stream() {
|
|
9649
|
+
return _wrap_async_generator(function*() {
|
|
9650
|
+
var _a;
|
|
9651
|
+
this.__activated = true;
|
|
9652
|
+
const { xhr, o } = this;
|
|
9653
|
+
const request = this.prepareRequest();
|
|
9654
|
+
let lastIndex = 0;
|
|
9655
|
+
let buffer = '';
|
|
9656
|
+
const queue = [];
|
|
9657
|
+
let waitResolve = null;
|
|
9658
|
+
let done = false;
|
|
9659
|
+
let streamError = null;
|
|
9660
|
+
const notify = ()=>{
|
|
9661
|
+
if (waitResolve) {
|
|
9662
|
+
const r = waitResolve;
|
|
9663
|
+
waitResolve = null;
|
|
9664
|
+
r();
|
|
9665
|
+
}
|
|
9666
|
+
};
|
|
9667
|
+
const processChunk = (final)=>{
|
|
9668
|
+
var _a;
|
|
9669
|
+
const text = xhr.responseText;
|
|
9670
|
+
buffer += text.substring(lastIndex);
|
|
9671
|
+
lastIndex = text.length;
|
|
9672
|
+
const events = buffer.split('\n\n');
|
|
9673
|
+
buffer = final ? '' : (_a = events.pop()) !== null && _a !== void 0 ? _a : '';
|
|
9674
|
+
for (const event of events){
|
|
9675
|
+
const trimmed = event.trim();
|
|
9676
|
+
if (!trimmed) {
|
|
9677
|
+
continue;
|
|
9678
|
+
}
|
|
9679
|
+
const dataLines = [];
|
|
9680
|
+
for (const line of trimmed.split('\n')){
|
|
9681
|
+
if (line.startsWith('data: ')) {
|
|
9682
|
+
dataLines.push(line.slice(6));
|
|
9683
|
+
} else if (line.startsWith('data:')) {
|
|
9684
|
+
dataLines.push(line.slice(5));
|
|
9685
|
+
}
|
|
9686
|
+
}
|
|
9687
|
+
if (dataLines.length) {
|
|
9688
|
+
queue.push(dataLines.join('\n'));
|
|
9689
|
+
}
|
|
9690
|
+
}
|
|
9691
|
+
notify();
|
|
9692
|
+
};
|
|
9693
|
+
xhr.onprogress = ()=>processChunk(false);
|
|
9694
|
+
xhr.onload = ()=>{
|
|
9695
|
+
processChunk(true);
|
|
9696
|
+
done = true;
|
|
9697
|
+
this.__isFulfilled = true;
|
|
9698
|
+
notify();
|
|
9699
|
+
};
|
|
9700
|
+
xhr.onerror = ()=>{
|
|
9701
|
+
streamError = _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__.connection('Connection error');
|
|
9702
|
+
done = true;
|
|
9703
|
+
this.__isFulfilled = true;
|
|
9704
|
+
notify();
|
|
9705
|
+
};
|
|
9706
|
+
xhr.onabort = ()=>{
|
|
9707
|
+
streamError = _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__.abort('Abort connection');
|
|
9708
|
+
done = true;
|
|
9709
|
+
this.__isFulfilled = true;
|
|
9710
|
+
notify();
|
|
9711
|
+
};
|
|
9712
|
+
xhr.withCredentials = (_a = o.withCredentials) !== null && _a !== void 0 ? _a : false;
|
|
9713
|
+
const { url, data, method } = request;
|
|
9714
|
+
xhr.open(method, url, true);
|
|
9715
|
+
if (o.contentType && xhr.setRequestHeader) {
|
|
9716
|
+
xhr.setRequestHeader('Content-type', o.contentType);
|
|
9717
|
+
}
|
|
9718
|
+
let { headers } = o;
|
|
9719
|
+
if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(headers)) {
|
|
9720
|
+
headers = yield _await_async_generator(headers.call(this));
|
|
9721
|
+
}
|
|
9722
|
+
if (headers && xhr.setRequestHeader) {
|
|
9723
|
+
Object.keys(headers).forEach((key)=>{
|
|
9724
|
+
xhr.setRequestHeader(key, headers[key]);
|
|
9725
|
+
});
|
|
9726
|
+
}
|
|
9727
|
+
xhr.send(data ? this.__buildParams(data) : undefined);
|
|
9728
|
+
try {
|
|
9729
|
+
while(true){
|
|
9730
|
+
if (queue.length > 0) {
|
|
9731
|
+
yield queue.shift();
|
|
9732
|
+
} else if (done) {
|
|
9733
|
+
break;
|
|
9734
|
+
} else {
|
|
9735
|
+
yield _await_async_generator(new Promise((r)=>{
|
|
9736
|
+
waitResolve = r;
|
|
9737
|
+
}));
|
|
9738
|
+
}
|
|
9739
|
+
}
|
|
9740
|
+
} finally{
|
|
9741
|
+
if (!this.__isFulfilled) {
|
|
9742
|
+
this.abort();
|
|
9743
|
+
}
|
|
9744
|
+
}
|
|
9745
|
+
if (streamError) {
|
|
9746
|
+
throw streamError;
|
|
9747
|
+
}
|
|
9748
|
+
}).call(this);
|
|
9749
|
+
}
|
|
9562
9750
|
prepareRequest() {
|
|
9563
9751
|
if (!this.o.url) {
|
|
9564
9752
|
throw _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__.error('Need URL for AJAX request');
|