jodit 4.0.18 → 4.1.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 (574) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +72 -9
  3. package/es2015/jodit.css +3504 -3426
  4. package/es2015/jodit.fat.min.css +1 -1
  5. package/es2015/jodit.fat.min.js +3 -3
  6. package/es2015/jodit.js +12104 -6610
  7. package/es2015/jodit.min.css +1 -1
  8. package/es2015/jodit.min.js +3 -3
  9. package/es2015/plugins/debug/debug.js +14 -14
  10. package/es2015/plugins/debug/debug.min.js +3 -3
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +2 -2
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +117 -122
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +3 -3
  14. package/es2018/jodit.css +3504 -3426
  15. package/es2018/jodit.fat.min.css +1 -1
  16. package/es2018/jodit.fat.min.js +3 -3
  17. package/es2018/jodit.js +12075 -6581
  18. package/es2018/jodit.min.css +1 -1
  19. package/es2018/jodit.min.js +3 -3
  20. package/es2018/plugins/debug/debug.js +14 -14
  21. package/es2018/plugins/debug/debug.min.js +3 -3
  22. package/es2018/plugins/speech-recognize/speech-recognize.css +2 -2
  23. package/es2018/plugins/speech-recognize/speech-recognize.js +117 -122
  24. package/es2018/plugins/speech-recognize/speech-recognize.min.js +3 -3
  25. package/es2021/jodit.css +3504 -3426
  26. package/es2021/jodit.fat.min.css +1 -1
  27. package/es2021/jodit.fat.min.js +3 -3
  28. package/es2021/jodit.js +12075 -6581
  29. package/es2021/jodit.min.css +1 -1
  30. package/es2021/jodit.min.js +3 -3
  31. package/es2021/plugins/debug/debug.js +14 -14
  32. package/es2021/plugins/debug/debug.min.js +3 -3
  33. package/es2021/plugins/speech-recognize/speech-recognize.css +2 -2
  34. package/es2021/plugins/speech-recognize/speech-recognize.js +117 -122
  35. package/es2021/plugins/speech-recognize/speech-recognize.min.js +3 -3
  36. package/es2021.en/jodit.css +3504 -3426
  37. package/es2021.en/jodit.fat.min.css +1 -1
  38. package/es2021.en/jodit.fat.min.js +3 -3
  39. package/es2021.en/jodit.js +11822 -6381
  40. package/es2021.en/jodit.min.css +1 -1
  41. package/es2021.en/jodit.min.js +3 -3
  42. package/es2021.en/plugins/debug/debug.js +14 -14
  43. package/es2021.en/plugins/debug/debug.min.js +3 -3
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.css +2 -2
  45. package/es2021.en/plugins/speech-recognize/speech-recognize.js +76 -81
  46. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +3 -3
  47. package/es5/jodit.css +4207 -4114
  48. package/es5/jodit.fat.min.css +1 -1
  49. package/es5/jodit.fat.min.js +3 -3
  50. package/es5/jodit.js +7617 -7279
  51. package/es5/jodit.min.css +5 -5
  52. package/es5/jodit.min.js +3 -3
  53. package/es5/plugins/debug/debug.js +16 -16
  54. package/es5/plugins/debug/debug.min.js +3 -3
  55. package/es5/plugins/speech-recognize/speech-recognize.css +2 -2
  56. package/es5/plugins/speech-recognize/speech-recognize.js +122 -127
  57. package/es5/plugins/speech-recognize/speech-recognize.min.js +3 -3
  58. package/esm/config.d.ts +6 -19
  59. package/esm/config.js +18 -5
  60. package/esm/core/async/async.js +4 -4
  61. package/esm/core/component/component.d.ts +2 -2
  62. package/esm/core/component/component.js +4 -4
  63. package/esm/core/component/index.d.ts +1 -1
  64. package/esm/core/component/index.js +1 -1
  65. package/esm/core/constants.d.ts +1 -0
  66. package/esm/core/constants.js +2 -1
  67. package/esm/core/create/create.d.ts +3 -2
  68. package/esm/core/create/create.js +5 -4
  69. package/esm/core/decorators/autobind/autobind.d.ts +6 -0
  70. package/esm/core/decorators/autobind/autobind.js +6 -0
  71. package/esm/core/decorators/cache/cache.d.ts +2 -2
  72. package/esm/core/decorators/cache/cache.js +4 -4
  73. package/esm/core/decorators/debounce/debounce.d.ts +1 -1
  74. package/esm/core/decorators/debounce/debounce.js +2 -2
  75. package/esm/core/decorators/index.d.ts +3 -3
  76. package/esm/core/decorators/index.js +3 -3
  77. package/esm/core/decorators/wait/wait.js +1 -1
  78. package/esm/core/decorators/watch/watch.js +3 -3
  79. package/esm/core/dom/dom.js +2 -2
  80. package/esm/core/dom/lazy-walker.js +1 -1
  81. package/esm/core/event-emitter/event-emitter.js +4 -4
  82. package/esm/core/event-emitter/observable.d.ts +1 -1
  83. package/esm/core/event-emitter/observable.js +1 -1
  84. package/esm/core/event-emitter/store.js +1 -1
  85. package/esm/core/global.d.ts +1 -1
  86. package/esm/core/global.js +7 -7
  87. package/esm/core/helpers/array/as-array.d.ts +1 -1
  88. package/esm/core/helpers/array/to-array.js +1 -1
  89. package/esm/core/helpers/checker/index.d.ts +3 -3
  90. package/esm/core/helpers/checker/index.js +3 -3
  91. package/esm/core/helpers/checker/is-imp-interface.js +1 -1
  92. package/esm/core/helpers/checker/is-marker.js +1 -1
  93. package/esm/core/helpers/checker/is-url.d.ts +1 -1
  94. package/esm/core/helpers/checker/is-url.js +1 -1
  95. package/esm/core/helpers/checker/is-view-object.d.ts +1 -1
  96. package/esm/core/helpers/checker/is-view-object.js +1 -1
  97. package/esm/core/helpers/html/apply-styles.js +2 -2
  98. package/esm/core/helpers/html/clean-from-word.js +1 -1
  99. package/esm/core/helpers/html/index.d.ts +2 -2
  100. package/esm/core/helpers/html/index.js +2 -2
  101. package/esm/core/helpers/html/safe-html.js +1 -1
  102. package/esm/core/helpers/html/strip-tags.d.ts +1 -1
  103. package/esm/core/helpers/html/strip-tags.js +2 -2
  104. package/esm/core/helpers/index.d.ts +1 -1
  105. package/esm/core/helpers/index.js +1 -1
  106. package/esm/core/helpers/normalize/index.d.ts +2 -2
  107. package/esm/core/helpers/normalize/index.js +2 -2
  108. package/esm/core/helpers/normalize/normalize-css-value.js +2 -2
  109. package/esm/core/helpers/normalize/normalize-key-aliases.js +1 -1
  110. package/esm/core/helpers/size/get-scroll-parent.js +1 -1
  111. package/esm/core/helpers/size/index.d.ts +1 -1
  112. package/esm/core/helpers/size/index.js +1 -1
  113. package/esm/core/helpers/string/i18n.js +3 -3
  114. package/esm/core/helpers/string/trim.js +1 -1
  115. package/esm/core/helpers/utils/append-script.js +1 -1
  116. package/esm/core/helpers/utils/attr.js +1 -1
  117. package/esm/core/helpers/utils/config-proto.js +3 -3
  118. package/esm/core/helpers/utils/css.js +2 -2
  119. package/esm/core/helpers/utils/data-bind.d.ts +1 -1
  120. package/esm/core/helpers/utils/index.d.ts +1 -1
  121. package/esm/core/helpers/utils/index.js +1 -1
  122. package/esm/core/helpers/utils/print.js +2 -2
  123. package/esm/core/helpers/utils/reset.js +2 -2
  124. package/esm/core/helpers/utils/selector.d.ts +7 -6
  125. package/esm/core/helpers/utils/selector.js +6 -8
  126. package/esm/core/helpers/utils/set.js +2 -2
  127. package/esm/core/helpers/utils/utils.d.ts +4 -4
  128. package/esm/core/helpers/utils/utils.js +2 -2
  129. package/esm/core/plugin/helpers/init-instance.d.ts +1 -1
  130. package/esm/core/plugin/helpers/init-instance.js +3 -3
  131. package/esm/core/plugin/helpers/load.js +2 -2
  132. package/esm/core/plugin/helpers/make-instance.js +1 -1
  133. package/esm/core/plugin/index.d.ts +1 -1
  134. package/esm/core/plugin/index.js +1 -1
  135. package/esm/core/plugin/plugin-system.js +5 -5
  136. package/esm/core/plugin/plugin.js +1 -1
  137. package/esm/core/request/ajax.d.ts +1 -1
  138. package/esm/core/request/ajax.js +5 -5
  139. package/esm/core/selection/helpers/move-node-inside-start.js +1 -1
  140. package/esm/core/selection/index.d.ts +1 -1
  141. package/esm/core/selection/index.js +1 -1
  142. package/esm/core/selection/selection.js +5 -5
  143. package/esm/core/selection/style/api/extract.js +2 -2
  144. package/esm/core/selection/style/api/finite-state-machine.js +3 -2
  145. package/esm/core/selection/style/api/get-suit-child.d.ts +1 -1
  146. package/esm/core/selection/style/api/get-suit-parent.d.ts +1 -1
  147. package/esm/core/selection/style/api/has-same-style.js +2 -2
  148. package/esm/core/selection/style/api/index.d.ts +5 -5
  149. package/esm/core/selection/style/api/index.js +5 -5
  150. package/esm/core/selection/style/api/is-same-attributes.js +1 -1
  151. package/esm/core/selection/style/api/is-suit-element.d.ts +1 -1
  152. package/esm/core/selection/style/api/is-suit-element.js +1 -1
  153. package/esm/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
  154. package/esm/core/selection/style/api/list/toggle-ordered-list.js +1 -1
  155. package/esm/core/selection/style/api/list/wrap-list.d.ts +1 -1
  156. package/esm/core/selection/style/api/list/wrap-list.js +1 -1
  157. package/esm/core/selection/style/api/toggle-attributes.d.ts +1 -1
  158. package/esm/core/selection/style/api/toggle-attributes.js +6 -6
  159. package/esm/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
  160. package/esm/core/selection/style/api/wrap.d.ts +1 -1
  161. package/esm/core/selection/style/api/wrap.js +1 -1
  162. package/esm/core/selection/style/apply-style.d.ts +1 -1
  163. package/esm/core/selection/style/apply-style.js +1 -1
  164. package/esm/core/selection/style/commit-style.d.ts +2 -2
  165. package/esm/core/selection/style/commit-style.js +1 -1
  166. package/esm/core/selection/style/transactions.d.ts +1 -1
  167. package/esm/core/selection/style/transactions.js +3 -4
  168. package/esm/core/storage/index.d.ts +1 -1
  169. package/esm/core/storage/index.js +1 -1
  170. package/esm/core/traits/dlgs.d.ts +1 -1
  171. package/esm/core/traits/dlgs.js +1 -1
  172. package/esm/core/traits/mods.d.ts +1 -1
  173. package/esm/core/ui/button/button/button.d.ts +4 -4
  174. package/esm/core/ui/button/button/button.js +8 -11
  175. package/esm/core/ui/button/group/group.d.ts +1 -1
  176. package/esm/core/ui/button/group/group.js +2 -5
  177. package/esm/core/ui/button/tooltip/tooltip.d.ts +1 -1
  178. package/esm/core/ui/button/tooltip/tooltip.js +4 -9
  179. package/esm/core/ui/element.d.ts +1 -1
  180. package/esm/core/ui/element.js +4 -4
  181. package/esm/core/ui/form/block/block.d.ts +1 -1
  182. package/esm/core/ui/form/block/block.js +2 -5
  183. package/esm/core/ui/form/form.d.ts +1 -1
  184. package/esm/core/ui/form/form.js +5 -4
  185. package/esm/core/ui/form/index.d.ts +1 -1
  186. package/esm/core/ui/form/index.js +1 -1
  187. package/esm/core/ui/form/inputs/area/area.d.ts +2 -2
  188. package/esm/core/ui/form/inputs/area/area.js +2 -5
  189. package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
  190. package/esm/core/ui/form/inputs/checkbox/checkbox.js +2 -5
  191. package/esm/core/ui/form/inputs/file/file.d.ts +1 -1
  192. package/esm/core/ui/form/inputs/file/file.js +1 -4
  193. package/esm/core/ui/form/inputs/index.d.ts +2 -2
  194. package/esm/core/ui/form/inputs/index.js +2 -2
  195. package/esm/core/ui/form/inputs/input/input.d.ts +1 -1
  196. package/esm/core/ui/form/inputs/input/input.js +5 -8
  197. package/esm/core/ui/form/inputs/select/select.d.ts +1 -1
  198. package/esm/core/ui/form/inputs/select/select.js +1 -4
  199. package/esm/core/ui/group/group.d.ts +2 -3
  200. package/esm/core/ui/group/group.js +3 -8
  201. package/esm/core/ui/group/list.d.ts +2 -2
  202. package/esm/core/ui/group/list.js +4 -7
  203. package/esm/core/ui/group/separator.d.ts +0 -3
  204. package/esm/core/ui/group/separator.js +1 -1
  205. package/esm/core/ui/group/spacer.d.ts +0 -3
  206. package/esm/core/ui/group/spacer.js +1 -1
  207. package/esm/core/ui/helpers/get-strong-control-types.js +2 -2
  208. package/esm/core/ui/icon.js +3 -3
  209. package/esm/core/ui/index.d.ts +3 -3
  210. package/esm/core/ui/index.js +3 -3
  211. package/esm/core/ui/popup/popup.d.ts +1 -1
  212. package/esm/core/ui/popup/popup.js +4 -9
  213. package/esm/core/ui/progress-bar/progress-bar.d.ts +1 -1
  214. package/esm/core/ui/progress-bar/progress-bar.js +0 -5
  215. package/esm/core/view/view-with-toolbar.d.ts +5 -5
  216. package/esm/core/view/view-with-toolbar.js +11 -13
  217. package/esm/core/view/view.d.ts +6 -6
  218. package/esm/core/view/view.js +15 -8
  219. package/esm/index.d.ts +2 -7
  220. package/esm/index.js +11 -4
  221. package/esm/jodit.d.ts +7 -7
  222. package/esm/jodit.js +16 -17
  223. package/esm/languages.js +2 -2
  224. package/esm/modules/context-menu/context-menu.d.ts +3 -3
  225. package/esm/modules/context-menu/context-menu.js +4 -9
  226. package/esm/modules/dialog/alert.js +2 -2
  227. package/esm/modules/dialog/confirm.js +1 -1
  228. package/esm/modules/dialog/dialog.d.ts +2 -2
  229. package/esm/modules/dialog/dialog.js +9 -12
  230. package/esm/modules/dialog/index.d.ts +2 -2
  231. package/esm/modules/dialog/index.js +2 -2
  232. package/esm/modules/dialog/prompt.js +1 -1
  233. package/esm/modules/file-browser/builders/context-menu.d.ts +1 -1
  234. package/esm/modules/file-browser/builders/context-menu.js +3 -3
  235. package/esm/modules/file-browser/config.d.ts +3 -0
  236. package/esm/modules/file-browser/config.js +2 -5
  237. package/esm/modules/file-browser/data-provider.d.ts +1 -1
  238. package/esm/modules/file-browser/data-provider.js +2 -2
  239. package/esm/modules/file-browser/file-browser.d.ts +3 -3
  240. package/esm/modules/file-browser/file-browser.js +13 -16
  241. package/esm/modules/file-browser/listeners/native-listeners.d.ts +1 -1
  242. package/esm/modules/file-browser/listeners/native-listeners.js +1 -1
  243. package/esm/modules/file-browser/listeners/self-listeners.js +4 -4
  244. package/esm/modules/file-browser/ui/files/files.d.ts +1 -1
  245. package/esm/modules/file-browser/ui/tree/tree.d.ts +1 -1
  246. package/esm/modules/history/history.d.ts +1 -1
  247. package/esm/modules/history/history.js +3 -3
  248. package/esm/modules/history/snapshot.js +1 -1
  249. package/esm/modules/image-editor/config.js +1 -1
  250. package/esm/modules/image-editor/image-editor.d.ts +2 -2
  251. package/esm/modules/image-editor/image-editor.js +4 -9
  252. package/esm/modules/index.d.ts +13 -12
  253. package/esm/modules/index.js +13 -12
  254. package/esm/modules/messages/message.js +1 -1
  255. package/esm/modules/messages/messages.d.ts +1 -1
  256. package/esm/modules/messages/messages.js +1 -6
  257. package/esm/modules/status-bar/status-bar.d.ts +3 -3
  258. package/esm/modules/status-bar/status-bar.js +3 -8
  259. package/esm/modules/table/table.js +3 -3
  260. package/esm/modules/toolbar/button/button.d.ts +2 -2
  261. package/esm/modules/toolbar/button/button.js +9 -14
  262. package/esm/modules/toolbar/button/content.d.ts +1 -1
  263. package/esm/modules/toolbar/button/content.js +3 -6
  264. package/esm/modules/toolbar/button/select/select.d.ts +1 -1
  265. package/esm/modules/toolbar/button/select/select.js +0 -3
  266. package/esm/modules/toolbar/collection/collection.d.ts +4 -4
  267. package/esm/modules/toolbar/collection/collection.js +3 -8
  268. package/esm/modules/toolbar/collection/editor-collection.d.ts +1 -1
  269. package/esm/modules/toolbar/collection/editor-collection.js +2 -5
  270. package/esm/modules/toolbar/factory.js +2 -2
  271. package/esm/modules/uploader/config.js +1 -1
  272. package/esm/modules/uploader/helpers/index.d.ts +2 -2
  273. package/esm/modules/uploader/helpers/index.js +2 -2
  274. package/esm/modules/uploader/helpers/process-old-browser-drag.js +1 -1
  275. package/esm/modules/uploader/helpers/send.js +1 -2
  276. package/esm/modules/uploader/uploader.d.ts +1 -1
  277. package/esm/modules/uploader/uploader.js +3 -8
  278. package/esm/modules/widget/color-picker/color-picker.d.ts +3 -3
  279. package/esm/modules/widget/color-picker/color-picker.js +4 -9
  280. package/esm/modules/widget/file-selector/file-selector.js +2 -2
  281. package/esm/modules/widget/index.d.ts +1 -1
  282. package/esm/modules/widget/index.js +1 -1
  283. package/esm/modules/widget/tabs/tabs.d.ts +1 -1
  284. package/esm/modules/widget/tabs/tabs.js +2 -7
  285. package/esm/plugins/about/about.d.ts +0 -5
  286. package/esm/plugins/about/about.js +3 -8
  287. package/esm/plugins/add-new-line/add-new-line.d.ts +1 -1
  288. package/esm/plugins/add-new-line/add-new-line.js +2 -7
  289. package/esm/plugins/add-new-line/config.js +1 -1
  290. package/esm/plugins/ai-assistant/ai-assistant.d.ts +27 -0
  291. package/esm/plugins/ai-assistant/ai-assistant.js +104 -0
  292. package/esm/plugins/ai-assistant/ai-assistant.svg.js +1 -0
  293. package/esm/plugins/ai-assistant/chat-bot.svg.js +1 -0
  294. package/esm/plugins/ai-assistant/config.d.ts +72 -0
  295. package/esm/plugins/ai-assistant/config.js +91 -0
  296. package/esm/plugins/ai-assistant/langs/en.d.ts +9 -0
  297. package/esm/plugins/ai-assistant/langs/en.js +14 -0
  298. package/esm/plugins/ai-assistant/langs/es.d.ts +40 -0
  299. package/esm/plugins/ai-assistant/langs/es.js +45 -0
  300. package/esm/plugins/ai-assistant/langs/index.d.ts +8 -0
  301. package/esm/plugins/ai-assistant/langs/index.js +8 -0
  302. package/esm/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
  303. package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +141 -0
  304. package/esm/plugins/backspace/backspace.js +5 -5
  305. package/esm/plugins/backspace/cases/check-join-neighbors.js +2 -2
  306. package/esm/plugins/backspace/cases/check-remove-char.js +2 -2
  307. package/esm/plugins/backspace/cases/check-remove-empty-parent.js +1 -1
  308. package/esm/plugins/backspace/cases/check-remove-unbreakable-element.js +1 -1
  309. package/esm/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
  310. package/esm/plugins/backspace/cases/check-unwrap-first-list-item.js +1 -1
  311. package/esm/plugins/backspace/cases/index.d.ts +1 -1
  312. package/esm/plugins/backspace/cases/index.js +6 -6
  313. package/esm/plugins/bold/bold.js +4 -4
  314. package/esm/plugins/class-span/class-span.js +3 -3
  315. package/esm/plugins/clean-html/clean-html.js +5 -5
  316. package/esm/plugins/clean-html/config.js +1 -1
  317. package/esm/plugins/clean-html/helpers/get-hash.js +1 -1
  318. package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js +1 -1
  319. package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.js +1 -1
  320. package/esm/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
  321. package/esm/plugins/clean-html/helpers/visitor/filters/index.js +2 -2
  322. package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +1 -1
  323. package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
  324. package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.js +1 -1
  325. package/esm/plugins/clipboard/clipboard.js +1 -1
  326. package/esm/plugins/clipboard/config.js +1 -1
  327. package/esm/plugins/color/color.js +1 -1
  328. package/esm/plugins/color/config.js +3 -3
  329. package/esm/plugins/copy-format/copy-format.js +2 -2
  330. package/esm/plugins/delete/delete.js +2 -2
  331. package/esm/plugins/drag-and-drop/drag-and-drop.js +2 -2
  332. package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +3 -3
  333. package/esm/plugins/dtd/dtd.js +3 -3
  334. package/esm/plugins/enter/enter.js +5 -5
  335. package/esm/plugins/enter/helpers/check-br.js +2 -2
  336. package/esm/plugins/enter/helpers/index.d.ts +2 -2
  337. package/esm/plugins/enter/helpers/index.js +2 -2
  338. package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
  339. package/esm/plugins/enter/helpers/split-fragment.js +1 -1
  340. package/esm/plugins/file/file.js +2 -2
  341. package/esm/plugins/focus/focus.js +1 -1
  342. package/esm/plugins/font/config.js +4 -4
  343. package/esm/plugins/font/font.js +1 -1
  344. package/esm/plugins/format-block/config.js +2 -2
  345. package/esm/plugins/fullsize/config.d.ts +0 -3
  346. package/esm/plugins/fullsize/config.js +1 -4
  347. package/esm/plugins/fullsize/fullsize.d.ts +1 -1
  348. package/esm/plugins/fullsize/fullsize.js +2 -7
  349. package/esm/plugins/hotkeys/hotkeys.js +2 -2
  350. package/esm/plugins/hr/hr.js +1 -1
  351. package/esm/plugins/iframe/iframe.js +2 -2
  352. package/esm/plugins/image/image.js +3 -3
  353. package/esm/plugins/image-processor/image-processor.js +3 -3
  354. package/esm/plugins/image-properties/image-properties.d.ts +1 -1
  355. package/esm/plugins/image-properties/image-properties.js +6 -11
  356. package/esm/plugins/indent/config.js +2 -2
  357. package/esm/plugins/indent/indent.js +1 -1
  358. package/esm/plugins/index.d.ts +1 -0
  359. package/esm/plugins/inline-popup/config/config.js +9 -11
  360. package/esm/plugins/inline-popup/config/items/img.js +1 -1
  361. package/esm/plugins/inline-popup/inline-popup.d.ts +1 -1
  362. package/esm/plugins/inline-popup/inline-popup.js +6 -11
  363. package/esm/plugins/justify/justify.js +3 -3
  364. package/esm/plugins/key-arrow-outside/key-arrow-outside.js +2 -2
  365. package/esm/plugins/limit/limit.js +1 -1
  366. package/esm/plugins/line-height/config.js +1 -1
  367. package/esm/plugins/line-height/line-height.js +3 -3
  368. package/esm/plugins/link/config.d.ts +1 -1
  369. package/esm/plugins/link/config.js +2 -2
  370. package/esm/plugins/link/link.js +2 -2
  371. package/esm/plugins/link/template.js +1 -1
  372. package/esm/plugins/media/media.js +1 -1
  373. package/esm/plugins/mobile/config.d.ts +3 -0
  374. package/esm/plugins/mobile/config.js +2 -5
  375. package/esm/plugins/mobile/mobile.js +1 -1
  376. package/esm/plugins/ordered-list/config.js +1 -1
  377. package/esm/plugins/ordered-list/ordered-list.js +1 -1
  378. package/esm/plugins/paste/config.js +3 -1
  379. package/esm/plugins/paste/helpers.js +2 -2
  380. package/esm/plugins/paste/paste.js +4 -4
  381. package/esm/plugins/paste-from-word/config.js +1 -1
  382. package/esm/plugins/paste-from-word/paste-from-word.d.ts +1 -1
  383. package/esm/plugins/paste-from-word/paste-from-word.js +3 -3
  384. package/esm/plugins/paste-storage/paste-storage.d.ts +1 -6
  385. package/esm/plugins/paste-storage/paste-storage.js +2 -7
  386. package/esm/plugins/placeholder/placeholder.d.ts +1 -1
  387. package/esm/plugins/placeholder/placeholder.js +5 -10
  388. package/esm/plugins/preview/preview.d.ts +1 -1
  389. package/esm/plugins/preview/preview.js +1 -6
  390. package/esm/plugins/print/print.js +4 -5
  391. package/esm/plugins/redo-undo/redo-undo.js +2 -2
  392. package/esm/plugins/resize-cells/resize-cells.d.ts +1 -1
  393. package/esm/plugins/resize-cells/resize-cells.js +2 -7
  394. package/esm/plugins/resize-handler/resize-handler.js +3 -3
  395. package/esm/plugins/resizer/resizer.d.ts +1 -1
  396. package/esm/plugins/resizer/resizer.js +3 -9
  397. package/esm/plugins/search/config.js +2 -2
  398. package/esm/plugins/search/helpers/index.d.ts +1 -1
  399. package/esm/plugins/search/helpers/index.js +1 -1
  400. package/esm/plugins/search/search.d.ts +1 -1
  401. package/esm/plugins/search/search.js +6 -6
  402. package/esm/plugins/search/ui/search.d.ts +1 -1
  403. package/esm/plugins/search/ui/search.js +2 -5
  404. package/esm/plugins/select/select.js +3 -3
  405. package/esm/plugins/select-cells/select-cells.js +4 -4
  406. package/esm/plugins/size/config.js +1 -1
  407. package/esm/plugins/size/size.d.ts +1 -1
  408. package/esm/plugins/size/size.js +2 -7
  409. package/esm/plugins/source/config.js +1 -1
  410. package/esm/plugins/source/editor/engines/area.js +1 -1
  411. package/esm/plugins/source/editor/engines/index.d.ts +1 -1
  412. package/esm/plugins/source/editor/engines/index.js +1 -1
  413. package/esm/plugins/source/source.d.ts +1 -1
  414. package/esm/plugins/source/source.js +4 -9
  415. package/esm/plugins/speech-recognize/config.js +3 -3
  416. package/esm/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
  417. package/esm/plugins/speech-recognize/helpers/recognize-manager.js +2 -2
  418. package/esm/plugins/speech-recognize/speech-recognize.d.ts +1 -1
  419. package/esm/plugins/speech-recognize/speech-recognize.js +5 -10
  420. package/esm/plugins/spellcheck/config.js +1 -1
  421. package/esm/plugins/spellcheck/spellcheck.js +3 -3
  422. package/esm/plugins/stat/stat.js +1 -1
  423. package/esm/plugins/sticky/sticky.d.ts +1 -1
  424. package/esm/plugins/sticky/sticky.js +3 -8
  425. package/esm/plugins/symbols/config.js +1 -1
  426. package/esm/plugins/symbols/symbols.d.ts +1 -1
  427. package/esm/plugins/symbols/symbols.js +3 -8
  428. package/esm/plugins/tab/tab.js +3 -3
  429. package/esm/plugins/table/config.js +2 -2
  430. package/esm/plugins/table/table.d.ts +1 -1
  431. package/esm/plugins/table/table.js +0 -5
  432. package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +1 -1
  433. package/esm/plugins/video/config.js +3 -3
  434. package/esm/plugins/wrap-nodes/config.d.ts +1 -1
  435. package/esm/plugins/wrap-nodes/wrap-nodes.js +3 -3
  436. package/esm/plugins/xpath/xpath.d.ts +1 -6
  437. package/esm/plugins/xpath/xpath.js +4 -9
  438. package/esm/polyfills.d.ts +10 -0
  439. package/esm/types/view.d.ts +1 -1
  440. package/package.json +2 -2
  441. package/types/config.d.ts +6 -19
  442. package/types/core/component/component.d.ts +2 -2
  443. package/types/core/component/index.d.ts +1 -1
  444. package/types/core/constants.d.ts +1 -0
  445. package/types/core/create/create.d.ts +3 -2
  446. package/types/core/decorators/autobind/autobind.d.ts +6 -0
  447. package/types/core/decorators/cache/cache.d.ts +2 -2
  448. package/types/core/decorators/debounce/debounce.d.ts +1 -1
  449. package/types/core/decorators/index.d.ts +3 -3
  450. package/types/core/event-emitter/observable.d.ts +1 -1
  451. package/types/core/global.d.ts +1 -1
  452. package/types/core/helpers/array/as-array.d.ts +1 -1
  453. package/types/core/helpers/checker/index.d.ts +3 -3
  454. package/types/core/helpers/checker/is-url.d.ts +1 -1
  455. package/types/core/helpers/checker/is-view-object.d.ts +1 -1
  456. package/types/core/helpers/html/index.d.ts +2 -2
  457. package/types/core/helpers/html/strip-tags.d.ts +1 -1
  458. package/types/core/helpers/index.d.ts +1 -1
  459. package/types/core/helpers/normalize/index.d.ts +2 -2
  460. package/types/core/helpers/size/index.d.ts +1 -1
  461. package/types/core/helpers/utils/data-bind.d.ts +1 -1
  462. package/types/core/helpers/utils/index.d.ts +1 -1
  463. package/types/core/helpers/utils/selector.d.ts +7 -6
  464. package/types/core/helpers/utils/utils.d.ts +4 -4
  465. package/types/core/plugin/helpers/init-instance.d.ts +1 -1
  466. package/types/core/plugin/index.d.ts +1 -1
  467. package/types/core/request/ajax.d.ts +1 -1
  468. package/types/core/selection/index.d.ts +1 -1
  469. package/types/core/selection/style/api/get-suit-child.d.ts +1 -1
  470. package/types/core/selection/style/api/get-suit-parent.d.ts +1 -1
  471. package/types/core/selection/style/api/index.d.ts +5 -5
  472. package/types/core/selection/style/api/is-suit-element.d.ts +1 -1
  473. package/types/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
  474. package/types/core/selection/style/api/list/wrap-list.d.ts +1 -1
  475. package/types/core/selection/style/api/toggle-attributes.d.ts +1 -1
  476. package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
  477. package/types/core/selection/style/api/wrap.d.ts +1 -1
  478. package/types/core/selection/style/apply-style.d.ts +1 -1
  479. package/types/core/selection/style/commit-style.d.ts +2 -2
  480. package/types/core/selection/style/transactions.d.ts +1 -1
  481. package/types/core/storage/index.d.ts +1 -1
  482. package/types/core/traits/dlgs.d.ts +1 -1
  483. package/types/core/traits/mods.d.ts +1 -1
  484. package/types/core/ui/button/button/button.d.ts +4 -4
  485. package/types/core/ui/button/group/group.d.ts +1 -1
  486. package/types/core/ui/button/tooltip/tooltip.d.ts +1 -1
  487. package/types/core/ui/element.d.ts +1 -1
  488. package/types/core/ui/form/block/block.d.ts +1 -1
  489. package/types/core/ui/form/form.d.ts +1 -1
  490. package/types/core/ui/form/index.d.ts +1 -1
  491. package/types/core/ui/form/inputs/area/area.d.ts +2 -2
  492. package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
  493. package/types/core/ui/form/inputs/file/file.d.ts +1 -1
  494. package/types/core/ui/form/inputs/index.d.ts +2 -2
  495. package/types/core/ui/form/inputs/input/input.d.ts +1 -1
  496. package/types/core/ui/form/inputs/select/select.d.ts +1 -1
  497. package/types/core/ui/group/group.d.ts +2 -3
  498. package/types/core/ui/group/list.d.ts +2 -2
  499. package/types/core/ui/group/separator.d.ts +0 -3
  500. package/types/core/ui/group/spacer.d.ts +0 -3
  501. package/types/core/ui/index.d.ts +3 -3
  502. package/types/core/ui/popup/popup.d.ts +1 -1
  503. package/types/core/ui/progress-bar/progress-bar.d.ts +1 -1
  504. package/types/core/view/view-with-toolbar.d.ts +5 -5
  505. package/types/core/view/view.d.ts +6 -6
  506. package/types/index.d.ts +2 -7
  507. package/types/jodit.d.ts +7 -7
  508. package/types/modules/context-menu/context-menu.d.ts +3 -3
  509. package/types/modules/dialog/dialog.d.ts +2 -2
  510. package/types/modules/dialog/index.d.ts +2 -2
  511. package/types/modules/file-browser/builders/context-menu.d.ts +1 -1
  512. package/types/modules/file-browser/config.d.ts +3 -0
  513. package/types/modules/file-browser/data-provider.d.ts +1 -1
  514. package/types/modules/file-browser/file-browser.d.ts +3 -3
  515. package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -1
  516. package/types/modules/file-browser/ui/files/files.d.ts +1 -1
  517. package/types/modules/file-browser/ui/tree/tree.d.ts +1 -1
  518. package/types/modules/history/history.d.ts +1 -1
  519. package/types/modules/image-editor/image-editor.d.ts +2 -2
  520. package/types/modules/index.d.ts +13 -12
  521. package/types/modules/messages/messages.d.ts +1 -1
  522. package/types/modules/status-bar/status-bar.d.ts +3 -3
  523. package/types/modules/toolbar/button/button.d.ts +2 -2
  524. package/types/modules/toolbar/button/content.d.ts +1 -1
  525. package/types/modules/toolbar/button/select/select.d.ts +1 -1
  526. package/types/modules/toolbar/collection/collection.d.ts +4 -4
  527. package/types/modules/toolbar/collection/editor-collection.d.ts +1 -1
  528. package/types/modules/uploader/helpers/index.d.ts +2 -2
  529. package/types/modules/uploader/uploader.d.ts +1 -1
  530. package/types/modules/widget/color-picker/color-picker.d.ts +3 -3
  531. package/types/modules/widget/index.d.ts +1 -1
  532. package/types/modules/widget/tabs/tabs.d.ts +1 -1
  533. package/types/plugins/about/about.d.ts +0 -5
  534. package/types/plugins/add-new-line/add-new-line.d.ts +1 -1
  535. package/types/plugins/ai-assistant/ai-assistant.d.ts +27 -0
  536. package/types/plugins/ai-assistant/config.d.ts +72 -0
  537. package/types/plugins/ai-assistant/langs/en.d.ts +9 -0
  538. package/types/plugins/ai-assistant/langs/es.d.ts +40 -0
  539. package/types/plugins/ai-assistant/langs/index.d.ts +8 -0
  540. package/types/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
  541. package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
  542. package/types/plugins/backspace/cases/index.d.ts +1 -1
  543. package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
  544. package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
  545. package/types/plugins/enter/helpers/index.d.ts +2 -2
  546. package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
  547. package/types/plugins/fullsize/config.d.ts +0 -3
  548. package/types/plugins/fullsize/fullsize.d.ts +1 -1
  549. package/types/plugins/image-properties/image-properties.d.ts +1 -1
  550. package/types/plugins/index.d.ts +1 -0
  551. package/types/plugins/inline-popup/inline-popup.d.ts +1 -1
  552. package/types/plugins/link/config.d.ts +1 -1
  553. package/types/plugins/mobile/config.d.ts +3 -0
  554. package/types/plugins/paste-from-word/paste-from-word.d.ts +1 -1
  555. package/types/plugins/paste-storage/paste-storage.d.ts +1 -6
  556. package/types/plugins/placeholder/placeholder.d.ts +1 -1
  557. package/types/plugins/preview/preview.d.ts +1 -1
  558. package/types/plugins/resize-cells/resize-cells.d.ts +1 -1
  559. package/types/plugins/resizer/resizer.d.ts +1 -1
  560. package/types/plugins/search/helpers/index.d.ts +1 -1
  561. package/types/plugins/search/search.d.ts +1 -1
  562. package/types/plugins/search/ui/search.d.ts +1 -1
  563. package/types/plugins/size/size.d.ts +1 -1
  564. package/types/plugins/source/editor/engines/index.d.ts +1 -1
  565. package/types/plugins/source/source.d.ts +1 -1
  566. package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
  567. package/types/plugins/speech-recognize/speech-recognize.d.ts +1 -1
  568. package/types/plugins/sticky/sticky.d.ts +1 -1
  569. package/types/plugins/symbols/symbols.d.ts +1 -1
  570. package/types/plugins/table/table.d.ts +1 -1
  571. package/types/plugins/wrap-nodes/config.d.ts +1 -1
  572. package/types/plugins/xpath/xpath.d.ts +1 -6
  573. package/types/polyfills.d.ts +10 -0
  574. package/types/types/view.d.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
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.0.18
4
+ * Version: v4.1.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -17,32 +17,32 @@
17
17
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
18
18
  }
