jodit-pro 4.18.8 → 4.18.11

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 (357) hide show
  1. package/es2015/jodit.css +2 -2
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +30 -30
  4. package/es2015/jodit.js +1242 -229
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +13 -13
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
  10. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  11. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  12. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  13. package/es2015/plugins/backup/backup.css +1 -1
  14. package/es2015/plugins/backup/backup.js +14 -7
  15. package/es2015/plugins/backup/backup.min.js +2 -2
  16. package/es2015/plugins/button-generator/button-generator.css +1 -1
  17. package/es2015/plugins/button-generator/button-generator.js +26 -19
  18. package/es2015/plugins/button-generator/button-generator.min.js +3 -3
  19. package/es2015/plugins/change-case/change-case.js +1 -1
  20. package/es2015/plugins/change-case/change-case.min.js +1 -1
  21. package/es2015/plugins/chart/chart.css +1 -1
  22. package/es2015/plugins/chart/chart.js +1 -1
  23. package/es2015/plugins/chart/chart.min.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.css +1 -1
  25. package/es2015/plugins/color-picker/color-picker.js +1 -1
  26. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  27. package/es2015/plugins/emoji/emoji.css +1 -1
  28. package/es2015/plugins/emoji/emoji.js +1 -1
  29. package/es2015/plugins/emoji/emoji.min.js +1 -1
  30. package/es2015/plugins/export-docs/export-docs.js +1 -1
  31. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  32. package/es2015/plugins/finder/finder.css +1 -1
  33. package/es2015/plugins/finder/finder.js +1 -1
  34. package/es2015/plugins/finder/finder.min.js +1 -1
  35. package/es2015/plugins/google-maps/google-maps.css +1 -1
  36. package/es2015/plugins/google-maps/google-maps.js +1 -1
  37. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  38. package/es2015/plugins/google-search/google-search.js +1 -1
  39. package/es2015/plugins/google-search/google-search.min.js +1 -1
  40. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  41. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  43. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  44. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  46. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  47. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.css +1 -1
  49. package/es2015/plugins/keyboard/keyboard.js +1 -1
  50. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  51. package/es2015/plugins/math/math.css +1 -1
  52. package/es2015/plugins/math/math.js +1 -1
  53. package/es2015/plugins/math/math.min.js +1 -1
  54. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  55. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  56. package/es2015/plugins/page-break/page-break.js +1 -1
  57. package/es2015/plugins/page-break/page-break.min.js +1 -1
  58. package/es2015/plugins/paste-code/paste-code.css +1 -1
  59. package/es2015/plugins/paste-code/paste-code.js +1 -1
  60. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  61. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  62. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  63. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  64. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  65. package/es2015/plugins/style/style.css +1 -1
  66. package/es2015/plugins/style/style.js +1 -1
  67. package/es2015/plugins/style/style.min.js +1 -1
  68. package/es2015/plugins/templates/templates.css +1 -1
  69. package/es2015/plugins/templates/templates.js +1 -1
  70. package/es2015/plugins/templates/templates.min.js +1 -1
  71. package/es2015/plugins/todo-list/todo-list.css +1 -1
  72. package/es2015/plugins/todo-list/todo-list.js +1 -1
  73. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  74. package/es2015/plugins/translate/translate.css +1 -1
  75. package/es2015/plugins/translate/translate.js +1 -1
  76. package/es2015/plugins/translate/translate.min.js +1 -1
  77. package/es2015/plugins/tune-block/tune-block.css +1 -1
  78. package/es2015/plugins/tune-block/tune-block.js +1 -1
  79. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  80. package/es2018/jodit.fat.min.css +1 -1
  81. package/es2018/jodit.fat.min.js +19 -19
  82. package/es2018/jodit.min.css +1 -1
  83. package/es2018/jodit.min.js +21 -21
  84. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
  85. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  86. package/es2018/plugins/backup/backup.min.js +2 -2
  87. package/es2018/plugins/button-generator/button-generator.min.js +3 -3
  88. package/es2018/plugins/change-case/change-case.min.js +1 -1
  89. package/es2018/plugins/chart/chart.min.js +1 -1
  90. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  91. package/es2018/plugins/emoji/emoji.min.js +1 -1
  92. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  93. package/es2018/plugins/finder/finder.min.js +1 -1
  94. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  95. package/es2018/plugins/google-search/google-search.min.js +1 -1
  96. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  97. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  98. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  99. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  100. package/es2018/plugins/math/math.min.js +1 -1
  101. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  102. package/es2018/plugins/page-break/page-break.min.js +1 -1
  103. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  104. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  105. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  106. package/es2018/plugins/style/style.min.js +1 -1
  107. package/es2018/plugins/templates/templates.min.js +1 -1
  108. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  109. package/es2018/plugins/translate/translate.min.js +1 -1
  110. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  111. package/es2021/jodit.css +2 -2
  112. package/es2021/jodit.fat.min.css +1 -1
  113. package/es2021/jodit.fat.min.js +24 -24
  114. package/es2021/jodit.js +1217 -229
  115. package/es2021/jodit.min.css +1 -1
  116. package/es2021/jodit.min.js +16 -16
  117. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  118. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
  119. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
  120. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  121. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  122. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  123. package/es2021/plugins/backup/backup.css +1 -1
  124. package/es2021/plugins/backup/backup.js +14 -7
  125. package/es2021/plugins/backup/backup.min.js +2 -2
  126. package/es2021/plugins/button-generator/button-generator.css +1 -1
  127. package/es2021/plugins/button-generator/button-generator.js +26 -19
  128. package/es2021/plugins/button-generator/button-generator.min.js +3 -3
  129. package/es2021/plugins/change-case/change-case.js +1 -1
  130. package/es2021/plugins/change-case/change-case.min.js +1 -1
  131. package/es2021/plugins/chart/chart.css +1 -1
  132. package/es2021/plugins/chart/chart.js +1 -1
  133. package/es2021/plugins/chart/chart.min.js +1 -1
  134. package/es2021/plugins/color-picker/color-picker.css +1 -1
  135. package/es2021/plugins/color-picker/color-picker.js +1 -1
  136. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  137. package/es2021/plugins/emoji/emoji.css +1 -1
  138. package/es2021/plugins/emoji/emoji.js +1 -1
  139. package/es2021/plugins/emoji/emoji.min.js +1 -1
  140. package/es2021/plugins/export-docs/export-docs.js +1 -1
  141. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  142. package/es2021/plugins/finder/finder.css +1 -1
  143. package/es2021/plugins/finder/finder.js +1 -1
  144. package/es2021/plugins/finder/finder.min.js +1 -1
  145. package/es2021/plugins/google-maps/google-maps.css +1 -1
  146. package/es2021/plugins/google-maps/google-maps.js +1 -1
  147. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  148. package/es2021/plugins/google-search/google-search.js +1 -1
  149. package/es2021/plugins/google-search/google-search.min.js +1 -1
  150. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  151. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  152. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  153. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  154. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  155. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  156. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  157. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  158. package/es2021/plugins/keyboard/keyboard.css +1 -1
  159. package/es2021/plugins/keyboard/keyboard.js +1 -1
  160. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  161. package/es2021/plugins/math/math.css +1 -1
  162. package/es2021/plugins/math/math.js +1 -1
  163. package/es2021/plugins/math/math.min.js +1 -1
  164. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  165. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  166. package/es2021/plugins/page-break/page-break.js +1 -1
  167. package/es2021/plugins/page-break/page-break.min.js +1 -1
  168. package/es2021/plugins/paste-code/paste-code.css +1 -1
  169. package/es2021/plugins/paste-code/paste-code.js +1 -1
  170. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  171. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  172. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  173. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  174. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  175. package/es2021/plugins/style/style.css +1 -1
  176. package/es2021/plugins/style/style.js +1 -1
  177. package/es2021/plugins/style/style.min.js +1 -1
  178. package/es2021/plugins/templates/templates.css +1 -1
  179. package/es2021/plugins/templates/templates.js +1 -1
  180. package/es2021/plugins/templates/templates.min.js +1 -1
  181. package/es2021/plugins/todo-list/todo-list.css +1 -1
  182. package/es2021/plugins/todo-list/todo-list.js +1 -1
  183. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  184. package/es2021/plugins/translate/translate.css +1 -1
  185. package/es2021/plugins/translate/translate.js +1 -1
  186. package/es2021/plugins/translate/translate.min.js +1 -1
  187. package/es2021/plugins/tune-block/tune-block.css +1 -1
  188. package/es2021/plugins/tune-block/tune-block.js +1 -1
  189. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  190. package/es2021.en/jodit.css +2 -2
  191. package/es2021.en/jodit.fat.min.css +1 -1
  192. package/es2021.en/jodit.fat.min.js +24 -24
  193. package/es2021.en/jodit.js +1217 -229
  194. package/es2021.en/jodit.min.css +1 -1
  195. package/es2021.en/jodit.min.js +30 -30
  196. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  197. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
  198. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +26 -26
  199. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  200. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  201. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  202. package/es2021.en/plugins/backup/backup.css +1 -1
  203. package/es2021.en/plugins/backup/backup.js +14 -7
  204. package/es2021.en/plugins/backup/backup.min.js +2 -2
  205. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  206. package/es2021.en/plugins/button-generator/button-generator.js +26 -19
  207. package/es2021.en/plugins/button-generator/button-generator.min.js +3 -3
  208. package/es2021.en/plugins/change-case/change-case.js +1 -1
  209. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  210. package/es2021.en/plugins/chart/chart.css +1 -1
  211. package/es2021.en/plugins/chart/chart.js +1 -1
  212. package/es2021.en/plugins/chart/chart.min.js +1 -1
  213. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  214. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  215. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  216. package/es2021.en/plugins/emoji/emoji.css +1 -1
  217. package/es2021.en/plugins/emoji/emoji.js +1 -1
  218. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  219. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  220. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  221. package/es2021.en/plugins/finder/finder.css +1 -1
  222. package/es2021.en/plugins/finder/finder.js +1 -1
  223. package/es2021.en/plugins/finder/finder.min.js +1 -1
  224. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  225. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  226. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  227. package/es2021.en/plugins/google-search/google-search.js +1 -1
  228. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  229. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  230. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  231. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  232. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  233. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  234. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  235. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  236. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  237. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  238. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  239. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  240. package/es2021.en/plugins/math/math.css +1 -1
  241. package/es2021.en/plugins/math/math.js +1 -1
  242. package/es2021.en/plugins/math/math.min.js +1 -1
  243. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  244. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  245. package/es2021.en/plugins/page-break/page-break.js +1 -1
  246. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  247. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  248. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  249. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  250. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  251. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  252. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  253. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  254. package/es2021.en/plugins/style/style.css +1 -1
  255. package/es2021.en/plugins/style/style.js +1 -1
  256. package/es2021.en/plugins/style/style.min.js +1 -1
  257. package/es2021.en/plugins/templates/templates.css +1 -1
  258. package/es2021.en/plugins/templates/templates.js +1 -1
  259. package/es2021.en/plugins/templates/templates.min.js +1 -1
  260. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  261. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  262. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  263. package/es2021.en/plugins/translate/translate.css +1 -1
  264. package/es2021.en/plugins/translate/translate.js +1 -1
  265. package/es2021.en/plugins/translate/translate.min.js +1 -1
  266. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  267. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  268. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  269. package/es5/jodit.css +3 -3
  270. package/es5/jodit.fat.min.css +1 -1
  271. package/es5/jodit.fat.min.js +2 -2
  272. package/es5/jodit.js +1383 -235
  273. package/es5/jodit.min.css +3 -3
  274. package/es5/jodit.min.js +2 -2
  275. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  276. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
  277. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  278. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  279. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  280. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  281. package/es5/plugins/backup/backup.css +1 -1
  282. package/es5/plugins/backup/backup.js +14 -7
  283. package/es5/plugins/backup/backup.min.js +2 -2
  284. package/es5/plugins/button-generator/button-generator.css +1 -1
  285. package/es5/plugins/button-generator/button-generator.js +26 -19
  286. package/es5/plugins/button-generator/button-generator.min.js +2 -2
  287. package/es5/plugins/change-case/change-case.js +1 -1
  288. package/es5/plugins/change-case/change-case.min.js +1 -1
  289. package/es5/plugins/chart/chart.css +1 -1
  290. package/es5/plugins/chart/chart.js +1 -1
  291. package/es5/plugins/chart/chart.min.js +1 -1
  292. package/es5/plugins/color-picker/color-picker.css +1 -1
  293. package/es5/plugins/color-picker/color-picker.js +1 -1
  294. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  295. package/es5/plugins/emoji/emoji.css +1 -1
  296. package/es5/plugins/emoji/emoji.js +1 -1
  297. package/es5/plugins/emoji/emoji.min.js +1 -1
  298. package/es5/plugins/export-docs/export-docs.js +1 -1
  299. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  300. package/es5/plugins/finder/finder.css +1 -1
  301. package/es5/plugins/finder/finder.js +1 -1
  302. package/es5/plugins/finder/finder.min.js +1 -1
  303. package/es5/plugins/google-maps/google-maps.css +1 -1
  304. package/es5/plugins/google-maps/google-maps.js +1 -1
  305. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  306. package/es5/plugins/google-search/google-search.js +1 -1
  307. package/es5/plugins/google-search/google-search.min.js +1 -1
  308. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  309. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  310. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  311. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  312. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  313. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  314. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  315. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  316. package/es5/plugins/keyboard/keyboard.css +1 -1
  317. package/es5/plugins/keyboard/keyboard.js +1 -1
  318. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  319. package/es5/plugins/math/math.css +1 -1
  320. package/es5/plugins/math/math.js +1 -1
  321. package/es5/plugins/math/math.min.js +1 -1
  322. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  323. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  324. package/es5/plugins/page-break/page-break.js +1 -1
  325. package/es5/plugins/page-break/page-break.min.js +1 -1
  326. package/es5/plugins/paste-code/paste-code.css +1 -1
  327. package/es5/plugins/paste-code/paste-code.js +1 -1
  328. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  329. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  330. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  331. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  332. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  333. package/es5/plugins/style/style.css +1 -1
  334. package/es5/plugins/style/style.js +1 -1
  335. package/es5/plugins/style/style.min.js +1 -1
  336. package/es5/plugins/templates/templates.css +1 -1
  337. package/es5/plugins/templates/templates.js +1 -1
  338. package/es5/plugins/templates/templates.min.js +1 -1
  339. package/es5/plugins/todo-list/todo-list.css +1 -1
  340. package/es5/plugins/todo-list/todo-list.js +1 -1
  341. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  342. package/es5/plugins/translate/translate.css +1 -1
  343. package/es5/plugins/translate/translate.js +1 -1
  344. package/es5/plugins/translate/translate.min.js +1 -1
  345. package/es5/plugins/tune-block/tune-block.css +1 -1
  346. package/es5/plugins/tune-block/tune-block.js +1 -1
  347. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  348. package/es5/polyfills.fat.min.js +1 -1
  349. package/es5/polyfills.js +1 -1
  350. package/es5/polyfills.min.js +1 -1
  351. package/esm/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
  352. package/esm/plugins/ai-assistant-pro/core/panel-resize.d.ts +4 -0
  353. package/esm/plugins/ai-assistant-pro/core/panel-resize.js +1 -1
  354. package/esm/plugins/backup/ui/item.js +1 -1
  355. package/esm/plugins/button-generator/ui/form/form.js +2 -2
  356. package/package.json +1 -1
  357. package/types/plugins/ai-assistant-pro/core/panel-resize.d.ts +4 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.8
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.8
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.8
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.8
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.8
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -529,8 +529,10 @@ UIBackupBox = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorat
529
529
  /* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
530
530
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
531
531
  /* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
532
- /* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21537);
533
- /* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67510);
532
+ /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
533
+ /* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(87325);
534
+ /* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21537);
535
+ /* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67510);
534
536
  /*!
535
537
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
536
538
  * See LICENSE.md in the project root for license information.
@@ -543,6 +545,8 @@ UIBackupBox = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorat
543
545
 
544
546
 
545
547
 
548
+
549
+
546
550
  var UIBackupItem = /*#__PURE__*/ function(UIElement) {
547
551
  "use strict";
548
552
  (0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(UIBackupItem, UIElement);
@@ -553,7 +557,7 @@ var UIBackupItem = /*#__PURE__*/ function(UIElement) {
553
557
  jodit
554
558
  ]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "data", void 0), _this.data = data;
555
559
  _this.container.innerHTML = _this.formatDate(data.created);
556
- (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(_this.container, 'tabIndex', 0);
560
+ (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.attr)(_this.container, 'tabIndex', 0);
557
561
  return _this;
558
562
  }
559
563
  ;(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(UIBackupItem, [
@@ -567,8 +571,8 @@ var UIBackupItem = /*#__PURE__*/ function(UIElement) {
567
571
  key: "formatDate",
568
572
  value: function formatDate(timestamp) {
569
573
  var now = new Date();
570
- var date = (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(timestamp) ? new Date(timestamp) : timestamp, diff = (now.getTime() - date.getTime()) / 1000;
571
- if ((0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(this.j.o.backup.formatDate)) {
574
+ var date = (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.isString)(timestamp) ? new Date(timestamp) : timestamp, diff = (now.getTime() - date.getTime()) / 1000;
575
+ if ((0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_7__.isFunction)(this.j.o.backup.formatDate)) {
572
576
  return this.j.o.backup.formatDate(date);
573
577
  }
574
578
  if (diff < 0.2) {
@@ -594,7 +598,10 @@ var UIBackupItem = /*#__PURE__*/ function(UIElement) {
594
598
  }
595
599
  ]);
596
600
  return UIBackupItem;
597
- }(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__.UIElement);
601
+ }(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__.UIElement);
602
+ UIBackupItem = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
603
+ jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__.component
604
+ ], UIBackupItem);
598
605
 
599
606
 
600
607
  /***/ }),
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.8
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[736],{68583:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 4v6h6M3 10l4-4a8 8 0 1 1-1 12M12 8v5l3 2"/> </g> </svg>'},61328:function(t,e,n){"use strict";n.r(e),n.d(e,{backup:function(){return g}});var o=n(77688),i=n(80294),a=n(20616),r=n(67709),s=n(82749),c=n(18766),u=n(94899),l=n(31635),h=n(62361),d=n(23078);n(57056);var f=n(29243),p=n(64262),_=n(65478),v=n(50911),k=n(67510),m=n(2692),g=function(t){function e(){var t,n;return(0,a._)(this,e),t=(0,i._)(this,e,arguments),(0,s._)(t,"hasStyle",!m.JoditPro.fatMode),(0,s._)(t,"buttons",[{name:"backup.restore",group:"history"}]),(0,s._)(t,"__box",new p.UIBackupBox(t.j)),(0,s._)(t,"__dialog",null),(0,s._)(t,"__storage",null!=(n=t.jodit.o.backup.remoteStore)?n:new f.DefaultStorage(t.jodit)),(0,s._)(t,"timeout",0),t}return(0,c._)(e,t),(0,r._)(e,[{key:"afterInit",value:function(t){var e=this;t.registerCommand("saveBackup",this.onSaveBackup).registerCommand("openBackupDialog",{exec:this.onOpenBackupDialog,hotkeys:t.o.backup.hotkeys});var n=function(){e.timeout=t.async.setTimeout(function(){e.onSaveBackup(),n()},1e3*t.o.backup.interval)};n(),t.e.on(this.__box,"choose",this.onSelectItem).on(t.ow,"beforeunload.backup",function(){e.onSaveBackup()})}},{key:"prepareDialog",value:function(){this.__dialog||(this.__dialog=this.j.dlg({minWidth:this.j.o.backup.dialogWidth,buttons:["fullsize","dialog.close"]}).setContent(this.__box.container)),this.__dialog.setHeader(this.jodit.i18n("Restore")),this.addButtonsToDialog()}},{key:"onSaveBackup",value:function(){this.__storage.add({created:new Date,html:this.j.value})}},{key:"onOpenBackupDialog",value:function(){return(0,o._)(function(){var t,e;return(0,h._)(this,function(n){switch(n.label){case 0:if(this.prepareDialog(),!(t=this.__dialog))return[2];return t.open().setModal(!0),[4,this.__storage.items()];case 1:return e=n.sent(),this.__box.build([{created:new Date,html:this.j.value}].concat((0,u._)(e))),t.calcAutoSize(),t.setPosition(),[2]}})}).call(this)}},{key:"onSelectItem",value:function(t){var e;null==(e=this.__dialog)||e.close(),this.j.value=t.html,this.j.s.focus()}},{key:"addButtonsToDialog",value:function(){var t,e=this,n=this.jodit,o=(0,k.Button)(n,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),i=(0,k.Button)(n,{variant:"secondary",tabIndex:0,text:"Cancel"}),a=(0,k.Button)(n,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});o.onAction(function(){e.__box.chooseSelected()}),i.onAction(function(){var t;null==(t=e.__dialog)||t.close()}),a.onAction(function(){n.confirm("Are you sure?",void 0,function(t){if(t){var n;e.__storage.clear(),null==(n=e.__dialog)||n.close()}})});var r=new k.UIBlock(n,[a,i,o]);r.container.style.margin="0",r.container.style.justifyContent="flex-end",r.container.style.width="100%",null==(t=this.__dialog)||t.setFooter(r)}},{key:"beforeDestruct",value:function(){var t,e=this.j;e.async.clearTimeout(this.timeout),e.e.off(this.__box,"choose",this.onSelectItem).off(e.ow,"beforeunload.backup"),this.__box.destruct(),null==(t=this.__dialog)||t.destruct()}}]),e}((0,d._)(v.Plugin));(0,s._)(g,"requires",["license"]),(0,l.__decorate)([_.autobind],g.prototype,"onSaveBackup",null),(0,l.__decorate)([_.autobind],g.prototype,"onOpenBackupDialog",null),(0,l.__decorate)([_.autobind],g.prototype,"onSelectItem",null),m.JoditPro.plugins.add("backup",g)},57056:function(t,e,n){"use strict";var o=n(68583),i=n.n(o),a=n(29402),r=n(6441),s=n(580),c=n(12153);r.Config.prototype.backup={interval:30,limit:50,dialogWidth:700,hotkeys:["ctrl+shift+b","cmd+shift+b"]},r.Config.prototype.controls.backup={store:{command:"saveBackup",text:"Save backup now"},restore:{tooltip:"Restore",list:["backup.store"],exec:function(t){t.execCommand("openBackupDialog")}}},c.Icon.set("restore",i()),(0,s.extendLang)(a)},29402:function(t,e,n){"use strict";n.r(e)},29243:function(t,e,n){"use strict";n.d(e,{DefaultStorage:function(){return c}});var o=n(77688),i=n(20616),a=n(67709),r=n(82749),s=n(62361),c=function(){function t(e){(0,i._)(this,t),(0,r._)(this,"jodit",void 0),(0,r._)(this,"key",void 0),this.jodit=e,this.key="backup.default.storage"}return(0,a._)(t,[{key:"add",value:function(t){return(0,o._)(function(){var e;return(0,s._)(this,function(n){return!t.html.trim().length||(e=this.jodit.storage.get(this.key)||[]).find(function(e){return e.html===t.html})||(e.unshift(t),e.length>this.jodit.o.backup.limit&&(e.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,e)),[2,!1]})}).call(this)}},{key:"items",value:function(){return Promise.resolve(this.jodit.storage.get(this.key)||[])}},{key:"clear",value:function(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)}}]),t}()},64262:function(t,e,n){"use strict";n.d(e,{UIBackupBox:function(){return f}});var o=n(80294),i=n(20616),a=n(67709),r=n(82749),s=n(54816),c=n(84669),u=n(18766),l=n(31635),h=n(6183),d=n(65478),f=function(t){function e(t){var n;return(0,i._)(this,e),n=(0,o._)(this,e,[t]),(0,r._)(n,"list",new h.UIBackupList(n.j)),(0,r._)(n,"preview",n.j.c.div(n.getFullElName("preview"))),(0,r._)(n,"latestSelected",void 0),n.container.appendChild(n.list.container),n.container.appendChild(n.preview),n.list.container.classList.add(n.getFullElName("list")),t.e.on(n.list,"select",n.onSelectItem).on(n.list,"choose",n.onChooseItem),n}return(0,u._)(e,t),(0,a._)(e,[{key:"className",value:function(){return"UIBackupBox"}},{key:"build",value:function(t){this.preview.innerHTML="",this.list.build(t)}},{key:"destruct",value:function(){return this.j.e.off(this.list,"select",this.onSelectItem),this.list.destruct(),(0,s._)((0,c._)(e.prototype),"destruct",this).call(this)}},{key:"onSelectItem",value:function(t){this.latestSelected=t,this.preview.innerHTML=t.html||'<div class="'.concat(this.getFullElName("empty"),'">').concat(this.j.i18n("Empty"),"</div>")}},{key:"onChooseItem",value:function(t){this.j.e.fire(this,"choose",t)}},{key:"chooseSelected",value:function(){this.onChooseItem(this.latestSelected)}}]),e}(n(48538).UIElement);(0,l.__decorate)([d.autobind],f.prototype,"onSelectItem",null),(0,l.__decorate)([d.autobind],f.prototype,"onChooseItem",null),f=(0,l.__decorate)([d.component],f)},38512:function(t,e,n){"use strict";n.d(e,{UIBackupItem:function(){return u}});var o=n(80294),i=n(20616),a=n(67709),r=n(82749),s=n(18766),c=n(21537),u=function(t){function e(t,n){var a;return(0,i._)(this,e),a=(0,o._)(this,e,[t]),(0,r._)(a,"data",void 0),a.data=n,a.container.innerHTML=a.formatDate(n.created),(0,c.attr)(a.container,"tabIndex",0),a}return(0,s._)(e,t),(0,a._)(e,[{key:"className",value:function(){return"UIBackupItem"}},{key:"formatDate",value:function(t){var e=new Date,n=(0,c.isString)(t)?new Date(t):t,o=(e.getTime()-n.getTime())/1e3;return(0,c.isFunction)(this.j.o.backup.formatDate)?this.j.o.backup.formatDate(n):o<.2?this.j.i18n("Current"):o<60?this.j.i18n("Less minute"):o<=3600?this.j.i18n("%s minutes ago",Math.floor(o/60)):o<=86400?this.j.i18n("%s hours ago",Math.floor(o/3600)):"".concat(n.toDateString()," ").concat(n.toLocaleTimeString())}},{key:"focus",value:function(){this.container.focus()}}]),e}(n(67510).UIElement)},6183:function(t,e,n){"use strict";n.d(e,{UIBackupList:function(){return _}});var o=n(80294),i=n(20616),a=n(67709),r=n(82749),s=n(54816),c=n(84669),u=n(18766),l=n(31635),h=n(38512),d=n(82758),f=n(65478),p=n(21537),_=function(t){function e(t){var n;return(0,i._)(this,e),n=(0,o._)(this,e,[t]),(0,r._)(n,"elements",[]),(0,r._)(n,"currentSelection",-1),t.e.on(n.container,"keydown",function(t){switch(t.key){case d.KEY_ENTER:t.preventDefault(),t.stopPropagation(),n.onChoose(n.currentSelection);break;case d.KEY_DOWN:n.selectNext();break;case d.KEY_UP:n.selectPrevious()}}),n}return(0,u._)(e,t),(0,a._)(e,[{key:"className",value:function(){return"UIBackupList"}},{key:"createContainer",value:function(t){var n=(0,s._)((0,c._)(e.prototype),"createContainer",this).call(this,t);return(0,p.attr)(n,"tabIndex","-1"),n}},{key:"build",value:function(t){var e=this;this.clear(),t.forEach(function(t,n){var o=new h.UIBackupItem(e.jodit,t);e.append(o),e.j.e.on(o.container,"focus",function(){return e.onSelect(n)}).on(o.container,"click",function(){return e.onSelect(n)}).on(o.container,"dblclick",function(){return e.onChoose(n)})}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}},{key:"onChangeCurrentSelection",value:function(t,e,n){var o,i,a;null==(o=this.elements[e])||o.setMod("active",!1),null==(i=this.elements[n])||i.setMod("active",!0),null==(a=this.elements[n])||a.focus(),this.j.e.fire(this,"select",this.elements[n].data)}},{key:"onSelect",value:function(t){this.currentSelection=t}},{key:"onChoose",value:function(t){this.j.e.fire(this,"choose",this.elements[null!=t?t:this.currentSelection].data)}},{key:"selectNext",value:function(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}},{key:"selectPrevious",value:function(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}}]),e}(n(67510).UIGroup);(0,l.__decorate)([(0,f.watch)("currentSelection")],_.prototype,"onChangeCurrentSelection",null),(0,l.__decorate)([f.autobind],_.prototype,"onSelect",null),(0,l.__decorate)([f.autobind],_.prototype,"onChoose",null),_=(0,l.__decorate)([f.component],_)}},function(t){return t(61328)}])});
8
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[736],{68583:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 4v6h6M3 10l4-4a8 8 0 1 1-1 12M12 8v5l3 2"/> </g> </svg>'},61328:function(t,e,n){"use strict";n.r(e),n.d(e,{backup:function(){return g}});var o=n(77688),i=n(80294),a=n(20616),r=n(67709),c=n(82749),s=n(18766),u=n(94899),l=n(31635),h=n(62361),d=n(23078);n(57056);var f=n(29243),p=n(64262),_=n(65478),v=n(50911),k=n(67510),m=n(2692),g=function(t){function e(){var t,n;return(0,a._)(this,e),t=(0,i._)(this,e,arguments),(0,c._)(t,"hasStyle",!m.JoditPro.fatMode),(0,c._)(t,"buttons",[{name:"backup.restore",group:"history"}]),(0,c._)(t,"__box",new p.UIBackupBox(t.j)),(0,c._)(t,"__dialog",null),(0,c._)(t,"__storage",null!=(n=t.jodit.o.backup.remoteStore)?n:new f.DefaultStorage(t.jodit)),(0,c._)(t,"timeout",0),t}return(0,s._)(e,t),(0,r._)(e,[{key:"afterInit",value:function(t){var e=this;t.registerCommand("saveBackup",this.onSaveBackup).registerCommand("openBackupDialog",{exec:this.onOpenBackupDialog,hotkeys:t.o.backup.hotkeys});var n=function(){e.timeout=t.async.setTimeout(function(){e.onSaveBackup(),n()},1e3*t.o.backup.interval)};n(),t.e.on(this.__box,"choose",this.onSelectItem).on(t.ow,"beforeunload.backup",function(){e.onSaveBackup()})}},{key:"prepareDialog",value:function(){this.__dialog||(this.__dialog=this.j.dlg({minWidth:this.j.o.backup.dialogWidth,buttons:["fullsize","dialog.close"]}).setContent(this.__box.container)),this.__dialog.setHeader(this.jodit.i18n("Restore")),this.addButtonsToDialog()}},{key:"onSaveBackup",value:function(){this.__storage.add({created:new Date,html:this.j.value})}},{key:"onOpenBackupDialog",value:function(){return(0,o._)(function(){var t,e;return(0,h._)(this,function(n){switch(n.label){case 0:if(this.prepareDialog(),!(t=this.__dialog))return[2];return t.open().setModal(!0),[4,this.__storage.items()];case 1:return e=n.sent(),this.__box.build([{created:new Date,html:this.j.value}].concat((0,u._)(e))),t.calcAutoSize(),t.setPosition(),[2]}})}).call(this)}},{key:"onSelectItem",value:function(t){var e;null==(e=this.__dialog)||e.close(),this.j.value=t.html,this.j.s.focus()}},{key:"addButtonsToDialog",value:function(){var t,e=this,n=this.jodit,o=(0,k.Button)(n,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),i=(0,k.Button)(n,{variant:"secondary",tabIndex:0,text:"Cancel"}),a=(0,k.Button)(n,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});o.onAction(function(){e.__box.chooseSelected()}),i.onAction(function(){var t;null==(t=e.__dialog)||t.close()}),a.onAction(function(){n.confirm("Are you sure?",void 0,function(t){if(t){var n;e.__storage.clear(),null==(n=e.__dialog)||n.close()}})});var r=new k.UIBlock(n,[a,i,o]);r.container.style.margin="0",r.container.style.justifyContent="flex-end",r.container.style.width="100%",null==(t=this.__dialog)||t.setFooter(r)}},{key:"beforeDestruct",value:function(){var t,e=this.j;e.async.clearTimeout(this.timeout),e.e.off(this.__box,"choose",this.onSelectItem).off(e.ow,"beforeunload.backup"),this.__box.destruct(),null==(t=this.__dialog)||t.destruct()}}]),e}((0,d._)(v.Plugin));(0,c._)(g,"requires",["license"]),(0,l.__decorate)([_.autobind],g.prototype,"onSaveBackup",null),(0,l.__decorate)([_.autobind],g.prototype,"onOpenBackupDialog",null),(0,l.__decorate)([_.autobind],g.prototype,"onSelectItem",null),m.JoditPro.plugins.add("backup",g)},57056:function(t,e,n){"use strict";var o=n(68583),i=n.n(o),a=n(29402),r=n(6441),c=n(580),s=n(12153);r.Config.prototype.backup={interval:30,limit:50,dialogWidth:700,hotkeys:["ctrl+shift+b","cmd+shift+b"]},r.Config.prototype.controls.backup={store:{command:"saveBackup",text:"Save backup now"},restore:{tooltip:"Restore",list:["backup.store"],exec:function(t){t.execCommand("openBackupDialog")}}},s.Icon.set("restore",i()),(0,c.extendLang)(a)},29402:function(t,e,n){"use strict";n.r(e)},29243:function(t,e,n){"use strict";n.d(e,{DefaultStorage:function(){return s}});var o=n(77688),i=n(20616),a=n(67709),r=n(82749),c=n(62361),s=function(){function t(e){(0,i._)(this,t),(0,r._)(this,"jodit",void 0),(0,r._)(this,"key",void 0),this.jodit=e,this.key="backup.default.storage"}return(0,a._)(t,[{key:"add",value:function(t){return(0,o._)(function(){var e;return(0,c._)(this,function(n){return!t.html.trim().length||(e=this.jodit.storage.get(this.key)||[]).find(function(e){return e.html===t.html})||(e.unshift(t),e.length>this.jodit.o.backup.limit&&(e.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,e)),[2,!1]})}).call(this)}},{key:"items",value:function(){return Promise.resolve(this.jodit.storage.get(this.key)||[])}},{key:"clear",value:function(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)}}]),t}()},64262:function(t,e,n){"use strict";n.d(e,{UIBackupBox:function(){return f}});var o=n(80294),i=n(20616),a=n(67709),r=n(82749),c=n(54816),s=n(84669),u=n(18766),l=n(31635),h=n(6183),d=n(65478),f=function(t){function e(t){var n;return(0,i._)(this,e),n=(0,o._)(this,e,[t]),(0,r._)(n,"list",new h.UIBackupList(n.j)),(0,r._)(n,"preview",n.j.c.div(n.getFullElName("preview"))),(0,r._)(n,"latestSelected",void 0),n.container.appendChild(n.list.container),n.container.appendChild(n.preview),n.list.container.classList.add(n.getFullElName("list")),t.e.on(n.list,"select",n.onSelectItem).on(n.list,"choose",n.onChooseItem),n}return(0,u._)(e,t),(0,a._)(e,[{key:"className",value:function(){return"UIBackupBox"}},{key:"build",value:function(t){this.preview.innerHTML="",this.list.build(t)}},{key:"destruct",value:function(){return this.j.e.off(this.list,"select",this.onSelectItem),this.list.destruct(),(0,c._)((0,s._)(e.prototype),"destruct",this).call(this)}},{key:"onSelectItem",value:function(t){this.latestSelected=t,this.preview.innerHTML=t.html||'<div class="'.concat(this.getFullElName("empty"),'">').concat(this.j.i18n("Empty"),"</div>")}},{key:"onChooseItem",value:function(t){this.j.e.fire(this,"choose",t)}},{key:"chooseSelected",value:function(){this.onChooseItem(this.latestSelected)}}]),e}(n(48538).UIElement);(0,l.__decorate)([d.autobind],f.prototype,"onSelectItem",null),(0,l.__decorate)([d.autobind],f.prototype,"onChooseItem",null),f=(0,l.__decorate)([d.component],f)},38512:function(t,e,n){"use strict";n.d(e,{UIBackupItem:function(){return h}});var o=n(80294),i=n(20616),a=n(67709),r=n(82749),c=n(18766),s=n(31635),u=n(87325),l=n(21537),h=function(t){function e(t,n){var a;return(0,i._)(this,e),a=(0,o._)(this,e,[t]),(0,r._)(a,"data",void 0),a.data=n,a.container.innerHTML=a.formatDate(n.created),(0,l.attr)(a.container,"tabIndex",0),a}return(0,c._)(e,t),(0,a._)(e,[{key:"className",value:function(){return"UIBackupItem"}},{key:"formatDate",value:function(t){var e=new Date,n=(0,l.isString)(t)?new Date(t):t,o=(e.getTime()-n.getTime())/1e3;return(0,l.isFunction)(this.j.o.backup.formatDate)?this.j.o.backup.formatDate(n):o<.2?this.j.i18n("Current"):o<60?this.j.i18n("Less minute"):o<=3600?this.j.i18n("%s minutes ago",Math.floor(o/60)):o<=86400?this.j.i18n("%s hours ago",Math.floor(o/3600)):"".concat(n.toDateString()," ").concat(n.toLocaleTimeString())}},{key:"focus",value:function(){this.container.focus()}}]),e}(n(67510).UIElement);h=(0,s.__decorate)([u.component],h)},6183:function(t,e,n){"use strict";n.d(e,{UIBackupList:function(){return _}});var o=n(80294),i=n(20616),a=n(67709),r=n(82749),c=n(54816),s=n(84669),u=n(18766),l=n(31635),h=n(38512),d=n(82758),f=n(65478),p=n(21537),_=function(t){function e(t){var n;return(0,i._)(this,e),n=(0,o._)(this,e,[t]),(0,r._)(n,"elements",[]),(0,r._)(n,"currentSelection",-1),t.e.on(n.container,"keydown",function(t){switch(t.key){case d.KEY_ENTER:t.preventDefault(),t.stopPropagation(),n.onChoose(n.currentSelection);break;case d.KEY_DOWN:n.selectNext();break;case d.KEY_UP:n.selectPrevious()}}),n}return(0,u._)(e,t),(0,a._)(e,[{key:"className",value:function(){return"UIBackupList"}},{key:"createContainer",value:function(t){var n=(0,c._)((0,s._)(e.prototype),"createContainer",this).call(this,t);return(0,p.attr)(n,"tabIndex","-1"),n}},{key:"build",value:function(t){var e=this;this.clear(),t.forEach(function(t,n){var o=new h.UIBackupItem(e.jodit,t);e.append(o),e.j.e.on(o.container,"focus",function(){return e.onSelect(n)}).on(o.container,"click",function(){return e.onSelect(n)}).on(o.container,"dblclick",function(){return e.onChoose(n)})}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}},{key:"onChangeCurrentSelection",value:function(t,e,n){var o,i,a;null==(o=this.elements[e])||o.setMod("active",!1),null==(i=this.elements[n])||i.setMod("active",!0),null==(a=this.elements[n])||a.focus(),this.j.e.fire(this,"select",this.elements[n].data)}},{key:"onSelect",value:function(t){this.currentSelection=t}},{key:"onChoose",value:function(t){this.j.e.fire(this,"choose",this.elements[null!=t?t:this.currentSelection].data)}},{key:"selectNext",value:function(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}},{key:"selectPrevious",value:function(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}}]),e}(n(67510).UIGroup);(0,l.__decorate)([(0,f.watch)("currentSelection")],_.prototype,"onChangeCurrentSelection",null),(0,l.__decorate)([f.autobind],_.prototype,"onSelect",null),(0,l.__decorate)([f.autobind],_.prototype,"onChoose",null),_=(0,l.__decorate)([f.component],_)}},function(t){return t(61328)}])});
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.8
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.8
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1941,11 +1941,13 @@ UIGButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)
1941
1941
  /* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
1942
1942
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
1943
1943
  /* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
1944
- /* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2748);
1945
- /* harmony import */ var jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4510);
1946
- /* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38837);
1947
- /* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67510);
1948
- /* harmony import */ var jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62357);
1944
+ /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
1945
+ /* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(87325);
1946
+ /* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2748);
1947
+ /* harmony import */ var jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4510);
1948
+ /* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38837);
1949
+ /* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67510);
1950
+ /* harmony import */ var jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62357);
1949
1951
  /*!
1950
1952
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
1951
1953
  * See LICENSE.md in the project root for license information.
@@ -1961,6 +1963,8 @@ UIGButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)
1961
1963
 
1962
1964
 
1963
1965
 
1966
+
1967
+
1964
1968
  var UIFormButtonGenerator = /*#__PURE__*/ function(UIElement) {
1965
1969
  "use strict";
1966
1970
  (0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(UIFormButtonGenerator, UIElement);
@@ -1981,10 +1985,10 @@ var UIFormButtonGenerator = /*#__PURE__*/ function(UIElement) {
1981
1985
  }
1982
1986
  };
1983
1987
  };
