jodit-pro 4.8.14 → 4.9.2

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 (378) hide show
  1. package/CHANGELOG.md +44 -1
  2. package/es2015/jodit.css +2 -2
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +38 -38
  5. package/es2015/jodit.js +531 -448
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +17 -17
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +2282 -2279
  10. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  11. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +11 -11
  12. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  13. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  14. package/es2015/plugins/backup/backup.css +1 -1
  15. package/es2015/plugins/backup/backup.js +1 -1
  16. package/es2015/plugins/backup/backup.min.js +1 -1
  17. package/es2015/plugins/button-generator/button-generator.css +1 -1
  18. package/es2015/plugins/button-generator/button-generator.js +1 -1
  19. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  20. package/es2015/plugins/change-case/change-case.js +1 -1
  21. package/es2015/plugins/change-case/change-case.min.js +1 -1
  22. package/es2015/plugins/color-picker/color-picker.css +1 -1
  23. package/es2015/plugins/color-picker/color-picker.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  25. package/es2015/plugins/emoji/emoji.css +1 -1
  26. package/es2015/plugins/emoji/emoji.js +1 -1
  27. package/es2015/plugins/emoji/emoji.min.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.js +1 -1
  29. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  30. package/es2015/plugins/finder/finder.css +1 -1
  31. package/es2015/plugins/finder/finder.js +2 -2
  32. package/es2015/plugins/finder/finder.min.js +2 -2
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +52 -59
  35. package/es2015/plugins/google-maps/google-maps.min.js +6 -6
  36. package/es2015/plugins/google-search/google-search.js +1 -1
  37. package/es2015/plugins/google-search/google-search.min.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  39. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  43. package/es2015/plugins/keyboard/keyboard.css +1 -1
  44. package/es2015/plugins/keyboard/keyboard.js +1 -1
  45. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  46. package/es2015/plugins/mobile-view/mobile-view.js +4 -1
  47. package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
  48. package/es2015/plugins/page-break/page-break.js +4 -1
  49. package/es2015/plugins/page-break/page-break.min.js +3 -3
  50. package/es2015/plugins/paste-code/paste-code.css +1 -1
  51. package/es2015/plugins/paste-code/paste-code.js +4 -1
  52. package/es2015/plugins/paste-code/paste-code.min.js +2 -2
  53. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  54. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  55. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  56. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  57. package/es2015/plugins/todo-list/todo-list.css +1 -1
  58. package/es2015/plugins/todo-list/todo-list.js +1 -1
  59. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  60. package/es2015/plugins/translate/translate.css +1 -1
  61. package/es2015/plugins/translate/translate.js +1 -1
  62. package/es2015/plugins/translate/translate.min.js +1 -1
  63. package/es2015/plugins/tune-block/tune-block.css +1 -1
  64. package/es2015/plugins/tune-block/tune-block.js +1 -1
  65. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  66. package/es2018/jodit.fat.min.css +1 -1
  67. package/es2018/jodit.fat.min.js +32 -32
  68. package/es2018/jodit.min.css +1 -1
  69. package/es2018/jodit.min.js +17 -17
  70. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  71. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +6 -6
  72. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  73. package/es2018/plugins/backup/backup.min.js +1 -1
  74. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  75. package/es2018/plugins/change-case/change-case.min.js +1 -1
  76. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  77. package/es2018/plugins/emoji/emoji.min.js +1 -1
  78. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  79. package/es2018/plugins/finder/finder.min.js +2 -2
  80. package/es2018/plugins/google-maps/google-maps.min.js +6 -6
  81. package/es2018/plugins/google-search/google-search.min.js +1 -1
  82. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  83. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  84. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  85. package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
  86. package/es2018/plugins/page-break/page-break.min.js +3 -3
  87. package/es2018/plugins/paste-code/paste-code.min.js +2 -2
  88. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  89. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  90. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  91. package/es2018/plugins/translate/translate.min.js +1 -1
  92. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  93. package/es2021/jodit.css +2 -2
  94. package/es2021/jodit.fat.min.css +1 -1
  95. package/es2021/jodit.fat.min.js +36 -36
  96. package/es2021/jodit.js +531 -448
  97. package/es2021/jodit.min.css +1 -1
  98. package/es2021/jodit.min.js +21 -21
  99. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  100. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +4901 -4898
  101. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  102. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +28 -28
  103. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  104. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  105. package/es2021/plugins/backup/backup.css +1 -1
  106. package/es2021/plugins/backup/backup.js +1 -1
  107. package/es2021/plugins/backup/backup.min.js +1 -1
  108. package/es2021/plugins/button-generator/button-generator.css +1 -1
  109. package/es2021/plugins/button-generator/button-generator.js +1 -1
  110. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  111. package/es2021/plugins/change-case/change-case.js +1 -1
  112. package/es2021/plugins/change-case/change-case.min.js +1 -1
  113. package/es2021/plugins/color-picker/color-picker.css +1 -1
  114. package/es2021/plugins/color-picker/color-picker.js +1 -1
  115. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  116. package/es2021/plugins/emoji/emoji.css +1 -1
  117. package/es2021/plugins/emoji/emoji.js +1 -1
  118. package/es2021/plugins/emoji/emoji.min.js +1 -1
  119. package/es2021/plugins/export-docs/export-docs.js +1 -1
  120. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  121. package/es2021/plugins/finder/finder.css +1 -1
  122. package/es2021/plugins/finder/finder.js +2 -2
  123. package/es2021/plugins/finder/finder.min.js +2 -2
  124. package/es2021/plugins/google-maps/google-maps.css +1 -1
  125. package/es2021/plugins/google-maps/google-maps.js +52 -59
  126. package/es2021/plugins/google-maps/google-maps.min.js +7 -7
  127. package/es2021/plugins/google-search/google-search.js +1 -1
  128. package/es2021/plugins/google-search/google-search.min.js +1 -1
  129. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  130. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  131. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  132. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  133. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  134. package/es2021/plugins/keyboard/keyboard.css +1 -1
  135. package/es2021/plugins/keyboard/keyboard.js +1 -1
  136. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  137. package/es2021/plugins/mobile-view/mobile-view.js +4 -1
  138. package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
  139. package/es2021/plugins/page-break/page-break.js +4 -1
  140. package/es2021/plugins/page-break/page-break.min.js +3 -3
  141. package/es2021/plugins/paste-code/paste-code.css +1 -1
  142. package/es2021/plugins/paste-code/paste-code.js +4 -1
  143. package/es2021/plugins/paste-code/paste-code.min.js +2 -2
  144. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  145. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  146. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  147. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  148. package/es2021/plugins/todo-list/todo-list.css +1 -1
  149. package/es2021/plugins/todo-list/todo-list.js +1 -1
  150. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  151. package/es2021/plugins/translate/translate.css +1 -1
  152. package/es2021/plugins/translate/translate.js +1 -1
  153. package/es2021/plugins/translate/translate.min.js +1 -1
  154. package/es2021/plugins/tune-block/tune-block.css +1 -1
  155. package/es2021/plugins/tune-block/tune-block.js +1 -1
  156. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  157. package/es2021.en/jodit.css +2 -2
  158. package/es2021.en/jodit.fat.min.css +1 -1
  159. package/es2021.en/jodit.fat.min.js +36 -36
  160. package/es2021.en/jodit.js +531 -448
  161. package/es2021.en/jodit.min.css +1 -1
  162. package/es2021.en/jodit.min.js +21 -21
  163. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  164. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +4779 -4776
  165. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  166. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +6 -6
  167. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  168. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  169. package/es2021.en/plugins/backup/backup.css +1 -1
  170. package/es2021.en/plugins/backup/backup.js +1 -1
  171. package/es2021.en/plugins/backup/backup.min.js +1 -1
  172. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  173. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  174. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  175. package/es2021.en/plugins/change-case/change-case.js +1 -1
  176. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  177. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  178. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  179. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  180. package/es2021.en/plugins/emoji/emoji.css +1 -1
  181. package/es2021.en/plugins/emoji/emoji.js +1 -1
  182. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  183. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  184. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  185. package/es2021.en/plugins/finder/finder.css +1 -1
  186. package/es2021.en/plugins/finder/finder.js +2 -2
  187. package/es2021.en/plugins/finder/finder.min.js +2 -2
  188. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  189. package/es2021.en/plugins/google-maps/google-maps.js +52 -59
  190. package/es2021.en/plugins/google-maps/google-maps.min.js +7 -7
  191. package/es2021.en/plugins/google-search/google-search.js +1 -1
  192. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  193. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  194. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  195. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  196. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  197. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  198. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  199. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  200. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  201. package/es2021.en/plugins/mobile-view/mobile-view.js +4 -1
  202. package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
  203. package/es2021.en/plugins/page-break/page-break.js +4 -1
  204. package/es2021.en/plugins/page-break/page-break.min.js +3 -3
  205. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  206. package/es2021.en/plugins/paste-code/paste-code.js +4 -1
  207. package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
  208. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  209. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  210. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  211. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  212. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  213. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  214. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  215. package/es2021.en/plugins/translate/translate.css +1 -1
  216. package/es2021.en/plugins/translate/translate.js +1 -1
  217. package/es2021.en/plugins/translate/translate.min.js +1 -1
  218. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  219. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  220. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  221. package/es5/jodit.css +3 -3
  222. package/es5/jodit.fat.min.css +1 -1
  223. package/es5/jodit.fat.min.js +2 -2
  224. package/es5/jodit.js +546 -458
  225. package/es5/jodit.min.css +3 -3
  226. package/es5/jodit.min.js +2 -2
  227. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  228. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +2121 -2121
  229. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  230. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  231. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  232. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  233. package/es5/plugins/backup/backup.css +1 -1
  234. package/es5/plugins/backup/backup.js +1 -1
  235. package/es5/plugins/backup/backup.min.js +1 -1
  236. package/es5/plugins/button-generator/button-generator.css +1 -1
  237. package/es5/plugins/button-generator/button-generator.js +1 -1
  238. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  239. package/es5/plugins/change-case/change-case.js +1 -1
  240. package/es5/plugins/change-case/change-case.min.js +1 -1
  241. package/es5/plugins/color-picker/color-picker.css +1 -1
  242. package/es5/plugins/color-picker/color-picker.js +1 -1
  243. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  244. package/es5/plugins/emoji/emoji.css +1 -1
  245. package/es5/plugins/emoji/emoji.js +1 -1
  246. package/es5/plugins/emoji/emoji.min.js +1 -1
  247. package/es5/plugins/export-docs/export-docs.js +1 -1
  248. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  249. package/es5/plugins/finder/finder.css +1 -1
  250. package/es5/plugins/finder/finder.js +2 -2
  251. package/es5/plugins/finder/finder.min.js +2 -2
  252. package/es5/plugins/google-maps/google-maps.css +1 -1
  253. package/es5/plugins/google-maps/google-maps.js +61 -59
  254. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  255. package/es5/plugins/google-search/google-search.js +1 -1
  256. package/es5/plugins/google-search/google-search.min.js +1 -1
  257. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  258. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  259. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  260. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  261. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  262. package/es5/plugins/keyboard/keyboard.css +1 -1
  263. package/es5/plugins/keyboard/keyboard.js +1 -1
  264. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  265. package/es5/plugins/mobile-view/mobile-view.js +7 -1
  266. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  267. package/es5/plugins/page-break/page-break.js +7 -1
  268. package/es5/plugins/page-break/page-break.min.js +2 -2
  269. package/es5/plugins/paste-code/paste-code.css +1 -1
  270. package/es5/plugins/paste-code/paste-code.js +7 -1
  271. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  272. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  273. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  274. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  275. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  276. package/es5/plugins/todo-list/todo-list.css +1 -1
  277. package/es5/plugins/todo-list/todo-list.js +1 -1
  278. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  279. package/es5/plugins/translate/translate.css +1 -1
  280. package/es5/plugins/translate/translate.js +1 -1
  281. package/es5/plugins/translate/translate.min.js +1 -1
  282. package/es5/plugins/tune-block/tune-block.css +1 -1
  283. package/es5/plugins/tune-block/tune-block.js +1 -1
  284. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  285. package/es5/polyfills.fat.min.js +1 -1
  286. package/es5/polyfills.js +1 -1
  287. package/es5/polyfills.min.js +1 -1
  288. package/esm/config.d.ts +1 -6
  289. package/esm/config.js +1 -1
  290. package/esm/jodit-pro.d.ts +3 -1
  291. package/esm/jodit-pro.js +1 -1
  292. package/esm/plugins/ai-assistant-pro/ui/conversation-list/conversation-list-item.js +1 -1
  293. package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.js +2 -2
  294. package/esm/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +0 -1
  295. package/esm/plugins/ai-assistant-pro/ui/message-list/artifact.js +1 -1
  296. package/esm/plugins/ai-assistant-pro/ui/message-list/{message-list-item.d.ts → item/message-list-item.d.ts} +1 -1
  297. package/esm/plugins/ai-assistant-pro/ui/message-list/item/message-list-item.js +1 -0
  298. package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +1 -1
  299. package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.js +1 -1
  300. package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +4 -2
  301. package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.js +1 -1
  302. package/esm/plugins/finder/browser.js +1 -1
  303. package/esm/plugins/google-maps/interface.d.ts +8 -0
  304. package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +1 -0
  305. package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
  306. package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +1 -0
  307. package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
  308. package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +1 -0
  309. package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
  310. package/esm/plugins/google-maps/ui/map/map.d.ts +3 -3
  311. package/esm/plugins/google-maps/ui/map/map.js +2 -2
  312. package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -3
  313. package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -3
  314. package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -3
  315. package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -3
  316. package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -3
  317. package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -3
  318. package/esm/plugins/mobile-view/mobile-view.js +1 -1
  319. package/esm/plugins/page-break/page-break.d.ts +1 -0
  320. package/esm/plugins/page-break/page-break.js +1 -1
  321. package/esm/plugins/paste-code/paste-code.d.ts +1 -0
  322. package/esm/plugins/paste-code/paste-code.js +1 -1
  323. package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +2 -2
  324. package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +2 -2
  325. package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -1
  326. package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +3 -3
  327. package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -1
  328. package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +2 -2
  329. package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +2 -2
  330. package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +2 -2
  331. package/esm/plugins/paste-from-word/element/checkers.d.ts +5 -5
  332. package/esm/plugins/paste-from-word/element/element.d.ts +2 -1
  333. package/esm/plugins/paste-from-word/element/element.js +1 -1
  334. package/esm/plugins/paste-from-word/element/render.d.ts +3 -3
  335. package/esm/plugins/paste-from-word/element/style.js +1 -1
  336. package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -1
  337. package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +2 -2
  338. package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -1
  339. package/esm/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
  340. package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
  341. package/esm/plugins/paste-from-word/interface.d.ts +25 -3
  342. package/package.json +1 -1
  343. package/types/config.d.ts +1 -6
  344. package/types/jodit-pro.d.ts +3 -1
  345. package/types/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +0 -1
  346. package/types/plugins/ai-assistant-pro/ui/message-list/{message-list-item.d.ts → item/message-list-item.d.ts} +1 -1
  347. package/types/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +1 -1
  348. package/types/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +4 -2
  349. package/types/plugins/google-maps/interface.d.ts +8 -0
  350. package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +1 -0
  351. package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +1 -0
  352. package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +1 -0
  353. package/types/plugins/google-maps/ui/map/map.d.ts +3 -3
  354. package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -3
  355. package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -3
  356. package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -3
  357. package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -3
  358. package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -3
  359. package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -3
  360. package/types/plugins/page-break/page-break.d.ts +1 -0
  361. package/types/plugins/paste-code/paste-code.d.ts +1 -0
  362. package/types/plugins/paste-from-word/cases/clean-styles.d.ts +2 -2
  363. package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +2 -2
  364. package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +3 -3
  365. package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +2 -2
  366. package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +2 -2
  367. package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +2 -2
  368. package/types/plugins/paste-from-word/element/checkers.d.ts +5 -5
  369. package/types/plugins/paste-from-word/element/element.d.ts +2 -1
  370. package/types/plugins/paste-from-word/element/render.d.ts +3 -3
  371. package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +2 -2
  372. package/types/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
  373. package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
  374. package/types/plugins/paste-from-word/interface.d.ts +25 -3
  375. package/esm/plugins/ai-assistant-pro/ui/message-list/message-list-item.js +0 -1
  376. package/esm/plugins/google-maps/ui/map/modules/index.d.ts +0 -10
  377. package/esm/plugins/google-maps/ui/map/modules/index.js +0 -1
  378. package/types/plugins/google-maps/ui/map/modules/index.d.ts +0 -10