19
19
  })(self, function() {
20
- return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[101],{
20
+ return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[486],{
21
21
 
22
- /***/ 83780:
22
+ /***/ 40773:
23
23
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
24
24
 
25
25
  __webpack_require__.r(__webpack_exports__);
26
26
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27
27
  /* harmony export */ Debug: function() { return /* binding */ Debug; }
28
28
  /* harmony export */ });
29
- /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97651);
30
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79102);
31
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9162);
32
- /* harmony import */ var jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44058);
33
- /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62924);
29
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
30
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
31
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56298);
32
+ /* harmony import */ var jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61793);
33
+ /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29866);
34
34
  /*!
35
35
  * Jodit Editor (https://xdsoft.net/jodit/)
36
36
  * Released under MIT see LICENSE.txt in the project root for license information.
37
37
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
38
38
  */
39
39
 
40
- // @ts-ignore
41
40
 
41
+ // @ts-ignore
42
42
 
43
43
 
44
44
 
45
- class Debug extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
45
+ class Debug extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .k {
46
46
  afterInit(jodit) {
47
47
  const mirror = jodit.create.div();
48
48
  const tree = jodit.create.div();
@@ -73,11 +73,11 @@ function renderText(elm) {
73
73
  if (!elm.nodeValue) {
74
74
  return "<span style='color:red'>empty</span>";
75
75
  }
76
- return (0,jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_3__/* .stripTags */ .o)(elm.nodeValue.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_4__.INVISIBLE_SPACE_REG_EXP)(), 'INV'));
76
+ return (0,jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_3__/* .stripTags */ .K)(elm.nodeValue.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), 'INV'));
77
77
  }
