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
@@ -4,14 +4,36 @@
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
6
  import type { IDictionary, IJodit } from "jodit/esm/types/index";
7
- import type { JElement } from "./element/index";
7
+ export interface IJElement {
8
+ name: string;
9
+ readonly type: number;
10
+ readonly isText: boolean;
11
+ readonly isElement: boolean;
12
+ readonly isComment: boolean;
13
+ readonly isSingle: boolean;
14
+ readonly length: number;
15
+ attributes: IDictionary;
16
+ style: IDictionary;
17
+ parent: IJElement | null;
18
+ append(child: IJElement): IJElement;
19
+ readonly previousElement: IJElement | null;
20
+ readonly lastElement: IJElement | null;
21
+ readonly previous: IJElement | null;
22
+ readonly next: IJElement | null;
23
+ forEach(callbackFn: (node: IJElement) => void | false, recursion?: boolean): void | false;
24
+ find(predicate: (child: IJElement) => boolean, recursion?: boolean): IJElement[];
25
+ map<T>(callbackFn: (node: IJElement) => T): T[];
26
+ remove(): IJElement;
27
+ textBetween(start: (n: IJElement) => boolean, end: (n: IJElement) => boolean): string;
28
+ wrap(tag: string): IJElement;
29
+ }
8
30
  export type ICaseContext = IDictionary & {
9
31
  jodit: IJodit;
10
32
  rtf: string;
11
33
  };
12
34
  export interface ICaseFn {
13
- (elm: JElement, context: ICaseContext): null | JElement;
35
+ (elm: IJElement, context: ICaseContext): null | IJElement;
14
36
  }