@@ -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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[782],{27222:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},29606:function(e,t,o){"use strict";o.d(t,{dataBindCurrentKey:function(){return l},dataBindStoredKey:function(){return d}});var n=o(27222),i=o.n(n),r=o(6441),a=o(29807),u=o(86583);r.Config.prototype.mobileView={mode:"default"};var d="buttonmobileSView",l="buttonmobileCView";r.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:i(),command:"mobileView",isActive:function(e){return(0,u.dataBind)(e,l)&&"default"!==(0,u.dataBind)(e,l)},isChildActive:function(e,t){var o,n,i=null==(n=t.control)||null==(o=n.args)?void 0:o[0];return(0,a.isNumeric)(i)&&(i=Number(i)),((0,u.dataBind)(e,l)||"default")===i},exec:function(e){return!!(0,u.dataBind)(e,d)&&void e.execCommand("mobileView",!1,(0,u.dataBind)(e,d))},childExec:function(e,t,o){var n,i,r=null==(i=o.button.control)||null==(n=i.args)?void 0:n[0];e.execCommand("mobileView",!1,(0,a.isNumeric)(r)?Number(r):r)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(e,t,o){"use strict";o.r(t);var n=o(80294),i=o(20616),r=o(67709),a=o(82749),u=o(18766),d=o(23078),l=o(31635),c=o(29606),f=o(65478),s=o(43555),m=o(50911),b=o(2692),p=function(e){function t(){var e;return(0,i._)(this,t),e=(0,n._)(this,t,arguments),(0,a._)(e,"buttons",[{name:"mobileView",group:"state"}]),(0,a._)(e,"__currentMode","default"),e}return(0,u._)(t,e),(0,r._)(t,[{key:"afterInit",value:function(e){var t=this;e.registerCommand("mobileView",{exec:function(o,n,i){t.__currentMode===i&&(i="default"),t.__currentMode=i,(0,s.dataBind)(e,c.dataBindCurrentKey,i),"default"!==t.__currentMode&&(0,s.dataBind)(e,c.dataBindStoredKey,i),"default"===i?(0,s.css)(t.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,s.css)(t.j.currentPlace.slots.center,{width:i,margin:"0 auto"})}}),e.events.on("beforeSetMode",function(){})}},{key:"__beforeSetMode",value:function(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}},{key:"beforeDestruct",value:function(e){}}]),t}((0,d._)(m.Plugin));(0,a._)(p,"requires",["license"]),(0,l.__decorate)([(0,f.watch)(":beforeSetMode.mobileView")],p.prototype,"__beforeSetMode",null),p=(0,l.__decorate)([f.component],p),b.JoditPro.plugins.add("mobileView",p)}},function(e){return e(e.s=74398)}])});
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[782],{27222:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},29606:function(e,t,n){"use strict";n.d(t,{dataBindCurrentKey:function(){return l},dataBindStoredKey:function(){return d}});var o=n(27222),i=n.n(o),r=n(6441),a=n(29807),u=n(86583);r.Config.prototype.mobileView={mode:"default"};var d="buttonmobileSView",l="buttonmobileCView";r.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:i(),command:"mobileView",isActive:function(e){return(0,u.dataBind)(e,l)&&"default"!==(0,u.dataBind)(e,l)},isChildActive:function(e,t){var n,o,i=null==(o=t.control)||null==(n=o.args)?void 0:n[0];return(0,a.isNumeric)(i)&&(i=Number(i)),((0,u.dataBind)(e,l)||"default")===i},exec:function(e){return!!(0,u.dataBind)(e,d)&&void e.execCommand("mobileView",!1,(0,u.dataBind)(e,d))},childExec:function(e,t,n){var o,i,r=null==(i=n.button.control)||null==(o=i.args)?void 0:o[0];e.execCommand("mobileView",!1,(0,a.isNumeric)(r)?Number(r):r)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(e,t,n){"use strict";n.r(t);var o=n(80294),i=n(20616),r=n(67709),a=n(82749),u=n(18766),d=n(23078),l=n(31635),c=n(29606),f=n(65478),s=n(43555),m=n(50911),b=n(2692),p=function(e){function t(){var e;return(0,i._)(this,t),e=(0,o._)(this,t,arguments),(0,a._)(e,"buttons",[{name:"mobileView",group:"state"}]),(0,a._)(e,"__currentMode","default"),e}return(0,u._)(t,e),(0,r._)(t,[{key:"className",value:function(){return"MobileView"}},{key:"afterInit",value:function(e){var t=this;e.registerCommand("mobileView",{exec:function(n,o,i){t.__currentMode===i&&(i="default"),t.__currentMode=i,(0,s.dataBind)(e,c.dataBindCurrentKey,i),"default"!==t.__currentMode&&(0,s.dataBind)(e,c.dataBindStoredKey,i),"default"===i?(0,s.css)(t.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,s.css)(t.j.currentPlace.slots.center,{width:i,margin:"0 auto"})}}),e.events.on("beforeSetMode",function(){})}},{key:"__beforeSetMode",value:function(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}},{key:"beforeDestruct",value:function(e){}}]),t}((0,d._)(m.Plugin));(0,a._)(p,"requires",["license"]),(0,l.__decorate)([(0,f.watch)(":beforeSetMode.mobileView")],p.prototype,"__beforeSetMode",null),p=(0,l.__decorate)([f.component],p),b.JoditPro.plugins.add("mobileView",p)}},function(e){return e(e.s=74398)}])});
@@ -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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -121,6 +121,12 @@ var PageBreak = /*#__PURE__*/ function(Plugin) {
121
121
  return _this;
122
122
  }
123
123
  (0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(PageBreak, [
124
+ {
125
+ key: "className",
126
+ value: function className() {
127
+ return 'PageBreak';
128
+ }
129
+ },
124
130
  {
125
131
  key: "afterInit",
126
132
  value: function afterInit(jodit) {
@@ -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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[398],{13109:function(e,t,a){"use strict";var r=a(17405),o=a.n(r),n=a(64889),i=a(6441);i.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},i.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:o(),command:"insertPageBreak"},i.Config.prototype.iframeStyle="".concat(i.Config.prototype.iframeStyle,";").concat(n.default.replace(/[\n\t]/g,""))},17405:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},64889:function(e,t){"use strict";t.default="[data-jodit-page-break] {\n display: flex;\n height: 24px;\n box-sizing: border-box;\n\n align-items: center;\n justify-content: center;\n\n border: 1px dashed #ccc;\n\n font-size: 12px;\n page-break-before: always;\n text-transform: uppercase;\n}\n\n[data-jodit-page-break]:active {\n border-color: #818181;\n}"},79850:function(e,t,a){"use strict";a.r(t),a.d(t,{PageBreak:function(){return k}});var r=a(80294),o=a(20616),n=a(67709),i=a(82749),s=a(18766),p=a(23078),d=a(31635);a(13109);var c=a(64889),f=a(65478),u=a(22732),l=a(21537),C=a(50911),g=a(2692),k=function(e){function t(){var e;return(0,o._)(this,t),e=(0,r._)(this,t,arguments),(0,i._)(e,"styles",c.default),(0,i._)(e,"buttons",[{name:"pageBreak",group:"insert"}]),e}return(0,s._)(t,e),(0,n._)(t,[{key:"afterInit",value:function(e){var t=this;e.registerCommand("insertPageBreak",function(){var a=e.createInside.div("",{});t.decoratePageBreak(a),e.s.insertNode(a,!1,!1);for(var r=a.parentNode;r&&r!==e.editor&&(u.Dom.after(r,a),!u.Dom.isBlock(r));)r=a.parentNode;e.s.setCursorAfter(a),e.setEditorValue()})}},{key:"decoratePageBreak",value:function(e){(0,l.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}},{key:"beforeDestruct",value:function(){}},{key:"onChange",value:function(){var e=this;(0,l.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(function(t){u.Dom.isEmpty(t)&&!(0,l.attr)(t,"data-jodit-page-break")&&e.decoratePageBreak(t)})}},{key:"onAfterGetValueFromEditor",value:function(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}}]),t}((0,p._)(C.Plugin));(0,i._)(k,"requires",["license"]),(0,d.__decorate)([(0,f.watch)([":change",":afterSetMode"]),(0,f.debounce)()],k.prototype,"onChange",null),(0,d.__decorate)([(0,f.watch)(":afterGetValueFromEditor")],k.prototype,"onAfterGetValueFromEditor",null),g.JoditPro.plugins.add("pageBreak",k)}},function(e){return e(e.s=79850)}])});
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[398],{13109:function(e,t,a){"use strict";var r=a(17405),o=a.n(r),n=a(64889),i=a(6441);i.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},i.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:o(),command:"insertPageBreak"},i.Config.prototype.iframeStyle="".concat(i.Config.prototype.iframeStyle,";").concat(n.default.replace(/[\n\t]/g,""))},17405:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},64889:function(e,t){"use strict";t.default="[data-jodit-page-break] {\n display: flex;\n height: 24px;\n box-sizing: border-box;\n\n align-items: center;\n justify-content: center;\n\n border: 1px dashed #ccc;\n\n font-size: 12px;\n page-break-before: always;\n text-transform: uppercase;\n}\n\n[data-jodit-page-break]:active {\n border-color: #818181;\n}"},79850:function(e,t,a){"use strict";a.r(t),a.d(t,{PageBreak:function(){return k}});var r=a(80294),o=a(20616),n=a(67709),i=a(82749),s=a(18766),p=a(23078),d=a(31635);a(13109);var c=a(64889),u=a(65478),f=a(22732),l=a(21537),C=a(50911),g=a(2692),k=function(e){function t(){var e;return(0,o._)(this,t),e=(0,r._)(this,t,arguments),(0,i._)(e,"styles",c.default),(0,i._)(e,"buttons",[{name:"pageBreak",group:"insert"}]),e}return(0,s._)(t,e),(0,n._)(t,[{key:"className",value:function(){return"PageBreak"}},{key:"afterInit",value:function(e){var t=this;e.registerCommand("insertPageBreak",function(){var a=e.createInside.div("",{});t.decoratePageBreak(a),e.s.insertNode(a,!1,!1);for(var r=a.parentNode;r&&r!==e.editor&&(f.Dom.after(r,a),!f.Dom.isBlock(r));)r=a.parentNode;e.s.setCursorAfter(a),e.setEditorValue()})}},{key:"decoratePageBreak",value:function(e){(0,l.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}},{key:"beforeDestruct",value:function(){}},{key:"onChange",value:function(){var e=this;(0,l.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(function(t){f.Dom.isEmpty(t)&&!(0,l.attr)(t,"data-jodit-page-break")&&e.decoratePageBreak(t)})}},{key:"onAfterGetValueFromEditor",value:function(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}}]),t}((0,p._)(C.Plugin));(0,i._)(k,"requires",["license"]),(0,d.__decorate)([(0,u.watch)([":change",":afterSetMode"]),(0,u.debounce)()],k.prototype,"onChange",null),(0,d.__decorate)([(0,u.watch)(":afterGetValueFromEditor")],k.prototype,"onAfterGetValueFromEditor",null),g.JoditPro.plugins.add("pageBreak",k)}},function(e){return e(e.s=79850)}])});
@@ -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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -148,6 +148,12 @@ var pasteCode = /*#__PURE__*/ function(Plugin) {
148
148
  return _this;
149
149
  }