78
78
  function render(elm, level = 0) {
79
79
  return `<div style='padding-left: ${level * 5}px'>
80
- ${elm.nodeName} ${jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .i.isText(elm) ? `- ${renderText(elm)}` : ''}
80
+ ${elm.nodeName} ${jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(elm) ? `- ${renderText(elm)}` : ''}
81
81
  ${Array.from(elm.childNodes)
82
82
  .map(ch => render(ch, level + 1))
83
83
  .join('')}
@@ -91,7 +91,7 @@ function render(elm, level = 0) {
91
91
  },
92
92
  /******/ function(__webpack_require__) { // webpackRuntimeModules
93
93
  /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
94
- /******/ var __webpack_exports__ = (__webpack_exec__(83780));
94
+ /******/ var __webpack_exports__ = (__webpack_exec__(40773));
95
95
  /******/ return __webpack_exports__;
96
96
  /******/ }
97
97
  ]);
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
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.0.18
4
+ * Version: v4.1.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
 
9
9
 
10
- "use strict";((e,n)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}})(self,(()=>(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[101],{83780(e,n,t){t.r(n),t.d(n,{Debug(){return s}});var o=t(97651),d=(t(79102),t(9162)),r=t(44058),a=t(62924);class s extends o.S{afterInit(e){const n=e.create.div(),t=e.create.div(),o=e.create.div();n.appendChild(t),n.appendChild(o),e.workplace.appendChild(n),Object.assign(n.style,{padding:"16px",backgroundColor:"#fcfcfc"}),Object.assign(o.style,{paddingTop:"16px"}),e.e.on("keydown keyup keypress change afterInit updateDebug",(()=>{t.innerHTML=i(e.editor)})).on(e.od,"selectionchange",(()=>{const n=e.selection.range;t.innerHTML=i(e.editor),o.innerHTML=`start ${n.startContainer.nodeName} ${n.startOffset}<br>end ${n.endContainer.nodeName} ${n.endOffset}`}))}beforeDestruct(e){}}function i(e,n=0){return`<div style='padding-left: ${5*n}px'>\n\t\t${e.nodeName} ${d.i.isText(e)?"- "+(e=>e.nodeValue?(0,r.o)(e.nodeValue.replace((0,a.INVISIBLE_SPACE_REG_EXP)(),"INV")):"<span style='color:red'>empty</span>")(e):""}\n\t${Array.from(e.childNodes).map((e=>i(e,n+1))).join("")}\n</div>`}}},e=>e(e.s=83780)])));
10
+ "use strict";((e,n)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}})(self,(()=>(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[486],{40773(e,n,t){t.r(n),t.d(n,{Debug(){return s}});var o=t(17352),d=t(55186),r=(t(56298),t(61793)),a=t(29866);class s extends a.k{afterInit(e){const n=e.create.div(),t=e.create.div(),o=e.create.div();n.appendChild(t),n.appendChild(o),e.workplace.appendChild(n),Object.assign(n.style,{padding:"16px",backgroundColor:"#fcfcfc"}),Object.assign(o.style,{paddingTop:"16px"}),e.e.on("keydown keyup keypress change afterInit updateDebug",(()=>{t.innerHTML=i(e.editor)})).on(e.od,"selectionchange",(()=>{const n=e.selection.range;t.innerHTML=i(e.editor),o.innerHTML=`start ${n.startContainer.nodeName} ${n.startOffset}<br>end ${n.endContainer.nodeName} ${n.endOffset}`}))}beforeDestruct(e){}}function i(e,n=0){return`<div style='padding-left: ${5*n}px'>\n\t\t${e.nodeName} ${d.J.isText(e)?"- "+(e=>e.nodeValue?(0,r.K)(e.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"INV")):"<span style='color:red'>empty</span>")(e):""}\n\t${Array.from(e.childNodes).map((e=>i(e,n+1))).join("")}\n</div>`}}},e=>e(e.s=40773)])));
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
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.0.18
4
+ * Version: v4.1.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
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.0.18
4
+ * Version: v4.1.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -16,20 +16,20 @@
16
16
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
17
17
  }
18
18
  })(self, function() {
19
- return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[781],{
19
+ return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[882],{
20
20
 
21
- /***/ 92880:
21
+ /***/ 71096:
22
22
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
23
23
 
24
24
  "use strict";
25
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37446);
26
- /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25920);
27
- /* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(88751);
28
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30052);
29
- /* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30043);
30
- /* harmony import */ var _helpers_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17439);
31
- /* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55106);
32
- /* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_5__);
25
+ /* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9810);
26
+ /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72197);
27
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
28
+ /* harmony import */ var _helpers_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71722);
29
+ /* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(93676);
30
+ /* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22227);
31
+ /* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_4__);
32
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
33
33
  /*!
34
34
  * Jodit Editor (https://xdsoft.net/jodit/)
35
35
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -42,8 +42,8 @@ return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[781]
42
42
 
43
43
 
44
44
 
45
- jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.speechRecognize = {
46
- api: _helpers_api__WEBPACK_IMPORTED_MODULE_4__/* .SpeechRecognition */ .M,
45
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.speechRecognize = {
46
+ api: _helpers_api__WEBPACK_IMPORTED_MODULE_2__/* .SpeechRecognition */ .o,
47
47
  sound: true,
48
48
  continuous: true,
49
49
  interimResults: true,
@@ -61,10 +61,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.speechRecogn
61
61
  'select all': 'selectall'
62
62
  }
63
63
  };
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 = {
64
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_4___default()));
65
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.speechRecognize = {
66
66
  isActive(jodit, _) {
67
- const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(jodit, 'speech');
67
+ const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, 'speech');
68
68
  return Boolean(api?.isEnabled);
69
69
  },
70
70
  isDisabled(jodit) {
@@ -76,15 +76,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.spe
76
76
  jodit.alert('Speech recognize API unsupported in your browser');
77
77
  return;
78
78
  }
79
- let api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(jodit, 'speech');
79
+ let api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, 'speech');
80
80
  if (!api) {
81
81
  const nativeApi = new Api();
82
- api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_3__/* .RecognizeManager */ .v(jodit.async, nativeApi);
82
+ api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_3__/* .RecognizeManager */ .g(jodit.async, nativeApi);
83
83
  api.lang = lang;
84
84
  api.continuous = continuous;
85
85
  api.interimResults = interimResults;
86
86
  api.sound = sound;
87
- (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(jodit, 'speech', api);
87
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, 'speech', api);
88
88
  api.on('pulse', (enable) => {
89
89
  button.setMod('pulse', enable);
90
90
  });
@@ -96,7 +96,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.spe
96
96
  }
97
97
  if (control.args) {
98
98
  const key = control.args[0];
99
- if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__/* .isBoolean */ .j)(api[key])) {
99
+ if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__/* .isBoolean */ .L)(api[key])) {
100
100
  api[key] = !api[key];
101
101
  if (api.isEnabled) {
102
102
  api.restart();
@@ -115,7 +115,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.spe
115
115
  interimResults: 'Interim Results'
116
116
  },
117
117
  childTemplate(jodit, key, value) {
118
- const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(jodit, 'speech'), checked = api?.[key] ?? jodit.o.speechRecognize[key];
118
+ const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, 'speech'), checked = api?.[key] ?? jodit.o.speechRecognize[key];
119
119
  return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'>&nbsp;${value}</span>`;