1984
- (0,jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__.toArray)(_this.container.querySelectorAll('input,select')).forEach(function(input) {
1985
- if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_5__.Dom.isTag(input, 'select')) {
1986
- var uiInput = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__.UISelect(_this.j, {
1987
- options: (0,jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_6__.toArray)(input.options).map(function(opt) {
1988
+ (0,jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_8__.toArray)(_this.container.querySelectorAll('input,select')).forEach(function(input) {
1989
+ if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.isTag(input, 'select')) {
1990
+ var uiInput = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__.UISelect(_this.j, {
1991
+ options: (0,jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_8__.toArray)(input.options).map(function(opt) {
1988
1992
  return {
1989
1993
  text: opt.innerText,
1990
1994
  value: opt.value
@@ -1994,15 +1998,15 @@ var UIFormButtonGenerator = /*#__PURE__*/ function(UIElement) {
1994
1998
  _this.updateState(input.name, value);
1995
1999
  }
1996
2000
  });
1997
- jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_5__.Dom.replace(input, uiInput.container, _this.j.create, false, true);
2001
+ jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.replace(input, uiInput.container, _this.j.create, false, true);
1998
2002
  _this.onUpdates.push(getOnUpdate(uiInput, input));
1999
2003
  return;
2000
2004
  }
2001
- if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_5__.Dom.isTag(input, 'input')) {
2005
+ if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.isTag(input, 'input')) {
2002
2006
  switch(input.type){
2003
2007
  case 'range':
2004
2008
  {
2005
- var uiInput1 = new jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_9__.UIRange(_this.j, {
2009
+ var uiInput1 = new jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_11__.UIRange(_this.j, {
2006
2010
  label: input.placeholder,
2007
2011
  name: input.name,
2008
2012
  min: parseInt(input.min, 0) || 0,
@@ -2011,20 +2015,20 @@ var UIFormButtonGenerator = /*#__PURE__*/ function(UIElement) {
2011
2015
  _this.updateState(input.name, parseInt(value, 10));
2012
2016
  }
2013
2017
  });
2014
- jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_5__.Dom.replace(input, uiInput1.container, _this.j.create);
2018
+ jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.replace(input, uiInput1.container, _this.j.create);
2015
2019
  _this.onUpdates.push(getOnUpdate(uiInput1, input));
2016
2020
  return;
2017
2021
  }
2018
2022
  case 'text':
2019
2023
  {
2020
- var uiInput2 = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__.UIInput(_this.j, {
2024
+ var uiInput2 = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__.UIInput(_this.j, {
2021
2025
  placeholder: input.placeholder,
2022
2026
  name: input.name,
2023
2027
  onChange: function onChange(value) {
2024
2028
  _this.updateState(input.name, value);
2025
2029
  }
2026
2030
  });
2027
- jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_5__.Dom.replace(input, uiInput2.container, _this.j.create);
2031
+ jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.replace(input, uiInput2.container, _this.j.create);
2028
2032
  _this.onUpdates.push(getOnUpdate(uiInput2, input));
2029
2033
  return;
2030
2034
  }
@@ -2056,9 +2060,9 @@ var UIFormButtonGenerator = /*#__PURE__*/ function(UIElement) {
2056
2060
  return cb();
2057
2061
  });
2058
2062
  var boxShadow = this.getElm('box-shadow');
2059
- (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__.assert)(boxShadow != null, 'box-shadow does not exists');
2063
+ (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(boxShadow != null, 'box-shadow does not exists');
2060
2064
  var textShadow = this.getElm('text-shadow');
2061
- (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__.assert)(textShadow != null, 'text-shadow does not exists');
2065
+ (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(textShadow != null, 'text-shadow does not exists');
2062
2066
  boxShadow.style.display = this.state.boxShadow ? '' : 'none';
2063
2067
  textShadow.style.display = this.state.textShadow ? '' : 'none';
2064
2068
  }
@@ -2071,7 +2075,10 @@ var UIFormButtonGenerator = /*#__PURE__*/ function(UIElement) {
2071
2075
  }
2072
2076
  ]);
2073
2077
  return UIFormButtonGenerator;
2074
- }(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__.UIElement);
2078
+ }(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__.UIElement);
2079
+ UIFormButtonGenerator = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
2080
+ jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__.component
2081
+ ], UIFormButtonGenerator);
2075
2082
 
2076
2083
 
2077
2084
  /***/ }),