jodit 4.1.5 → 4.1.7
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 +9 -5
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +350 -5510
- 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 +349 -5509
- 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 +349 -5509
- 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 +348 -5508
- 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 +21 -10
- 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/constants.js +1 -1
- package/esm/index.js +0 -7
- package/esm/plugins/ai-assistant/ai-assistant.d.ts +2 -2
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +5 -1
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +18 -7
- package/package.json +1 -1
- package/types/plugins/ai-assistant/ai-assistant.d.ts +2 -2
- package/types/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +5 -1
- package/esm/polyfills.d.ts +0 -10
- package/types/polyfills.d.ts +0 -10
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.7
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -3096,7 +3096,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3096
3096
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
3097
3097
|
*/
|
|
3098
3098
|
|
|
3099
|
-
var APP_VERSION = "4.1.
|
|
3099
|
+
var APP_VERSION = "4.1.7";
|
|
3100
3100
|
// prettier-ignore
|
|
3101
3101
|
var ES = "es5";
|
|
3102
3102
|
var IS_ES_MODERN = false;
|
|
@@ -27861,11 +27861,12 @@ var UiAiAssistant = /** @class */ (function (_super) {
|
|
|
27861
27861
|
var onSubmit = function () {
|
|
27862
27862
|
if (_this.__formAiAssistant.validate()) {
|
|
27863
27863
|
_this.__formAiAssistant.submit();
|
|
27864
|
-
_this.
|
|
27864
|
+
_this.__toggleInsertButton(true);
|
|
27865
|
+
_this.__toggleSubmitButton(true);
|
|
27865
27866
|
}
|
|
27866
27867
|
};
|
|
27867
27868
|
_this.__submitButton = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .Button */ .$n)(jodit, 'ai-assistant', '').onAction(onSubmit);
|
|
27868
|
-
_this.__tryAgainButton = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .Button */ .$n)(jodit, '', '
|
|
27869
|
+
_this.__tryAgainButton = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .Button */ .$n)(jodit, 'update', '', 'initial').onAction(onSubmit);
|
|
27869
27870
|
_this.promptInput = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(jodit, {
|
|
27870
27871
|
name: 'prompt',
|
|
27871
27872
|
required: true,
|
|
@@ -27918,9 +27919,10 @@ var UiAiAssistant = /** @class */ (function (_super) {
|
|
|
27918
27919
|
]
|
|
27919
27920
|
.filter(Boolean)
|
|
27920
27921
|
.join(' ');
|
|
27922
|
+
this.__toggleInsertButton(true);
|
|
27921
27923
|
if (this.promptInput.value) {
|
|
27922
27924
|
this.__formAiAssistant.submit();
|
|
27923
|
-
this.
|
|
27925
|
+
this.__toggleSubmitButton(true);
|
|
27924
27926
|
}
|
|
27925
27927
|
}
|
|
27926
27928
|
this.promptInput.focus();
|
|
@@ -27930,21 +27932,30 @@ var UiAiAssistant = /** @class */ (function (_super) {
|
|
|
27930
27932
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.detach(this.__results);
|
|
27931
27933
|
this.__aiResult = result;
|
|
27932
27934
|
this.__results.appendChild(this.jodit.c.fromHTML(result));
|
|
27933
|
-
this.
|
|
27935
|
+
this.__toggleSubmitButton(false);
|
|
27936
|
+
this.__toggleInsertButton(false);
|
|
27934
27937
|
};
|
|
27935
27938
|
UiAiAssistant.prototype.onAiAssistentError = function (error) {
|
|
27936
27939
|
this.__aiResult = '';
|
|
27937
27940
|
this.setMod('loading', false);
|
|
27938
27941
|
this.__error.textContent = error;
|
|
27939
|
-
this.
|
|
27942
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.detach(this.__results);
|
|
27943
|
+
this.__toggleSubmitButton(false);
|
|
27944
|
+
var hideMod = this.getFullElName('', 'hide', 'true');
|
|
27945
|
+
this.__results.classList.add(hideMod);
|
|
27946
|
+
this.__toggleInsertButton(true);
|
|
27940
27947
|
};
|
|
27941
27948
|
UiAiAssistant.prototype.onChangePromptValue = function () {
|
|
27942
|
-
this.
|
|
27949
|
+
this.__toggleSubmitButton(!this.promptInput.value);
|
|
27943
27950
|
};
|
|
27944
|
-
UiAiAssistant.prototype.
|
|
27951
|
+
UiAiAssistant.prototype.__toggleSubmitButton = function (value) {
|
|
27945
27952
|
this.__submitButton.state.disabled = value;
|
|
27946
27953
|
this.__tryAgainButton.state.disabled = value;
|
|
27947
27954
|
};
|
|
27955
|
+
UiAiAssistant.prototype.__toggleInsertButton = function (value) {
|
|
27956
|
+
this.__insertButton.state.disabled = value;
|
|
27957
|
+
this.__insertAfterButton.state.disabled = value;
|
|
27958
|
+
};
|
|
27948
27959
|
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
27949
27960
|
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay)(':ai-assistant-response')
|
|
27950
27961
|
], UiAiAssistant.prototype, "onAiAssistentResponse", null);
|
|
@@ -50132,7 +50143,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50132
50143
|
|
|
50133
50144
|
|
|
50134
50145
|
|
|
50135
|
-
// JODIT-SECTION-END:POLYFILLS
|
|
50136
50146
|
|
|
50137
50147
|
|
|
50138
50148
|
|
|
@@ -50143,6 +50153,7 @@ if (typeof process !== 'undefined' &&
|
|
|
50143
50153
|
typeof window !== 'undefined') {
|
|
50144
50154
|
__webpack_require__(19005);
|
|
50145
50155
|
}
|
|
50156
|
+
// JODIT-SECTION-END:POLYFILLS
|
|
50146
50157
|
// copy constants in Jodit
|
|
50147
50158
|
Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach(function (key) {
|
|
50148
50159
|
_jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
|
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.7
|
|
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.7
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|