120
120
  },
121
121
  mods: {
@@ -126,13 +126,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.spe
126
126
 
127
127
  /***/ }),
128
128
 
129
- /***/ 16618:
129
+ /***/ 81629:
130
130
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
131
131
 
132
132
  "use strict";
133
133
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
134
- /* harmony export */ n: function() { return /* binding */ PII; },
135
- /* harmony export */ u: function() { return /* binding */ WARN; }
134
+ /* harmony export */ N: function() { return /* binding */ PII; },
135
+ /* harmony export */ Z: function() { return /* binding */ WARN; }
136
136
  /* harmony export */ });
137
137
  /*!
138
138
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -149,12 +149,12 @@ const WARN = 940;
149
149
 
150
150
  /***/ }),
151
151
 
152
- /***/ 17439:
152
+ /***/ 71722:
153
153
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
154
154
 
155
155
  "use strict";
156
156
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
157
- /* harmony export */ M: function() { return /* binding */ SpeechRecognition; }
157
+ /* harmony export */ o: function() { return /* binding */ SpeechRecognition; }
158
158
  /* harmony export */ });
159
159
  /*!
160
160
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -167,12 +167,12 @@ const SpeechRecognition = window.SpeechRecognition ||
167
167
 
168
168
  /***/ }),
169
169
 