15
37
  export interface RenderFilter {
16
- (elm: JElement): boolean;
38
+ (elm: IJElement): boolean;
17
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit-pro",
3
- "version": "4.8.14",
3
+ "version": "4.9.2",
4
4
  "author": "Chupurnov Valerii <chupurnov@gmail.com>",
5
5
  "homepage": "https://xdsoft.net/jodit/pro/",
6
6
  "bugs": {
package/types/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
  }
@@ -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 */
@@ -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,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;
@@ -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,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'];
@@ -3,6 +3,7 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
+ import type { IJodit, IUIGroup } from "jodit/esm/types/index";
6
7
  export type MapElementType = 'circle' | 'marker' | 'polyline' | 'polygon' | 'text';
7
8
  export type CreateMode = 'hand' | MapElementType;
8
9
  interface IMarkerState {
@@ -107,3 +108,10 @@ export interface IUIMapState extends IUIMapBaseState {
107
108
  mode: CreateMode;
108
109
  elements: IUIMapElementState[];
109
110
  }
111
+ export interface IUIMap extends IUIGroup {
112
+ readonly options: IJodit['options'];
113
+ state: IUIMapState;
114
+ json(): string;
115
+ readonly map: google.maps.Map;
116
+ readonly mapElements: IUIMapElement[];
117
+ }
@@ -6,5 +6,6 @@
6
6
  import type { IMarkerState } from "../../../interface";
7
7
  import { UIBaseEditor } from "../base";
8
8
  export declare class UIMarkerEditor extends UIBaseEditor<IMarkerState> {
9
+ className(): string;
9
10
  protected onReady(): void;
10
11
  }
@@ -6,5 +6,6 @@
6
6
  import type { IPolygonState } from "../../../interface";
7
7
  import { UIPolylineEditor } from "../polyline/polyline";
8
8
  export declare class UIPolygonEditor extends UIPolylineEditor<IPolygonState> {
9
+ className(): string;
9
10
  protected onReady(): void;
10
11
  }
@@ -6,5 +6,6 @@
6
6
  import type { IPolylineState } from "../../../interface";
7
7
  import { UIBaseEditor } from "../base";
8
8
  export declare class UIPolylineEditor<T extends Omit<IPolylineState, 'type'>> extends UIBaseEditor<T> {
9
+ className(): string;
9
10
  protected onReady(): void;
10
11
  }
@@ -6,15 +6,15 @@
6
6
  import type { IJodit } from "jodit/esm/types/index";
7
7
  import "../../config";
8
8
  import { UIElement, UIGroup } from "jodit/esm/core/ui/index";
9
- import type { CreateMode, IUIMapElement, IUIMapState } from "../../interface";
10
- export declare class UIMap extends UIGroup {
9
+ import type { CreateMode, IUIMap, IUIMapElement, IUIMapState } from "../../interface";
10
+ export declare class UIMap extends UIGroup implements IUIMap {
11
11
  readonly options: IJodit['options'];
12
12
  private drawingManager?;
13
13
  className(): string;
14
14
  private toolbar;
15
15
  state: IUIMapState;
16
16
  json(): string;
17
- protected mapElements: IUIMapElement[];
17
+ readonly mapElements: IUIMapElement[];
18
18
  private apiLoaded;
19
19
  private mapInitialized;
20
20
  map: google.maps.Map;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IGMElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function addNewInState(this: UIMap, mvc: IGMElement): void;
6
+ import type { IGMElement, IUIMap } from "../../../interface";
7
+ export declare function addNewInState(this: IUIMap, mvc: IGMElement): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElementState } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function initOrUpdateElementFromState(this: UIMap, state: IUIMapElementState, index: number): void;
6
+ import type { IUIMap, IUIMapElementState } from "../../../interface";
7
+ export declare function initOrUpdateElementFromState(this: IUIMap, state: IUIMapElementState, index: number): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function onChangeGeometries(this: UIMap, newElm: IUIMapElement, index: number): void;
6
+ import type { IUIMap, IUIMapElement } from "../../../interface";
7
+ export declare function onChangeGeometries(this: IUIMap, newElm: IUIMapElement, index: number): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function openPropsDialog(this: UIMap, newElm: IUIMapElement, index: number): void;
6
+ import type { IUIMap, IUIMapElement } from "../../../interface";
7
+ export declare function openPropsDialog(this: IUIMap, newElm: IUIMapElement, index: number): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function removeElement(this: UIMap, newElm: IUIMapElement): void;
6
+ import type { IUIMap, IUIMapElement } from "../../../interface";
7
+ export declare function removeElement(this: IUIMap, newElm: IUIMapElement): void;
@@ -3,6 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { IUIMapElement } from "../../../interface";
7
- import type { UIMap } from "../map";
8
- export declare function updateStateAndGme(this: UIMap, newState: IUIMapElement['state'], index: number, silent?: boolean): void;
6
+ import type { IUIMap, IUIMapElement } from "../../../interface";
7
+ export declare function updateStateAndGme(this: IUIMap, newState: IUIMapElement['state'], index: number, silent?: boolean): void;
@@ -7,6 +7,7 @@ import type { IJodit } from "jodit/esm/types/index";
7
7
  import "./config";
8
8
  import { Plugin } from "jodit/esm/core/plugin/index";
9
9
  export declare class PageBreak extends Plugin {
10
+ className(): string;
10
11
  static requires: string[];
11
12
  styles: string;
12
13
  buttons: {
@@ -7,6 +7,7 @@ import type { IJodit, IPlugin } from "jodit/esm/types/index";
7
7
  import "./config";
8
8
  import { Plugin } from "jodit/esm/core/plugin/index";
9
9
  export declare class pasteCode extends Plugin {
10
+ className(): string;
10
11
  /** @override */
11
12
  static requires: string[];
12
13
  /** @override */
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function cleanStyles(elm: JElement): JElement;
6
+ import type { IJElement } from "../interface";
7
+ export declare function cleanStyles(elm: IJElement): IJElement;
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/index";
7
- export declare function clearAttributes(elm: JElement): null | JElement;
6
+ import type { IJElement } from "../interface";
7
+ export declare function clearAttributes(elm: IJElement): null | IJElement;
@@ -3,9 +3,9 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function convertToList(elm: JElement): JElement | null;
6
+ import type { IJElement } from "../interface";
7
+ export declare function convertToList(elm: IJElement): IJElement | null;
8
8
  /**
9
9
  * Remove redundancy default list styles.
10
10
  */
11
- export declare function removeRedundancyStyle(newList: JElement): void;
11
+ export declare function removeRedundancyStyle(newList: IJElement): void;
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function removeExtraTags(elm: JElement): JElement | null;
6
+ import type { IJElement } from "../interface";
7
+ export declare function removeExtraTags(elm: IJElement): IJElement | null;
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function removeInsideComment(elm: JElement): JElement | null;
6
+ import type { IJElement } from "../interface";
7
+ export declare function removeInsideComment(elm: IJElement): IJElement | null;
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "../element/element";
7
- export declare function replaceOldTags(elm: JElement): JElement;
6
+ import type { IJElement } from "../interface";
7
+ export declare function replaceOldTags(elm: IJElement): IJElement;
@@ -3,12 +3,12 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "./element";
7
- export declare function isList(elm: JElement | null): elm is JElement & {
6
+ import type { IJElement } from "../interface";
7
+ export declare function isList(elm: IJElement | null): elm is IJElement & {
8
8
  name: 'ul' | 'ol';
9
9
  };
10
- export declare function isLeaf(elm: JElement | null): elm is JElement & {
10
+ export declare function isLeaf(elm: IJElement | null): elm is IJElement & {
11
11
  name: 'li';
12
12
  };
13
- export declare function isPseudoLeaf(elm: JElement): boolean;
14
- export declare function isSameType(leaf: JElement, list: JElement): boolean;
13
+ export declare function isPseudoLeaf(elm: IJElement): boolean;
14
+ export declare function isSameType(leaf: IJElement, list: IJElement): boolean;
@@ -4,8 +4,9 @@
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
6
  import type { IDictionary } from "jodit/esm/types/index";
7
+ import type { IJElement } from "../interface";
7
8
  import { Style } from "./style";
8
- export declare class JElement {
9
+ export declare class JElement implements IJElement {
9
10
  parent: JElement | null;
10
11
  name: string;
11
12
  readonly type: number;
@@ -3,7 +3,7 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import type { JElement } from "./element";
6
+ import type { IJElement } from "../interface";
7
7
  import type { RenderFilter } from "../interface";
8
- export declare function html(elm: JElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
9
- export declare function innerHTML(elm: JElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
8
+ export declare function html(elm: IJElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
9
+ export declare function innerHTML(elm: IJElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
@@ -3,5 +3,5 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import { JElement } from "../element/index";
7
- export declare function calcListLevels(item: JElement): void;
6
+ import type { IJElement } from "../interface";
7
+ export declare function calcListLevels(item: IJElement): void;
@@ -4,7 +4,7 @@
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
6
  import type { Nullable } from "jodit/esm/types/index";
7
- import type { JElement } from "../element/index";
7
+ import type { IJElement } from "../interface";
8
8
  export declare function calcMarginParts(margin: string): number[] | string[];
9
9
  /**
10
10
  * Convert css units to pixels, excluding percentages
@@ -15,5 +15,5 @@ export declare function calcMarginParts(margin: string): number[] | string[];
15
15
  * ```
16
16
  */
17
17
  export declare function convertUnitToPx(unit: string | number): number;
18
- export declare function realPixelIndent(element: JElement): number;
18
+ export declare function realPixelIndent(element: IJElement): number;
19
19
  export declare function calcStartBySymbol(symbol: string): Nullable<string>;
@@ -4,5 +4,5 @@
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
6
  import type { IJodit } from "jodit/esm/types/index";
7
- import type { JElement } from "../element/index";
8
- export declare function transformWordToHtml(jodit: IJodit, body: JElement, removeStyles: boolean, rtf: string): string;
7
+ import type { IJElement } from "../interface";
8
+ export declare function transformWordToHtml(jodit: IJodit, body: IJElement, removeStyles: boolean, rtf: string): string;
@@ -4,14 +4,36 @@
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
6
  import type { IDictionary, IJodit } from "jodit/esm/types/index";
7
- import type { JElement } from "./element/index";
7
+ export interface IJElement {
8
+ name: string;
9
+ readonly type: number;
10
+ readonly isText: boolean;
11
+ readonly isElement: boolean;
12
+ readonly isComment: boolean;
13
+ readonly isSingle: boolean;
14
+ readonly length: number;
15
+ attributes: IDictionary;
16
+ style: IDictionary;
17
+ parent: IJElement | null;
18
+ append(child: IJElement): IJElement;
19
+ readonly previousElement: IJElement | null;
20
+ readonly lastElement: IJElement | null;
21
+ readonly previous: IJElement | null;
22
+ readonly next: IJElement | null;
23
+ forEach(callbackFn: (node: IJElement) => void | false, recursion?: boolean): void | false;
24
+ find(predicate: (child: IJElement) => boolean, recursion?: boolean): IJElement[];
25
+ map<T>(callbackFn: (node: IJElement) => T): T[];
26
+ remove(): IJElement;
27
+ textBetween(start: (n: IJElement) => boolean, end: (n: IJElement) => boolean): string;
28
+ wrap(tag: string): IJElement;
29
+ }
8
30
  export type ICaseContext = IDictionary & {
9
31
  jodit: IJodit;
10
32
  rtf: string;
11
33
  };
12
34
  export interface ICaseFn {
13
- (elm: JElement, context: ICaseContext): null | JElement;
35
+ (elm: IJElement, context: ICaseContext): null | IJElement;
14
36
  }
15
37
  export interface RenderFilter {
16
- (elm: JElement): boolean;
38
+ (elm: IJElement): boolean;
17
39
  }
@@ -1 +0,0 @@
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"UIMessageList"}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,10 +0,0 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- export * from "./add-new-in-state";
7
- export * from "./on-change-geometries";
8
- export * from "./open-props-dialog";
9
- export * from "./remove-element";
10
- export * from "./update-state-and-gme";
@@ -1 +0,0 @@
1
- export*from"./add-new-in-state.js";export*from"./on-change-geometries.js";export*from"./open-props-dialog.js";export*from"./remove-element.js";export*from"./update-state-and-gme.js";
@@ -1,10 +0,0 @@
1
- /*!
2
- * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
- * See LICENSE.md in the project root for license information.
4
- * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
- */
6
- export * from "./add-new-in-state";
7
- export * from "./on-change-geometries";
8
- export * from "./open-props-dialog";
9
- export * from "./remove-element";
10
- export * from "./update-state-and-gme";