jodit 4.6.1 → 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.
Files changed (130) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +22 -0
  3. package/es2015/jodit.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +2930 -2896
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/debug/debug.css +1 -1
  8. package/es2015/plugins/debug/debug.js +1 -1
  9. package/es2015/plugins/debug/debug.min.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.js +56 -56
  12. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  13. package/es2018/jodit.css +1 -1
  14. package/es2018/jodit.fat.min.js +2 -2
  15. package/es2018/jodit.js +2837 -2803
  16. package/es2018/jodit.min.js +2 -2
  17. package/es2018/plugins/debug/debug.css +1 -1
  18. package/es2018/plugins/debug/debug.js +1 -1
  19. package/es2018/plugins/debug/debug.min.js +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.js +56 -56
  22. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  23. package/es2021/jodit.css +1 -1
  24. package/es2021/jodit.fat.min.js +2 -2
  25. package/es2021/jodit.js +2838 -2804
  26. package/es2021/jodit.min.js +2 -2
  27. package/es2021/plugins/debug/debug.css +1 -1
  28. package/es2021/plugins/debug/debug.js +1 -1
  29. package/es2021/plugins/debug/debug.min.js +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.js +56 -56
  32. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  33. package/es2021.en/jodit.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +2 -2
  35. package/es2021.en/jodit.js +2796 -2762
  36. package/es2021.en/jodit.min.js +2 -2
  37. package/es2021.en/plugins/debug/debug.css +1 -1
  38. package/es2021.en/plugins/debug/debug.js +1 -1
  39. package/es2021.en/plugins/debug/debug.min.js +1 -1
  40. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.js +56 -56
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  43. package/es5/415.fat.min.js +2 -2
  44. package/es5/415.js +69 -5
  45. package/es5/415.min.js +2 -2
  46. package/es5/5.fat.min.js +1 -1
  47. package/es5/5.min.js +1 -1
  48. package/es5/jodit.css +2 -2
  49. package/es5/jodit.fat.min.js +2 -2
  50. package/es5/jodit.js +3796 -3758
  51. package/es5/jodit.min.css +2 -2
  52. package/es5/jodit.min.js +2 -2
  53. package/es5/plugins/debug/debug.css +1 -1
  54. package/es5/plugins/debug/debug.js +12 -12
  55. package/es5/plugins/debug/debug.min.js +1 -1
  56. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  57. package/es5/plugins/speech-recognize/speech-recognize.js +59 -59
  58. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  59. package/esm/core/constants.d.ts +7 -0
  60. package/esm/core/constants.js +31 -11
  61. package/esm/core/helpers/utils/append-script.js +1 -1
  62. package/esm/core/plugin/helpers/load.js +2 -0
  63. package/esm/core/view/view.d.ts +4 -0
  64. package/esm/core/view/view.js +10 -1
  65. package/esm/langs/ar.d.ts +1 -0
  66. package/esm/langs/ar.js +4 -1
  67. package/esm/langs/cs_cz.js +2 -0
  68. package/esm/langs/de.d.ts +1 -0
  69. package/esm/langs/de.js +4 -1
  70. package/esm/langs/en.js +2 -0
  71. package/esm/langs/es.d.ts +1 -0
  72. package/esm/langs/es.js +4 -1
  73. package/esm/langs/fa.js +3 -1
  74. package/esm/langs/fi.d.ts +1 -0
  75. package/esm/langs/fi.js +3 -1
  76. package/esm/langs/fr.d.ts +4 -0
  77. package/esm/langs/fr.js +6 -1
  78. package/esm/langs/he.d.ts +1 -0
  79. package/esm/langs/he.js +3 -1
  80. package/esm/langs/hu.d.ts +1 -0
  81. package/esm/langs/hu.js +3 -1
  82. package/esm/langs/id.js +1 -0
  83. package/esm/langs/it.d.ts +1 -0
  84. package/esm/langs/it.js +3 -1
  85. package/esm/langs/ja.d.ts +1 -0
  86. package/esm/langs/ja.js +3 -1
  87. package/esm/langs/ko.js +1 -0
  88. package/esm/langs/mn.d.ts +1 -0
  89. package/esm/langs/mn.js +3 -1
  90. package/esm/langs/nl.d.ts +1 -0
  91. package/esm/langs/nl.js +3 -1
  92. package/esm/langs/no.d.ts +22 -0
  93. package/esm/langs/no.js +27 -1
  94. package/esm/langs/pl.d.ts +1 -0
  95. package/esm/langs/pl.js +3 -1
  96. package/esm/langs/pt_br.d.ts +1 -0
  97. package/esm/langs/pt_br.js +3 -1
  98. package/esm/langs/ru.js +1 -0
  99. package/esm/langs/sv.js +231 -0
  100. package/esm/langs/tr.d.ts +1 -0
  101. package/esm/langs/tr.js +3 -1
  102. package/esm/langs/ua.js +1 -0
  103. package/esm/langs/zh_cn.d.ts +1 -0
  104. package/esm/langs/zh_cn.js +3 -1
  105. package/esm/langs/zh_tw.d.ts +2 -0
  106. package/esm/langs/zh_tw.js +4 -1
  107. package/esm/modules/uploader/helpers/data-uri-to-blob.js +1 -1
  108. package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +2 -2
  109. package/esm/types/view.d.ts +6 -1
  110. package/package.json +1 -1
  111. package/types/core/constants.d.ts +7 -0
  112. package/types/core/view/view.d.ts +4 -0
  113. package/types/langs/ar.d.ts +1 -0
  114. package/types/langs/de.d.ts +1 -0
  115. package/types/langs/es.d.ts +1 -0
  116. package/types/langs/fi.d.ts +1 -0
  117. package/types/langs/fr.d.ts +4 -0
  118. package/types/langs/he.d.ts +1 -0
  119. package/types/langs/hu.d.ts +1 -0
  120. package/types/langs/it.d.ts +1 -0
  121. package/types/langs/ja.d.ts +1 -0
  122. package/types/langs/mn.d.ts +1 -0
  123. package/types/langs/nl.d.ts +1 -0
  124. package/types/langs/no.d.ts +22 -0
  125. package/types/langs/pl.d.ts +1 -0
  126. package/types/langs/pt_br.d.ts +1 -0
  127. package/types/langs/tr.d.ts +1 -0
  128. package/types/langs/zh_cn.d.ts +1 -0
  129. package/types/langs/zh_tw.d.ts +2 -0
  130. package/types/types/view.d.ts +6 -1