170
- /***/ 87885:
170
+ /***/ 50834:
171
171
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
172
172
 
173
173
  "use strict";
174
174
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
175
- /* harmony export */ c: function() { return /* binding */ execSpellCommand; }
175
+ /* harmony export */ F: function() { return /* binding */ execSpellCommand; }
176
176
  /* harmony export */ });
177
177
  /*!
178
178
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -187,18 +187,18 @@ function execSpellCommand(jodit, commandSentence) {
187
187
 
188
188
  /***/ }),
189
189
 
190
- /***/ 30043:
190
+ /***/ 93676:
191
191
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
192
192
 
193
193
  "use strict";
194
194
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
195
- /* harmony export */ v: function() { return /* binding */ RecognizeManager; }
195
+ /* harmony export */ g: function() { return /* binding */ RecognizeManager; }
196
196
  /* harmony export */ });
197
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97582);
198
- /* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3569);
199
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13666);
200
- /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16618);
201
- /* harmony import */ var _sound__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55486);
197
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
198
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22664);
199
+ /* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43431);
200
+ /* harmony import */ var _sound__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95473);
201
+ /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81629);
202
202
  /*!
203
203
  * Jodit Editor (https://xdsoft.net/jodit/)
204
204
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -210,7 +210,7 @@ var RecognizeManager_1;
210
210
 
211
211
 
212
212
 
213
- let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_1__/* .Eventify */ .a {
213
+ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_1__/* .Eventify */ .h {
214
214
  set lang(v) {
215
215
  this._lang = v;
216
216
  this._api.lang = v;
@@ -248,7 +248,7 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
248
248
  this._restartTimeout = this.async.setTimeout(() => {
249
249
  this.restart();
250
250
  this.emit('pulse', false);
251
- this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .WARN */ .u);
251
+ this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .WARN */ .Z);
252
252
  }, 5000);
253
253
  this.emit('pulse', true);
254
254
  };