150
150
  (0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_3__._)(pasteCode, [
151
+ {
152
+ key: "className",
153
+ value: function className() {
154
+ return 'pasteCode';
155
+ }
156
+ },
151
157
  {
152
158
  key: "afterInit",
153
159
  value: /** @override */ function afterInit(jodit) {
@@ -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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var n in a)("object"==typeof exports?exports:e)[n]=a[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{41406:function(e,t,a){"use strict";a.r(t),a.d(t,{pasteCode:function(){return L}});var n=a(77688),i=a(80294),o=a(20616),r=a(67709),l=a(82749),s=a(18766),c=a(23078),u=a(31635),d=a(62361);a(83967);var h=a(82758),g=a(65478),p=a(21537),f=a(87612),m=a(53326),v=a(50911),_=a(67510),C=a(41409),b=a(2692),L=function(e){function t(){var e;return(0,o._)(this,t),e=(0,i._)(this,t,arguments),(0,l._)(e,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,l._)(e,"__highlightLibJSIsLoaded",!1),(0,l._)(e,"__loadLanguage",new Map),(0,l._)(e,"__initHighlightLibLoading",function(t){return(0,n._)(function(){var a,n,i,o,r,l,s,c,u,g;return(0,d._)(this,function(d){switch(d.label){case 0:if(n=(a=e.j.o.pasteCode).globalHighlightLib,o=(i=a.highlightLib).css,r=i.js,l=i.langUrl,s=i.highlight,c=i.isLangLoaded,u=i.beforeLibLoad,g=i.afterLibLoad,e.__highlightLibJSIsLoaded||n||(e.__highlightLibJSIsLoaded=Promise.resolve(null==u?void 0:u()).then(function(){return x(e.async,Promise.allSettled([(0,p.loadNextStyle)(e.jodit,o).catch(function(){return null}),(0,p.loadNext)(e.jodit,r).catch(function(){return null})]))}).then(function(){return null==g?void 0:g()})),(0,f.isBoolean)(e.__highlightLibJSIsLoaded))return[3,2];return[4,e.__highlightLibJSIsLoaded];case 1:d.sent(),d.label=2;case 2:if(!(t&&!c(t)&&!n))return[3,4];return e.__loadLanguage.has(t)||(h.IS_PROD,e.__loadLanguage.set(t,x(e.async,(0,p.appendScriptAsync)(e.jodit,l(t)).catch(function(){return null})))),[4,e.__loadLanguage.get(t)];case 3:d.sent(),d.label=4;case 4:return[2,{highlight:s}]}})})()}),e}return(0,s._)(t,e),(0,r._)(t,[{key:"afterInit",value:function(e){var t=this;e.registerCommand("pasteCode",function(){return t.__openCodeEditDialog()}),e.async.requestIdleCallback(function(){return t.__initHighlightLibLoading()})}},{key:"__openCodeEditDialog",value:function(e,t,a){var n=this,i=this.j,o=this.__createForm(),r=(0,p.refs)(o.container),l=r.code,s=r.language;e&&(s.value=e),t&&(l.value=t),i.async.requestIdleCallback(function(){l.focus()}),i.s.save(),this.__createDialog(function(){if(o.validate()){i.s.restore();var e=i.createInside.fromHTML(i.o.pasteCode.insertTemplate(i,s.value,l.value));if(a)C.Dom.replace(a,e,i.createInside,!1,!0);else{var t=i.s.current(),r=C.Dom.up(t,C.Dom.isBlock,i.editor);r&&!C.Dom.isCell(r)?C.Dom.after(r,e):i.s.insertNode(e)}n.__imdOnChange();return}return!1},function(){i.s.restore()}).setContent(o.container).open(!0)}},{key:"beforeDestruct",value:function(e){}},{key:"__createForm",value:function(){var e=this.jodit;return new _.UIForm(e,[new _.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new _.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}},{key:"__createDialog",value:function(e,t){var a=new C.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,_.Button)(a,"","Cancel","default").onAction(function(){a.close(),t()}),(0,_.Button)(a,"save","Save","primary").onAction(function(){a.close(),e()})]),a}},{key:"__onChange",value:function(){this.__imdOnChange()}},{key:"__imdOnChange",value:function(){var e=this;(0,p.$$)("pre",this.j.editor).forEach(function(t){(0,p.attr)(t,"contenteditable")||((0,p.attr)(t,"contenteditable",!1),e.__highlightCode(t).catch(function(){return null}))})}},{key:"__highlightCode",value:function(e){return(0,n._)(function(){var t,a,n;return(0,d._)(this,function(i){switch(i.label){case 0:return t=this.__parseLanguage(e),[4,this.__initHighlightLibLoading(t)];case 1:return a=i.sent().highlight,n=e,e.firstElementChild===e.lastElementChild&&C.Dom.isTag(e.firstElementChild,"code")&&(n=e.firstElementChild),n.innerHTML=a(n.innerText,t),[2]}})}).call(this)}},{key:"onPreEdit",value:function(e){var t=C.Dom.isNode(e)&&C.Dom.isTag(e,"pre")?e:C.Dom.closest(e.target,"pre",this.j.editor);if(t){var a=this.__parseLanguage(t);this.__openCodeEditDialog(a,t.innerText,t)}}},{key:"__parseLanguage",value:function(e){var t=null,a=function(e){return e.classList.forEach(function(e){if(/language-/.test(e)){var a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}})};return a(e),null==t&&e.firstElementChild===e.lastElementChild&&C.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}},{key:"onAfterGetValueFromEditor",value:function(e){var t=this,a=function(e,a,n,i,o,r){return"".concat(a.trim()).concat(i).concat((0,m.htmlspecialchars)((0,p.stripTags)(o,t.j.ed,new Set(["br"])))).concat(r)};e.value=e.value.replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>\\s*<code[^>]*>)(.*?)(<\\/code>\\s*<\\/pre>)","gis"),a).replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>)(.*?)(<\\/pre>)","gis"),a)}}]),t}((0,c._)(v.Plugin));function x(e,t){return e.promise(function(e,a){t.then(e).catch(a)}).catch(function(){return null})}(0,l._)(L,"requires",["license"]),(0,u.__decorate)([g.autobind],L.prototype,"__openCodeEditDialog",null),(0,u.__decorate)([(0,g.watch)(["?:change","?:afterInit"]),(0,g.debounce)()],L.prototype,"__onChange",null),(0,u.__decorate)([(0,g.watch)(["?:dblclick","?:editPreInPasteCode"])],L.prototype,"onPreEdit",null),(0,u.__decorate)([(0,g.watch)("?:afterGetValueFromEditor")],L.prototype,"onAfterGetValueFromEditor",null),L=(0,u.__decorate)([g.component],L),b.JoditPro.plugins.add("paste-code",L)},75689:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},83967:function(e,t,a){"use strict";var n=a(75689),i=a.n(n),o=a(6441),r=a(53326);o.Config.prototype.controls.pasteCode={icon:i(),tooltip:"Paste code",command:"pasteCode"},o.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad:function(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight:function(e,t){return"u">typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,r.htmlspecialchars)(e)},isLangLoaded:function(e){return"html"===e||"u">typeof Prism&&!!Prism.languages[e]},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,a){return'<pre class="language-'.concat(t,'">').concat((0,r.htmlspecialchars)(a),"</pre>")},languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}}},function(e){return e(e.s=41406)}])});
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var n in a)("object"==typeof exports?exports:e)[n]=a[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{41406:function(e,t,a){"use strict";a.r(t),a.d(t,{pasteCode:function(){return L}});var n=a(77688),i=a(80294),o=a(20616),r=a(67709),l=a(82749),s=a(18766),c=a(23078),u=a(31635),d=a(62361);a(83967);var h=a(82758),g=a(65478),p=a(21537),f=a(87612),m=a(53326),v=a(50911),_=a(67510),C=a(41409),b=a(2692),L=function(e){function t(){var e;return(0,o._)(this,t),e=(0,i._)(this,t,arguments),(0,l._)(e,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,l._)(e,"__highlightLibJSIsLoaded",!1),(0,l._)(e,"__loadLanguage",new Map),(0,l._)(e,"__initHighlightLibLoading",function(t){return(0,n._)(function(){var a,n,i,o,r,l,s,c,u,g;return(0,d._)(this,function(d){switch(d.label){case 0:if(n=(a=e.j.o.pasteCode).globalHighlightLib,o=(i=a.highlightLib).css,r=i.js,l=i.langUrl,s=i.highlight,c=i.isLangLoaded,u=i.beforeLibLoad,g=i.afterLibLoad,e.__highlightLibJSIsLoaded||n||(e.__highlightLibJSIsLoaded=Promise.resolve(null==u?void 0:u()).then(function(){return x(e.async,Promise.allSettled([(0,p.loadNextStyle)(e.jodit,o).catch(function(){return null}),(0,p.loadNext)(e.jodit,r).catch(function(){return null})]))}).then(function(){return null==g?void 0:g()})),(0,f.isBoolean)(e.__highlightLibJSIsLoaded))return[3,2];return[4,e.__highlightLibJSIsLoaded];case 1:d.sent(),d.label=2;case 2:if(!(t&&!c(t)&&!n))return[3,4];return e.__loadLanguage.has(t)||(h.IS_PROD,e.__loadLanguage.set(t,x(e.async,(0,p.appendScriptAsync)(e.jodit,l(t)).catch(function(){return null})))),[4,e.__loadLanguage.get(t)];case 3:d.sent(),d.label=4;case 4:return[2,{highlight:s}]}})})()}),e}return(0,s._)(t,e),(0,r._)(t,[{key:"className",value:function(){return"pasteCode"}},{key:"afterInit",value:function(e){var t=this;e.registerCommand("pasteCode",function(){return t.__openCodeEditDialog()}),e.async.requestIdleCallback(function(){return t.__initHighlightLibLoading()})}},{key:"__openCodeEditDialog",value:function(e,t,a){var n=this,i=this.j,o=this.__createForm(),r=(0,p.refs)(o.container),l=r.code,s=r.language;e&&(s.value=e),t&&(l.value=t),i.async.requestIdleCallback(function(){l.focus()}),i.s.save(),this.__createDialog(function(){if(o.validate()){i.s.restore();var e=i.createInside.fromHTML(i.o.pasteCode.insertTemplate(i,s.value,l.value));if(a)C.Dom.replace(a,e,i.createInside,!1,!0);else{var t=i.s.current(),r=C.Dom.up(t,C.Dom.isBlock,i.editor);r&&!C.Dom.isCell(r)?C.Dom.after(r,e):i.s.insertNode(e)}n.__imdOnChange();return}return!1},function(){i.s.restore()}).setContent(o.container).open(!0)}},{key:"beforeDestruct",value:function(e){}},{key:"__createForm",value:function(){var e=this.jodit;return new _.UIForm(e,[new _.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new _.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}},{key:"__createDialog",value:function(e,t){var a=new C.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,_.Button)(a,"","Cancel","default").onAction(function(){a.close(),t()}),(0,_.Button)(a,"save","Save","primary").onAction(function(){a.close(),e()})]),a}},{key:"__onChange",value:function(){this.__imdOnChange()}},{key:"__imdOnChange",value:function(){var e=this;(0,p.$$)("pre",this.j.editor).forEach(function(t){(0,p.attr)(t,"contenteditable")||((0,p.attr)(t,"contenteditable",!1),e.__highlightCode(t).catch(function(){return null}))})}},{key:"__highlightCode",value:function(e){return(0,n._)(function(){var t,a,n;return(0,d._)(this,function(i){switch(i.label){case 0:return t=this.__parseLanguage(e),[4,this.__initHighlightLibLoading(t)];case 1:return a=i.sent().highlight,n=e,e.firstElementChild===e.lastElementChild&&C.Dom.isTag(e.firstElementChild,"code")&&(n=e.firstElementChild),n.innerHTML=a(n.innerText,t),[2]}})}).call(this)}},{key:"onPreEdit",value:function(e){var t=C.Dom.isNode(e)&&C.Dom.isTag(e,"pre")?e:C.Dom.closest(e.target,"pre",this.j.editor);if(t){var a=this.__parseLanguage(t);this.__openCodeEditDialog(a,t.innerText,t)}}},{key:"__parseLanguage",value:function(e){var t=null,a=function(e){return e.classList.forEach(function(e){if(/language-/.test(e)){var a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}})};return a(e),null==t&&e.firstElementChild===e.lastElementChild&&C.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}},{key:"onAfterGetValueFromEditor",value:function(e){var t=this,a=function(e,a,n,i,o,r){return"".concat(a.trim()).concat(i).concat((0,m.htmlspecialchars)((0,p.stripTags)(o,t.j.ed,new Set(["br"])))).concat(r)};e.value=e.value.replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>\\s*<code[^>]*>)(.*?)(<\\/code>\\s*<\\/pre>)","gis"),a).replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>)(.*?)(<\\/pre>)","gis"),a)}}]),t}((0,c._)(v.Plugin));function x(e,t){return e.promise(function(e,a){t.then(e).catch(a)}).catch(function(){return null})}(0,l._)(L,"requires",["license"]),(0,u.__decorate)([g.autobind],L.prototype,"__openCodeEditDialog",null),(0,u.__decorate)([(0,g.watch)(["?:change","?:afterInit"]),(0,g.debounce)()],L.prototype,"__onChange",null),(0,u.__decorate)([(0,g.watch)(["?:dblclick","?:editPreInPasteCode"])],L.prototype,"onPreEdit",null),(0,u.__decorate)([(0,g.watch)("?:afterGetValueFromEditor")],L.prototype,"onAfterGetValueFromEditor",null),L=(0,u.__decorate)([g.component],L),b.JoditPro.plugins.add("paste-code",L)},75689:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},83967:function(e,t,a){"use strict";var n=a(75689),i=a.n(n),o=a(6441),r=a(53326);o.Config.prototype.controls.pasteCode={icon:i(),tooltip:"Paste code",command:"pasteCode"},o.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad:function(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight:function(e,t){return"u">typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,r.htmlspecialchars)(e)},isLangLoaded:function(e){return"html"===e||"u">typeof Prism&&!!Prism.languages[e]},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,a){return'<pre class="language-'.concat(t,'">').concat((0,r.htmlspecialchars)(a),"</pre>")},languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}}},function(e){return e(e.s=41406)}])});
@@ -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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
package/es5/polyfills.js CHANGED
@@ -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.8.14
4
+ * Version: v4.9.2
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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
package/esm/config.d.ts CHANGED
@@ -22,17 +22,12 @@ import type { IUIOption } from "jodit/esm/types/index";
22
22
  import type { ITranslateProviderFactory } from "./plugins/translate/interface";