@@ -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.1
4
+ * Version: v4.6.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.1
4
+ * Version: v4.6.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.1
4
+ * Version: v4.6.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.1
4
+ * Version: v4.6.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.1
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 tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
301
- /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66927);
302
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
303
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56298);
304
- /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84976);
305
- /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71005);
306
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71096);
307
- /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46173);
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 _langs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(25202);
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 jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .k {
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,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_7__);
341
- (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_3__/* .keys */ .HP)(commands, false).forEach(words => {
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
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(this.messagePopup);
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
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(this.messagePopup);
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
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(this.messagePopup);
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
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node) &&
379
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isOrContains(j.editor, node) &&
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,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
405
- (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':speechRecognizeProgressResult')
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,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
408
- (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':speechRecognizeResult')
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
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.plugins.add('speech-recognize', SpeechRecognizeNative);
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 jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9810);
594
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(98253);
595
- /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26150);
596
- /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72197);
597
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
598
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
599
- /* harmony import */ var _helpers_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71722);
600
- /* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93676);
601
- /* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(22227);
602
- /* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_6__);
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
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.speechRecognize = {
618
- api: typeof _helpers_api__WEBPACK_IMPORTED_MODULE_4__/* .SpeechRecognition */ .o !== 'undefined' ? _helpers_api__WEBPACK_IMPORTED_MODULE_4__/* .SpeechRecognition */ .o : null,
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
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_6___default()));
637
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.speechRecognize = {
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,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .m)(jodit, 'speech');
642
+ const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech');
643
643
  return Boolean(api === null || api === void 0 ? void 0 : api.isEnabled);
644
644
  },
645
645
  isDisabled(jodit) {
@@ -652,17 +652,17 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.spe
652
652
  jodit.alert('Speech recognize API unsupported in your browser');
653
653
  return;
654
654
  }
655
- let api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .m)(jodit, 'speech');
655
+ let api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech');
656
656
  if (!api) {
657
657
  const nativeApi = new ApiConstructor();
658
- api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_5__/* .RecognizeManager */ .g(jodit.async, nativeApi);
659
- api.lang = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_7__/* .isString */ .K)(lang)
658
+ api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__/* .RecognizeManager */ .g(jodit.async, nativeApi);
659
+ api.lang = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(lang)
660
660
  ? lang