@@ -330,7 +330,7 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
330
330
  catch { }
331
331
  this.restart();
332
332
  this.emit('pulse', false);
333
- this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .PII */ .n);
333
+ this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .PII */ .N);
334
334
  };
335
335
  if (resultItem.isFinal === false) {
336
336
  this.emit('progress', transcript);
@@ -343,18 +343,18 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
343
343
  if (!this._isEnabled) {
344
344
  return;
345
345
  }
346
- this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .WARN */ .u);
346
+ this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .WARN */ .Z);
347
347
  this.emit('pulse', false);
348
348
  this.restart();
349
349
  }
350
350
  _makeSound(frequency) {
351
351
  if (this.sound) {
352
- (0,_sound__WEBPACK_IMPORTED_MODULE_3__/* .sound */ .e)({ frequency });
352
+ (0,_sound__WEBPACK_IMPORTED_MODULE_3__/* .sound */ .s)({ frequency });
353
353
  }
354
354
  }
355
355
  };
356
356
  RecognizeManager._instances = new Set();
357
- RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
357
+ RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
358
358
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
359
359
  ], RecognizeManager);
360
360
 
@@ -362,14 +362,14 @@ RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/*
362
362
 
363
363
  /***/ }),
364
364
 
365
- /***/ 55486:
365
+ /***/ 95473:
366
366
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
367
367
 
368
368
  "use strict";
369
369
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
370
- /* harmony export */ e: function() { return /* binding */ sound; }
370
+ /* harmony export */ s: function() { return /* binding */ sound; }
371
371
  /* harmony export */ });
372
- /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16618);
372
+ /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81629);
373
373
  /*!
374
374
  * Jodit Editor (https://xdsoft.net/jodit/)
375
375
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -382,7 +382,7 @@ RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/*
382
382
  /**
383
383
  * @internal
384
384
  */
385
- function sound({ sec = 0.1, frequency = jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_0__/* .PII */ .n, gain = 0.1, type = 'sine' } = {}) {
385
+ function sound({ sec = 0.1, frequency = jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_0__/* .PII */ .N, gain = 0.1, type = 'sine' } = {}) {
386
386
  if (typeof window.AudioContext === 'undefined' &&
387
387
  typeof window.webkitAudioContext === 'undefined') {
388
388
  return;
@@ -404,7 +404,7 @@ function sound({ sec = 0.1, frequency = jodit_plugins_speech_recognize_constants
404
404
 
405
405
  /***/ }),
406
406
 
407
- /***/ 75813:
407
+ /***/ 25202:
408
408
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
409
409
 
410
410
  "use strict";
@@ -432,7 +432,7 @@ __webpack_require__.r(__webpack_exports__);
432
432
  /* harmony export */ zh_cn: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
433
433
  /* harmony export */ zh_tw: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; }
434
434
  /* harmony export */ });
435
- /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45143);
435
+ /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41324);
436
436
  /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
437
437
  /*!
438
438
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -466,7 +466,7 @@ __webpack_require__.r(__webpack_exports__);
466
466
 
467
467
  /***/ }),
468
468
 
469
- /***/ 71327:
469
+ /***/ 37873:
470
470
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
471
471
 
472
472
  "use strict";
@@ -474,28 +474,23 @@ __webpack_require__.r(__webpack_exports__);
474
474
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
475
475
  /* harmony export */ SpeechRecognizeNative: function() { return /* binding */ SpeechRecognizeNative; }
476
476
  /* harmony export */ });
477
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(97582);
478
- /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7331);
479
- /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(69082);
480
- /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87398);
481
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79102);
482
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9162);
483
- /* harmony import */ var jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62294);
484
- /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(44380);
485
- /* harmony import */ var _helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(87885);
486
- /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75813);
487
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(92880);
477
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
478
+ /* harmony import */ var jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37075);
479
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66927);
480
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
481
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56298);
482
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84976);
483
+ /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71005);
484
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71096);
485
+ /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46173);
486
+ /* harmony import */ var _helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50834);
487
+ /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(25202);
488
488
  /*!
489
489
  * Jodit Editor (https://xdsoft.net/jodit/)
490
490
  * Released under MIT see LICENSE.txt in the project root for license information.
491
491
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
492
492
  */
493
493
 
494
- /**
495
- * [[include:plugins/speech-recognize/README.md]]
496
- * @packageDocumentation
497
- * @module plugins/speech-recognize
498
- */
499
494
 
500
495
 
501
496
 
@@ -507,7 +502,7 @@ __webpack_require__.r(__webpack_exports__);
507
502
 
508
503
 
509
504
 
