jodit 4.0.0-beta.84 → 4.0.0-beta.85
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 +41 -0
- package/README.md +4 -4
- package/es2015/jodit.css +320 -41
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2470 -2258
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +4 -4
- 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 +37 -36
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.css +320 -41
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2469 -2255
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +4 -4
- 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 +37 -36
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +320 -41
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2459 -2253
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +4 -4
- 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 +37 -36
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +320 -41
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2459 -2253
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +4 -4
- 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 +37 -36
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +400 -103
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2530 -2312
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +4 -4
- 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 +38 -36
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/core/component/component.d.ts +2 -2
- package/esm/core/constants.js +2 -2
- package/esm/core/dom/dom.js +2 -2
- package/esm/core/helpers/checker/is-marker.d.ts +3 -0
- package/esm/core/helpers/normalize/normalize-size.d.ts +1 -1
- package/esm/core/helpers/normalize/normalize-size.js +2 -2
- package/esm/core/helpers/string/trim.d.ts +1 -0
- package/esm/core/helpers/string/trim.js +5 -0
- package/esm/core/helpers/utils/attr.d.ts +3 -0
- package/esm/core/helpers/utils/css.js +1 -0
- package/esm/core/plugin/interface.d.ts +3 -0
- package/esm/core/selection/style/api/has-same-style.d.ts +1 -1
- package/esm/core/selection/style/api/has-same-style.js +7 -4
- package/esm/core/selection/style/api/is-suit-element.d.ts +7 -2
- package/esm/core/selection/style/api/is-suit-element.js +21 -10
- package/esm/core/selection/style/transactions.d.ts +3 -0
- package/esm/core/selection/style/transactions.js +3 -3
- package/esm/core/storage/engines/local-storage-provider.d.ts +1 -1
- package/esm/core/storage/engines/memory-storage-provider.d.ts +1 -1
- package/esm/core/ui/button/tooltip/tooltip.d.ts +2 -2
- package/esm/core/ui/button/tooltip/tooltip.js +2 -2
- package/esm/core/ui/element.d.ts +1 -1
- package/esm/core/ui/form/block/block.d.ts +1 -1
- package/esm/core/ui/form/block/block.js +1 -1
- package/esm/core/ui/group/group.d.ts +0 -1
- package/esm/core/ui/group/group.js +0 -2
- package/esm/core/ui/group/list.d.ts +1 -0
- package/esm/core/ui/group/list.js +14 -2
- package/esm/core/ui/helpers/get-control-type.js +9 -2
- package/esm/core/ui/popup/popup.d.ts +12 -12
- package/esm/core/ui/popup/popup.js +46 -40
- package/esm/modules/file-browser/config.js +1 -1
- package/esm/modules/image-editor/config.d.ts +3 -0
- package/esm/modules/toolbar/button/button.d.ts +5 -5
- package/esm/modules/toolbar/button/button.js +25 -24
- package/esm/modules/toolbar/button/content.js +1 -1
- package/esm/modules/toolbar/button/index.d.ts +1 -0
- package/esm/modules/toolbar/button/index.js +1 -0
- package/esm/modules/toolbar/button/select/select.d.ts +15 -0
- package/esm/modules/toolbar/button/select/select.js +47 -0
- package/esm/modules/toolbar/collection/collection.d.ts +1 -0
- package/esm/modules/toolbar/collection/collection.js +4 -1
- package/esm/modules/toolbar/factory.d.ts +1 -0
- package/esm/modules/toolbar/factory.js +4 -0
- package/esm/plugins/bold/bold.js +1 -6
- package/esm/plugins/bold/interface.d.ts +3 -0
- package/esm/plugins/class-span/class-span.js +7 -7
- package/esm/plugins/color/config.js +2 -2
- package/esm/plugins/delete/interface.d.ts +3 -0
- package/esm/plugins/enter/interface.d.ts +3 -0
- package/esm/plugins/file/file.js +1 -1
- package/esm/plugins/font/config.js +63 -51
- package/esm/plugins/font/font.js +1 -1
- package/esm/plugins/format-block/config.d.ts +6 -0
- package/esm/plugins/format-block/config.js +52 -0
- package/esm/plugins/format-block/format-block.d.ts +1 -0
- package/esm/plugins/format-block/format-block.js +1 -68
- package/esm/plugins/fullsize/config.js +1 -1
- package/esm/plugins/iframe/iframe.js +11 -9
- package/esm/plugins/image/image.js +1 -1
- package/esm/plugins/image-processor/config.js +3 -0
- package/esm/plugins/inline-popup/config/items/cells.js +1 -1
- package/esm/plugins/justify/justify.js +8 -7
- package/esm/plugins/link/config.js +1 -1
- package/esm/plugins/mobile/config.js +3 -3
- package/esm/plugins/search/interface.d.ts +3 -0
- package/esm/plugins/select-cells/select-cells.d.ts +2 -0
- package/esm/plugins/symbols/config.js +1 -1
- package/esm/plugins/table/config.js +2 -1
- package/esm/plugins/video/config.js +1 -1
- package/esm/types/messages.d.ts +8 -0
- package/esm/types/popup.d.ts +3 -3
- package/esm/types/toolbar.d.ts +12 -8
- package/esm/typings.d.ts +0 -1
- package/package.json +1 -1
- package/types/core/component/component.d.ts +2 -2
- package/types/core/helpers/checker/is-marker.d.ts +3 -0
- package/types/core/helpers/normalize/normalize-size.d.ts +1 -1
- package/types/core/helpers/string/trim.d.ts +1 -0
- package/types/core/helpers/utils/attr.d.ts +3 -0
- package/types/core/plugin/interface.d.ts +3 -0
- package/types/core/selection/style/api/has-same-style.d.ts +1 -1
- package/types/core/selection/style/api/is-suit-element.d.ts +7 -2
- package/types/core/selection/style/transactions.d.ts +3 -0
- package/types/core/storage/engines/local-storage-provider.d.ts +1 -1
- package/types/core/storage/engines/memory-storage-provider.d.ts +1 -1
- package/types/core/ui/button/tooltip/tooltip.d.ts +2 -2
- package/types/core/ui/element.d.ts +1 -1
- package/types/core/ui/form/block/block.d.ts +1 -1
- package/types/core/ui/group/group.d.ts +0 -1
- package/types/core/ui/group/list.d.ts +1 -0
- package/types/core/ui/popup/popup.d.ts +12 -12
- package/types/modules/image-editor/config.d.ts +3 -0
- package/types/modules/toolbar/button/button.d.ts +5 -5
- package/types/modules/toolbar/button/index.d.ts +1 -0
- package/types/modules/toolbar/button/select/select.d.ts +15 -0
- package/types/modules/toolbar/collection/collection.d.ts +1 -0
- package/types/modules/toolbar/factory.d.ts +1 -0
- package/types/plugins/bold/interface.d.ts +3 -0
- package/types/plugins/delete/interface.d.ts +3 -0
- package/types/plugins/enter/interface.d.ts +3 -0
- package/types/plugins/format-block/config.d.ts +6 -0
- package/types/plugins/format-block/format-block.d.ts +1 -0
- package/types/plugins/search/interface.d.ts +3 -0
- package/types/plugins/select-cells/select-cells.d.ts +2 -0
- package/types/types/messages.d.ts +8 -0
- package/types/types/popup.d.ts +3 -3
- package/types/types/toolbar.d.ts +12 -8
- package/types/typings.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.0.0-beta.
|
|
4
|
+
* Version: v4.0.0-beta.85
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -24,7 +24,7 @@ return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[101]
|
|
|
24
24
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
/* harmony export */
|
|
27
|
+
/* harmony export */ Debug: function() { return /* binding */ Debug; }
|
|
28
28
|
/* harmony export */ });
|
|
29
29
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
30
30
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7331);
|
|
@@ -84,11 +84,11 @@ function renderText(elm) {
|
|
|
84
84
|
}
|
|
85
85
|
function render(elm, level) {
|
|
86
86
|
if (level === void 0) { level = 0; }
|
|
87
|
-
return "<div style='padding-left: ".concat(level * 5, "px'>\n\t\t").concat(elm.nodeName, " ").concat(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom
|
|
87
|
+
return "<div style='padding-left: ".concat(level * 5, "px'>\n\t\t").concat(elm.nodeName, " ").concat(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.isText(elm) ? "- ".concat(renderText(elm)) : '', "\n\t").concat(Array.from(elm.childNodes)
|
|
88
88
|
.map(function (ch) { return render(ch, level + 1); })
|
|
89
89
|
.join(''), "\n</div>");
|
|
90
90
|
}
|
|
91
|
-
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem
|
|
91
|
+
jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .pw.add('debug', Debug);
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
/***/ })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.0.0-beta.
|
|
4
|
+
* Version: v4.0.0-beta.85
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -42,7 +42,7 @@ return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[781]
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config
|
|
45
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.speechRecognize = {
|
|
46
46
|
api: _helpers_api__WEBPACK_IMPORTED_MODULE_4__/* .SpeechRecognition */ .M,
|
|
47
47
|
sound: true,
|
|
48
48
|
continuous: true,
|
|
@@ -61,8 +61,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.speechRecognize */
|
|
|
61
61
|
'select all': 'selectall'
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon
|
|
65
|
-
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config
|
|
64
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .J.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_5___default()));
|
|
65
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.speechRecognize = {
|
|
66
66
|
isActive: function (jodit, _) {
|
|
67
67
|
var api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(jodit, 'speech');
|
|
68
68
|
return Boolean(api === null || api === void 0 ? void 0 : api.isEnabled);
|
|
@@ -137,8 +137,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config.prototype.controls.speechRec
|
|
|
137
137
|
|
|
138
138
|
"use strict";
|
|
139
139
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
140
|
-
/* harmony export */
|
|
141
|
-
/* harmony export */
|
|
140
|
+
/* harmony export */ n: function() { return /* binding */ PII; },
|
|
141
|
+
/* harmony export */ u: function() { return /* binding */ WARN; }
|
|
142
142
|
/* harmony export */ });
|
|
143
143
|
/*!
|
|
144
144
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -160,7 +160,7 @@ var WARN = 940;
|
|
|
160
160
|
|
|
161
161
|
"use strict";
|
|
162
162
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
163
|
-
/* harmony export */
|
|
163
|
+
/* harmony export */ M: function() { return /* binding */ SpeechRecognition; }
|
|
164
164
|
/* harmony export */ });
|
|
165
165
|
/*!
|
|
166
166
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -178,7 +178,7 @@ var SpeechRecognition = window.SpeechRecognition ||
|
|
|
178
178
|
|
|
179
179
|
"use strict";
|
|
180
180
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
181
|
-
/* harmony export */
|
|
181
|
+
/* harmony export */ c: function() { return /* binding */ execSpellCommand; }
|
|
182
182
|
/* harmony export */ });
|
|
183
183
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97582);
|
|
184
184
|
/*!
|
|
@@ -200,7 +200,7 @@ function execSpellCommand(jodit, commandSentence) {
|
|
|
200
200
|
|
|
201
201
|
"use strict";
|
|
202
202
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
203
|
-
/* harmony export */
|
|
203
|
+
/* harmony export */ v: function() { return /* binding */ RecognizeManager; }
|
|
204
204
|
/* harmony export */ });
|
|
205
205
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97582);
|
|
206
206
|
/* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3569);
|
|
@@ -389,6 +389,7 @@ var RecognizeManager = /** @class */ (function (_super) {
|
|
|
389
389
|
}(jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_0__/* .Eventify */ .a));
|
|
390
390
|
|
|
391
391
|
|
|
392
|
+
|
|
392
393
|
/***/ }),
|
|
393
394
|
|
|
394
395
|
/***/ 55486:
|
|
@@ -396,7 +397,7 @@ var RecognizeManager = /** @class */ (function (_super) {
|
|
|
396
397
|
|
|
397
398
|
"use strict";
|
|
398
399
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
399
|
-
/* harmony export */
|
|
400
|
+
/* harmony export */ e: function() { return /* binding */ sound; }
|
|
400
401
|
/* harmony export */ });
|
|
401
402
|
/* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16618);
|
|
402
403
|
/*!
|
|
@@ -638,26 +639,26 @@ module.exports = {
|
|
|
638
639
|
"use strict";
|
|
639
640
|
__webpack_require__.r(__webpack_exports__);
|
|
640
641
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
641
|
-
/* harmony export */
|
|
642
|
-
/* harmony export */
|
|
643
|
-
/* harmony export */
|
|
644
|
-
/* harmony export */
|
|
645
|
-
/* harmony export */
|
|
646
|
-
/* harmony export */
|
|
647
|
-
/* harmony export */
|
|
648
|
-
/* harmony export */
|
|
649
|
-
/* harmony export */
|
|
650
|
-
/* harmony export */
|
|
651
|
-
/* harmony export */
|
|
652
|
-
/* harmony export */
|
|
653
|
-
/* harmony export */
|
|
654
|
-
/* harmony export */
|
|
655
|
-
/* harmony export */
|
|
656
|
-
/* harmony export */
|
|
657
|
-
/* harmony export */
|
|
658
|
-
/* harmony export */
|
|
659
|
-
/* harmony export */
|
|
660
|
-
/* harmony export */
|
|
642
|
+
/* harmony export */ ar: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
|
|
643
|
+
/* harmony export */ cs_cz: function() { return /* reexport module object */ _cs_cz_js__WEBPACK_IMPORTED_MODULE_1__; },
|
|
644
|
+
/* harmony export */ de: function() { return /* reexport module object */ _de_js__WEBPACK_IMPORTED_MODULE_2__; },
|
|
645
|
+
/* harmony export */ es: function() { return /* reexport module object */ _es_js__WEBPACK_IMPORTED_MODULE_3__; },
|
|
646
|
+
/* harmony export */ fa: function() { return /* reexport module object */ _fa_js__WEBPACK_IMPORTED_MODULE_4__; },
|
|
647
|
+
/* harmony export */ fr: function() { return /* reexport module object */ _fr_js__WEBPACK_IMPORTED_MODULE_5__; },
|
|
648
|
+
/* harmony export */ he: function() { return /* reexport module object */ _he_js__WEBPACK_IMPORTED_MODULE_6__; },
|
|
649
|
+
/* harmony export */ hu: function() { return /* reexport module object */ _hu_js__WEBPACK_IMPORTED_MODULE_7__; },
|
|
650
|
+
/* harmony export */ id: function() { return /* reexport module object */ _id_js__WEBPACK_IMPORTED_MODULE_8__; },
|
|
651
|
+
/* harmony export */ it: function() { return /* reexport module object */ _it_js__WEBPACK_IMPORTED_MODULE_9__; },
|
|
652
|
+
/* harmony export */ ja: function() { return /* reexport module object */ _ja_js__WEBPACK_IMPORTED_MODULE_10__; },
|
|
653
|
+
/* harmony export */ ko: function() { return /* reexport module object */ _ko_js__WEBPACK_IMPORTED_MODULE_11__; },
|
|
654
|
+
/* harmony export */ mn: function() { return /* reexport module object */ _mn_js__WEBPACK_IMPORTED_MODULE_12__; },
|
|
655
|
+
/* harmony export */ nl: function() { return /* reexport module object */ _nl_js__WEBPACK_IMPORTED_MODULE_13__; },
|
|
656
|
+
/* harmony export */ pl: function() { return /* reexport module object */ _pl_js__WEBPACK_IMPORTED_MODULE_14__; },
|
|
657
|
+
/* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_15__; },
|
|
658
|
+
/* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_16__; },
|
|
659
|
+
/* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_17__; },
|
|
660
|
+
/* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_18__; },
|
|
661
|
+
/* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_19__; }
|
|
661
662
|
/* harmony export */ });
|
|
662
663
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57998);
|
|
663
664
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -978,7 +979,7 @@ module.exports = {
|
|
|
978
979
|
"use strict";
|
|
979
980
|
__webpack_require__.r(__webpack_exports__);
|
|
980
981
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
981
|
-
/* harmony export */
|
|
982
|
+
/* harmony export */ SpeechRecognizeNative: function() { return /* binding */ SpeechRecognizeNative; }
|
|
982
983
|
/* harmony export */ });
|
|
983
984
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(97582);
|
|
984
985
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7331);
|
|
@@ -1054,7 +1055,7 @@ var SpeechRecognizeNative = /** @class */ (function (_super) {
|
|
|
1054
1055
|
}
|
|
1055
1056
|
this.j.workplace.appendChild(this.messagePopup);
|
|
1056
1057
|
this.j.async.setTimeout(function () {
|
|
1057
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom
|
|
1058
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.safeRemove(_this.messagePopup);
|
|
1058
1059
|
}, {
|
|
1059
1060
|
label: 'onSpeechRecognizeProgressResult',
|
|
1060
1061
|
timeout: 1000
|
|
@@ -1063,12 +1064,12 @@ var SpeechRecognizeNative = /** @class */ (function (_super) {
|
|
|
1063
1064
|
};
|
|
1064
1065
|
SpeechRecognizeNative.prototype.onSpeechRecognizeResult = function (text) {
|
|
1065
1066
|
var j = this.j, s = j.s;
|
|
1066
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom
|
|
1067
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.safeRemove(this.messagePopup);
|
|
1067
1068
|
if (!this._checkCommand(text)) {
|
|
1068
1069
|
var range = s.range, node = s.current();
|
|
1069
1070
|
if (s.isCollapsed() &&
|
|
1070
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom
|
|
1071
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom
|
|
1071
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.isText(node) &&
|
|
1072
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.isOrContains(j.editor, node) &&
|
|
1072
1073
|
node.nodeValue) {
|
|
1073
1074
|
var sentence = node.nodeValue;
|
|
1074
1075
|
node.nodeValue =
|
|
@@ -1101,7 +1102,8 @@ var SpeechRecognizeNative = /** @class */ (function (_super) {
|
|
|
1101
1102
|
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
1102
1103
|
return SpeechRecognizeNative;
|
|
1103
1104
|
}(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S));
|
|
1104
|
-
|
|
1105
|
+
|
|
1106
|
+
_jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .h.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
1105
1107
|
|
|
1106
1108
|
|
|
1107
1109
|
/***/ }),
|
|
@@ -86,7 +86,7 @@ export declare abstract class Component implements IComponent {
|
|
|
86
86
|
*/
|
|
87
87
|
bindDestruct(component: IComponent): this;
|
|
88
88
|
abstract className(): string;
|
|
89
|
-
|
|
89
|
+
constructor();
|
|
90
90
|
/**
|
|
91
91
|
* Destruct component method
|
|
92
92
|
*/
|
|
@@ -117,5 +117,5 @@ export declare abstract class Component implements IComponent {
|
|
|
117
117
|
* @param callback - a function that will be called when the status is `status`
|
|
118
118
|
*/
|
|
119
119
|
hookStatus(status: ComponentStatus, callback: (component: this) => void): void;
|
|
120
|
-
static isInstanceOf<T extends
|
|
120
|
+
static isInstanceOf<T extends Component>(c: unknown | Component, constructorFunc: Function): c is T;
|
|
121
121
|
}
|
package/esm/core/constants.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
export const APP_VERSION = "4.0.0-beta.
|
|
7
|
-
//
|
|
6
|
+
export const APP_VERSION = "4.0.0-beta.85";
|
|
7
|
+
// prettier-ignore
|
|
8
8
|
export const ES = "es2020";
|
|
9
9
|
export const IS_ES_MODERN = true;
|
|
10
10
|
export const IS_ES_NEXT = true;
|
package/esm/core/dom/dom.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import * as consts from "jodit/esm/core/constants.js";
|
|
7
7
|
import { isArray, isFunction, isHTML, isString, isVoid, isSet, isMarker } from "jodit/esm/core/helpers/checker/index.js";
|
|
8
|
-
import { toArray } from "jodit/esm/core/helpers/array/
|
|
9
|
-
import { trim } from "jodit/esm/core/helpers/string/
|
|
8
|
+
import { toArray } from "jodit/esm/core/helpers/array/to-array.js";
|
|
9
|
+
import { trim } from "jodit/esm/core/helpers/string/trim.js";
|
|
10
10
|
import { $$, attr, call, css, dataBind, error } from "jodit/esm/core/helpers/utils/index.js";
|
|
11
11
|
import { INSEPARABLE_TAGS, LIST_TAGS, NO_EMPTY_TAGS, TEMP_ATTR } from "jodit/esm/core/constants.js";
|
|
12
12
|
/**
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module helpers/checker
|
|
8
|
+
*/
|
|
6
9
|
import type { Nullable } from "jodit/esm/types";
|
|
7
10
|
/**
|
|
8
11
|
* Define element is selection helper
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
/**
|
|
10
10
|
* Normalize value to CSS meters
|
|
11
11
|
*/
|
|
12
|
-
export const normalizeSize = (value) => {
|
|
12
|
+
export const normalizeSize = (value, units) => {
|
|
13
13
|
if (/^[0-9]+$/.test(value.toString())) {
|
|
14
|
-
return value +
|
|
14
|
+
return value + units;
|
|
15
15
|
}
|
|
16
16
|
return value.toString();
|
|
17
17
|
};
|
|
@@ -16,6 +16,11 @@ export function trim(value) {
|
|
|
16
16
|
.replace(SPACE_REG_EXP_END(), '')
|
|
17
17
|
.replace(SPACE_REG_EXP_START(), '');
|
|
18
18
|
}
|
|
19
|
+
export function trimChars(value, chars) {
|
|
20
|
+
return value
|
|
21
|
+
.replace(RegExp(`[${chars}]+$`), '')
|
|
22
|
+
.replace(RegExp(`^[${chars}]+`), '');
|
|
23
|
+
}
|
|
19
24
|
/**
|
|
20
25
|
* Trim only invisible chars
|
|
21
26
|
*/
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module helpers/utils
|
|
8
|
+
*/
|
|
6
9
|
import type { IDictionary } from "jodit/esm/types";
|
|
7
10
|
/**
|
|
8
11
|
* Get attribute
|
|
@@ -12,6 +12,7 @@ import { kebabCase } from "jodit/esm/core/helpers/string/kebab-case.js";
|
|
|
12
12
|
* Get the value of a computed style property for the first element in the set of matched elements or set one or
|
|
13
13
|
* more CSS properties for every matched element
|
|
14
14
|
*
|
|
15
|
+
* @param element - HTML element
|
|
15
16
|
* @param key - An object of property-value pairs to set. A CSS property name.
|
|
16
17
|
* @param value - A value to set for the property.
|
|
17
18
|
* @param onlyStyleMode - Get value from style attribute, without calculating
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module plugin
|
|
8
|
+
*/
|
|
6
9
|
declare module 'jodit/types/events' {
|
|
7
10
|
interface IEventEmitter {
|
|
8
11
|
/**
|
|
@@ -10,6 +10,6 @@ import type { IStyle } from "jodit/esm/types";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function hasSameStyle(elm: Node, rules: IStyle): boolean;
|
|
12
12
|
/**
|
|
13
|
-
* Element has the similar styles
|
|
13
|
+
* Element has the similar styles keys
|
|
14
14
|
*/
|
|
15
15
|
export declare function hasSameStyleKeys(elm: Node, rules: IStyle): boolean;
|
|
@@ -35,15 +35,18 @@ assert(hasSameStyle(elm, { color: 'red' }), 'Style test');
|
|
|
35
35
|
assert(hasSameStyle(elm, { fontSize: null }), 'Style test');
|
|
36
36
|
assert(hasSameStyle(elm, { fontSize: '' }), 'Style test');
|
|
37
37
|
/**
|
|
38
|
-
* Element has the similar styles
|
|
38
|
+
* Element has the similar styles keys
|
|
39
39
|
*/
|
|
40
40
|
export function hasSameStyleKeys(elm, rules) {
|
|
41
41
|
return Boolean(!Dom.isTag(elm, 'font') &&
|
|
42
42
|
Dom.isHTMLElement(elm) &&
|
|
43
43
|
Object.keys(rules).every(property => {
|
|
44
44
|
const value = css(elm, property, true);
|
|
45
|
-
return
|
|
45
|
+
return value !== '';
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
const elm2 = document.createElement('div');
|
|
49
|
+
elm2.style.color = 'red';
|
|
50
|
+
assert(hasSameStyleKeys(elm2, { color: 'red' }), 'Style test');
|
|
51
|
+
assert(!hasSameStyleKeys(elm2, { font: 'Arial', color: 'red' }), 'Style test');
|
|
52
|
+
assert(!hasSameStyleKeys(elm2, { border: '1px solid #ccc' }), 'Style test');
|
|
@@ -12,10 +12,14 @@ import type { Nullable, ICommitStyle } from "jodit/esm/types";
|
|
|
12
12
|
* @param commitStyle - style commit
|
|
13
13
|
* @param elm - checked item
|
|
14
14
|
* @param strict - strict mode - false - the default tag is suitable for us if it is also in the commit
|
|
15
|
+
* @param strictStyle - strict style mode - true - the element has the same style keys as in the commit, but not their values
|
|
15
16
|
* @private
|
|
16
17
|
*/
|
|
17
|
-
export declare function isSuitElement(commitStyle: ICommitStyle, elm: Nullable<Node>, strict: boolean): elm is HTMLElement;
|
|
18
|
-
|
|
18
|
+
export declare function isSuitElement(commitStyle: ICommitStyle, elm: Nullable<Node>, strict: boolean, strictStyle?: boolean): elm is HTMLElement;
|
|
19
|
+
/**
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
export declare function suitableClosest(commitStyle: ICommitStyle, element: HTMLElement, root: HTMLElement): Nullable<HTMLElement>;
|
|
19
23
|
/**
|
|
20
24
|
* Inside the parent element there is a block with the same styles
|
|
21
25
|
* @example
|
|
@@ -24,5 +28,6 @@ export declare function findSuitClosest(commitStyle: ICommitStyle, element: HTML
|
|
|
24
28
|
* <p>|test<strong>test</strong>|</p>
|
|
25
29
|
* ```
|
|
26
30
|
* Apply `{element:'strong'}`
|
|
31
|
+
* @private
|
|
27
32
|
*/
|
|
28
33
|
export declare function isSameStyleChild(commitStyle: ICommitStyle, elm: Nullable<Node>): elm is HTMLElement;
|
|
@@ -9,25 +9,35 @@ import { hasSameStyle, hasSameStyleKeys } from "./has-same-style";
|
|
|
9
9
|
* @param commitStyle - style commit
|
|
10
10
|
* @param elm - checked item
|
|
11
11
|
* @param strict - strict mode - false - the default tag is suitable for us if it is also in the commit
|
|
12
|
+
* @param strictStyle - strict style mode - true - the element has the same style keys as in the commit, but not their values
|
|
12
13
|
* @private
|
|
13
14
|
*/
|
|
14
|
-
export function isSuitElement(commitStyle, elm, strict) {
|
|
15
|
-
if (!elm) {
|
|
15
|
+
export function isSuitElement(commitStyle, elm, strict, strictStyle = true) {
|
|
16
|
+
if (!elm || !isNormalNode(elm)) {
|
|
16
17
|
return false;
|
|
17
18
|
}
|
|
18
19
|
const { element, elementIsDefault, options } = commitStyle;
|
|
20
|
+
if (Dom.isList(elm) && commitStyle.elementIsList) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
const elmIsSame = Dom.isTag(elm, element);
|
|
24
|
+
if (elmIsSame && !(elementIsDefault && strict)) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
19
27
|
const elmHasSameStyle = Boolean(options.attributes?.style &&
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
(elmHasSameStyle && isNormalNode(elm) && !commitStyle.elementIsList)) {
|
|
28
|
+
(strictStyle
|
|
29
|
+
? hasSameStyle(elm, options.attributes.style)
|
|
30
|
+
: hasSameStyleKeys(elm, options.attributes.style)));
|
|
31
|
+
if (elmHasSameStyle && !commitStyle.elementIsList) {
|
|
25
32
|
return true;
|
|
26
33
|
}
|
|
27
|
-
return
|
|
34
|
+
return !elmIsSame && !strict && elementIsDefault && Dom.isInlineBlock(elm);
|
|
28
35
|
}
|
|
29
|
-
|
|
30
|
-
|
|
36
|
+
/**
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
export function suitableClosest(commitStyle, element, root) {
|
|
40
|
+
return Dom.closest(element, node => isSuitElement(commitStyle, node, true, false), root);
|
|
31
41
|
}
|
|
32
42
|
/**
|
|
33
43
|
* Inside the parent element there is a block with the same styles
|
|
@@ -37,6 +47,7 @@ export function findSuitClosest(commitStyle, element, root) {
|
|
|
37
47
|
* <p>|test<strong>test</strong>|</p>
|
|
38
48
|
* ```
|
|
39
49
|
* Apply `{element:'strong'}`
|
|
50
|
+
* @private
|
|
40
51
|
*/
|
|
41
52
|
export function isSameStyleChild(commitStyle, elm) {
|
|
42
53
|
const { element, options } = commitStyle;
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module selection
|
|
8
|
+
*/
|
|
6
9
|
import type { IJodit, IDictionary, CommitMode, ICommitStyle } from "jodit/esm/types";
|
|
7
10
|
export declare const states: {
|
|
8
11
|
readonly START: "START";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
import { REPLACE } from "jodit/esm/core/selection/index.js";
|
|
7
|
-
import { extractSelectedPart, getSuitChild, getSuitParent,
|
|
7
|
+
import { extractSelectedPart, getSuitChild, getSuitParent, suitableClosest, toggleAttributes, unwrapChildren, isInsideInvisibleElement, wrap, toggleOrderedList } from "jodit/esm/core/selection/style/api/index.js";
|
|
8
8
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
9
9
|
import { INITIAL, UNSET, UNWRAP, WRAP } from "jodit/esm/core/selection/index.js";
|
|
10
10
|
import { assert } from "jodit/esm/core/helpers/utils/assert.js";
|
|
@@ -35,7 +35,7 @@ export const transactions = {
|
|
|
35
35
|
if (elm) {
|
|
36
36
|
return { ...value, next: states.ELEMENT, element: elm };
|
|
37
37
|
}
|
|
38
|
-
const suit =
|
|
38
|
+
const suit = suitableClosest(style, element, jodit.editor);
|
|
39
39
|
if (style.elementIsList && Dom.isList(suit)) {
|
|
40
40
|
return { ...value, next: states.LIST };
|
|
41
41
|
}
|
|
@@ -83,7 +83,7 @@ export const transactions = {
|
|
|
83
83
|
[states.EXTRACT]: {
|
|
84
84
|
exec(value) {
|
|
85
85
|
const { element, jodit, style } = value;
|
|
86
|
-
const suit =
|
|
86
|
+
const suit = suitableClosest(style, element, jodit.editor);
|
|
87
87
|
assert(suit, 'This place should have an element');
|
|
88
88
|
if (!style.elementIsBlock) {
|
|
89
89
|
extractSelectedPart(suit, element, jodit);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* @module storage
|
|
7
|
+
* @module storage
|
|
8
8
|
*/
|
|
9
9
|
import type { IStorage, StorageValueType } from "jodit/esm/types";
|
|
10
10
|
export declare class MemoryStorageProvider<T = StorageValueType> implements IStorage<T> {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* [[include:
|
|
7
|
+
* [[include:core/ui/button/tooltip/README.md]]
|
|
8
8
|
* @packageDocumentation
|
|
9
|
-
* @module
|
|
9
|
+
* @module ui/button
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import type { IViewBased } from "jodit/esm/types";
|
|
@@ -15,9 +15,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
15
15
|
};
|
|
16
16
|
var UITooltip_1;
|
|
17
17
|
/**
|
|
18
|
-
* [[include:
|
|
18
|
+
* [[include:core/ui/button/tooltip/README.md]]
|
|
19
19
|
* @packageDocumentation
|
|
20
|
-
* @module
|
|
20
|
+
* @module ui/button
|
|
21
21
|
*/
|
|
22
22
|
import { attr, css } from "jodit/esm/core/helpers/utils/index.js";
|
|
23
23
|
import { getContainer } from "jodit/esm/core/global.js";
|
package/esm/core/ui/element.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare abstract class UIElement<T extends IViewBased = IViewBased> exten
|
|
|
25
25
|
/**
|
|
26
26
|
* Find match parent
|
|
27
27
|
*/
|
|
28
|
-
closest<T extends
|
|
28
|
+
closest<T extends UIElement | typeof UIElement>(type: UIElement | Function): Nullable<T extends typeof UIElement ? InstanceType<T> : T>;
|
|
29
29
|
/**
|
|
30
30
|
* Find closest UIElement in DOM
|
|
31
31
|
*/
|
|
@@ -14,7 +14,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* @module ui/form
|
|
17
|
+
* @module ui/form
|
|
18
18
|
*/
|
|
19
19
|
import { UIGroup } from "jodit/esm/core/ui/group/group.js";
|
|
20
20
|
import { attr } from "jodit/esm/core/helpers/utils/index.js";
|
|
@@ -14,7 +14,6 @@ import type { IDictionary } from "jodit/esm/types";
|
|
|
14
14
|
import { UIElement } from "jodit/esm/core/ui/element";
|
|
15
15
|
export declare class UIGroup<T extends IViewBased = IViewBased> extends UIElement<T> implements IUIGroup {
|
|
16
16
|
readonly options?: IDictionary | undefined;
|
|
17
|
-
/** @override */
|
|
18
17
|
className(): string;
|
|
19
18
|
/**
|
|
20
19
|
* Synchronize mods to all children
|
|
@@ -26,7 +26,6 @@ import { assert } from "jodit/esm/core/helpers/utils/assert.js";
|
|
|
26
26
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
27
27
|
import { Component } from "jodit/esm/core/component/component.js";
|
|
28
28
|
export let UIGroup = UIGroup_1 = class UIGroup extends UIElement {
|
|
29
|
-
/** @override */
|
|
30
29
|
className() {
|
|
31
30
|
return 'UIGroup';
|
|
32
31
|
}
|
|
@@ -44,7 +43,6 @@ export let UIGroup = UIGroup_1 = class UIGroup extends UIElement {
|
|
|
44
43
|
stack.push(...elm);
|
|
45
44
|
}
|
|
46
45
|
else if (Component.isInstanceOf(elm, UIGroup_1)) {
|
|
47
|
-
// @ts-ignore
|
|
48
46
|
stack.push(...elm.elements);
|
|
49
47
|
}
|
|
50
48
|
else {
|
|
@@ -31,6 +31,7 @@ export declare class UIList<T extends IViewBased = IViewBased> extends UIGroup<T
|
|
|
31
31
|
protected removeButtons: string[];
|
|
32
32
|
setRemoveButtons(removeButtons?: string[]): this;
|
|
33
33
|
build(items: ButtonsOption, target?: Nullable<HTMLElement>): IUIList;
|
|
34
|
+
protected makeSelect(control: IControlTypeStrong, target: Nullable<HTMLElement>): IUIButton;
|
|
34
35
|
/**
|
|
35
36
|
* Create button instance
|
|
36
37
|
*/
|