jodit 4.6.2 → 4.6.4
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/.nvmrc +1 -1
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2887 -2886
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.css +1 -1
- 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 +56 -56
- 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 +2794 -2793
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- 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 +56 -56
- 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 +2795 -2794
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.css +1 -1
- 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 +56 -56
- 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 +2753 -2752
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.css +1 -1
- 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 +56 -56
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/415.fat.min.js +2 -2
- package/es5/415.js +69 -5
- package/es5/415.min.js +2 -2
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +3748 -3747
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +12 -12
- 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 +59 -59
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/langs/ar.d.ts +1 -0
- package/esm/langs/ar.js +4 -1
- package/esm/langs/cs_cz.js +2 -0
- package/esm/langs/de.d.ts +1 -0
- package/esm/langs/de.js +4 -1
- package/esm/langs/en.js +2 -0
- package/esm/langs/es.d.ts +1 -0
- package/esm/langs/es.js +4 -1
- package/esm/langs/fa.js +3 -1
- package/esm/langs/fi.d.ts +1 -0
- package/esm/langs/fi.js +3 -1
- package/esm/langs/fr.d.ts +4 -0
- package/esm/langs/fr.js +6 -1
- package/esm/langs/he.d.ts +1 -0
- package/esm/langs/he.js +3 -1
- package/esm/langs/hu.d.ts +1 -0
- package/esm/langs/hu.js +3 -1
- package/esm/langs/id.js +1 -0
- package/esm/langs/it.d.ts +1 -0
- package/esm/langs/it.js +3 -1
- package/esm/langs/ja.d.ts +1 -0
- package/esm/langs/ja.js +3 -1
- package/esm/langs/ko.js +1 -0
- package/esm/langs/mn.d.ts +1 -0
- package/esm/langs/mn.js +3 -1
- package/esm/langs/nl.d.ts +1 -0
- package/esm/langs/nl.js +3 -1
- package/esm/langs/no.d.ts +22 -0
- package/esm/langs/no.js +27 -1
- package/esm/langs/pl.d.ts +1 -0
- package/esm/langs/pl.js +3 -1
- package/esm/langs/pt_br.d.ts +1 -0
- package/esm/langs/pt_br.js +3 -1
- package/esm/langs/ru.js +1 -0
- package/esm/langs/sv.js +231 -0
- package/esm/langs/tr.d.ts +1 -0
- package/esm/langs/tr.js +3 -1
- package/esm/langs/ua.js +1 -0
- package/esm/langs/zh_cn.d.ts +1 -0
- package/esm/langs/zh_cn.js +3 -1
- package/esm/langs/zh_tw.d.ts +2 -0
- package/esm/langs/zh_tw.js +4 -1
- package/esm/modules/uploader/helpers/data-uri-to-blob.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +2 -2
- package/package.json +1 -1
- package/types/langs/ar.d.ts +1 -0
- package/types/langs/de.d.ts +1 -0
- package/types/langs/es.d.ts +1 -0
- package/types/langs/fi.d.ts +1 -0
- package/types/langs/fr.d.ts +4 -0
- package/types/langs/he.d.ts +1 -0
- package/types/langs/hu.d.ts +1 -0
- package/types/langs/it.d.ts +1 -0
- package/types/langs/ja.d.ts +1 -0
- package/types/langs/mn.d.ts +1 -0
- package/types/langs/nl.d.ts +1 -0
- package/types/langs/no.d.ts +22 -0
- package/types/langs/pl.d.ts +1 -0
- package/types/langs/pt_br.d.ts +1 -0
- package/types/langs/tr.d.ts +1 -0
- package/types/langs/zh_cn.d.ts +1 -0
- package/types/langs/zh_tw.d.ts +2 -0
|
@@ -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.6.
|
|
4
|
+
* Version: v4.6.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -297,16 +297,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
297
297
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
298
298
|
/* harmony export */ SpeechRecognizeNative: function() { return /* binding */ SpeechRecognizeNative; }
|
|
299
299
|
/* harmony export */ });
|
|
300
|
-
/* harmony import */ var
|
|
301
|
-
/* harmony import */ var
|
|
302
|
-
/* harmony import */ var
|
|
303
|
-
/* harmony import */ var
|
|
304
|
-
/* harmony import */ var
|
|
305
|
-
/* harmony import */ var
|
|
306
|
-
/* harmony import */ var
|
|
307
|
-
/* harmony import */ var
|
|
300
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
301
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66927);
|
|
302
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
|
|
303
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56298);
|
|
304
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84976);
|
|
305
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71005);
|
|
306
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71096);
|
|
307
|
+
/* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46173);
|
|
308
308
|
/* harmony import */ var _helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50834);
|
|
309
|
-
/* harmony import */ var
|
|
309
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25202);
|
|
310
310
|
/*!
|
|
311
311
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
312
312
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -323,7 +323,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
323
323
|
|
|
324
324
|
|
|
325
325
|
|
|
326
|
-
class SpeechRecognizeNative extends
|
|
326
|
+
class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */ .k {
|
|
327
327
|
constructor() {
|
|
328
328
|
super(...arguments);
|
|
329
329
|
this.buttons = [
|
|
@@ -337,8 +337,8 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4
|
|
|
337
337
|
afterInit(jodit) {
|
|
338
338
|
const { commands } = jodit.o.speechRecognize;
|
|
339
339
|
if (commands) {
|
|
340
|
-
(0,
|
|
341
|
-
(0,
|
|
340
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_9__);
|
|
341
|
+
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__/* .keys */ .HP)(commands, false).forEach(words => {
|
|
342
342
|
const keys = words.split('|');
|
|
343
343
|
keys.forEach(key => {
|
|
344
344
|
key = key.trim().toLowerCase();
|
|
@@ -354,7 +354,7 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4
|
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
beforeDestruct(jodit) {
|
|
357
|
-
|
|
357
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
|
|
358
358
|
}
|
|
359
359
|
onSpeechRecognizeProgressResult(text) {
|
|
360
360
|
if (!this.messagePopup) {
|
|
@@ -363,20 +363,20 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4
|
|
|
363
363
|
this.j.workplace.appendChild(this.messagePopup);
|
|
364
364
|
this.j.async.clearTimeout(this.__hidePopupTimeout);
|
|
365
365
|
this.__hidePopupTimeout = this.j.async.setTimeout(() => {
|
|
366
|
-
|
|
366
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
|
|
367
367
|
}, 1000);
|
|
368
368
|
this.messagePopup.innerText = text + '|';
|
|
369
369
|
}
|
|
370
370
|
onSpeechRecognizeResult(text) {
|
|
371
371
|
this.j.async.clearTimeout(this.__hidePopupTimeout);
|
|
372
|
-
|
|
372
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
|
|
373
373
|
const { j } = this;
|
|
374
374
|
const { s } = j;
|
|
375
375
|
if (!this._checkCommand(text)) {
|
|
376
376
|
const { range } = s, node = s.current();
|
|
377
377
|
if (s.isCollapsed() &&
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node) &&
|
|
379
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(j.editor, node) &&
|
|
380
380
|
node.nodeValue) {
|
|
381
381
|
const sentence = node.nodeValue;
|
|
382
382
|
node.nodeValue =
|
|
@@ -401,13 +401,13 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4
|
|
|
401
401
|
return false;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
(0,
|
|
405
|
-
(0,
|
|
404
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
405
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':speechRecognizeProgressResult')
|
|
406
406
|
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
407
|
-
(0,
|
|
408
|
-
(0,
|
|
407
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
408
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':speechRecognizeResult')
|
|
409
409
|
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
410
|
-
|
|
410
|
+
_jodit__WEBPACK_IMPORTED_MODULE_7__/* .Jodit */ .x.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
411
411
|
|
|
412
412
|
|
|
413
413
|
/***/ }),
|
|
@@ -590,16 +590,16 @@ module.exports = {
|
|
|
590
590
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
591
591
|
|
|
592
592
|
"use strict";
|
|
593
|
-
/* harmony import */ var
|
|
594
|
-
/* harmony import */ var
|
|
595
|
-
/* harmony import */ var
|
|
596
|
-
/* harmony import */ var
|
|
597
|
-
/* harmony import */ var
|
|
598
|
-
/* harmony import */ var
|
|
599
|
-
/* harmony import */ var
|
|
600
|
-
/* harmony import */ var
|
|
601
|
-
/* harmony import */ var
|
|
602
|
-
/* harmony import */ var
|
|
593
|
+
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9810);
|
|
594
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98253);
|
|
595
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26150);
|
|
596
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72197);
|
|
597
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
|
|
598
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
599
|
+
/* harmony import */ var _helpers_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71722);
|
|
600
|
+
/* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(93676);
|
|
601
|
+
/* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22227);
|
|
602
|
+
/* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
603
603
|
/*!
|
|
604
604
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
605
605
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -614,8 +614,8 @@ module.exports = {
|
|
|
614
614
|
|
|
615
615
|
|
|
616
616
|
|
|
617
|
-
|
|
618
|
-
api: typeof
|
|
617
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.speechRecognize = {
|
|
618
|
+
api: typeof _helpers_api__WEBPACK_IMPORTED_MODULE_6__/* .SpeechRecognition */ .o !== 'undefined' ? _helpers_api__WEBPACK_IMPORTED_MODULE_6__/* .SpeechRecognition */ .o : null,
|
|
619
619
|
sound: true,
|
|
620
620
|
continuous: false,
|
|
621
621
|
interimResults: true,
|
|
@@ -633,13 +633,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.speechRecogn
|
|
|
633
633
|
'select all': 'selectall'
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
|
-
|
|
637
|
-
|
|
636
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
637
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.speechRecognize = {
|
|
638
638
|
isVisible(j) {
|
|
639
639
|
return Boolean(j.o.speechRecognize.api);
|
|
640
640
|
},
|
|
641
641
|
isActive(jodit, _) {
|
|
642
|
-
const api = (0,
|
|
642
|
+
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech');
|
|
643
643
|
return Boolean(api?.isEnabled);
|
|
644
644
|
},
|
|
645
645
|
isDisabled(jodit) {
|
|
@@ -651,17 +651,17 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.spe
|
|
|
651
651
|
jodit.alert('Speech recognize API unsupported in your browser');
|
|
652
652
|
return;
|
|
653
653
|
}
|
|
654
|
-
let api = (0,
|
|
654
|
+
let api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech');
|
|
655
655
|
if (!api) {
|
|
656
656
|
const nativeApi = new ApiConstructor();
|
|
657
|
-
api = new
|
|
658
|
-
api.lang = (0,
|
|
657
|
+
api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__/* .RecognizeManager */ .g(jodit.async, nativeApi);
|
|
658
|
+
api.lang = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(lang)
|
|
659
659
|
? lang
|
|
660
|
-
: ((0,
|
|
660
|
+
: ((0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(jodit.od.documentElement, 'lang') ?? undefined);
|
|
661
661
|
api.continuous = continuous;
|
|
662
662
|
api.interimResults = interimResults;
|
|
663
663
|
api.sound = sound;
|
|
664
|
-
(0,
|
|
664
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech', api);
|
|
665
665
|
api.on('pulse', (enable) => {
|
|
666
666
|
button.setMod('pulse', enable);
|
|
667
667
|
});
|
|
@@ -669,13 +669,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.spe
|
|
|
669
669
|
api.on('progress', (text) => jodit.e.fire('speechRecognizeProgressResult', text));
|
|
670
670
|
api.on('error', (text) => jodit.message.error(text));
|
|
671
671
|
button.hookStatus('beforeDestruct', () => {
|
|
672
|
-
(0,
|
|
672
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech', null);
|
|
673
673
|
api.destruct();
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
676
|
if (control.args) {
|
|
677
677
|
const key = control.args[0];
|
|
678
|
-
if ((0,
|
|
678
|
+
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__/* .isBoolean */ .L)(api[key])) {
|
|
679
679
|
api[key] = !api[key];
|
|
680
680
|
if (api.isEnabled) {
|
|
681
681
|
api.restart();
|
|
@@ -697,7 +697,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.spe
|
|
|
697
697
|
interimResults: 'Interim Results'
|
|
698
698
|
},
|
|
699
699
|
childTemplate(jodit, key, value) {
|
|
700
|
-
const api = (0,
|
|
700
|
+
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech'), checked = api?.[key] ?? jodit.o.speechRecognize[key];
|
|
701
701
|
return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'> ${value}</span>`;
|
|
702
702
|
},
|
|
703
703
|
mods: {
|
|
@@ -936,11 +936,11 @@ module.exports = {
|
|
|
936
936
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
937
937
|
/* harmony export */ g: function() { return /* binding */ RecognizeManager; }
|
|
938
938
|
/* harmony export */ });
|
|
939
|
-
/* harmony import */ var
|
|
940
|
-
/* harmony import */ var
|
|
939
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
940
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
|
|
941
941
|
/* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43431);
|
|
942
|
-
/* harmony import */ var
|
|
943
|
-
/* harmony import */ var
|
|
942
|
+
/* harmony import */ var _sound__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95473);
|
|
943
|
+
/* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81629);
|
|
944
944
|
/*!
|
|
945
945
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
946
946
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -990,7 +990,7 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
|
|
|
990
990
|
this._restartTimeout = this.async.setTimeout(() => {
|
|
991
991
|
this.restart();
|
|
992
992
|
this.emit('pulse', false);
|
|
993
|
-
this._makeSound(
|
|
993
|
+
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .WARN */ .Z);
|
|
994
994
|
}, 5000);
|
|
995
995
|
this.emit('pulse', true);
|
|
996
996
|
};
|
|
@@ -1067,7 +1067,7 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
|
|
|
1067
1067
|
this.emit('pulse', false);
|
|
1068
1068
|
this.emit('result', this.__interimResults);
|
|
1069
1069
|
this.__interimResults = '';
|
|
1070
|
-
this._makeSound(
|
|
1070
|
+
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .PII */ .N);
|
|
1071
1071
|
this.restart();
|
|
1072
1072
|
}
|
|
1073
1073
|
_onProgress(e) {
|
|
@@ -1101,19 +1101,19 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
|
|
|
1101
1101
|
e.error === 'language-not-supported') {
|
|
1102
1102
|
this.emit('error', 'Language unavailable');
|
|
1103
1103
|
}
|
|
1104
|
-
this._makeSound(
|
|
1104
|
+
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .WARN */ .Z);
|
|
1105
1105
|
this.emit('pulse', false);
|
|
1106
1106
|
this.stop();
|
|
1107
1107
|
}
|
|
1108
1108
|
_makeSound(frequency) {
|
|
1109
1109
|
if (this.sound) {
|
|
1110
|
-
(0,
|
|
1110
|
+
(0,_sound__WEBPACK_IMPORTED_MODULE_3__/* .sound */ .s)({ frequency });
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
};
|
|
1114
1114
|
RecognizeManager._instances = new Set();
|
|
1115
|
-
RecognizeManager = RecognizeManager_1 = (0,
|
|
1116
|
-
|
|
1115
|
+
RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
1116
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
1117
1117
|
], RecognizeManager);
|
|
1118
1118
|
|
|
1119
1119
|
|
package/es2021.en/jodit.css
CHANGED