510
- class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
505
+ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */ .k {
511
506
  constructor(j) {
512
507
  super(j);
513
508
  this._commandToWord = {};
@@ -521,8 +516,8 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0
521
516
  afterInit(jodit) {
522
517
  const { commands } = jodit.o.speechRecognize;
523
518
  if (commands) {
524
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .extendLang */ .xl)(_langs__WEBPACK_IMPORTED_MODULE_7__);
525
- (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .keys */ .XP)(commands, false).forEach(words => {
519
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_8__);
520
+ (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__/* .keys */ .HP)(commands, false).forEach(words => {
526
521
  const keys = words.split('|');
527
522
  keys.forEach(key => {
528
523
  key = key.trim().toLowerCase();
@@ -544,7 +539,7 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0
544
539
  }
545
540
  this.j.workplace.appendChild(this.messagePopup);
546
541
  this.j.async.setTimeout(() => {
547
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.safeRemove(this.messagePopup);
542
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
548
543
  }, {
549
544
  label: 'onSpeechRecognizeProgressResult',
550
545
  timeout: 1000
@@ -553,12 +548,12 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0
553
548
  }
554
549
  onSpeechRecognizeResult(text) {
555
550
  const { j } = this, { s } = j;
556
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.safeRemove(this.messagePopup);
551
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
557
552
  if (!this._checkCommand(text)) {
558
553
  const { range } = s, node = s.current();
559
554
  if (s.isCollapsed() &&
560
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.isText(node) &&
561
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .i.isOrContains(j.editor, node) &&
555
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node) &&
556
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(j.editor, node) &&
562
557
  node.nodeValue) {
563
558
  const sentence = node.nodeValue;
564
559
  node.nodeValue =
@@ -577,25 +572,25 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0
577
572
  _checkCommand(command) {
578
573
  command = command.toLowerCase().replace(/\./g, '');
579
574
  if (this._commandToWord[command]) {
580
- (0,_helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__/* .execSpellCommand */ .c)(this.j, this._commandToWord[command]);
575
+ (0,_helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__/* .execSpellCommand */ .F)(this.j, this._commandToWord[command]);
581
576
  return true;
582
577
  }
583
578
  return false;
584
579
  }
585
580
  }
586
- (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
587
- (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .YP)(':speechRecognizeProgressResult'),
588
- (0,jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__/* .debounce */ .D)()
581
+ (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
582
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .wB)(':speechRecognizeProgressResult'),
583
+ (0,jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_0__/* .debounce */ .s)()
589
584
  ], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
590
- (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .gn)([
591
- (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .YP)(':speechRecognizeResult')
585
+ (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
586
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .wB)(':speechRecognizeResult')
592
587
  ], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
593
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .h.plugins.add('speech-recognize', SpeechRecognizeNative);
588
+ _jodit__WEBPACK_IMPORTED_MODULE_7__/* .Jodit */ .x.plugins.add('speech-recognize', SpeechRecognizeNative);
594
589
 
595
590
 
596
591
  /***/ }),
597
592
 
598
- /***/ 55106:
593
+ /***/ 22227:
599
594
  /***/ (function(module) {
600
595
 
601
596
  module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z\"/> <path d=\"M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z\"/> </svg>"
@@ -605,7 +600,7 @@ module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http
605
600
  },
606
601
  /******/ function(__webpack_require__) { // webpackRuntimeModules
607
602
  /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
608
- /******/ var __webpack_exports__ = (__webpack_exec__(71327));
603
+ /******/ var __webpack_exports__ = (__webpack_exec__(37873));
609
604
  /******/ return __webpack_exports__;
610
605
  /******/ }
611
606
  ]);
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
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.0.18
4
+ * Version: v4.1.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
 
9
9
 
10
- ((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var s=t();for(var i in s)("object"==typeof exports?exports:e)[i]=s[i]}})(self,(function(){return(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[781],{92880(e,t,s){"use strict";var i=s(37446),n=s(25920),r=s(88751),o=s(30052),c=s(30043),u=s(17439),a=s(55106),h=s.n(a);i.D.prototype.speechRecognize={api:u.M,sound:!0,continuous:!0,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},o.J.set("speech-recognize",h()),i.D.prototype.controls.speechRecognize={isActive(e,t){const s=(0,n.q)(e,"speech");return!!s?.isEnabled},isDisabled:e=>!e.o.speechRecognize.api,exec(e,t,{button:s,control:i}){const{api:o,lang:u,continuous:a,interimResults:h,sound:p}=e.o.speechRecognize;if(!o)return void e.alert("Speech recognize API unsupported in your browser");let l=(0,n.q)(e,"speech");if(!l){const t=new o;l=new c.v(e.async,t),l.lang=u,l.continuous=a,l.interimResults=h,l.sound=p,(0,n.q)(e,"speech",l),l.on("pulse",(e=>{s.setMod("pulse",e)})),l.on("result",(t=>e.e.fire("speechRecognizeResult",t))),l.on("progress",(t=>e.e.fire("speechRecognizeProgressResult",t))),s.hookStatus("beforeDestruct",(()=>{l.destruct()}))}if(i.args){const e=i.args[0];if((0,r.j)(l[e]))return l[e]=!l[e],void(l.isEnabled&&l.restart())}l.toggle(),s.state.activated=l.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,s){const i=(0,n.q)(e,"speech");return`<span class='jodit-speech-recognize__list-item'><input ${i?.[t]??e.o.speechRecognize[t]?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${s}</span>`},mods:{stroke:!1}}},16618(e,t,s){"use strict";s.d(t,{n(){return i},u(){return n}});const i=440,n=940},17439(e,t,s){"use strict";s.d(t,{M(){return i}});const i=window.SpeechRecognition||window.webkitSpeechRecognition},87885(e,t,s){"use strict";function i(e,t){const[s,i]=t.split("::");e.execCommand(s,null,i)}s.d(t,{c(){return i}})},30043(e,t,s){"use strict";s.d(t,{v(){return a}});var i,n=s(97582),r=s(3569),o=s(13666),c=s(16618),u=s(55486);let a=i=class e extends r.a{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout((()=>{this.restart(),this.emit("pulse",!1),this._makeSound(c.u)}),5e3),this.emit("pulse",!0))},this._progressTimeout=0,this._api=t,i._instances.add(this)}destruct(){this.stop(),i._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){this._isEnabled||(this._isEnabled=!0,i._instances.forEach((e=>{e!==this&&e.stop()})),this._api.start(),this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onResult))}stop(){if(this._isEnabled){try{this._api.abort(),this._api.stop()}catch{}this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onResult),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1)}}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResult(e){if(!this._isEnabled)return;this.async.clearTimeout(this._progressTimeout);const t=e.results.item(e.resultIndex),{transcript:s}=t.item(0),i=()=>{try{this.async.clearTimeout(this._restartTimeout),this.emit("result",s)}catch{}this.restart(),this.emit("pulse",!1),this._makeSound(c.n)};if(!1===t.isFinal)return this.emit("progress",s),void(this._progressTimeout=this.async.setTimeout(i,500));i()}_onError(){this._isEnabled&&(this._makeSound(c.u),this.emit("pulse",!1),this.restart())}_makeSound(e){this.sound&&(0,u.e)({frequency:e})}};a._instances=new Set,a=i=(0,n.gn)([o.autobind],a)},55486(e,t,s){"use strict";s.d(t,{e(){return n}});var i=s(16618);function n({sec:e=.1,frequency:t=i.n,gain:s=.1,type:n="sine"}={}){if(void 0===window.AudioContext&&void 0===window.webkitAudioContext)return;const r=new(window.AudioContext||window.webkitAudioContext),o=r.createGain(),c=r.createOscillator();c.type=n,c.frequency.value=t,c.connect(o),o.connect(r.destination),c.start(),c.stop(r.currentTime+e),o.gain.value=s}},75813(e,t,s){"use strict";s.r(t),s.d(t,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(45143)},71327(e,t,s){"use strict";s.r(t),s.d(t,{SpeechRecognizeNative(){return d}});var i=s(97582),n=s(7331),r=s(69082),o=s(87398),c=s(79102),u=s(9162),a=s(62294),h=s(44380),p=s(87885),l=s(75813);s(92880);class d extends n.S{constructor(e){super(e),this._commandToWord={},e.o.speechRecognize.api&&e.registerButton({group:"state",name:"speechRecognize"})}afterInit(e){const{commands:t}=e.o.speechRecognize;t&&((0,c.xl)(l),(0,o.XP)(t,!1).forEach((s=>{s.split("|").forEach((i=>{i=i.trim().toLowerCase(),this._commandToWord[i]=t[s];const n=e.i18n(i);n!==i&&n.split("|").forEach((e=>{this._commandToWord[e.trim().toLowerCase()]=t[s].trim()}))}))})))}beforeDestruct(e){}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.setTimeout((()=>{u.i.safeRemove(this.messagePopup)}),{label:"onSpeechRecognizeProgressResult",timeout:1e3}),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){const{j:t}=this,{s}=t;if(u.i.safeRemove(this.messagePopup),!this._checkCommand(e)){const{range:i}=s,n=s.current();if(s.isCollapsed()&&u.i.isText(n)&&u.i.isOrContains(t.editor,n)&&n.nodeValue){const r=n.nodeValue;n.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,i.setStartAfter(n),s.selectRange(i),t.synchronizeValues()}else s.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,p.c)(this.j,this._commandToWord[e]),!0)}}(0,i.gn)([(0,r.YP)(":speechRecognizeProgressResult"),(0,a.D)()],d.prototype,"onSpeechRecognizeProgressResult",null),(0,i.gn)([(0,r.YP)(":speechRecognizeResult")],d.prototype,"onSpeechRecognizeResult",null),h.h.plugins.add("speech-recognize",d)},55106(e){e.exports='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg>'}},e=>e(e.s=71327)])}));
10
+ ((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var s=t();for(var i in s)("object"==typeof exports?exports:e)[i]=s[i]}})(self,(function(){return(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[882],{71096(e,t,s){"use strict";var i=s(9810),n=s(72197),r=s(931),o=s(71722),c=s(93676),u=s(22227),a=s.n(u),h=s(36115);h.T.prototype.speechRecognize={api:o.o,sound:!0,continuous:!0,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},r.I.set("speech-recognize",a()),h.T.prototype.controls.speechRecognize={isActive(e,t){const s=(0,n.m)(e,"speech");return!!s?.isEnabled},isDisabled:e=>!e.o.speechRecognize.api,exec(e,t,{button:s,control:r}){const{api:o,lang:u,continuous:a,interimResults:h,sound:p}=e.o.speechRecognize;if(!o)return void e.alert("Speech recognize API unsupported in your browser");let l=(0,n.m)(e,"speech");if(!l){const t=new o;l=new c.g(e.async,t),l.lang=u,l.continuous=a,l.interimResults=h,l.sound=p,(0,n.m)(e,"speech",l),l.on("pulse",(e=>{s.setMod("pulse",e)})),l.on("result",(t=>e.e.fire("speechRecognizeResult",t))),l.on("progress",(t=>e.e.fire("speechRecognizeProgressResult",t))),s.hookStatus("beforeDestruct",(()=>{l.destruct()}))}if(r.args){const e=r.args[0];if((0,i.L)(l[e]))return l[e]=!l[e],void(l.isEnabled&&l.restart())}l.toggle(),s.state.activated=l.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,s){const i=(0,n.m)(e,"speech");return`<span class='jodit-speech-recognize__list-item'><input ${i?.[t]??e.o.speechRecognize[t]?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${s}</span>`},mods:{stroke:!1}}},81629(e,t,s){"use strict";s.d(t,{N(){return i},Z(){return n}});const i=440,n=940},71722(e,t,s){"use strict";s.d(t,{o(){return i}});const i=window.SpeechRecognition||window.webkitSpeechRecognition},50834(e,t,s){"use strict";function i(e,t){const[s,i]=t.split("::");e.execCommand(s,null,i)}s.d(t,{F(){return i}})},93676(e,t,s){"use strict";s.d(t,{g(){return a}});var i,n=s(31635),r=s(22664),o=s(43431),c=s(95473),u=s(81629);let a=i=class e extends o.h{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout((()=>{this.restart(),this.emit("pulse",!1),this._makeSound(u.Z)}),5e3),this.emit("pulse",!0))},this._progressTimeout=0,this._api=t,i._instances.add(this)}destruct(){this.stop(),i._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){this._isEnabled||(this._isEnabled=!0,i._instances.forEach((e=>{e!==this&&e.stop()})),this._api.start(),this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onResult))}stop(){if(this._isEnabled){try{this._api.abort(),this._api.stop()}catch{}this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onResult),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1)}}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResult(e){if(!this._isEnabled)return;this.async.clearTimeout(this._progressTimeout);const t=e.results.item(e.resultIndex),{transcript:s}=t.item(0),i=()=>{try{this.async.clearTimeout(this._restartTimeout),this.emit("result",s)}catch{}this.restart(),this.emit("pulse",!1),this._makeSound(u.N)};if(!1===t.isFinal)return this.emit("progress",s),void(this._progressTimeout=this.async.setTimeout(i,500));i()}_onError(){this._isEnabled&&(this._makeSound(u.Z),this.emit("pulse",!1),this.restart())}_makeSound(e){this.sound&&(0,c.s)({frequency:e})}};a._instances=new Set,a=i=(0,n.Cg)([r.autobind],a)},95473(e,t,s){"use strict";s.d(t,{s(){return n}});var i=s(81629);function n({sec:e=.1,frequency:t=i.N,gain:s=.1,type:n="sine"}={}){if(void 0===window.AudioContext&&void 0===window.webkitAudioContext)return;const r=new(window.AudioContext||window.webkitAudioContext),o=r.createGain(),c=r.createOscillator();c.type=n,c.frequency.value=t,c.connect(o),o.connect(r.destination),c.start(),c.stop(r.currentTime+e),o.gain.value=s}},25202(e,t,s){"use strict";s.r(t),s.d(t,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(41324)},37873(e,t,s){"use strict";s.r(t),s.d(t,{SpeechRecognizeNative(){return d}});var i=s(31635),n=s(37075),r=s(66927),o=s(55186),c=s(56298),u=s(84976),a=s(71005),h=(s(71096),s(46173)),p=s(50834),l=s(25202);class d extends a.k{constructor(e){super(e),this._commandToWord={},e.o.speechRecognize.api&&e.registerButton({group:"state",name:"speechRecognize"})}afterInit(e){const{commands:t}=e.o.speechRecognize;t&&((0,c.JW)(l),(0,u.HP)(t,!1).forEach((s=>{s.split("|").forEach((i=>{i=i.trim().toLowerCase(),this._commandToWord[i]=t[s];const n=e.i18n(i);n!==i&&n.split("|").forEach((e=>{this._commandToWord[e.trim().toLowerCase()]=t[s].trim()}))}))})))}beforeDestruct(e){}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.setTimeout((()=>{o.J.safeRemove(this.messagePopup)}),{label:"onSpeechRecognizeProgressResult",timeout:1e3}),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){const{j:t}=this,{s}=t;if(o.J.safeRemove(this.messagePopup),!this._checkCommand(e)){const{range:i}=s,n=s.current();if(s.isCollapsed()&&o.J.isText(n)&&o.J.isOrContains(t.editor,n)&&n.nodeValue){const r=n.nodeValue;n.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,i.setStartAfter(n),s.selectRange(i),t.synchronizeValues()}else s.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,p.F)(this.j,this._commandToWord[e]),!0)}}(0,i.Cg)([(0,r.wB)(":speechRecognizeProgressResult"),(0,n.s)()],d.prototype,"onSpeechRecognizeProgressResult",null),(0,i.Cg)([(0,r.wB)(":speechRecognizeResult")],d.prototype,"onSpeechRecognizeResult",null),h.x.plugins.add("speech-recognize",d)},22227(e){e.exports='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg>'}},e=>e(e.s=37873)])}));