23
23
  import type { IGoogleTranslateProviderOptions } from "./plugins/translate/interface";
24
24
  import type { IControlType } from "jodit/esm/types/index";
25
- /*!
26
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
27
- * See LICENSE.md in the project root for license information.
28
- * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
29
- */
30
25
  declare module 'jodit/esm/config' {
31
26
  interface Config {
32
27
  loadExternalConfig: boolean;
33
28
  }
34
29
  }
35
- export {};
30
+ export { Config };
36
31
  interface Config {
37
32
  loadExternalConfig: boolean;
38
33
  }
package/esm/config.js CHANGED
@@ -1 +1 @@
1
- import{Config as a}from"jodit/esm/config.js";a.prototype.controls.font.list={"'Andale mono', monospace'":"Andale Mono","Arial, Helvetica, sans-serif":"Arial","'Arial black', sans-serif":"Arial Black","'Book antiqua', palatino, serif":"Book Antiqua","'Comic Sans MS', sans-serif":"Comic Sans MS","'Courier new', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","Helvetica, Arial, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Symbol, sans-serif":"Symbol","Tahoma, Arial, Helvetica, sans-serif":"Tahoma","Terminal, Monaco, monospace":"Terminal","'Times new roman', Times, serif":"Times New Roman","'Trebuchet ms', Geneva, sans-serif":"Trebuchet MS","Verdana, Geneva, sans-serif":"Verdana",Webdings:"Webdings","Wingdings, 'Zapf dingbats'":"Wingdings"},a.prototype.loadExternalConfig=!0;
1
+ import{Config as e}from"jodit/esm/config.js";e.prototype.controls.font.list={"'Andale mono', monospace'":"Andale Mono","Arial, Helvetica, sans-serif":"Arial","'Arial black', sans-serif":"Arial Black","'Book antiqua', palatino, serif":"Book Antiqua","'Comic Sans MS', sans-serif":"Comic Sans MS","'Courier new', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","Helvetica, Arial, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Symbol, sans-serif":"Symbol","Tahoma, Arial, Helvetica, sans-serif":"Tahoma","Terminal, Monaco, monospace":"Terminal","'Times new roman', Times, serif":"Times New Roman","'Trebuchet ms', Geneva, sans-serif":"Trebuchet MS","Verdana, Geneva, sans-serif":"Verdana",Webdings:"Webdings","Wingdings, 'Zapf dingbats'":"Wingdings"},e.prototype.loadExternalConfig=!0,e.prototype.license||(e.prototype.license="Unlicensed");export{e as Config};
@@ -4,8 +4,10 @@
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
6
  import { Jodit } from "jodit/esm/index";
7
- import "./config";
7
+ import { Config } from "./config";
8
+ import type { DeepPartial } from "jodit/esm/types/types";
8
9
  export declare class JoditPro extends Jodit {
10
+ static make(element: HTMLElement | string, options?: DeepPartial<Config>): JoditPro;
9
11
  beforeInitHook(): Promise<void> | void;
10
12
  afterInitHook(): void;
11
13
  /** @override */
package/esm/jodit-pro.js CHANGED
@@ -1 +1 @@
1
- var c=Object.defineProperty;var i=(a,t)=>c(a,"name",{value:t,configurable:!0});import{APP_VERSION as f,IS_PROD as e,IS_TEST as s}from"jodit/esm/core/constants.js";import{appendScriptAsync as h}from"jodit/esm/core/helpers/utils/append-script.js";import{css as p}from"jodit/esm/core/helpers/utils/css.js";import{Jodit as m}from"jodit/esm/index.js";import"./config.js";const o=class o extends m{beforeInitHook(){if(e&&!s&&this.o.loadExternalConfig)return h(this,this.basePath+"config.js")}afterInitHook(){(async()=>{if(await this.e.fire("checkReserve",location.host)!=="normal"){if(this.isInDestruct)return;const t='Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>',r=this.c.div("",t);!s&&e&&console.error(t),p(r,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(r)}})().catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+f}};i(o,"JoditPro");let n=o;export{n as JoditPro};
1
+ var c=Object.defineProperty;var i=(a,t)=>c(a,"name",{value:t,configurable:!0});import{APP_VERSION as f,IS_PROD as e,IS_TEST as s}from"jodit/esm/core/constants.js";import{appendScriptAsync as h}from"jodit/esm/core/helpers/utils/append-script.js";import{css as m}from"jodit/esm/core/helpers/utils/css.js";import{Jodit as p}from"jodit/esm/index.js";import"./config.js";const r=class r extends p{static make(t,o){return new this(t,o)}beforeInitHook(){if(e&&!s&&this.o.loadExternalConfig)return h(this,this.basePath+"config.js")}afterInitHook(){(async()=>{if(await this.e.fire("checkReserve",location.host)!=="normal"){if(this.isInDestruct)return;const t='Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>',o=this.c.div("",t);!s&&e&&console.error(t),m(o,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(o)}})().catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+f}};i(r,"JoditPro");let n=r;export{n as JoditPro};
@@ -1 +1 @@
1
- var p=Object.defineProperty;var h=(r,t)=>p(r,"name",{value:t,configurable:!0});var a,l=function(r,t,n,o){var s=arguments.length,e=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(r,t,n,o);else for(var d=r.length-1;d>=0;d--)(i=r[d])&&(e=(s<3?i(e):s>3?i(t,n,e):i(t,n))||e);return s>3&&e&&Object.defineProperty(t,n,e),e};import{autobind as v,component as u,watch as m}from"jodit/esm/core/decorators/index.js";import{UIElement as f}from"jodit/esm/core/ui/index.js";import{UIButton as j}from"jodit/esm/core/ui/button/index.js";import{Confirm as _}from"jodit/esm/modules/dialog/confirm.js";let c=(a=class extends f{className(){return"UIConversationListItem"}constructor(t,n,o=!1,s){super(t),this.opts=s,this.conversation=n,this.isActive=o,this.updateContent()}render(){return'<div class="jodit-ui-conversation-list__item"></div>'}setActive(t){this.isActive=t,this.updateContent()}updateContent(){const t=this.container;t.innerHTML="",t.setAttribute("data-id",this.conversation.id),this.isActive?t.classList.add("jodit-ui-conversation-list__item_active"):t.classList.remove("jodit-ui-conversation-list__item_active");const n=this.j.c.div("jodit-ui-conversation-list__item-avatar");n.textContent="AI",t.appendChild(n);const o=this.j.c.div("jodit-ui-conversation-list__item-wrapper"),s=this.j.c.div("jodit-ui-conversation-list__item-content"),e=this.j.c.div("jodit-ui-conversation-list__item-title");if(e.textContent=this.conversation.title,s.appendChild(e),this.opts.showTimestamps){const i=this.j.c.div("jodit-ui-conversation-list__item-meta");i.textContent=this.opts.formatTimestamp(this.conversation.updated,this.j.i18n.bind(this.j)),s.appendChild(i)}if(o.appendChild(s),this.conversation.messageCount>0){const i=this.j.c.div("jodit-ui-conversation-list__item-badge");i.textContent=String(this.conversation.messageCount),o.appendChild(i)}t.appendChild(o),this.deleteButton||(this.deleteButton=new j(this.j,{icon:{name:"bin"},variant:"default",size:"tiny",tooltip:"Delete conversation"}),this.deleteButton.container.classList.add("jodit-ui-conversation-list__item-delete"),this.deleteButton.onAction(i=>{i.stopPropagation(),this.onDelete()})),t.appendChild(this.deleteButton.container)}onClick(){this.j.e.fire("selectConversation.ai-assistant-pro",this.conversation.id)}onDelete(){_.call(void 0,this.j.i18n("Are you sure you want to delete this conversation?"),this.j.i18n("Delete conversation"),t=>{t&&this.j.e.fire("deleteConversation.ai-assistant-pro",this.conversation.id)})}destruct(){var t;(t=this.deleteButton)===null||t===void 0||t.destruct(),super.destruct()}},h(a,"UIConversationListItem"),a);l([m("container:click")],c.prototype,"onClick",null),l([v],c.prototype,"onDelete",null),c=l([u],c);export{c as UIConversationListItem};
1
+ var p=Object.defineProperty;var h=(r,t)=>p(r,"name",{value:t,configurable:!0});var a,l=function(r,t,n,o){var s=arguments.length,e=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(r,t,n,o);else for(var d=r.length-1;d>=0;d--)(i=r[d])&&(e=(s<3?i(e):s>3?i(t,n,e):i(t,n))||e);return s>3&&e&&Object.defineProperty(t,n,e),e};import{autobind as v,component as u,watch as m}from"jodit/esm/core/decorators/index.js";import{UIElement as f}from"jodit/esm/core/ui/index.js";import{UIButton as j}from"jodit/esm/core/ui/button/index.js";import{Confirm as _}from"jodit/esm/modules/dialog/confirm.js";let c=(a=class extends f{className(){return"UIConversationListItem"}constructor(t,n,o=!1,s){super(t),this.opts=s,this.conversation=n,this.isActive=o,this.updateContent()}render(){return'<div class="jodit-ui-conversation-list__item"></div>'}setActive(t){this.isActive=t,this.updateContent()}updateContent(){const t=this.container;t.innerHTML="",t.setAttribute("data-id",this.conversation.id),this.isActive?t.classList.add("jodit-ui-conversation-list__item_active"):t.classList.remove("jodit-ui-conversation-list__item_active");const n=this.j.c.div("jodit-ui-conversation-list__item-avatar");n.textContent="AI",t.appendChild(n);const o=this.j.c.div("jodit-ui-conversation-list__item-wrapper"),s=this.j.c.div("jodit-ui-conversation-list__item-content"),e=this.j.c.div("jodit-ui-conversation-list__item-title");if(e.textContent=this.conversation.title,s.appendChild(e),this.opts.showTimestamps){const i=this.j.c.div("jodit-ui-conversation-list__item-meta");i.textContent=this.opts.formatTimestamp(this.conversation.updated,this.j.i18n.bind(this.j)),s.appendChild(i)}if(o.appendChild(s),this.conversation.messageCount>0){const i=this.j.c.div("jodit-ui-conversation-list__item-badge");i.textContent=String(this.conversation.messageCount),o.appendChild(i)}t.appendChild(o),this.deleteButton||(this.deleteButton=new j(this.j,{icon:{name:"bin"},variant:"outline",size:"tiny",tooltip:"Delete conversation"}),this.deleteButton.container.classList.add("jodit-ui-conversation-list__item-delete"),this.deleteButton.onAction(i=>{i.stopPropagation(),this.onDelete()})),t.appendChild(this.deleteButton.container)}onClick(){this.j.e.fire("selectConversation.ai-assistant-pro",this.conversation.id)}onDelete(){_.call(void 0,this.j.i18n("Are you sure you want to delete this conversation?"),this.j.i18n("Delete conversation"),t=>{t&&this.j.e.fire("deleteConversation.ai-assistant-pro",this.conversation.id)})}destruct(){var t;(t=this.deleteButton)===null||t===void 0||t.destruct(),super.destruct()}},h(a,"UIConversationListItem"),a);l([m("container:click")],c.prototype,"onClick",null),l([v],c.prototype,"onDelete",null),c=l([u],c);export{c as UIConversationListItem};
@@ -1,4 +1,4 @@
1
- var v=Object.defineProperty;var m=(u,t)=>v(u,"name",{value:t,configurable:!0});var d,r=function(u,t,e,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(u,t,e,s);else for(var l=u.length-1;l>=0;l--)(o=u[l])&&(n=(i<3?o(n):i>3?o(t,e,n):o(t,e))||n);return i>3&&n&&Object.defineProperty(t,e,n),n};import{UIConversationList as g}from"../conversation-list/conversation-list.js";import{UIInputArea as f}from"../input-area/input-area.js";import{UIMessageList as C}from"../message-list/message-list.js";import{UIPermissionRequest as _}from"../permission-request/permission-request.js";import{UISettingsButton as w}from"../settings-button/index.js";import{UIWelcomeScreen as L}from"../welcome-screen/welcome-screen.js";import{component as R,hook as j,watch as h}from"jodit/esm/core/decorators/index.js";import{Dom as c}from"jodit/esm/core/dom/dom.js";import{UIElement as P}from"jodit/esm/core/ui/index.js";import{UIButton as p}from"jodit/esm/core/ui/button/index.js";let a=(d=class extends P{className(){return"UIMainPanel"}constructor(t,e,s,i){super(t),this.state=e,this.options=s,this.updateConversation=i,this.permissionRequest=null,this.settingsButton=null}setParentView(t){var e,s,i,n,o,l;return(e=this.welcomeScreen)===null||e===void 0||e.setParentView(t),(s=this.conversationList)===null||s===void 0||s.setParentView(t),(i=this.messageList)===null||i===void 0||i.setParentView(t),(n=this.inputArea)===null||n===void 0||n.setParentView(t),(o=this.permissionRequest)===null||o===void 0||o.setParentView(t),(l=this.settingsButton)===null||l===void 0||l.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
1
+ var v=Object.defineProperty;var m=(u,t)=>v(u,"name",{value:t,configurable:!0});var d,r=function(u,t,e,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(u,t,e,s);else for(var l=u.length-1;l>=0;l--)(o=u[l])&&(n=(i<3?o(n):i>3?o(t,e,n):o(t,e))||n);return i>3&&n&&Object.defineProperty(t,e,n),n};import{UIConversationList as g}from"../conversation-list/conversation-list.js";import{UIInputArea as C}from"../input-area/input-area.js";import{UIMessageList as f}from"../message-list/message-list.js";import{UIPermissionRequest as _}from"../permission-request/permission-request.js";import{UISettingsButton as w}from"../settings-button/index.js";import{UIWelcomeScreen as L}from"../welcome-screen/welcome-screen.js";import{component as R,hook as j,watch as h}from"jodit/esm/core/decorators/index.js";import{Dom as c}from"jodit/esm/core/dom/dom.js";import{UIElement as P}from"jodit/esm/core/ui/index.js";import{UIButton as p}from"jodit/esm/core/ui/button/index.js";let a=(d=class extends P{className(){return"UIMainPanel"}constructor(t,e,s,i){super(t),this.state=e,this.options=s,this.updateConversation=i,this.permissionRequest=null,this.settingsButton=null}setParentView(t){var e,s,i,n,o,l;return(e=this.welcomeScreen)===null||e===void 0||e.setParentView(t),(s=this.conversationList)===null||s===void 0||s.setParentView(t),(i=this.messageList)===null||i===void 0||i.setParentView(t),(n=this.inputArea)===null||n===void 0||n.setParentView(t),(o=this.permissionRequest)===null||o===void 0||o.setParentView(t),(l=this.settingsButton)===null||l===void 0||l.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
2
2
  <div class="&__header">
3
3
  <div class="&__header-left"></div>
4
4
  <div class="&__header-title"></div>
@@ -9,4 +9,4 @@ var v=Object.defineProperty;var m=(u,t)=>v(u,"name",{value:t,configurable:!0});v
9
9
  <div class="&__loading-spinner"></div>
10
10
  </div>
11
11
  <div class="&__footer"></div>
12
- </div>`}addResize(){}afterRender(){this.content=this.getElm("content"),this.createComponents(),this.createHeaderButtons(),this.__updateView("welcome")}async __onChangeView(){this.__updateView(this.state.currentView,this.state.currentConversation)}createComponents(){this.welcomeScreen=new L(this.j),this.conversationList=new g(this.j,this.options),this.messageList=new C(this.j,this.options),this.inputArea=new f(this.j,this.options),this.getElm("footer").appendChild(this.inputArea.container)}createHeaderButtons(){const t=this.getElm("header-left"),e=this.getElm("header-right"),s=new p(this.j,{icon:{name:"angle-left"},size:"small",variant:"default"});s.container.classList.add(this.getFullElName("back-button")),this.j.e.on(s,"click",()=>{this.j.e.fire("backToList.ai-assistant-pro")}),t.appendChild(s.container);const i=new p(this.j,{icon:{name:"plus"},size:"small",tooltip:"New chat",variant:"default"});if(i.container.classList.add(this.getFullElName("new-button")),this.j.e.on(i,"click",()=>{this.j.e.fire("newConversation.ai-assistant-pro")}),e.appendChild(i.container),this.shouldShowSettings()&&(this.settingsButton=new w(this.j,this.state,this.options,()=>this.state.currentConversation,this.updateConversation),this.settingsButton.container.classList.add(this.getFullElName("settings-button")),e.appendChild(this.settingsButton.container)),this.mods.displayMode==="dialog"||!(this.mods.allowClose!==!1))return;const o=new p(this.j,{icon:{name:"cancel"},size:"small",tooltip:"Close",variant:"default"});o.container.classList.add(this.getFullElName("close-button")),this.j.e.on(o,"click",()=>{this.j.e.fire("closeAIAssistantPro.ai-assistant-pro")}),e.appendChild(o.container)}isFlightMode(){return this.mods.displayMode==="flight"}shouldShowSettings(){const t=this.options,e=t.allowEditDisplayMode||t.allowEditPanelWidth,s=t.allowEditDialogSettings;return e||s}__updateView(t,e=null){var s;(s=this.settingsButton)===null||s===void 0||s.update();const i=this.getElm("header-title");this.setMod("view",t);const n=this.isFlightMode();switch(t){case"welcome":i.textContent=this.j.i18n("AI Assistant"),c.safeRemove(this.conversationList.container),c.safeRemove(this.messageList.container),this.content.appendChild(this.welcomeScreen.container),this.inputArea.focus();break;case"conversationList":i.textContent=this.j.i18n("AI Assistant"),c.safeRemove(this.welcomeScreen.container),c.safeRemove(this.messageList.container),this.conversationList.container.isConnected||this.content.appendChild(this.conversationList.container);break;case"conversation":i.textContent=n?this.j.i18n("AI Assistant"):e?.title||this.j.i18n("Conversation"),c.safeRemove(this.welcomeScreen.container),c.safeRemove(this.conversationList.container),this.messageList.container.isConnected||this.content.appendChild(this.messageList.container),e&&this.messageList.setMessages(e.messages),this.inputArea.focus();break}}onChangeCurrentConversation(){const{currentConversation:t}=this.state;t&&(this.conversationList.setActiveConversation(t.id),this.messageList.setMessages(t.messages))}onChangeConversations(){this.conversationList.setConversations(this.state.conversations)}onChangeSelectionContexts(){this.inputArea.setContexts(this.state.selectionContexts)}onChangeLoading(){this.inputArea.setLoading(this.state.isLoading)}onChangePendingToolCalls(){this.state.pendingToolCalls&&this.state.pendingToolCalls.length>0?this.showPermissionRequest(this.state.pendingToolCalls[0]):this.hidePermissionRequest()}showPermissionRequest(t){this.permissionRequest||(this.permissionRequest=new _(this.j,this.options)),this.permissionRequest.setToolCall(t);const e=this.getElm("footer");e.contains(this.permissionRequest.container)||e.insertBefore(this.permissionRequest.container,this.inputArea.container)}hidePermissionRequest(){this.permissionRequest&&this.permissionRequest.container.parentNode&&this.permissionRequest.container.parentNode.removeChild(this.permissionRequest.container)}destruct(){var t,e,s,i,n,o;(t=this.welcomeScreen)===null||t===void 0||t.destruct(),(e=this.conversationList)===null||e===void 0||e.destruct(),(s=this.messageList)===null||s===void 0||s.destruct(),(i=this.inputArea)===null||i===void 0||i.destruct(),(n=this.permissionRequest)===null||n===void 0||n.destruct(),(o=this.settingsButton)===null||o===void 0||o.destruct(),super.destruct()}},m(d,"UIMainPanel"),d);r([j("ready")],a.prototype,"afterRender",null),r([h(["state.currentView","state.currentConversation"])],a.prototype,"__onChangeView",null),r([h("state.currentConversation")],a.prototype,"onChangeCurrentConversation",null),r([h("state.conversations")],a.prototype,"onChangeConversations",null),r([h("state.selectionContexts")],a.prototype,"onChangeSelectionContexts",null),r([h("state.isLoading")],a.prototype,"onChangeLoading",null),r([h("state.pendingToolCalls")],a.prototype,"onChangePendingToolCalls",null),a=r([R],a);export{a as UIMainPanel};
12
+ </div>`}addResize(){}afterRender(){this.content=this.getElm("content"),this.createComponents(),this.createHeaderButtons(),this.__updateView("welcome")}async __onChangeView(){this.__updateView(this.state.currentView,this.state.currentConversation)}createComponents(){this.welcomeScreen=new L(this.j),this.conversationList=new g(this.j,this.options),this.messageList=new f(this.j,this.options),this.inputArea=new C(this.j,this.options),this.getElm("footer").appendChild(this.inputArea.container)}createHeaderButtons(){const t=this.getElm("header-left"),e=this.getElm("header-right"),s=new p(this.j,{icon:{name:"angle-left"},size:"small",variant:"initial"});s.container.classList.add(this.getFullElName("back-button")),this.j.e.on(s,"click",()=>{this.j.e.fire("backToList.ai-assistant-pro")}),t.appendChild(s.container);const i=new p(this.j,{icon:{name:"plus"},size:"small",tooltip:"New chat",variant:"initial"});if(i.container.classList.add(this.getFullElName("new-button")),this.j.e.on(i,"click",()=>{this.j.e.fire("newConversation.ai-assistant-pro")}),e.appendChild(i.container),this.shouldShowSettings()&&(this.settingsButton=new w(this.j,this.state,this.options,()=>this.state.currentConversation,this.updateConversation),this.settingsButton.container.classList.add(this.getFullElName("settings-button")),e.appendChild(this.settingsButton.container)),this.mods.displayMode==="dialog"||!(this.mods.allowClose!==!1))return;const o=new p(this.j,{icon:{name:"cancel"},size:"small",tooltip:"Close",variant:"initial"});o.container.classList.add(this.getFullElName("close-button")),this.j.e.on(o,"click",()=>{this.j.e.fire("closeAIAssistantPro.ai-assistant-pro")}),e.appendChild(o.container)}isFlightMode(){return this.mods.displayMode==="flight"}shouldShowSettings(){const t=this.options,e=t.allowEditDisplayMode||t.allowEditPanelWidth,s=t.allowEditDialogSettings;return e||s}__updateView(t,e=null){var s;(s=this.settingsButton)===null||s===void 0||s.update();const i=this.getElm("header-title");this.setMod("view",t);const n=this.isFlightMode();switch(t){case"welcome":i.textContent=this.j.i18n("AI Assistant"),c.safeRemove(this.conversationList.container),c.safeRemove(this.messageList.container),this.content.appendChild(this.welcomeScreen.container),this.inputArea.focus();break;case"conversationList":i.textContent=this.j.i18n("AI Assistant"),c.safeRemove(this.welcomeScreen.container),c.safeRemove(this.messageList.container),this.conversationList.container.isConnected||this.content.appendChild(this.conversationList.container);break;case"conversation":i.textContent=n?this.j.i18n("AI Assistant"):e?.title||this.j.i18n("Conversation"),c.safeRemove(this.welcomeScreen.container),c.safeRemove(this.conversationList.container),this.messageList.container.isConnected||this.content.appendChild(this.messageList.container),e&&this.messageList.setMessages(e.messages),this.inputArea.focus();break}}onChangeCurrentConversation(){const{currentConversation:t}=this.state;t&&(this.conversationList.setActiveConversation(t.id),this.messageList.setMessages(t.messages))}onChangeConversations(){this.conversationList.setConversations(this.state.conversations)}onChangeSelectionContexts(){this.inputArea.setContexts(this.state.selectionContexts)}onChangeLoading(){this.inputArea.setLoading(this.state.isLoading)}onChangePendingToolCalls(){this.state.pendingToolCalls&&this.state.pendingToolCalls.length>0?this.showPermissionRequest(this.state.pendingToolCalls[0]):this.hidePermissionRequest()}showPermissionRequest(t){this.permissionRequest||(this.permissionRequest=new _(this.j,this.options)),this.permissionRequest.setToolCall(t);const e=this.getElm("footer");e.contains(this.permissionRequest.container)||e.insertBefore(this.permissionRequest.container,this.inputArea.container)}hidePermissionRequest(){this.permissionRequest&&this.permissionRequest.container.parentNode&&this.permissionRequest.container.parentNode.removeChild(this.permissionRequest.container)}destruct(){var t,e,s,i,n,o;(t=this.welcomeScreen)===null||t===void 0||t.destruct(),(e=this.conversationList)===null||e===void 0||e.destruct(),(s=this.messageList)===null||s===void 0||s.destruct(),(i=this.inputArea)===null||i===void 0||i.destruct(),(n=this.permissionRequest)===null||n===void 0||n.destruct(),(o=this.settingsButton)===null||o===void 0||o.destruct(),super.destruct()}},m(d,"UIMainPanel"),d);r([j("ready")],a.prototype,"afterRender",null),r([h(["state.currentView","state.currentConversation"])],a.prototype,"__onChangeView",null),r([h("state.currentConversation")],a.prototype,"onChangeCurrentConversation",null),r([h("state.conversations")],a.prototype,"onChangeConversations",null),r([h("state.selectionContexts")],a.prototype,"onChangeSelectionContexts",null),r([h("state.isLoading")],a.prototype,"onChangeLoading",null),r([h("state.pendingToolCalls")],a.prototype,"onChangePendingToolCalls",null),a=r([R],a);export{a as UIMainPanel};
@@ -5,7 +5,6 @@ export declare class UIArtifact extends UIElement<IViewBased> {
5
5
  className(): string;
6
6
  readonly artifact: IAIArtifact;
7
7
  constructor(view: IViewBased, artifact: IAIArtifact);
8
- protected render(): string;
9
8
  protected onReady(): void;
10
9
  /**
11
10
  * Render artifact based on its type
@@ -1 +1 @@
1
- var g=Object.defineProperty;var p=(l,t)=>g(l,"name",{value:t,configurable:!0});var d,u=function(l,t,e,i){var a=arguments.length,n=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(l,t,e,i);else for(var r=l.length-1;r>=0;r--)(s=l[r])&&(n=(a<3?s(n):a>3?s(t,e,n):s(t,e))||n);return a>3&&n&&Object.defineProperty(t,e,n),n};import{component as C,hook as j}from"jodit/esm/core/decorators/index.js";import{attr as v}from"jodit/esm/core/helpers/utils/attr.js";import{UIElement as F}from"jodit/esm/core/ui/index.js";let o=(d=class extends F{className(){return"UIArtifact"}constructor(t,e){super(t),this.artifact=e}render(){return`<div class="${this.componentName}"></div>`}onReady(){this.renderArtifact()}renderArtifact(){const t=this.container;t.innerHTML="",v(t,{"data-type":this.artifact.type,"data-status":this.artifact.status});const e=this.createStatusIndicator();if(t.appendChild(e),this.artifact.status==="pending"||this.artifact.status==="generating"){this.renderLoading();return}if(this.artifact.status==="failed"){this.renderError();return}switch(this.artifact.type){case"image":this.renderImage();break;case"audio":this.renderAudio();break;case"file":this.renderFile();break;case"json":this.renderJSON();break;default:this.renderOther()}}createStatusIndicator(){const t=this.j.c.div(this.getFullElName("status"));t.setAttribute("data-status",this.artifact.status);const e=this.j.c.span(this.getFullElName("status-icon")),i=this.j.c.span(this.getFullElName("status-text"));switch(this.artifact.status){case"pending":e.textContent="\u23F3",i.textContent=this.j.i18n("Pending");break;case"generating":e.textContent="\u{1F504}",i.textContent=this.j.i18n("Generating...");break;case"ready":e.textContent="\u2705",i.textContent=this.j.i18n("Ready");break;case"failed":e.textContent="\u274C",i.textContent=this.j.i18n("Failed");break}return t.appendChild(e),t.appendChild(i),t}renderLoading(){const t=this.j.c.div(this.getFullElName("loader")),e=this.j.c.div(this.getFullElName("spinner")),i=this.j.c.div(this.getFullElName("loader-message"));i.textContent=this.j.i18n("Generating artifact..."),t.appendChild(e),t.appendChild(i),this.container.appendChild(t)}renderError(){var t;const e=this.j.c.div(this.getFullElName("error")),i=this.j.c.div(this.getFullElName("error-icon"));i.textContent="\u274C";const a=this.j.c.div(this.getFullElName("error-message"));a.textContent=((t=this.artifact.metadata)===null||t===void 0?void 0:t.error)||this.j.i18n("Failed to generate artifact"),e.appendChild(i),e.appendChild(a),this.container.appendChild(e)}renderImage(){var t,e;if(!this.artifact.data)return;const i=this.j.c.div(this.getFullElName("content")),a=this.j.c.element("img",{class:this.getFullElName("image")});if(this.artifact.data.kind==="url")a.src=this.artifact.data.url;else if(this.artifact.data.kind==="base64"){const n=this.artifact.mimeType||"image/png";a.src=`data:${n};base64,${this.artifact.data.base64}`}if(a.alt=((t=this.artifact.metadata)===null||t===void 0?void 0:t.alt)||"AI Generated Image",i.appendChild(a),!((e=this.artifact.metadata)===null||e===void 0)&&e.caption){const n=this.j.c.div(this.getFullElName("caption"));n.textContent=this.artifact.metadata.caption,i.appendChild(n)}this.container.appendChild(i)}renderAudio(){if(!this.artifact.data)return;const t=this.j.c.div(this.getFullElName("content")),e=this.j.c.element("audio",{class:this.getFullElName("audio"),controls:"controls"});if(this.artifact.data.kind==="url")e.src=this.artifact.data.url;else if(this.artifact.data.kind==="base64"){const i=this.artifact.mimeType||"audio/mpeg";e.src=`data:${i};base64,${this.artifact.data.base64}`}t.appendChild(e),this.container.appendChild(t)}renderFile(){var t,e,i;if(!this.artifact.data)return;const a=this.j.c.div(this.getFullElName("content")),n=this.j.c.div(this.getFullElName("file-card")),s=this.j.c.div(this.getFullElName("file-icon"));s.textContent="\u{1F4C4}";const r=this.j.c.div(this.getFullElName("file-info")),h=this.j.c.div(this.getFullElName("file-name"));h.textContent=((t=this.artifact.metadata)===null||t===void 0?void 0:t.filename)||"download.file";const f=this.j.c.div(this.getFullElName("file-size"));!((e=this.artifact.metadata)===null||e===void 0)&&e.size&&(f.textContent=this.formatFileSize(this.artifact.metadata.size)),r.appendChild(h),r.appendChild(f);const c=this.j.c.element("a",{class:this.getFullElName("download-btn"),download:((i=this.artifact.metadata)===null||i===void 0?void 0:i.filename)||"download.file"});if(c.textContent=this.j.i18n("Download"),this.artifact.data.kind==="url")c.href=this.artifact.data.url;else if(this.artifact.data.kind==="base64"){const m=this.artifact.mimeType||"application/octet-stream";c.href=`data:${m};base64,${this.artifact.data.base64}`}n.appendChild(s),n.appendChild(r),n.appendChild(c),a.appendChild(n),this.container.appendChild(a)}renderJSON(){if(!this.artifact.data)return;const t=this.j.c.div(this.getFullElName("content")),e=this.j.c.element("pre",{class:this.getFullElName("json")}),i=this.j.c.element("code");let a;if(this.artifact.data.kind==="url")i.textContent=this.j.i18n("JSON data at URL");else if(this.artifact.data.kind==="base64")try{const n=atob(this.artifact.data.base64);a=JSON.parse(n),i.textContent=JSON.stringify(a,null,2)}catch{i.textContent=this.j.i18n("Invalid JSON data")}e.appendChild(i),t.appendChild(e),this.container.appendChild(t)}renderOther(){const t=this.j.c.div(this.getFullElName("content")),e=this.j.c.div(this.getFullElName("placeholder")),i=this.j.c.div(this.getFullElName("placeholder-icon"));i.textContent="\u{1F4E6}";const a=this.j.c.div(this.getFullElName("placeholder-text"));a.textContent=this.j.i18n("Unknown artifact type"),e.appendChild(i),e.appendChild(a),t.appendChild(e),this.container.appendChild(t)}formatFileSize(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(2)} KB`:t<1024*1024*1024?`${(t/(1024*1024)).toFixed(2)} MB`:`${(t/(1024*1024*1024)).toFixed(2)} GB`}updateArtifact(t){this.artifact=t,this.renderArtifact()}},p(d,"UIArtifact"),d);u([j("ready")],o.prototype,"onReady",null),o=u([C],o);export{o as UIArtifact};
1
+ var g=Object.defineProperty;var p=(l,t)=>g(l,"name",{value:t,configurable:!0});var d,u=function(l,t,e,i){var a=arguments.length,n=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(l,t,e,i);else for(var r=l.length-1;r>=0;r--)(s=l[r])&&(n=(a<3?s(n):a>3?s(t,e,n):s(t,e))||n);return a>3&&n&&Object.defineProperty(t,e,n),n};import{component as C,hook as j}from"jodit/esm/core/decorators/index.js";import{attr as v}from"jodit/esm/core/helpers/utils/attr.js";import{UIElement as F}from"jodit/esm/core/ui/index.js";let o=(d=class extends F{className(){return"UIArtifact"}constructor(t,e){super(t),this.artifact=e}onReady(){this.renderArtifact()}renderArtifact(){const t=this.container;t.innerHTML="",v(t,{"data-type":this.artifact.type,"data-status":this.artifact.status});const e=this.createStatusIndicator();if(t.appendChild(e),this.artifact.status==="pending"||this.artifact.status==="generating"){this.renderLoading();return}if(this.artifact.status==="failed"){this.renderError();return}switch(this.artifact.type){case"image":this.renderImage();break;case"audio":this.renderAudio();break;case"file":this.renderFile();break;case"json":this.renderJSON();break;default:this.renderOther()}}createStatusIndicator(){const t=this.j.c.div(this.getFullElName("status"));t.setAttribute("data-status",this.artifact.status);const e=this.j.c.span(this.getFullElName("status-icon")),i=this.j.c.span(this.getFullElName("status-text"));switch(this.artifact.status){case"pending":e.textContent="\u23F3",i.textContent=this.j.i18n("Pending");break;case"generating":e.textContent="\u{1F504}",i.textContent=this.j.i18n("Generating...");break;case"ready":e.textContent="\u2705",i.textContent=this.j.i18n("Ready");break;case"failed":e.textContent="\u274C",i.textContent=this.j.i18n("Failed");break}return t.appendChild(e),t.appendChild(i),t}renderLoading(){const t=this.j.c.div(this.getFullElName("loader")),e=this.j.c.div(this.getFullElName("spinner")),i=this.j.c.div(this.getFullElName("loader-message"));i.textContent=this.j.i18n("Generating artifact..."),t.appendChild(e),t.appendChild(i),this.container.appendChild(t)}renderError(){var t;const e=this.j.c.div(this.getFullElName("error")),i=this.j.c.div(this.getFullElName("error-icon"));i.textContent="\u274C";const a=this.j.c.div(this.getFullElName("error-message"));a.textContent=((t=this.artifact.metadata)===null||t===void 0?void 0:t.error)||this.j.i18n("Failed to generate artifact"),e.appendChild(i),e.appendChild(a),this.container.appendChild(e)}renderImage(){var t,e;if(!this.artifact.data)return;const i=this.j.c.div(this.getFullElName("content")),a=this.j.c.element("img",{class:this.getFullElName("image")});if(this.artifact.data.kind==="url")a.src=this.artifact.data.url;else if(this.artifact.data.kind==="base64"){const n=this.artifact.mimeType||"image/png";a.src=`data:${n};base64,${this.artifact.data.base64}`}if(a.alt=((t=this.artifact.metadata)===null||t===void 0?void 0:t.alt)||"AI Generated Image",i.appendChild(a),!((e=this.artifact.metadata)===null||e===void 0)&&e.caption){const n=this.j.c.div(this.getFullElName("caption"));n.textContent=this.artifact.metadata.caption,i.appendChild(n)}this.container.appendChild(i)}renderAudio(){if(!this.artifact.data)return;const t=this.j.c.div(this.getFullElName("content")),e=this.j.c.element("audio",{class:this.getFullElName("audio"),controls:"controls"});if(this.artifact.data.kind==="url")e.src=this.artifact.data.url;else if(this.artifact.data.kind==="base64"){const i=this.artifact.mimeType||"audio/mpeg";e.src=`data:${i};base64,${this.artifact.data.base64}`}t.appendChild(e),this.container.appendChild(t)}renderFile(){var t,e,i;if(!this.artifact.data)return;const a=this.j.c.div(this.getFullElName("content")),n=this.j.c.div(this.getFullElName("file-card")),s=this.j.c.div(this.getFullElName("file-icon"));s.textContent="\u{1F4C4}";const r=this.j.c.div(this.getFullElName("file-info")),h=this.j.c.div(this.getFullElName("file-name"));h.textContent=((t=this.artifact.metadata)===null||t===void 0?void 0:t.filename)||"download.file";const f=this.j.c.div(this.getFullElName("file-size"));!((e=this.artifact.metadata)===null||e===void 0)&&e.size&&(f.textContent=this.formatFileSize(this.artifact.metadata.size)),r.appendChild(h),r.appendChild(f);const c=this.j.c.element("a",{class:this.getFullElName("download-btn"),download:((i=this.artifact.metadata)===null||i===void 0?void 0:i.filename)||"download.file"});if(c.textContent=this.j.i18n("Download"),this.artifact.data.kind==="url")c.href=this.artifact.data.url;else if(this.artifact.data.kind==="base64"){const m=this.artifact.mimeType||"application/octet-stream";c.href=`data:${m};base64,${this.artifact.data.base64}`}n.appendChild(s),n.appendChild(r),n.appendChild(c),a.appendChild(n),this.container.appendChild(a)}renderJSON(){if(!this.artifact.data)return;const t=this.j.c.div(this.getFullElName("content")),e=this.j.c.element("pre",{class:this.getFullElName("json")}),i=this.j.c.element("code");let a;if(this.artifact.data.kind==="url")i.textContent=this.j.i18n("JSON data at URL");else if(this.artifact.data.kind==="base64")try{const n=atob(this.artifact.data.base64);a=JSON.parse(n),i.textContent=JSON.stringify(a,null,2)}catch{i.textContent=this.j.i18n("Invalid JSON data")}e.appendChild(i),t.appendChild(e),this.container.appendChild(t)}renderOther(){const t=this.j.c.div(this.getFullElName("content")),e=this.j.c.div(this.getFullElName("placeholder")),i=this.j.c.div(this.getFullElName("placeholder-icon"));i.textContent="\u{1F4E6}";const a=this.j.c.div(this.getFullElName("placeholder-text"));a.textContent=this.j.i18n("Unknown artifact type"),e.appendChild(i),e.appendChild(a),t.appendChild(e),this.container.appendChild(t)}formatFileSize(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(2)} KB`:t<1024*1024*1024?`${(t/(1024*1024)).toFixed(2)} MB`:`${(t/(1024*1024*1024)).toFixed(2)} GB`}updateArtifact(t){this.artifact=t,this.renderArtifact()}},p(d,"UIArtifact"),d);u([j("ready")],o.prototype,"onReady",null),o=u([C],o);export{o as UIArtifact};
@@ -1,5 +1,5 @@
1
1
  import type { IViewBased } from "jodit/esm/types/index";
2
- import type { IAIAssistantProOptions, IAIMessage } from "../../interface/index";
2
+ import type { IAIAssistantProOptions, IAIMessage } from "../../../interface/index";
3
3
  import { UIElement } from "jodit/esm/core/ui/index";
4
4
  export declare class UIMessageListItem extends UIElement<IViewBased> {
5
5
  readonly message: IAIMessage;
@@ -0,0 +1 @@
1
+ var m=Object.defineProperty;var r=(l,t)=>m(l,"name",{value:t,configurable:!0});var c,d=function(l,t,e,s){var n=arguments.length,i=n<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(l,t,e,s);else for(var a=l.length-1;a>=0;a--)(o=l[a])&&(i=(n<3?o(i):n>3?o(t,e,i):o(t,e))||i);return n>3&&i&&Object.defineProperty(t,e,i),i};import{UIArtifact as g}from"../artifact.js";import{component as f,hook as C}from"jodit/esm/core/decorators/index.js";import{UIElement as j}from"jodit/esm/core/ui/index.js";import{UIButton as E}from"jodit/esm/core/ui/button/index.js";import{UIGroup as x}from"jodit/esm/core/ui/group/group.js";import{ContextMenu as b}from"jodit/esm/modules/context-menu/context-menu.js";let h=(c=class extends j{className(){return"UIMessageListItem"}constructor(t,e,s){super(t),this.message=e,this.opts=s,this.artifactGroup=null,this.actionsButton=null,this.contextMenu=null}render(){return`<div class="${this.getFullElName("message")}"></div>`}onReady(){this.updateContent(),this.contextMenu=new b(this.j)}updateContent(){const t=this.container;t.innerHTML="",t.setAttribute("data-message-id",this.message.id),t.setAttribute("data-role",this.message.role);const e=this.j.c.div(this.getFullElName("message-bubble"));e.classList.add(this.getFullElName("message-bubble",this.message.role,!0));const s=this.j.c.div(this.getFullElName("message-content"));if(s.innerHTML=this.formatMessageContent(this.message.content),e.appendChild(s),this.opts.showTimestamps){const i=this.j.c.div(this.getFullElName("message-timestamp"));i.textContent=this.formatTimestamp(this.message.timestamp),e.appendChild(i)}const n=this.j.c.div(this.getFullElName("message-actions"));if(this.renderActionsButton(n),e.appendChild(n),t.appendChild(e),this.message.toolCalls&&this.message.toolCalls.length>0){const i=this.j.c.div(this.getFullElName("tool-calls"));t.appendChild(i),this.message.toolCalls.forEach(o=>{const a=this.createToolCallElement(o);i.appendChild(a)})}this.message.artifacts&&this.message.artifacts.length>0&&this.renderArtifacts()}renderActionsButton(t){const e=this.opts;(e.showCopyMessageAction||e.showRestartMessageAction||e.showEditMessageAction||e.showDeleteMessageAction)&&(this.actionsButton=new E(this.j,{icon:{name:"dots"},tooltip:"Message actions",name:"messageActions",size:"tiny"}),this.actionsButton.onAction(n=>{this.showActionsMenu(n)}),t.appendChild(this.actionsButton.container))}showActionsMenu(t){if(!this.contextMenu||!this.actionsButton)return;const e=this.j,s=e.o.aiAssistantPro,n=[];s.showCopyMessageAction&&n.push({title:"Copy message",icon:"copy",exec:r(()=>{this.j.e.fire("copyMessage.ai-assistant-pro",this.message.id)},"exec")}),this.message.role==="user"&&(s.showRestartMessageAction&&n.push({title:"Restart from here",icon:"update",exec:r(()=>{this.j.e.fire("restartFromMessage.ai-assistant-pro",this.message.id)},"exec")}),s.showEditMessageAction&&n.push({title:"Edit message",icon:"pencil",exec:r(()=>{this.j.e.fire("editMessage.ai-assistant-pro",this.message.id)},"exec")})),s.showDeleteMessageAction&&n.push({title:"Delete message",icon:"bin",exec:r(()=>{e.confirm("Are you sure you want to delete this message?","Delete message",o=>{o&&this.j.e.fire("deleteMessage.ai-assistant-pro",this.message.id)})},"exec")});const i=this.actionsButton.container.getBoundingClientRect();this.contextMenu.show(i.left,i.bottom,n),t.stopPropagation()}renderArtifacts(){if(!this.message.artifacts||this.message.artifacts.length===0)return;const t=this.j.c.div(this.getFullElName("artifacts"));this.container.appendChild(t),this.artifactGroup||(this.artifactGroup=new x(this.j),this.artifactGroup.container.className="jodit-ui-artifact-group"),this.artifactGroup.clear(),this.message.artifacts.forEach(e=>{const s=new g(this.j,e);this.artifactGroup.append(s)}),t.appendChild(this.artifactGroup.container)}createToolCallElement(t){const e=this.j.c.div(this.getFullElName("tool-call"));e.setAttribute("data-tool-id",t.id),e.setAttribute("data-status",t.status);const s=this.j.c.div(this.getFullElName("tool-header")),n=this.j.c.div(this.getFullElName("tool-icon"));n.classList.add(this.getFullElName("tool-icon",t.status,!0)),n.textContent="\u26A1";const i=this.j.c.div(this.getFullElName("tool-name"));i.textContent=this.j.i18n(t.name);const o=this.j.c.div(this.getFullElName("tool-status"));o.textContent=this.getToolStatusText(t.status||"unknown"),s.appendChild(n),s.appendChild(i),s.appendChild(o),e.appendChild(s);const a=this.createExpandableSection("Arguments",JSON.stringify(t.arguments||{},null,2));if(e.appendChild(a),t.result){const u=t.result.error?`Error: ${t.result.error}`:t.result.result||"",p=this.createExpandableSection("Result",typeof u=="string"?u:JSON.stringify(u,null,2));e.appendChild(p)}return e}createExpandableSection(t,e){const s=this.j.c.div(this.getFullElName("tool-expandable")),n=this.j.c.element("button",{type:"button",class:this.getFullElName("tool-expandable-toggle")});n.textContent=`\u25B6 ${this.j.i18n(t)}`;const i=this.j.c.element("pre",{class:this.getFullElName("tool-expandable-content")});return i.textContent=e,i.style.display="none",this.j.e.on(n,"click",()=>{i.style.display!=="none"?(i.style.display="none",n.textContent=`\u25B6 ${this.j.i18n(t)}`):(i.style.display="block",n.textContent=`\u25BC ${this.j.i18n(t)}`)}),s.appendChild(n),s.appendChild(i),s}getToolStatusText(t){return{pending:"\u23F3",approved:"\u2713",denied:"\u2715",executing:"\u26A1",executed:"\u2713",error:"\u26A0"}[t]||"\u25CF"}formatMessageContent(t){const e=this.opts.formatMessageContent,s=this.message.role;return e(t,s,this.j.i18n.bind(this.j))}formatTimestamp(t){const e=this.opts.formatTimestamp;return e(t,this.j.i18n.bind(this.j))}updateMessage(t){this.message=t,this.updateContent()}destruct(){var t,e,s;(t=this.actionsButton)===null||t===void 0||t.destruct(),(e=this.contextMenu)===null||e===void 0||e.destruct(),(s=this.artifactGroup)===null||s===void 0||s.destruct(),super.destruct()}},r(c,"UIMessageListItem"),c);d([C("ready")],h.prototype,"onReady",null),h=d([f],h);export{h as UIMessageListItem};
@@ -1,5 +1,5 @@
1
1
  import type { IViewBased } from "jodit/esm/types/index";
2
- import { UIMessageListItem } from "./message-list-item";
2
+ import { UIMessageListItem } from "./item/message-list-item";
3
3
  import { UIGroup } from "jodit/esm/core/ui/group/group";
4
4
  import type { IAIAssistantProOptions, IAIMessage } from "../../interface/index";
5
5
  export declare class UIMessageList extends UIGroup<IViewBased> {
@@ -1 +1 @@
1
- var u=Object.defineProperty;var h=(r,s)=>u(r,"name",{value:s,configurable:!0});var a,l=function(r,s,i,t){var e=arguments.length,o=e<3?s:t===null?t=Object.getOwnPropertyDescriptor(s,i):t,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,s,i,t);else for(var m=r.length-1;m>=0;m--)(c=r[m])&&(o=(e<3?c(o):e>3?c(s,i,o):c(s,i))||o);return e>3&&o&&Object.defineProperty(s,i,o),o};import{ListReconciler as f}from"../../../../core/ui/helpers/index.js";import{UIMessageListItem as g}from"./message-list-item.js";import{autobind as I,component as C,hook as S,throttle as d,watch as p}from"jodit/esm/core/decorators/index.js";import{UIGroup as M}from"jodit/esm/core/ui/group/group.js";let n=(a=class extends M{className(){return"UIMessageList"}constructor(s,i){super(s),this.params=i,this.messages=[],this.messageItems=new Map,this.autoScrollEnabled=!0}render(){return'<div class="&__scroll-container"></div>'}afterRender(){this.scrollContainer=this.container}onUserScroll(){if(!this.scrollContainer)return;const{scrollTop:s,scrollHeight:i,clientHeight:t}=this.scrollContainer,e=i-s-t<10;this.autoScrollEnabled=e}onMessageSent(){this.autoScrollEnabled=!0,this.scrollToBottom()}appendChildToContainer(s){this.scrollContainer&&this.scrollContainer.appendChild(s)}setMessages(s){const i=this.messages.slice();this.messages=s.slice(),this.updateMessageList(i),this.scrollToBottom()}updateMessageList(s){const i=f.reconcile(s,this.messages,{getId:h(t=>t.id,"getId"),isEqual:h((t,e)=>t.id===e.id&&t.content===e.content&&t.timestamp===e.timestamp&&JSON.stringify(t.artifacts)===JSON.stringify(e.artifacts)&&JSON.stringify(t.toolCalls)===JSON.stringify(e.toolCalls),"isEqual"),preserveOrder:!0});i.toRemove.forEach(t=>{const e=this.messageItems.get(t.id);e&&(this.elements.indexOf(e)!==-1&&(this.remove(e),e.destruct()),this.messageItems.delete(t.id))}),i.toUpdate.forEach(({newItem:t,index:e})=>{const o=this.messageItems.get(t.id);o&&(o.updateMessage(t),this.elements.indexOf(o)!==e&&e<this.elements.length&&(this.remove(o),this.append(o,e)))}),i.toCreate.forEach(t=>{const e=new g(this.j,t,this.params);this.messageItems.set(t.id,e);const o=this.messages.indexOf(t);this.append(e,o)})}scrollToBottom(){this.j.isDestructed||!this.autoScrollEnabled||(this.container.scrollTop=this.container.scrollHeight)}destruct(){this.messageItems.clear(),this.messages=[],super.destruct()}},h(a,"UIMessageList"),a);l([S("ready")],n.prototype,"afterRender",null),l([p(["scrollContainer:wheel","scrollContainer:scroll","scrollContainer:touchmove"]),d(r=>r.defaultTimeout)],n.prototype,"onUserScroll",null),l([p(":messageSent.ai-assistant-pro")],n.prototype,"onMessageSent",null),l([I],n.prototype,"setMessages",null),l([d(r=>r.defaultTimeout*2)],n.prototype,"scrollToBottom",null),n=l([C],n);export{n as UIMessageList};
1
+ var u=Object.defineProperty;var h=(r,s)=>u(r,"name",{value:s,configurable:!0});var a,l=function(r,s,i,t){var e=arguments.length,o=e<3?s:t===null?t=Object.getOwnPropertyDescriptor(s,i):t,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,s,i,t);else for(var m=r.length-1;m>=0;m--)(c=r[m])&&(o=(e<3?c(o):e>3?c(s,i,o):c(s,i))||o);return e>3&&o&&Object.defineProperty(s,i,o),o};import{UIMessageListItem as f}from"./item/message-list-item.js";import{autobind as g,component as I,hook as C,throttle as d,watch as p}from"jodit/esm/core/decorators/index.js";import{UIGroup as S}from"jodit/esm/core/ui/group/group.js";import{ListReconciler as M}from"../../../../core/ui/helpers/index.js";let n=(a=class extends S{className(){return"UIMessageList"}constructor(s,i){super(s),this.params=i,this.messages=[],this.messageItems=new Map,this.autoScrollEnabled=!0}render(){return'<div class="&__scroll-container"></div>'}afterRender(){this.scrollContainer=this.container}onUserScroll(){if(!this.scrollContainer)return;const{scrollTop:s,scrollHeight:i,clientHeight:t}=this.scrollContainer,e=i-s-t<10;this.autoScrollEnabled=e}onMessageSent(){this.autoScrollEnabled=!0,this.scrollToBottom()}appendChildToContainer(s){this.scrollContainer&&this.scrollContainer.appendChild(s)}setMessages(s){const i=this.messages.slice();this.messages=s.slice(),this.updateMessageList(i),this.scrollToBottom()}updateMessageList(s){const i=M.reconcile(s,this.messages,{getId:h(t=>t.id,"getId"),isEqual:h((t,e)=>t.id===e.id&&t.content===e.content&&t.timestamp===e.timestamp&&JSON.stringify(t.artifacts)===JSON.stringify(e.artifacts)&&JSON.stringify(t.toolCalls)===JSON.stringify(e.toolCalls),"isEqual"),preserveOrder:!0});i.toRemove.forEach(t=>{const e=this.messageItems.get(t.id);e&&(this.elements.indexOf(e)!==-1&&(this.remove(e),e.destruct()),this.messageItems.delete(t.id))}),i.toUpdate.forEach(({newItem:t,index:e})=>{const o=this.messageItems.get(t.id);o&&(o.updateMessage(t),this.elements.indexOf(o)!==e&&e<this.elements.length&&(this.remove(o),this.append(o,e)))}),i.toCreate.forEach(t=>{const e=new f(this.j,t,this.params);this.messageItems.set(t.id,e);const o=this.messages.indexOf(t);this.append(e,o)})}scrollToBottom(){this.j.isDestructed||!this.autoScrollEnabled||(this.container.scrollTop=this.container.scrollHeight)}destruct(){this.messageItems.clear(),this.messages=[],super.destruct()}},h(a,"UIMessageList"),a);l([C("ready")],n.prototype,"afterRender",null),l([p(["scrollContainer:wheel","scrollContainer:scroll","scrollContainer:touchmove"]),d(r=>r.defaultTimeout)],n.prototype,"onUserScroll",null),l([p(":messageSent.ai-assistant-pro")],n.prototype,"onMessageSent",null),l([g],n.prototype,"setMessages",null),l([d(r=>r.defaultTimeout*2)],n.prototype,"scrollToBottom",null),n=l([I],n);export{n as UIMessageList};
@@ -1,16 +1,18 @@
1
1
  import type { IViewBased, IViewOptions } from "jodit/esm/types/index";
2
- import { ToolbarButton } from "jodit/esm/modules/toolbar/button/button";
2
+ import { UIElement } from "jodit/esm/core/ui/element";
3
3
  import type { IAIAssistantProOptions, IConversation } from "../../interface/index";
4
4
  /**
5
5
  * Settings button that opens settings popup
6
6
  */
7
- export declare class UISettingsButton extends ToolbarButton<IViewBased> {
7
+ export declare class UISettingsButton extends UIElement<IViewBased> {
8
8
  private extraState;
9
9
  private options;
10
10
  private getConversation;
11
11
  private updateConversation;
12
+ className(): string;
12
13
  private closeCallback;
13
14
  private settingsPopup;
15
+ private button;
14
16
  constructor(view: IViewBased, extraState: {
15
17
  theme: IAIAssistantProOptions['theme'];
16
18
  displayMode: IAIAssistantProOptions['displayMode'];
@@ -1 +1 @@
1
- var f=Object.defineProperty;var u=(p,t)=>f(p,"name",{value:t,configurable:!0});var n,h=function(p,t,e,s){var i=arguments.length,o=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(p,t,e,s);else for(var a=p.length-1;a>=0;a--)(r=p[a])&&(o=(i<3?r(o):i>3?r(t,e,o):r(t,e))||o);return i>3&&o&&Object.defineProperty(t,e,o),o};import{UISettingsPopup as P}from"../settings-popup/settings-popup.js";import{component as g}from"jodit/esm/core/decorators/component/component.js";import{watch as d}from"jodit/esm/core/decorators/watch/watch.js";import{ToolbarButton as m}from"jodit/esm/modules/toolbar/button/button.js";let l=(n=class extends m{constructor(t,e,s,i,o){super(t,{name:"settings",tooltip:"Settings",popup:u((r,a,c)=>(this.closeCallback=c,this.openSettingsPopup()),"popup")}),this.extraState=e,this.options=s,this.getConversation=i,this.updateConversation=o,this.closeCallback=()=>{},this.settingsPopup=null,this.hookStatus("ready",()=>{this.state.size="small",this.state.variant="secondary"})}setParentView(t){var e;return(e=this.settingsPopup)===null||e===void 0||e.setParentView(t),super.setParentView(t)}onChangeOptionsClosePopup(t){this.closeCallback()}openSettingsPopup(){return this.settingsPopup||(this.settingsPopup=new P(this.jodit,this.extraState,this.options,this.getConversation,this.updateConversation)),this.settingsPopup.update(),this.settingsPopup}},u(n,"UISettingsButton"),n);h([d("extraState.displayMode")],l.prototype,"onChangeOptionsClosePopup",null),l=h([g],l);export{l as UISettingsButton};
1
+ var f=Object.defineProperty;var l=(p,t)=>f(p,"name",{value:t,configurable:!0});var s,h=function(p,t,e,o){var n=arguments.length,i=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(p,t,e,o);else for(var a=p.length-1;a>=0;a--)(r=p[a])&&(i=(n<3?r(i):n>3?r(t,e,i):r(t,e))||i);return n>3&&i&&Object.defineProperty(t,e,i),i};import{UISettingsPopup as P}from"../settings-popup/settings-popup.js";import{component as g}from"jodit/esm/core/decorators/component/component.js";import{watch as m}from"jodit/esm/core/decorators/watch/watch.js";import{UIElement as d}from"jodit/esm/core/ui/element.js";import{ToolbarButton as b}from"jodit/esm/modules/toolbar/button/button.js";let u=(s=class extends d{className(){return"UISettingsButton"}constructor(t,e,o,n,i){super(t),this.extraState=e,this.options=o,this.getConversation=n,this.updateConversation=i,this.closeCallback=()=>{},this.settingsPopup=null,this.button=new b(this.jodit,{name:"settings",tooltip:"Settings",popup:l((r,a,c)=>(this.closeCallback=c,this.openSettingsPopup()),"popup")}),this.button.state.variant="initial",this.button.state.size="small",this.container.appendChild(this.button.container)}setParentView(t){var e,o;return(e=this.settingsPopup)===null||e===void 0||e.setParentView(t),(o=this.button)===null||o===void 0||o.setParentView(t),super.setParentView(t)}onChangeOptionsClosePopup(t){this.closeCallback()}openSettingsPopup(){return this.settingsPopup||(this.settingsPopup=new P(this.jodit,this.extraState,this.options,this.getConversation,this.updateConversation)),this.settingsPopup.update(),this.settingsPopup}},l(s,"UISettingsButton"),s);h([m("extraState.displayMode")],u.prototype,"onChangeOptionsClosePopup",null),u=h([g],u);export{u as UISettingsButton};