661
- : ((_a = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__/* .attr */ .C)(jodit.od.documentElement, 'lang')) !== null && _a !== void 0 ? _a : undefined);
661
+ : ((_a = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(jodit.od.documentElement, 'lang')) !== null && _a !== void 0 ? _a : undefined);
662
662
  api.continuous = continuous;
663
663
  api.interimResults = interimResults;
664
664
  api.sound = sound;
665
- (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .m)(jodit, 'speech', api);
665
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech', api);
666
666
  api.on('pulse', (enable) => {
667
667
  button.setMod('pulse', enable);
668
668
  });
@@ -670,13 +670,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.spe
670
670
  api.on('progress', (text) => jodit.e.fire('speechRecognizeProgressResult', text));
671
671
  api.on('error', (text) => jodit.message.error(text));
672
672
  button.hookStatus('beforeDestruct', () => {
673
- (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .m)(jodit, 'speech', null);
673
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech', null);
674
674
  api.destruct();
675
675
  });
676
676
  }
677
677
  if (control.args) {
678
678
  const key = control.args[0];
679
- if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_8__/* .isBoolean */ .L)(api[key])) {
679
+ if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__/* .isBoolean */ .L)(api[key])) {
680
680
  api[key] = !api[key];
681
681
  if (api.isEnabled) {
682
682
  api.restart();
@@ -699,7 +699,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.spe
699
699
  },
700
700
  childTemplate(jodit, key, value) {
701
701
  var _a;
702
- const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .m)(jodit, 'speech'), checked = (_a = api === null || api === void 0 ? void 0 : api[key]) !== null && _a !== void 0 ? _a : jodit.o.speechRecognize[key];
702
+ const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech'), checked = (_a = api === null || api === void 0 ? void 0 : api[key]) !== null && _a !== void 0 ? _a : jodit.o.speechRecognize[key];
703
703
  return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'>&nbsp;${value}</span>`;
704
704
  },
705
705
  mods: {
@@ -938,11 +938,11 @@ module.exports = {
938
938
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
939
939
  /* harmony export */ g: function() { return /* binding */ RecognizeManager; }
940
940
  /* harmony export */ });
941
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
942
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22664);
941
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
942
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
943
943
  /* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43431);
944
- /* harmony import */ var _sound__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(95473);
945
- /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81629);
944
+ /* harmony import */ var _sound__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95473);
945
+ /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81629);
946
946
  /*!
947
947
  * Jodit Editor (https://xdsoft.net/jodit/)
948
948
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -992,7 +992,7 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
992
992
  this._restartTimeout = this.async.setTimeout(() => {
993
993
  this.restart();
994
994
  this.emit('pulse', false);
995
- this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_3__/* .WARN */ .Z);
995
+ this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .WARN */ .Z);
996
996
  }, 5000);
997
997
  this.emit('pulse', true);
998
998
  };
@@ -1069,7 +1069,7 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
1069
1069
  this.emit('pulse', false);
1070
1070
  this.emit('result', this.__interimResults);
1071
1071
  this.__interimResults = '';
1072
- this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_3__/* .PII */ .N);
1072
+ this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .PII */ .N);
1073
1073
  this.restart();
1074
1074
  }
1075
1075
  _onProgress(e) {
@@ -1103,19 +1103,19 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
1103
1103
  e.error === 'language-not-supported') {
1104
1104
  this.emit('error', 'Language unavailable');
1105
1105
  }
1106
- this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_3__/* .WARN */ .Z);
1106
+ this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .WARN */ .Z);
1107
1107
  this.emit('pulse', false);
1108
1108
  this.stop();
1109
1109
  }
1110
1110
  _makeSound(frequency) {
1111
1111
  if (this.sound) {
1112
- (0,_sound__WEBPACK_IMPORTED_MODULE_1__/* .sound */ .s)({ frequency });
1112
+ (0,_sound__WEBPACK_IMPORTED_MODULE_3__/* .sound */ .s)({ frequency });
1113
1113
  }
1114
1114
  }
1115
1115
  };
1116
1116
  RecognizeManager._instances = new Set();
1117
- RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
1118
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
1117
+ RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
1118
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
1119
1119
  ], RecognizeManager);
1120
1120
 
1121
1121
 
@@ -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.1
4
+ * Version: v4.6.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
package/es2021/jodit.css 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.6.1
4
+ * Version: v4.6.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */