jodit-pro 4.7.5 → 4.7.6

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 (467) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +2 -2
  3. package/es2015/jodit.js +2 -2
  4. package/es2015/jodit.min.js +2 -2
  5. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  6. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  7. package/es2015/plugins/backup/backup.css +1 -1
  8. package/es2015/plugins/backup/backup.js +1 -1
  9. package/es2015/plugins/backup/backup.min.js +1 -1
  10. package/es2015/plugins/button-generator/button-generator.css +1 -1
  11. package/es2015/plugins/button-generator/button-generator.js +1 -1
  12. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  13. package/es2015/plugins/change-case/change-case.js +1 -1
  14. package/es2015/plugins/change-case/change-case.min.js +1 -1
  15. package/es2015/plugins/color-picker/color-picker.css +1 -1
  16. package/es2015/plugins/color-picker/color-picker.js +1 -1
  17. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  18. package/es2015/plugins/emoji/emoji.css +1 -1
  19. package/es2015/plugins/emoji/emoji.js +1 -1
  20. package/es2015/plugins/emoji/emoji.min.js +1 -1
  21. package/es2015/plugins/export-docs/export-docs.js +1 -1
  22. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  23. package/es2015/plugins/finder/finder.css +1 -1
  24. package/es2015/plugins/finder/finder.js +1 -1
  25. package/es2015/plugins/finder/finder.min.js +1 -1
  26. package/es2015/plugins/google-maps/google-maps.css +1 -1
  27. package/es2015/plugins/google-maps/google-maps.js +1 -1
  28. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  29. package/es2015/plugins/google-search/google-search.js +1 -1
  30. package/es2015/plugins/google-search/google-search.min.js +1 -1
  31. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  32. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  33. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  34. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  35. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  36. package/es2015/plugins/keyboard/keyboard.css +1 -1
  37. package/es2015/plugins/keyboard/keyboard.js +1 -1
  38. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  39. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  40. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  41. package/es2015/plugins/page-break/page-break.js +1 -1
  42. package/es2015/plugins/page-break/page-break.min.js +1 -1
  43. package/es2015/plugins/paste-code/paste-code.css +1 -1
  44. package/es2015/plugins/paste-code/paste-code.js +1 -1
  45. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  46. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  47. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  48. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  49. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  50. package/es2015/plugins/todo-list/todo-list.css +1 -1
  51. package/es2015/plugins/todo-list/todo-list.js +1 -1
  52. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  53. package/es2015/plugins/translate/translate.css +1 -1
  54. package/es2015/plugins/translate/translate.js +1 -1
  55. package/es2015/plugins/translate/translate.min.js +1 -1
  56. package/es2015/plugins/tune-block/tune-block.css +1 -1
  57. package/es2015/plugins/tune-block/tune-block.js +1 -1
  58. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  59. package/es2018/jodit.fat.min.js +2 -2
  60. package/es2018/jodit.min.js +2 -2
  61. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  62. package/es2018/plugins/backup/backup.min.js +1 -1
  63. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  64. package/es2018/plugins/change-case/change-case.min.js +1 -1
  65. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  66. package/es2018/plugins/emoji/emoji.min.js +1 -1
  67. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  68. package/es2018/plugins/finder/finder.min.js +1 -1
  69. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  70. package/es2018/plugins/google-search/google-search.min.js +1 -1
  71. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  72. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  73. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  74. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  75. package/es2018/plugins/page-break/page-break.min.js +1 -1
  76. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  77. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  78. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  79. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  80. package/es2018/plugins/translate/translate.min.js +1 -1
  81. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  82. package/es2021/jodit.css +1 -1
  83. package/es2021/jodit.fat.min.js +2 -2
  84. package/es2021/jodit.js +2 -2
  85. package/es2021/jodit.min.js +2 -2
  86. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  87. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  88. package/es2021/plugins/backup/backup.css +1 -1
  89. package/es2021/plugins/backup/backup.js +1 -1
  90. package/es2021/plugins/backup/backup.min.js +1 -1
  91. package/es2021/plugins/button-generator/button-generator.css +1 -1
  92. package/es2021/plugins/button-generator/button-generator.js +1 -1
  93. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  94. package/es2021/plugins/change-case/change-case.js +1 -1
  95. package/es2021/plugins/change-case/change-case.min.js +1 -1
  96. package/es2021/plugins/color-picker/color-picker.css +1 -1
  97. package/es2021/plugins/color-picker/color-picker.js +1 -1
  98. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  99. package/es2021/plugins/emoji/emoji.css +1 -1
  100. package/es2021/plugins/emoji/emoji.js +1 -1
  101. package/es2021/plugins/emoji/emoji.min.js +1 -1
  102. package/es2021/plugins/export-docs/export-docs.js +1 -1
  103. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  104. package/es2021/plugins/finder/finder.css +1 -1
  105. package/es2021/plugins/finder/finder.js +1 -1
  106. package/es2021/plugins/finder/finder.min.js +1 -1
  107. package/es2021/plugins/google-maps/google-maps.css +1 -1
  108. package/es2021/plugins/google-maps/google-maps.js +1 -1
  109. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  110. package/es2021/plugins/google-search/google-search.js +1 -1
  111. package/es2021/plugins/google-search/google-search.min.js +1 -1
  112. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  113. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  114. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  115. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  116. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  117. package/es2021/plugins/keyboard/keyboard.css +1 -1
  118. package/es2021/plugins/keyboard/keyboard.js +1 -1
  119. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  120. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  121. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  122. package/es2021/plugins/page-break/page-break.js +1 -1
  123. package/es2021/plugins/page-break/page-break.min.js +1 -1
  124. package/es2021/plugins/paste-code/paste-code.css +1 -1
  125. package/es2021/plugins/paste-code/paste-code.js +1 -1
  126. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  127. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  128. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  129. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  130. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  131. package/es2021/plugins/todo-list/todo-list.css +1 -1
  132. package/es2021/plugins/todo-list/todo-list.js +1 -1
  133. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  134. package/es2021/plugins/translate/translate.css +1 -1
  135. package/es2021/plugins/translate/translate.js +1 -1
  136. package/es2021/plugins/translate/translate.min.js +1 -1
  137. package/es2021/plugins/tune-block/tune-block.css +1 -1
  138. package/es2021/plugins/tune-block/tune-block.js +1 -1
  139. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  140. package/es2021.en/jodit.css +1 -1
  141. package/es2021.en/jodit.fat.min.js +2 -2
  142. package/es2021.en/jodit.js +2 -2
  143. package/es2021.en/jodit.min.js +2 -2
  144. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  145. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  146. package/es2021.en/plugins/backup/backup.css +1 -1
  147. package/es2021.en/plugins/backup/backup.js +1 -1
  148. package/es2021.en/plugins/backup/backup.min.js +1 -1
  149. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  150. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  151. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  152. package/es2021.en/plugins/change-case/change-case.js +1 -1
  153. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  154. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  155. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  156. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  157. package/es2021.en/plugins/emoji/emoji.css +1 -1
  158. package/es2021.en/plugins/emoji/emoji.js +1 -1
  159. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  160. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  161. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  162. package/es2021.en/plugins/finder/finder.css +1 -1
  163. package/es2021.en/plugins/finder/finder.js +1 -1
  164. package/es2021.en/plugins/finder/finder.min.js +1 -1
  165. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  166. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  167. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  168. package/es2021.en/plugins/google-search/google-search.js +1 -1
  169. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  170. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  171. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  172. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  173. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  174. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  175. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  176. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  177. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  178. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  179. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  180. package/es2021.en/plugins/page-break/page-break.js +1 -1
  181. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  182. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  183. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  184. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  185. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  186. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  187. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  188. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  189. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  190. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  191. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  192. package/es2021.en/plugins/translate/translate.css +1 -1
  193. package/es2021.en/plugins/translate/translate.js +1 -1
  194. package/es2021.en/plugins/translate/translate.min.js +1 -1
  195. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  196. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  197. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  198. package/es5/jodit.css +2 -2
  199. package/es5/jodit.fat.min.js +2 -2
  200. package/es5/jodit.js +2 -2
  201. package/es5/jodit.min.css +2 -2
  202. package/es5/jodit.min.js +2 -2
  203. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  204. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  205. package/es5/plugins/backup/backup.css +1 -1
  206. package/es5/plugins/backup/backup.js +1 -1
  207. package/es5/plugins/backup/backup.min.js +1 -1
  208. package/es5/plugins/button-generator/button-generator.css +1 -1
  209. package/es5/plugins/button-generator/button-generator.js +1 -1
  210. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  211. package/es5/plugins/change-case/change-case.js +1 -1
  212. package/es5/plugins/change-case/change-case.min.js +1 -1
  213. package/es5/plugins/color-picker/color-picker.css +1 -1
  214. package/es5/plugins/color-picker/color-picker.js +1 -1
  215. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  216. package/es5/plugins/emoji/emoji.css +1 -1
  217. package/es5/plugins/emoji/emoji.js +1 -1
  218. package/es5/plugins/emoji/emoji.min.js +1 -1
  219. package/es5/plugins/export-docs/export-docs.js +1 -1
  220. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  221. package/es5/plugins/finder/finder.css +1 -1
  222. package/es5/plugins/finder/finder.js +1 -1
  223. package/es5/plugins/finder/finder.min.js +1 -1
  224. package/es5/plugins/google-maps/google-maps.css +1 -1
  225. package/es5/plugins/google-maps/google-maps.js +1 -1
  226. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  227. package/es5/plugins/google-search/google-search.js +1 -1
  228. package/es5/plugins/google-search/google-search.min.js +1 -1
  229. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  230. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  231. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  232. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  233. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  234. package/es5/plugins/keyboard/keyboard.css +1 -1
  235. package/es5/plugins/keyboard/keyboard.js +1 -1
  236. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  237. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  238. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  239. package/es5/plugins/page-break/page-break.js +1 -1
  240. package/es5/plugins/page-break/page-break.min.js +1 -1
  241. package/es5/plugins/paste-code/paste-code.css +1 -1
  242. package/es5/plugins/paste-code/paste-code.js +1 -1
  243. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  244. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  245. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  246. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  247. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  248. package/es5/plugins/todo-list/todo-list.css +1 -1
  249. package/es5/plugins/todo-list/todo-list.js +1 -1
  250. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  251. package/es5/plugins/translate/translate.css +1 -1
  252. package/es5/plugins/translate/translate.js +1 -1
  253. package/es5/plugins/translate/translate.min.js +1 -1
  254. package/es5/plugins/tune-block/tune-block.css +1 -1
  255. package/es5/plugins/tune-block/tune-block.js +1 -1
  256. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  257. package/es5/polyfills.fat.min.js +1 -1
  258. package/es5/polyfills.js +1 -1
  259. package/es5/polyfills.min.js +1 -1
  260. package/esm/config.js +1 -6
  261. package/esm/core/ui/form/range/range.js +1 -6
  262. package/esm/index.js +1 -6
  263. package/esm/jodit-pro.js +1 -6
  264. package/esm/plugins/all.js +1 -6
  265. package/esm/plugins/autocomplete/autocomplete.js +1 -6
  266. package/esm/plugins/autocomplete/config.js +1 -6
  267. package/esm/plugins/autocomplete/helpers.js +1 -6
  268. package/esm/plugins/autocomplete/interface.js +0 -6
  269. package/esm/plugins/autocomplete/ui/autocomplete.js +1 -6
  270. package/esm/plugins/autocomplete/ui/item.js +1 -6
  271. package/esm/plugins/backup/assets/restore.svg.js +1 -1
  272. package/esm/plugins/backup/backup.js +1 -6
  273. package/esm/plugins/backup/config.js +1 -6
  274. package/esm/plugins/backup/interface.js +0 -6
  275. package/esm/plugins/backup/langs/index.js +0 -6
  276. package/esm/plugins/backup/modules/store.js +1 -6
  277. package/esm/plugins/backup/ui/box.js +1 -6
  278. package/esm/plugins/backup/ui/item.js +1 -6
  279. package/esm/plugins/backup/ui/list.js +1 -6
  280. package/esm/plugins/button-generator/assets/check.svg.js +1 -1
  281. package/esm/plugins/button-generator/assets/styles.json.js +1 -1
  282. package/esm/plugins/button-generator/button-generator.js +1 -1
  283. package/esm/plugins/button-generator/config.js +1 -6
  284. package/esm/plugins/button-generator/icon.svg.js +1 -1
  285. package/esm/plugins/button-generator/ui/button/button.js +5 -1
  286. package/esm/plugins/button-generator/ui/form/form.js +79 -1
  287. package/esm/plugins/button-generator/ui/generator/button-generator.js +7 -6
  288. package/esm/plugins/button-generator/ui/preview/preview.js +4 -1
  289. package/esm/plugins/change-case/change-case.js +1 -6
  290. package/esm/plugins/change-case/config.js +1 -6
  291. package/esm/plugins/change-case/icon.svg.js +1 -1
  292. package/esm/plugins/color-picker/color-picker.js +1 -6
  293. package/esm/plugins/color-picker/ui/input/color-input.js +1 -6
  294. package/esm/plugins/emoji/config.js +1 -1
  295. package/esm/plugins/emoji/emoji.js +1 -6
  296. package/esm/plugins/emoji/emoji.json.js +1 -1
  297. package/esm/plugins/emoji/emoji.svg.js +1 -1
  298. package/esm/plugins/emoji/interface.js +0 -6
  299. package/esm/plugins/emoji/ui/emoji.js +1 -6
  300. package/esm/plugins/export-docs/assets/export.svg.js +1 -1
  301. package/esm/plugins/export-docs/config.js +1 -6
  302. package/esm/plugins/export-docs/export-docs.js +2 -6
  303. package/esm/plugins/finder/browser.js +1 -6
  304. package/esm/plugins/finder/config.js +1 -6
  305. package/esm/plugins/finder/finder.js +1 -6
  306. package/esm/plugins/finder/helpers/context-menu.js +1 -6
  307. package/esm/plugins/finder/helpers/helpers.js +1 -6
  308. package/esm/plugins/finder/helpers/history-manager.js +1 -6
  309. package/esm/plugins/finder/helpers/loading-manager.js +1 -6
  310. package/esm/plugins/finder/helpers/persistent-store.js +1 -6
  311. package/esm/plugins/finder/helpers/state-manager.js +1 -6
  312. package/esm/plugins/finder/langs/index.js +1 -6
  313. package/esm/plugins/finder/langs/ru.js +1 -6
  314. package/esm/plugins/finder/ui/assets/icons/heart.svg.js +1 -1
  315. package/esm/plugins/finder/ui/assets/icons/home.svg.js +1 -1
  316. package/esm/plugins/finder/ui/assets/icons/index.js +1 -6
  317. package/esm/plugins/finder/ui/assets/icons/new-folder.svg.js +1 -1
  318. package/esm/plugins/finder/ui/folder/folder.js +10 -6
  319. package/esm/plugins/finder/ui/header/header.js +1 -6
  320. package/esm/plugins/finder/ui/item/item.js +5 -6
  321. package/esm/plugins/finder/ui/lightboox/lightbox.js +6 -6
  322. package/esm/plugins/finder/ui/panel/panel.js +4 -6
  323. package/esm/plugins/finder/ui/preview/preview.js +6 -1
  324. package/esm/plugins/finder/ui/progress/progress.js +1 -1
  325. package/esm/plugins/finder/ui/settings/settings.js +5 -6
  326. package/esm/plugins/finder/ui/sidebar/sidebar.js +5 -1
  327. package/esm/plugins/finder/ui/source/source.js +4 -6
  328. package/esm/plugins/finder/ui/sources/sources.js +1 -6
  329. package/esm/plugins/finder/ui/statusbar/statusbar.js +5 -6
  330. package/esm/plugins/finder/ui/tree/tree.js +1 -6
  331. package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +5 -6
  332. package/esm/plugins/google-maps/assets/circle.svg.js +1 -1
  333. package/esm/plugins/google-maps/assets/hand.svg.js +1 -1
  334. package/esm/plugins/google-maps/assets/icon.svg.js +1 -1
  335. package/esm/plugins/google-maps/assets/index.js +1 -6
  336. package/esm/plugins/google-maps/assets/marker.svg.js +1 -1
  337. package/esm/plugins/google-maps/assets/polygon.svg.js +1 -1
  338. package/esm/plugins/google-maps/assets/polyline.svg.js +1 -1
  339. package/esm/plugins/google-maps/assets/text.svg.js +1 -1
  340. package/esm/plugins/google-maps/config.js +1 -6
  341. package/esm/plugins/google-maps/google-maps.js +1 -6
  342. package/esm/plugins/google-maps/helpers/const.js +1 -6
  343. package/esm/plugins/google-maps/helpers/generate-js-script.js +122 -1
  344. package/esm/plugins/google-maps/helpers/generate-static-elements.js +1 -6
  345. package/esm/plugins/google-maps/helpers/helpers.js +1 -6
  346. package/esm/plugins/google-maps/helpers/static-url.js +1 -6
  347. package/esm/plugins/google-maps/ui/combo-box/combo-box.js +1 -6
  348. package/esm/plugins/google-maps/ui/editors/base.js +5 -6
  349. package/esm/plugins/google-maps/ui/editors/index.js +1 -6
  350. package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -6
  351. package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -6
  352. package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -6
  353. package/esm/plugins/google-maps/ui/index.js +1 -6
  354. package/esm/plugins/google-maps/ui/map/map.js +5 -6
  355. package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +1 -6
  356. package/esm/plugins/google-maps/ui/map/modules/index.js +1 -6
  357. package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +1 -6
  358. package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +1 -6
  359. package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +1 -6
  360. package/esm/plugins/google-maps/ui/map/modules/remove-element.js +1 -6
  361. package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +1 -6
  362. package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -6
  363. package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -6
  364. package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +4 -6
  365. package/esm/plugins/google-search/google-search.js +1 -6
  366. package/esm/plugins/google-search/icon.svg.js +1 -1
  367. package/esm/plugins/highlight-signature/config.js +1 -1
  368. package/esm/plugins/highlight-signature/highlight-signature.js +1 -6
  369. package/esm/plugins/iframe-editor/config.js +1 -6
  370. package/esm/plugins/iframe-editor/icon.svg.js +1 -1
  371. package/esm/plugins/iframe-editor/iframe-editor.js +1 -6
  372. package/esm/plugins/iframe-editor/interface.js +0 -6
  373. package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -6
  374. package/esm/plugins/index.js +1 -1
  375. package/esm/plugins/keyboard/config.js +1 -1
  376. package/esm/plugins/keyboard/icon.svg.js +1 -1
  377. package/esm/plugins/keyboard/interface.js +0 -6
  378. package/esm/plugins/keyboard/keyboard.js +1 -1
  379. package/esm/plugins/keyboard/ui/assets/backspace.svg.js +1 -1
  380. package/esm/plugins/keyboard/ui/assets/caps.svg.js +1 -1
  381. package/esm/plugins/keyboard/ui/assets/dots.svg.js +1 -1
  382. package/esm/plugins/keyboard/ui/assets/shift.svg.js +1 -1
  383. package/esm/plugins/keyboard/ui/assets/tab.svg.js +1 -1
  384. package/esm/plugins/keyboard/ui/keyboard/keyboard.js +3 -6
  385. package/esm/plugins/license/helpers/helpers.js +1 -6
  386. package/esm/plugins/license/license.js +1 -6
  387. package/esm/plugins/mobile-view/config.js +1 -6
  388. package/esm/plugins/mobile-view/icon.svg.js +1 -1
  389. package/esm/plugins/mobile-view/mobile-view.js +1 -6
  390. package/esm/plugins/page-break/assets/page-break.svg.js +1 -1
  391. package/esm/plugins/page-break/config.js +1 -6
  392. package/esm/plugins/page-break/page-break.css.js +18 -6
  393. package/esm/plugins/page-break/page-break.js +1 -6
  394. package/esm/plugins/paste-code/config.js +1 -6
  395. package/esm/plugins/paste-code/icon.svg.js +1 -1
  396. package/esm/plugins/paste-code/paste-code.js +1 -6
  397. package/esm/plugins/paste-from-word/cases/clean-styles.js +1 -6
  398. package/esm/plugins/paste-from-word/cases/clear-attributes.js +1 -6
  399. package/esm/plugins/paste-from-word/cases/clear-class-name.js +1 -6
  400. package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -6
  401. package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -6
  402. package/esm/plugins/paste-from-word/cases/index.js +1 -6
  403. package/esm/plugins/paste-from-word/cases/mark-page-break.js +1 -6
  404. package/esm/plugins/paste-from-word/cases/normalize-image-props.js +1 -6
  405. package/esm/plugins/paste-from-word/cases/process-image.js +1 -6
  406. package/esm/plugins/paste-from-word/cases/process-links.js +1 -6
  407. package/esm/plugins/paste-from-word/cases/remove-extra-tags.js +1 -6
  408. package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +1 -6
  409. package/esm/plugins/paste-from-word/cases/replace-old-tags.js +1 -6
  410. package/esm/plugins/paste-from-word/cases/table.js +1 -6
  411. package/esm/plugins/paste-from-word/config.js +1 -6
  412. package/esm/plugins/paste-from-word/constants.js +1 -6
  413. package/esm/plugins/paste-from-word/element/checkers.js +1 -6
  414. package/esm/plugins/paste-from-word/element/element.js +1 -6
  415. package/esm/plugins/paste-from-word/element/index.js +1 -6
  416. package/esm/plugins/paste-from-word/element/render.js +1 -6
  417. package/esm/plugins/paste-from-word/element/style.js +1 -6
  418. package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -6
  419. package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -6
  420. package/esm/plugins/paste-from-word/helpers/helpers.js +1 -6
  421. package/esm/plugins/paste-from-word/helpers/index.js +1 -6
  422. package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +1 -6
  423. package/esm/plugins/paste-from-word/interface.js +0 -6
  424. package/esm/plugins/paste-from-word/paste-from-word.js +1 -6
  425. package/esm/plugins/show-blocks/config.js +1 -6
  426. package/esm/plugins/show-blocks/langs/ar.js +1 -6
  427. package/esm/plugins/show-blocks/langs/cs_cz.js +1 -6
  428. package/esm/plugins/show-blocks/langs/de.js +1 -6
  429. package/esm/plugins/show-blocks/langs/es.js +1 -6
  430. package/esm/plugins/show-blocks/langs/fa.js +1 -6
  431. package/esm/plugins/show-blocks/langs/fr.js +1 -6
  432. package/esm/plugins/show-blocks/langs/he.js +1 -6
  433. package/esm/plugins/show-blocks/langs/hu.js +1 -6
  434. package/esm/plugins/show-blocks/langs/id.js +1 -6
  435. package/esm/plugins/show-blocks/langs/index.js +1 -6
  436. package/esm/plugins/show-blocks/langs/it.js +1 -6
  437. package/esm/plugins/show-blocks/langs/ja.js +1 -6
  438. package/esm/plugins/show-blocks/langs/ko.js +1 -6
  439. package/esm/plugins/show-blocks/langs/nl.js +1 -6
  440. package/esm/plugins/show-blocks/langs/pl.js +1 -6
  441. package/esm/plugins/show-blocks/langs/pt_br.js +1 -6
  442. package/esm/plugins/show-blocks/langs/ru.js +1 -6
  443. package/esm/plugins/show-blocks/langs/tr.js +1 -6
  444. package/esm/plugins/show-blocks/langs/zh_cn.js +1 -6
  445. package/esm/plugins/show-blocks/langs/zh_tw.js +1 -6
  446. package/esm/plugins/show-blocks/show-blocks.js +7 -6
  447. package/esm/plugins/show-blocks/show-blocks.svg.js +1 -1
  448. package/esm/plugins/todo-list/assets/todo-list.svg.js +1 -1
  449. package/esm/plugins/todo-list/config.js +1 -6
  450. package/esm/plugins/todo-list/todo-list.js +1 -6
  451. package/esm/plugins/translate/assets/swap.svg.js +1 -1
  452. package/esm/plugins/translate/assets/translate.svg.js +1 -1
  453. package/esm/plugins/translate/config.js +1 -6
  454. package/esm/plugins/translate/interface.js +0 -6
  455. package/esm/plugins/translate/providers/google/google.js +1 -6
  456. package/esm/plugins/translate/providers/languages.js +1 -6
  457. package/esm/plugins/translate/replace-text-fragments.js +1 -1
  458. package/esm/plugins/translate/translate.js +1 -6
  459. package/esm/plugins/translate/ui/list/list.js +7 -6
  460. package/esm/plugins/translate/ui/settings/settings.js +7 -6
  461. package/esm/plugins/tune-block/config.js +3 -6
  462. package/esm/plugins/tune-block/tune-block.js +1 -6
  463. package/esm/plugins/tune-block/ui/tuner/icon.svg.js +1 -1
  464. package/esm/plugins/tune-block/ui/tuner/tuner.js +3 -6
  465. package/esm/traits/resize/resize.js +1 -6
  466. package/esm/traits/select-items/select-items.js +1 -6
  467. package/package.json +1 -1
@@ -1 +1 @@
1
- export default'<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg> ';
1
+ var n='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <!-- <rect fill="none" height="256" width="256"/>--> <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg> ';export{n as default};
@@ -1,6 +1 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- import o from"./assets/todo-list.svg.js";import{Config as t}from"jodit/esm/config.js";import{Dom as s}from"jodit/esm/core/dom/dom.js";import{Icon as i}from"jodit/esm/core/ui/icon.js";t.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:o=>o.createInside.element("input",{type:"checkbox",tabindex:-1})},t.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive(o){const t=o.s.current();return Boolean(t&&s.closest(t,o=>s.isElement(o)&&s.isTag(o,"ul")&&o.classList.contains("todo-list"),o.editor))}},i.set("todo-list",o);
1
+ var r=Object.defineProperty;var e=(o,t)=>r(o,"name",{value:t,configurable:!0});import c from"./assets/todo-list.svg.js";import{Config as l}from"jodit/esm/config.js";import{Dom as s}from"jodit/esm/core/dom/dom.js";import{Icon as n}from"jodit/esm/core/ui/icon.js";l.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:e(o=>o.createInside.element("input",{type:"checkbox",tabindex:-1}),"inputFactory")},l.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive(o){const t=o.s.current();return!!(t&&s.closest(t,i=>s.isElement(i)&&s.isTag(i,"ul")&&i.classList.contains("todo-list"),o.editor))}},n.set("todo-list",c);
@@ -1,6 +1 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- var e=this&&this.__decorate||function(e,t,o,s){var i,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,s);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};import"./config.js";import{NO_EMPTY_TAGS as t}from"jodit/esm/core/constants.js";import{autobind as o,watch as s}from"jodit/esm/core/decorators/index.js";import{Dom as i}from"jodit/esm/core/dom/dom.js";import{$$ as r,attr as a}from"jodit/esm/core/helpers/utils/index.js";import{Plugin as l}from"jodit/esm/core/plugin/index.js";import{CHANGE as n,REPLACE as p,UNWRAP as d,WRAP as c}from"jodit/esm/core/selection/index.js";import{JoditPro as m}from"../../jodit-pro.js";export class TodoList extends l{constructor(){super(...arguments),this.buttons=[{name:"todoList",group:"list"}],this.__isOwnCommand=!1}afterInit(e){e.registerCommand("todoList",this.onCommand)}onCommand(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1}__prependInputLabel(e){const{jodit:t}=this,{labelClassName:o,inputFactory:s}=this.j.o.todoList;if(e.querySelector("label."+o))return;const r=t.createInside.element("label",{contenteditable:"false",class:o}),a=s(t);r.appendChild(a),i.prepend(e,r)}__afterToggleList(e,t){return e!==n&&e!==p||!this.__isOwnCommand?e===d||e===p||e===n?this.__removeInputs(t):void 0:this.__appendInputs(t)}__appendInputs(e){e.querySelectorAll("li").forEach(this.__prependInputLabel)}__removeInputs(e){const{labelClassName:t}=this.j.o.todoList;e.querySelectorAll("label."+t).forEach(i.safeRemove)}__beforeToggleOrderedList(e,t,o){var s;const r="__beforeToggleOrderedList";if(e!==p&&(t.classList.contains(this.j.o.todoList.className)||o.isApplied(t,r))&&("ul"===o.element||"ol"===o.element)&&(null===(s=o.options.attributes)||void 0===s?void 0:s.class)!==this.j.o.todoList.className){const e=i.replace(t,o.element,this.jodit.createInside);return o.setApplied(e,r),this.__removeInputs(e),e}}__afterEnter(){r("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)}__afterTab(){r("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(i.safeRemove)}__changeSelection(e){const t=this.j.s.current();this.isTodoLeafLabel(t)&&(e.preventDefault(),e.stopPropagation(),this.j.s.setCursorAfter(t))}__isEmptyListLeaf(e){return i.isEmpty(e,e=>("input"!==e.nodeName.toLowerCase()||!this.isTodoLeafLabel(e.parentElement))&&t.has(e.tagName.toLowerCase()))}__backSpaceBeforeCases(e,t){if(e){const e=i.findNotEmptySibling(t,!0);this.isTodoLeafLabel(e)&&i.safeRemove(e)}}__isInvisibleForCursor(e){if(this.isTodoLeafLabel(e))return!0}__backSpaceAfterDelete(){const{labelClassName:e}=this.j.o.todoList;r("label."+e,this.jodit.editor).forEach(e=>{e.closest("ul."+this.j.o.todoList.className)?e.previousSibling&&e.parentElement&&i.prepend(e.parentElement,e):i.safeRemove(e)})}__afterWrapList(e,t){e===c&&this.__appendInputs(t)}__onClickInput(e){const t=e.target;t&&i.isTag(t,"input")&&"checkbox"===t.type&&this.isTodoLeafLabel(t.parentElement)&&a(t,"checked",t.checked?"checked":null)}isTodoLeafLabel(e){const{labelClassName:t}=this.j.o.todoList;return i.isHTMLElement(e)&&e.classList.contains(t)}beforeDestruct(e){}}TodoList.requires=["license"],e([o],TodoList.prototype,"onCommand",null),e([o],TodoList.prototype,"__prependInputLabel",null),e([s(":commitStyleAfterToggleList")],TodoList.prototype,"__afterToggleList",null),e([s(":commitStyleBeforeUnwrapList")],TodoList.prototype,"__beforeToggleOrderedList",null),e([s(":afterEnter")],TodoList.prototype,"__afterEnter",null),e([s(":afterTab")],TodoList.prototype,"__afterTab",null),e([s("j.ed:selectionchange"),s(":afterEnter")],TodoList.prototype,"__changeSelection",null),e([s(":enterIsEmptyListLeaf")],TodoList.prototype,"__isEmptyListLeaf",null),e([s(":backSpaceBeforeCases")],TodoList.prototype,"__backSpaceBeforeCases",null),e([s(":backSpaceIsMovedIgnore"),s(":isInvisibleForCursor")],TodoList.prototype,"__isInvisibleForCursor",null),e([s(":backSpaceAfterDelete")],TodoList.prototype,"__backSpaceAfterDelete",null),e([o],TodoList.prototype,"__afterWrapList",null),e([s(":click")],TodoList.prototype,"__onClickInput",null),e([o],TodoList.prototype,"isTodoLeafLabel",null),m.plugins.add("todo-list",TodoList);
1
+ var g=Object.defineProperty;var L=(c,e)=>g(c,"name",{value:e,configurable:!0});var i=function(c,e,t,s){var l=arguments.length,r=l<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(c,e,t,s);else for(var _=c.length-1;_>=0;_--)(p=c[_])&&(r=(l<3?p(r):l>3?p(e,t,r):p(e,t))||r);return l>3&&r&&Object.defineProperty(e,t,r),r};import"./config.js";import{NO_EMPTY_TAGS as y}from"jodit/esm/core/constants.js";import{autobind as f,watch as a}from"jodit/esm/core/decorators/index.js";import{Dom as n}from"jodit/esm/core/dom/dom.js";import{$$ as u,attr as C}from"jodit/esm/core/helpers/utils/index.js";import{Plugin as j}from"jodit/esm/core/plugin/index.js";import{CHANGE as b,REPLACE as m,UNWRAP as E,WRAP as I}from"jodit/esm/core/selection/index.js";import{JoditPro as T}from"../../jodit-pro.js";const d=!0,h=class h extends j{constructor(){super(...arguments),this.buttons=[{name:"todoList",group:"list"}],this.__isOwnCommand=!1}afterInit(e){e.registerCommand("todoList",this.onCommand)}onCommand(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:d?{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}:{}})}finally{this.__isOwnCommand=!1}return!1}__prependInputLabel(e){const{jodit:t}=this,{labelClassName:s,inputFactory:l}=this.j.o.todoList;if(e.querySelector("label."+s))return;const r=t.createInside.element("label",{contenteditable:"false",class:s}),p=l(t);r.appendChild(p),n.prepend(e,r)}__afterToggleList(e,t){if(d){if((e===b||e===m)&&this.__isOwnCommand)return this.__appendInputs(t);if(e===E||e===m||e===b)return this.__removeInputs(t)}}__appendInputs(e){e.querySelectorAll("li").forEach(this.__prependInputLabel)}__removeInputs(e){const{labelClassName:t}=this.j.o.todoList;e.querySelectorAll("label."+t).forEach(n.safeRemove)}__beforeToggleOrderedList(e,t,s){var l;if(!d)return;const r="__beforeToggleOrderedList";if(e!==m&&(t.classList.contains(this.j.o.todoList.className)||s.isApplied(t,r))&&(s.element==="ul"||s.element==="ol")&&((l=s.options.attributes)===null||l===void 0?void 0:l.class)!==this.j.o.todoList.className){const p=n.replace(t,s.element,this.jodit.createInside);return s.setApplied(p,r),this.__removeInputs(p),p}}__afterEnter(){u("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)}__afterTab(){u("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(n.safeRemove)}__changeSelection(e){const t=this.j.s.current();this.isTodoLeafLabel(t)&&(e.preventDefault(),e.stopPropagation(),this.j.s.setCursorAfter(t))}__isEmptyListLeaf(e){return n.isEmpty(e,t=>t.nodeName.toLowerCase()==="input"&&this.isTodoLeafLabel(t.parentElement)?!1:y.has(t.tagName.toLowerCase()))}__backSpaceBeforeCases(e,t){if(e){const s=n.findNotEmptySibling(t,!0);this.isTodoLeafLabel(s)&&n.safeRemove(s)}}__isInvisibleForCursor(e){if(this.isTodoLeafLabel(e))return!0}__backSpaceAfterDelete(){const{labelClassName:e}=this.j.o.todoList;u("label."+e,this.jodit.editor).forEach(t=>{t.closest("ul."+this.j.o.todoList.className)?t.previousSibling&&t.parentElement&&n.prepend(t.parentElement,t):n.safeRemove(t)})}__afterWrapList(e,t){e===I&&this.__appendInputs(t)}__onClickInput(e){const t=e.target;t&&n.isTag(t,"input")&&t.type==="checkbox"&&this.isTodoLeafLabel(t.parentElement)&&C(t,"checked",t.checked?"checked":null)}isTodoLeafLabel(e){const{labelClassName:t}=this.j.o.todoList;return n.isHTMLElement(e)&&e.classList.contains(t)}beforeDestruct(e){}};L(h,"TodoList");let o=h;o.requires=["license"],i([f],o.prototype,"onCommand",null),i([f],o.prototype,"__prependInputLabel",null),i([a(":commitStyleAfterToggleList")],o.prototype,"__afterToggleList",null),i([a(":commitStyleBeforeUnwrapList")],o.prototype,"__beforeToggleOrderedList",null),i([a(":afterEnter")],o.prototype,"__afterEnter",null),i([a(":afterTab")],o.prototype,"__afterTab",null),i([a("j.ed:selectionchange"),a(":afterEnter")],o.prototype,"__changeSelection",null),i([a(":enterIsEmptyListLeaf")],o.prototype,"__isEmptyListLeaf",null),i([a(":backSpaceBeforeCases")],o.prototype,"__backSpaceBeforeCases",null),i([a(":backSpaceIsMovedIgnore"),a(":isInvisibleForCursor")],o.prototype,"__isInvisibleForCursor",null),i([a(":backSpaceAfterDelete")],o.prototype,"__backSpaceAfterDelete",null),i([f],o.prototype,"__afterWrapList",null),i([a(":click")],o.prototype,"__onClickInput",null),i([f],o.prototype,"isTodoLeafLabel",null),T.plugins.add("todo-list",o);export{o as TodoList};
@@ -1 +1 @@
1
- export default'<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg> ';
1
+ var v='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg> ';export{v as default};
@@ -1 +1 @@
1
- export default'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg> ';
1
+ var a='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg> ';export{a as default};
@@ -1,6 +1 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- import t from"./assets/swap.svg.js";import e from"./assets/translate.svg.js";import{Config as s}from"jodit/esm/config.js";import{Icon as o}from"jodit/esm/core/ui/icon.js";s.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},s.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,e,{control:s}){t.execCommand("translate"+s.name)},mods:{stroke:!1}}},o.set("translate",e).set("translate-swap",t);
1
+ import o from"./assets/swap.svg.js";import r from"./assets/translate.svg.js";import{Config as e}from"jodit/esm/config.js";import{Icon as s}from"jodit/esm/core/ui/icon.js";e.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},e.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,n,{control:a}){t.execCommand("translate"+a.name)},mods:{stroke:!1}}},s.set("translate",r).set("translate-swap",o);
@@ -1,6 +0,0 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- export{};
@@ -1,6 +1 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- import{IS_PROD as t}from"jodit/esm/core/constants.js";import{assert as e}from"jodit/esm/core/helpers/utils/assert.js";import{languages as o}from"../languages.js";export class GoogleTranslateProvider{constructor(t){this.jodit=t}__fetch(o,r={}){const s=this.jodit.o.translate.googleProviderOptions;return e(s,"Set googleProviderOptions"),this.jodit.fetch(s.url+"?key="+s.key,{method:"POST",data:{...r,ui:this.jodit.o.language},contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(e=>{try{this.jodit.message.error(e.json().message)}catch(e){t||console.error(e)}})}translate(t,e,o){return this.__fetch("translate",{q:t,source:e,target:o,format:"html"}).then(t=>({text:t.data.translations[0].translatedText}))}supportedLanguages(){return Promise.resolve({langs:o})}}
1
+ var c=Object.defineProperty;var a=(i,t)=>c(i,"name",{value:t,configurable:!0});import{IS_PROD as l}from"jodit/esm/core/constants.js";import{assert as m}from"jodit/esm/core/helpers/utils/assert.js";import{languages as d}from"../languages.js";const s=class s{constructor(t){this.jodit=t}__fetch(t,r={}){const e=this.jodit.o.translate.googleProviderOptions;return m(e,"Set googleProviderOptions"),this.jodit.fetch(e.url+"?key="+e.key,{method:"POST",data:{...r,ui:this.jodit.o.language},contentType:"application/json; charset=utf-8",withCredentials:!1}).then(o=>o.json()).catch(o=>{try{this.jodit.message.error(o.json().message)}catch(h){l||console.error(h)}})}translate(t,r,e){return this.__fetch("translate",{q:t,source:r,target:e,format:"html"}).then(o=>({text:o.data.translations[0].translatedText}))}supportedLanguages(){return Promise.resolve({langs:d})}};a(s,"GoogleTranslateProvider");let n=s;export{n as GoogleTranslateProvider};
@@ -1,6 +1 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- export const languages={Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"};
1
+ const a={Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"};export{a as languages};
@@ -1 +1 @@
1
- import{Dom as e}from"jodit/esm/core/dom/dom.js";export function getSelectionFragments(t){const n=[],o=t.s.expandSelection().sel;if(!o||0===o.rangeCount||o.isCollapsed)return n;t.s.range.commonAncestorContainer.normalize();const r=t.s.range,{commonAncestorContainer:l,startContainer:s,endContainer:c,startOffset:a,endOffset:d}=r;if(s===c){if(e.isText(s))return[replaceTextNode(s,a,d)];if(d-a===1){const t=s.childNodes[a];return e.isText(t)?[replaceTextNode(t,0,t.nodeValue.length)]:[replaceElementNode(t)]}if(0===a&&s.childNodes.length===d)return[replaceElementNode(s)];for(let t=a;t<d;t++){const o=s.childNodes[t];e.isText(o)?n.push(replaceTextNode(o,0,o.nodeValue.length)):n.push(replaceElementNode(o))}return n}const i=new Set,u=t.ed.createTreeWalker(l,NodeFilter.SHOW_ALL,{acceptNode:t=>r.intersectsNode(t)?e.closest(t,e=>e&&i.has(e),l)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT});let N=u.nextNode();for(;N;){if(e.isElement(N)&&fullyContains(r,N))i.add(N),n.push(replaceElementNode(N));else if(e.isText(N)&&fullyContains(r,N))n.push(replaceTextNode(N,0,N.nodeValue.length));else if(e.isText(N)){let e=0,t=N.nodeValue.length;N===s&&(e=a),N===c&&(t=d),n.push(replaceTextNode(N,e,t))}N=u.nextNode()}return n}const fullyContains=(e,t)=>{const n=document.createRange();try{n.selectNodeContents(t)}catch(e){n.selectNode(t)}return e.compareBoundaryPoints(Range.START_TO_START,n)<=0&&e.compareBoundaryPoints(Range.END_TO_END,n)>=0};function replaceTextNode(e,t,n){return{text:e.nodeValue.slice(t,n),replace:o=>{e.nodeValue=e.nodeValue.slice(0,t)+o+e.nodeValue.slice(n)}}}function replaceElementNode(e){const t=e;return{text:t.innerHTML,replace:e=>{t.innerHTML=e}}}
1
+ var x=Object.defineProperty;var i=(t,e)=>x(t,"name",{value:e,configurable:!0});import{Dom as c}from"jodit/esm/core/dom/dom.js";function R(t){const e=[],r=t.s.expandSelection().sel;if(!r||r.rangeCount===0||r.isCollapsed)return e;t.s.range.commonAncestorContainer.normalize();const a=t.s.range,{commonAncestorContainer:T,startContainer:l,endContainer:h,startOffset:u,endOffset:d}=a;if(l===h){if(c.isText(l))return[f(l,u,d)];if(d-u===1){const o=l.childNodes[u];return c.isText(o)?[f(o,0,o.nodeValue.length)]:[N(o)]}if(u===0&&l.childNodes.length===d)return[N(l)];for(let o=u;o<d;o++){const s=l.childNodes[o];c.isText(s)?e.push(f(s,0,s.nodeValue.length)):e.push(N(s))}return e}const p=new Set,g=t.ed.createTreeWalker(T,NodeFilter.SHOW_ALL,{acceptNode:i(o=>!a.intersectsNode(o)||c.closest(o,s=>s&&p.has(s),T)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,"acceptNode")});let n=g.nextNode();for(;n;){if(c.isElement(n)&&m(a,n))p.add(n),e.push(N(n));else if(c.isText(n)&&m(a,n))e.push(f(n,0,n.nodeValue.length));else if(c.isText(n)){let o=0,s=n.nodeValue.length;n===l&&(o=u),n===h&&(s=d),e.push(f(n,o,s))}n=g.nextNode()}return e}i(R,"getSelectionFragments");const m=i((t,e)=>{const r=document.createRange();try{r.selectNodeContents(e)}catch{r.selectNode(e)}return t.compareBoundaryPoints(Range.START_TO_START,r)<=0&&t.compareBoundaryPoints(Range.END_TO_END,r)>=0},"fullyContains");function f(t,e,r){return{text:t.nodeValue.slice(e,r),replace:i(T=>{t.nodeValue=t.nodeValue.slice(0,e)+T+t.nodeValue.slice(r)},"replace")}}i(f,"replaceTextNode");function N(t){const e=t;return{text:e.innerHTML,replace:i(r=>{e.innerHTML=r},"replace")}}i(N,"replaceElementNode");export{R as getSelectionFragments};
@@ -1,6 +1 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- var t=this&&this.__decorate||function(t,e,r,s){var o,a=arguments.length,n=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(n=(a<3?o(n):a>3?o(e,r,n):o(e,r))||n);return a>3&&n&&Object.defineProperty(e,r,n),n};import"./config.js";import{GoogleTranslateProvider as e}from"./providers/google/google.js";import{UITranslateSettings as r}from"./ui/settings/settings.js";import{getSelectionFragments as s}from"./replace-text-fragments.js";import{persistent as o}from"jodit/esm/core/decorators/index.js";import{isFunction as a}from"jodit/esm/core/helpers/checker/is-function.js";import{isString as n}from"jodit/esm/core/helpers/checker/is-string.js";import{assert as i}from"jodit/esm/core/helpers/utils/assert.js";import{defaultLanguage as l}from"jodit/esm/core/helpers/utils/default-language.js";import{Plugin as c}from"jodit/esm/core/plugin/index.js";import{Button as g}from"jodit/esm/core/ui/button/button/button.js";import{JoditPro as u}from"../../jodit-pro.js";export class Translate extends c{constructor(){super(...arguments),this.buttons=[{name:"translate.translate",group:"insert"}],this.state={sourceLang:this.jodit.o.translate.defaultSourceLang||"en",targetLang:this.jodit.o.translate.defaultTargetLang}}__getProvider(){const{provider:t}=this.jodit.options.translate;if(n(t)){if("google"===t)return new e(this.j);throw new Error("Unknown provider")}return i(a(t),"Provider must be a function"),t(this.jodit)}afterInit(t){const e=l(t.o.language,u.defaultOptions.language),o=l(t.o.language,e),a=this.__getProvider();t.registerCommand("translateOptions",{exec:async()=>{let e=this.state;const s=t.dlg();s.setHeader("Translate options");const o=await a.supportedLanguages(),n=new r(s,this.state,{sourceList:o.langs,targetList:o.langs,onChange(t){e=t}});s.setContent(n),s.setFooter([g(t,"cancel","Cancel").onAction(()=>s.close()),g(t,"ok","Save","primary").onAction(()=>{this.state=e,s.close()})]),n.bindDestruct(s),s.setSize(500,400).open(!0)},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:()=>{const e=s(t).filter(t=>t.text.trim().length>0);if(!e.length)return void t.message.error("Select text for translate");const r=this.state.sourceLang&&"auto"!==this.state.sourceLang?this.state.sourceLang:o,i=this.state.targetLang;return Promise.all(e.map(e=>{a.translate(e.text,r,i).then(t=>{e.replace(t.text)}).catch(e=>{t.message.error(n(e)?e:e.message)})})).then(()=>{t.synchronizeValues()})},hotkeys:t.o.translate.hotkeys.translateSelection})}beforeDestruct(t){}}Translate.requires=["license"],t([o],Translate.prototype,"state",void 0),u.plugins.add("translate",Translate);
1
+ var L=Object.defineProperty;var u=(g,t)=>L(g,"name",{value:t,configurable:!0});var v=function(g,t,n,l){var o=arguments.length,r=o<3?t:l===null?l=Object.getOwnPropertyDescriptor(t,n):l,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(g,t,n,l);else for(var s=g.length-1;s>=0;s--)(e=g[s])&&(r=(o<3?e(r):o>3?e(t,n,r):e(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r};import"./config.js";import{GoogleTranslateProvider as w}from"./providers/google/google.js";import{UITranslateSettings as P}from"./ui/settings/settings.js";import{getSelectionFragments as S}from"./replace-text-fragments.js";import{persistent as x}from"jodit/esm/core/decorators/index.js";import{isFunction as y}from"jodit/esm/core/helpers/checker/is-function.js";import{isString as p}from"jodit/esm/core/helpers/checker/is-string.js";import{assert as b}from"jodit/esm/core/helpers/utils/assert.js";import{defaultLanguage as f}from"jodit/esm/core/helpers/utils/default-language.js";import{Plugin as _}from"jodit/esm/core/plugin/index.js";import{Button as h}from"jodit/esm/core/ui/button/button/button.js";import{JoditPro as d}from"../../jodit-pro.js";const m=class m extends _{constructor(){super(...arguments),this.buttons=[{name:"translate.translate",group:"insert"}],this.state={sourceLang:this.jodit.o.translate.defaultSourceLang||"en",targetLang:this.jodit.o.translate.defaultTargetLang}}__getProvider(){const{provider:t}=this.jodit.options.translate;if(p(t))switch(t){case"google":return new w(this.j);default:throw new Error("Unknown provider")}return b(y(t),"Provider must be a function"),t(this.jodit)}afterInit(t){const n=f(t.o.language,d.defaultOptions.language),l=f(t.o.language,n),o=this.__getProvider();t.registerCommand("translateOptions",{exec:u(async()=>{let r=this.state;const e=t.dlg();e.setHeader("Translate options");const s=await o.supportedLanguages(),a=new P(e,this.state,{sourceList:s.langs,targetList:s.langs,onChange(i){r=i}});e.setContent(a),e.setFooter([h(t,"cancel","Cancel").onAction(()=>e.close()),h(t,"ok","Save","primary").onAction(()=>{this.state=r,e.close()})]),a.bindDestruct(e),e.setSize(500,400).open(!0)},"exec"),hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:u(()=>{const r=S(t).filter(a=>a.text.trim().length>0);if(!r.length){t.message.error("Select text for translate");return}const e=!this.state.sourceLang||this.state.sourceLang==="auto"?l:this.state.sourceLang,s=this.state.targetLang;return Promise.all(r.map(a=>{o.translate(a.text,e,s).then(i=>{a.replace(i.text)}).catch(i=>{t.message.error(p(i)?i:i.message)})})).then(()=>{t.synchronizeValues()})},"exec"),hotkeys:t.o.translate.hotkeys.translateSelection})}beforeDestruct(t){}};u(m,"Translate");let c=m;c.requires=["license"],v([x],c.prototype,"state",void 0),d.plugins.add("translate",c);export{c as Translate};
@@ -1,6 +1,7 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- var t=this&&this.__decorate||function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};import{KEY_ENTER as e}from"jodit/esm/core/constants.js";import{component as i,debounce as o,watch as n}from"jodit/esm/core/decorators/index.js";import{Dom as s}from"jodit/esm/core/dom/dom.js";import{scrollIntoViewIfNeeded as r}from"jodit/esm/core/helpers/index.js";import{attr as a}from"jodit/esm/core/helpers/utils/attr.js";import{UIElement as c}from"jodit/esm/core/ui/element.js";import{UIInput as l}from"jodit/esm/core/ui/form/inputs/input/input.js";let d=class UITranslateList extends c{className(){return"UITranslateList"}get items(){return this.getElms("item")}render(t){const e=[];return Object.keys(t.list).sort().forEach(i=>{const o=t.list[i];e.push(`<a role='button' tabindex='0' class='&__item' data-lang='${o}'>\n\t\t\t\t\t\t<span class='&__item-key'>${o}</span>\n\t\t\t\t\t\t<span class='&__item-title'>${this.j.i18n(i)}</span>\n\t\t\t\t\t</a>`)}),`<div class='&'>\n\t\t\t<div class='&__input'></div>\n\t\t\t<div class='&__list'>${e.join("")}</div>\n\t\t</div>`}constructor(t,e){var i;super(t,e),this.options=e,this.state={active:""},this.state.active=e.active;const o=new l(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:this.__onChangeFilter,clearButton:!0});null===(i=this.getElm("input"))||void 0===i||i.appendChild(o.container),this.__onActiveChange()}__onChangeFilter(t){this.items.forEach(e=>{var i,o;const n=null!==(o=null===(i=e.textContent)||void 0===i?void 0:i.toLowerCase())&&void 0!==o?o:"";a(e,"data-hidden","true"!==a(e,"data-active")&&!n.includes(t.toLowerCase()))})}__scrollToActive(){const t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&r(t,e,this.j.od)}onClickItem(t){if("keydown"===t.type&&"key"in t&&t.key!==e)return;const i=t.target;if(s.isHTMLElement(i)&&i.getAttribute("data-lang")){const t=a(i,"data-lang");this.options.onChange(t),this.state.active=t}}__onActiveChange(){this.items.forEach(t=>a(t,"data-active",a(t,"data-lang")===this.state.active)),this.__scrollToActive()}};t([o()],d.prototype,"__onChangeFilter",null),t([n(":afterOpen")],d.prototype,"__scrollToActive",null),t([n(["container:click","container:keydown"])],d.prototype,"onClickItem",null),t([n("state.active"),o()],d.prototype,"__onActiveChange",null),d=t([i],d);export{d as UITranslateList};
1
+ var v=Object.defineProperty;var d=(r,t)=>v(r,"name",{value:t,configurable:!0});var s,c=function(r,t,e,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,t,e,i);else for(var p=r.length-1;p>=0;p--)(h=r[p])&&(o=(n<3?h(o):n>3?h(t,e,o):h(t,e))||o);return n>3&&o&&Object.defineProperty(t,e,o),o};import{KEY_ENTER as m}from"jodit/esm/core/constants.js";import{component as f,debounce as u,watch as _}from"jodit/esm/core/decorators/index.js";import{Dom as g}from"jodit/esm/core/dom/dom.js";import{scrollIntoViewIfNeeded as y}from"jodit/esm/core/helpers/index.js";import{attr as l}from"jodit/esm/core/helpers/utils/attr.js";import{UIElement as C}from"jodit/esm/core/ui/element.js";import{UIInput as E}from"jodit/esm/core/ui/form/inputs/input/input.js";let a=(s=class extends C{className(){return"UITranslateList"}get items(){return this.getElms("item")}render(t){const e=[];return Object.keys(t.list).sort().forEach(i=>{const n=t.list[i];e.push(`<a role='button' tabindex='0' class='&__item' data-lang='${n}'>
2
+ <span class='&__item-key'>${n}</span>
3
+ <span class='&__item-title'>${this.j.i18n(i)}</span>
4
+ </a>`)}),`<div class='&'>
5
+ <div class='&__input'></div>
6
+ <div class='&__list'>${e.join("")}</div>
7
+ </div>`}constructor(t,e){var i;super(t,e),this.options=e,this.state={active:""},this.state.active=e.active;const n=new E(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:this.__onChangeFilter,clearButton:!0});(i=this.getElm("input"))===null||i===void 0||i.appendChild(n.container),this.__onActiveChange()}__onChangeFilter(t){this.items.forEach(e=>{var i,n;const o=(n=(i=e.textContent)===null||i===void 0?void 0:i.toLowerCase())!==null&&n!==void 0?n:"";l(e,"data-hidden",l(e,"data-active")!=="true"&&!o.includes(t.toLowerCase()))})}__scrollToActive(){const t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&y(t,e,this.j.od)}onClickItem(t){if(t.type==="keydown"&&"key"in t&&t.key!==m)return;const e=t.target;if(g.isHTMLElement(e)&&e.getAttribute("data-lang")){const i=l(e,"data-lang");this.options.onChange(i),this.state.active=i}}__onActiveChange(){this.items.forEach(t=>l(t,"data-active",l(t,"data-lang")===this.state.active)),this.__scrollToActive()}},d(s,"UITranslateList"),s);c([u()],a.prototype,"__onChangeFilter",null),c([_(":afterOpen")],a.prototype,"__scrollToActive",null),c([_(["container:click","container:keydown"])],a.prototype,"onClickItem",null),c([_("state.active"),u()],a.prototype,"__onActiveChange",null),a=c([f],a);export{a as UITranslateList};
@@ -1,6 +1,7 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- var t=this&&this.__decorate||function(t,s,e,i){var a,r=arguments.length,n=r<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,i);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(n=(r<3?a(n):r>3?a(s,e,n):a(s,e))||n);return r>3&&n&&Object.defineProperty(s,e,n),n};import{component as s,watch as e}from"jodit/esm/core/decorators/index.js";import{UIElement as i}from"jodit/esm/core/ui/index.js";import{UITranslateList as a}from"../list/list.js";let r=class UITranslateSettings extends i{className(){return"UITranslateSettings"}render(){return"<div>\n\t\t\t<div class='&__list &__source-list'></div>\n\t\t\t<div class='&__arrow'>\n\t\t\t\t<a class='&__arrow-swap'>*translate-swap*</a>\n\t\t\t</div>\n\t\t\t<div class='&__list &__target-list'></div>\n\t\t</div>"}constructor(t,s,e){var i,r;super(t),this.state=s,this.options=e,this.__sourceList=new a(t,{list:e.sourceList,active:s.sourceLang,onChange:t=>{this.state.sourceLang=t,this.options.onChange({...this.state})}}),null===(i=this.getElm("source-list"))||void 0===i||i.appendChild(this.__sourceList.container),this.__targetList=new a(t,{list:e.targetList,active:s.targetLang,onChange:t=>{this.state.targetLang=t,this.options.onChange({...this.state})}}),null===(r=this.getElm("target-list"))||void 0===r||r.appendChild(this.__targetList.container)}__onSwap(){const t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange({...this.state})}};t([e("arrow-swap:click")],r.prototype,"__onSwap",null),r=t([s],r);export{r as UITranslateSettings};
1
+ var p=Object.defineProperty;var c=(o,t)=>p(o,"name",{value:t,configurable:!0});var r,_=function(o,t,e,a){var i=arguments.length,s=i<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,e):a,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,t,e,a);else for(var h=o.length-1;h>=0;h--)(n=o[h])&&(s=(i<3?n(s):i>3?n(t,e,s):n(t,e))||s);return i>3&&s&&Object.defineProperty(t,e,s),s};import{component as u,watch as v}from"jodit/esm/core/decorators/index.js";import{UIElement as L}from"jodit/esm/core/ui/index.js";import{UITranslateList as g}from"../list/list.js";let l=(r=class extends L{className(){return"UITranslateSettings"}render(){return`<div>
2
+ <div class='&__list &__source-list'></div>
3
+ <div class='&__arrow'>
4
+ <a class='&__arrow-swap'>*translate-swap*</a>
5
+ </div>
6
+ <div class='&__list &__target-list'></div>
7
+ </div>`}constructor(t,e,a){var i,s;super(t),this.state=e,this.options=a,this.__sourceList=new g(t,{list:a.sourceList,active:e.sourceLang,onChange:c(n=>{this.state.sourceLang=n,this.options.onChange({...this.state})},"onChange")}),(i=this.getElm("source-list"))===null||i===void 0||i.appendChild(this.__sourceList.container),this.__targetList=new g(t,{list:a.targetList,active:e.targetLang,onChange:c(n=>{this.state.targetLang=n,this.options.onChange({...this.state})},"onChange")}),(s=this.getElm("target-list"))===null||s===void 0||s.appendChild(this.__targetList.container)}__onSwap(){const t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange({...this.state})}},c(r,"UITranslateSettings"),r);_([v("arrow-swap:click")],l.prototype,"__onSwap",null),l=_([u],l);export{l as UITranslateSettings};
@@ -1,6 +1,3 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- import{Config as e}from"jodit/esm/config.js";import{Dom as o}from"jodit/esm/core/dom/index.js";import{call as t}from"jodit/esm/core/helpers/index.js";const n=["tune.up","tune.remove","tune.down"],r=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...n];function headerControl(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive(o,t){var n;return(null===(n=null==t?void 0:t.target)||void 0===n?void 0:n.tagName.toLowerCase())===e},exec(t,n){if(n){t.selection.save();const r=o.replace(n,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",r)}return!0}}}function moveTo(e){const n=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled(e,o){var t;return!(null===(t=null==o?void 0:o.target)||void 0===t?void 0:t[n])},exec(r,i){const s=null==i?void 0:i[n];return i&&s&&(r.selection.save(),t(e?o.before:o.after,s,i),r.selection.restore()),r.e.fire("synchro"),r.e.fire("afterExecTune.tune"),!0}}}e.prototype.tuneBlock={popup:{p:n,table:n,img:n,blockquote:n,div:n,pre:["tune.editPre",...n],h1:r,h2:r,h3:r,h4:r,h5:r,h6:r}},e.prototype.controls.tune={h1:headerControl("h1"),h2:headerControl("h2"),h3:headerControl("h3"),h4:headerControl("h4"),h5:headerControl("h5"),h6:headerControl("h6"),up:moveTo(!0),down:moveTo(!1),editPre:{icon:"pencil",exec(e,o){e.e.fire("editPreInPasteCode",o)}},remove:{icon:"bin",exec(e,t){o.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}};
1
+ var f=Object.defineProperty;var c=(e,n)=>f(e,"name",{value:n,configurable:!0});import{Config as h}from"jodit/esm/config.js";import{Dom as l}from"jodit/esm/core/dom/index.js";import{call as v}from"jodit/esm/core/helpers/index.js";const i=["tune.up","tune.remove","tune.down"],s=["tune.h1","tune.h2","tune.h3",`
2
+ `,"tune.h4","tune.h5","tune.h6",`
3
+ `,...i];h.prototype.tuneBlock={popup:{p:i,table:i,img:i,blockquote:i,div:i,pre:["tune.editPre",...i],h1:s,h2:s,h3:s,h4:s,h5:s,h6:s}};function u(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive(n,r){var o;return((o=r?.target)===null||o===void 0?void 0:o.tagName.toLowerCase())===e},exec(n,r){if(r){n.selection.save();const o=l.replace(r,e,n.createInside);n.selection.restore(),n.e.fire("synchro"),n.e.fire("afterExecTune.tune",o)}return!0}}}c(u,"headerControl");function a(e){const n=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled(r,o){var t;return!(!((t=o?.target)===null||t===void 0)&&t[n])},exec(r,o){const t=o?.[n];return o&&t&&(r.selection.save(),v(e?l.before:l.after,t,o),r.selection.restore()),r.e.fire("synchro"),r.e.fire("afterExecTune.tune"),!0}}}c(a,"moveTo"),h.prototype.controls.tune={h1:u("h1"),h2:u("h2"),h3:u("h3"),h4:u("h4"),h5:u("h5"),h6:u("h6"),up:a(!0),down:a(!1),editPre:{icon:"pencil",exec(e,n){e.e.fire("editPreInPasteCode",n)}},remove:{icon:"bin",exec(e,n){l.safeRemove(n),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}};
@@ -1,6 +1 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- var e=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c};import"./config.js";import{UITuner as t}from"./ui/tuner/tuner.js";import{debounce as o,watch as n}from"jodit/esm/core/decorators/index.js";import{Plugin as r}from"jodit/esm/core/plugin/index.js";import{JoditPro as i}from"../../jodit-pro.js";export class tuneBlock extends r{afterInit(e){this.tuner=new t(e)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(e){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(e){this.tuner.destruct()}}tuneBlock.requires=["license"],e([n(":outsideClick :keydown")],tuneBlock.prototype,"hideTuner",null),e([n("j.ed:selectionchange"),o()],tuneBlock.prototype,"onChangeSelection",null),e([n(":click")],tuneBlock.prototype,"onClickInBlock",null),i.plugins.add("tune-block",tuneBlock);
1
+ var d=Object.defineProperty;var f=(i,e)=>d(i,"name",{value:e,configurable:!0});var u=function(i,e,n,r){var l=arguments.length,t=l<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,e,n,r);else for(var s=i.length-1;s>=0;s--)(c=i[s])&&(t=(l<3?c(t):l>3?c(e,n,t):c(e,n))||t);return l>3&&t&&Object.defineProperty(e,n,t),t};import"./config.js";import{UITuner as a}from"./ui/tuner/tuner.js";import{debounce as m,watch as h}from"jodit/esm/core/decorators/index.js";import{Plugin as j}from"jodit/esm/core/plugin/index.js";import{JoditPro as C}from"../../jodit-pro.js";const p=class p extends j{afterInit(e){this.tuner=new a(e)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(e){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(e){this.tuner.destruct()}};f(p,"tuneBlock");let o=p;o.requires=["license"],u([h(":outsideClick :keydown")],o.prototype,"hideTuner",null),u([h("j.ed:selectionchange"),m()],o.prototype,"onChangeSelection",null),u([h(":click")],o.prototype,"onClickInBlock",null),C.plugins.add("tune-block",o);export{o as tuneBlock};
@@ -1 +1 @@
1
- export default'<svg viewBox="0 0 8 8" xmlns="http://www.w3.org/2000/svg" fill="#606673"> <circle cx="6.5" cy="1.5" r="1.5"/> <circle cx="6.5" cy="6.5" r="1.5"/> <circle cx="1.5" cy="1.5" r="1.5"/> <circle cx="1.5" cy="6.5" r="1.5"/> </svg> ';
1
+ var c='<svg viewBox="0 0 8 8" xmlns="http://www.w3.org/2000/svg" fill="#606673"> <circle cx="6.5" cy="1.5" r="1.5"/> <circle cx="6.5" cy="6.5" r="1.5"/> <circle cx="1.5" cy="1.5" r="1.5"/> <circle cx="1.5" cy="6.5" r="1.5"/> </svg> ';export{c as default};
@@ -1,6 +1,3 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- var t=this&&this.__decorate||function(t,o,e,i){var s,r=arguments.length,n=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,o,e,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(o,e,n):s(o,e))||n);return r>3&&n&&Object.defineProperty(o,e,n),n};import{component as o,idle as e,throttle as i,watch as s}from"jodit/esm/core/decorators/index.js";import{Dom as r}from"jodit/esm/core/dom/index.js";import{assert as n,css as l,position as c}from"jodit/esm/core/helpers/index.js";import{Popup as p,UIElement as h}from"jodit/esm/core/ui/index.js";import{makeCollection as a}from"jodit/esm/modules/toolbar/factory.js";let d=class UITuner extends h{constructor(){super(...arguments),this.isShown=!1,this.toolbar=a(this.j,this),this.popup=new p(this.j,!1)}className(){return"UITuner"}render(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"}show(){const t=this.j.s.current();if(!t)return this.hide();const o=r.isBlock(t)?t:r.closest(t,t=>Boolean(t&&this.j.o.tuneBlock.popup[t.nodeName.toLowerCase()]),this.j.editor);if(!o||o===this.j.editor||!this.j.o.tuneBlock.popup[o.tagName.toLowerCase()])return this.hide();this.currentBlock=o,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,r.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){const t=l(this.j.editor,"marginLeft"),o=l(this.j.editor,"paddingLeft"),e=l(this.j.editor,"marginTop"),i=this.currentBlock.offsetWidth-15+t+o,s=this.currentBlock.offsetTop-this.j.editor.scrollTop+e;l(this.container,{transform:`translate3d(${i}px, ${s}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(t){t&&(this.currentBlock=t),this.calcPosition(),this.openToolbar()}onClickPrevent(t){t.preventDefault(),t.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){const t=this.getElm("handle");n(null!=t,"Handle element does not exist"),this.popup.open(()=>c(t))}}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}};t([s(":hideTuner.tune")],d.prototype,"hide",null),t([s("j.editor:scroll"),i(10)],d.prototype,"onEditorScroll",null),t([s(":afterExecTune.tune"),e()],d.prototype,"onAfterExecTune",null),t([s("container:click container:mousedown")],d.prototype,"onClickPrevent",null),t([s("handle:click")],d.prototype,"onTargetClick",null),t([s(":closeTuner.tune")],d.prototype,"closeToolbar",null),d=t([o],d);export{d as UITuner};
1
+ var m=Object.defineProperty;var d=(h,t)=>m(h,"name",{value:t,configurable:!0});var p,s=function(h,t,o,i){var r=arguments.length,e=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(h,t,o,i);else for(var u=h.length-1;u>=0;u--)(l=h[u])&&(e=(r<3?l(e):r>3?l(t,o,e):l(t,o))||e);return r>3&&e&&Object.defineProperty(t,o,e),e};import{component as T,idle as b,throttle as g,watch as c}from"jodit/esm/core/decorators/index.js";import{Dom as f}from"jodit/esm/core/dom/index.js";import{assert as j,css as a,position as k}from"jodit/esm/core/helpers/index.js";import{Popup as w,UIElement as P}from"jodit/esm/core/ui/index.js";import{makeCollection as v}from"jodit/esm/modules/toolbar/factory.js";let n=(p=class extends P{constructor(){super(...arguments),this.isShown=!1,this.toolbar=v(this.j,this),this.popup=new w(this.j,!1)}className(){return"UITuner"}render(){return`<div>
2
+ <div class='&__handle' title='~Click to tune~'/>
3
+ </div>`}show(){const t=this.j.s.current();if(!t)return this.hide();const o=f.isBlock(t)?t:f.closest(t,i=>!!(i&&this.j.o.tuneBlock.popup[i.nodeName.toLowerCase()]),this.j.editor);if(!o||o===this.j.editor||!this.j.o.tuneBlock.popup[o.tagName.toLowerCase()])return this.hide();this.currentBlock=o,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,f.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){const o=a(this.j.editor,"marginLeft"),i=a(this.j.editor,"paddingLeft"),r=a(this.j.editor,"marginTop"),e=this.currentBlock.offsetWidth-15+o+i,l=this.currentBlock.offsetTop-this.j.editor.scrollTop+r;a(this.container,{transform:`translate3d(${e}px, ${l}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(t){t&&(this.currentBlock=t),this.calcPosition(),this.openToolbar()}onClickPrevent(t){t.preventDefault(),t.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){const t=this.getElm("handle");j(t!=null,"Handle element does not exist"),this.popup.open(()=>k(t))}}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}},d(p,"UITuner"),p);s([c(":hideTuner.tune")],n.prototype,"hide",null),s([c("j.editor:scroll"),g(10)],n.prototype,"onEditorScroll",null),s([c(":afterExecTune.tune"),b()],n.prototype,"onAfterExecTune",null),s([c("container:click container:mousedown")],n.prototype,"onClickPrevent",null),s([c("handle:click")],n.prototype,"onTargetClick",null),s([c(":closeTuner.tune")],n.prototype,"closeToolbar",null),n=s([T],n);export{n as UITuner};
@@ -1,6 +1 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- import{Dom as e}from"jodit/esm/core/dom/dom.js";import{css as t}from"jodit/esm/core/helpers/utils/css.js";export class UIResize{static remove(i){t(i.container,{width:null,height:null}),i.container.classList.remove("jodit-ui-resize"),e.safeRemove(i.container.querySelector(".jodit-ui-resize__handle"))}static install(e,i){e.container.classList.add("jodit-ui-resize"),"static"===t(e.container,"position")&&t(e.container,"position","relative");const o=e.j.c.div("jodit-ui-resize__handle");o.classList.add("jodit-ui-resize__handle_type_"+i),e.container.appendChild(o),e.j.e.on(o,"mousedown touchstart",this.onStartResize.bind(this,e,i))}static onStartResize(e,t,i){const o={x:i.clientX,y:i.clientY,w:e.container.offsetWidth,h:e.container.offsetHeight,direction:t},n=e.j.async.throttle(this.onResize.bind(this,e,o),e.j.defaultTimeout/10);e.j.lock(),e.j.e.on(e.j.ow,"mousemove touchmove",n).one(e.j.ow,"mouseup touchend",this.onEndResize.bind(this,e,n))}static onResize(e,i,o){const n=["left","right"].includes(i.direction),s=e.container.parentElement;if(!s)return;let c;c=n?(i.w+(o.clientX-i.x)*("right"===i.direction?1:-1))/s.offsetWidth:(i.h+(o.clientY-i.y)*("top"===i.direction?1:-1))/s.offsetHeight,t(e.container,n?"width":"height",100*c+"%")}static onEndResize(e,t,i){e.j.e.off(e.j.ow,"mousemove touchmove",t),e.j.unlock()}}
1
+ var u=Object.defineProperty;var r=(e,i)=>u(e,"name",{value:i,configurable:!0});import{Dom as f}from"jodit/esm/core/dom/dom.js";import{css as c}from"jodit/esm/core/helpers/utils/css.js";const d=class d{static remove(i){c(i.container,{width:null,height:null}),i.container.classList.remove("jodit-ui-resize"),f.safeRemove(i.container.querySelector(".jodit-ui-resize__handle"))}static install(i,o){i.container.classList.add("jodit-ui-resize"),c(i.container,"position")==="static"&&c(i.container,"position","relative");const t=i.j.c.div("jodit-ui-resize__handle");t.classList.add("jodit-ui-resize__handle_type_"+o),i.container.appendChild(t),i.j.e.on(t,"mousedown touchstart",this.onStartResize.bind(this,i,o))}static onStartResize(i,o,t){const n={x:t.clientX,y:t.clientY,w:i.container.offsetWidth,h:i.container.offsetHeight,direction:o},s=i.j.async.throttle(this.onResize.bind(this,i,n),i.j.defaultTimeout/10);i.j.lock(),i.j.e.on(i.j.ow,"mousemove touchmove",s).one(i.j.ow,"mouseup touchend",this.onEndResize.bind(this,i,s))}static onResize(i,o,t){const n=["left","right"].includes(o.direction),s=i.container.parentElement;if(!s)return;let a;n?a=(o.w+(t.clientX-o.x)*(o.direction==="right"?1:-1))/s.offsetWidth:a=(o.h+(t.clientY-o.y)*(o.direction==="top"?1:-1))/s.offsetHeight,c(i.container,n?"width":"height",a*100+"%")}static onEndResize(i,o,t){i.j.e.off(i.j.ow,"mousemove touchmove",o),i.j.unlock()}};r(d,"UIResize");let h=d;export{h as UIResize};
@@ -1,6 +1 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- import{Dom as t}from"jodit/esm/core/dom/dom.js";import{css as e}from"jodit/esm/core/helpers/utils/css.js";export class UISelectItems{static remove(e){t.safeRemove(e.container.querySelector(".jodit-ui-select-items")),e.j.e.off(e.container,"mousedown.uiselectitems touchstart.uiselectitems")}static install(t){const e=t.j.c.div("jodit-ui-select-items");t.j.e.on(t.container,"mousedown.uiselectitems touchstart.uiselectitems",this.onStartSelect.bind(this,t,e))}static onStartSelect(t,o,i){if(i.target!==t.container)return;e(o,{width:0,height:0}),t.container.appendChild(o);const s={x:i.clientX,y:i.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight},c=t.j.async.throttle(this.onSelect.bind(this,t,o,s),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",c).one(t.j.ow,"mouseup touchend",this.onEndSelect.bind(this,t,o,c)),t.onSelectItems({left:s.x,top:s.y,width:0,height:0})}static onSelect(t,o,i,s){const c={left:i.x>s.clientX?s.clientX:i.x,top:i.y>s.clientY?s.clientY:i.y,width:Math.abs(i.x-s.clientX),height:Math.abs(i.y-s.clientY)};e(o,c),t.onSelectItems(c)}static onEndSelect(e,o,i,s){t.safeRemove(o),e.j.e.off(e.j.ow,"mousemove touchmove",i),e.j.unlock()}}
1
+ var j=Object.defineProperty;var e=(d,t)=>j(d,"name",{value:t,configurable:!0});import{Dom as a}from"jodit/esm/core/dom/dom.js";import{css as u}from"jodit/esm/core/helpers/utils/css.js";const n=class n{static remove(t){a.safeRemove(t.container.querySelector(".jodit-ui-select-items")),t.j.e.off(t.container,"mousedown.uiselectitems touchstart.uiselectitems")}static install(t){const c=t.j.c.div("jodit-ui-select-items");t.j.e.on(t.container,"mousedown.uiselectitems touchstart.uiselectitems",this.onStartSelect.bind(this,t,c))}static onStartSelect(t,c,o){if(o.target!==t.container)return;u(c,{width:0,height:0}),t.container.appendChild(c);const i={x:o.clientX,y:o.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight},s=t.j.async.throttle(this.onSelect.bind(this,t,c,i),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",s).one(t.j.ow,"mouseup touchend",this.onEndSelect.bind(this,t,c,s)),t.onSelectItems({left:i.x,top:i.y,width:0,height:0})}static onSelect(t,c,o,i){const s=o.x>i.clientX?i.clientX:o.x,f=o.y>i.clientY?i.clientY:o.y,h={left:s,top:f,width:Math.abs(o.x-i.clientX),height:Math.abs(o.y-i.clientY)};u(c,h),t.onSelectItems(h)}static onEndSelect(t,c,o,i){a.safeRemove(c),t.j.e.off(t.j.ow,"mousemove touchmove",o),t.j.unlock()}};e(n,"UISelectItems");let r=n;export{r as UISelectItems};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit-pro",
3
- "version": "4.7.5",
3
+ "version": "4.7.6",
4
4
  "author": "Chupurnov Valeriy <chupurnov@gmail.com>",
5
5
  "homepage": "https://xdsoft.net/jodit/pro/",
6
6
  "bugs": {