jodit-pro 4.13.38 → 4.13.44

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 (343) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +28 -28
  4. package/es2015/jodit.js +83 -190
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +306 -168
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +29 -29
  10. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  11. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  12. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  13. package/es2015/plugins/backup/backup.css +1 -1
  14. package/es2015/plugins/backup/backup.js +1 -1
  15. package/es2015/plugins/backup/backup.min.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.css +1 -1
  17. package/es2015/plugins/button-generator/button-generator.js +1 -1
  18. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  19. package/es2015/plugins/change-case/change-case.js +1 -1
  20. package/es2015/plugins/change-case/change-case.min.js +1 -1
  21. package/es2015/plugins/color-picker/color-picker.css +1 -1
  22. package/es2015/plugins/color-picker/color-picker.js +1 -1
  23. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  24. package/es2015/plugins/emoji/emoji.css +1 -1
  25. package/es2015/plugins/emoji/emoji.js +1 -1
  26. package/es2015/plugins/emoji/emoji.min.js +1 -1
  27. package/es2015/plugins/export-docs/export-docs.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  29. package/es2015/plugins/finder/finder.css +1 -1
  30. package/es2015/plugins/finder/finder.js +1 -1
  31. package/es2015/plugins/finder/finder.min.css +1 -1
  32. package/es2015/plugins/finder/finder.min.js +1 -1
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +241 -72
  35. package/es2015/plugins/google-maps/google-maps.min.js +4 -4
  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/image-editor-pro/image-editor-pro.css +1 -1
  44. package/es2015/plugins/image-editor-pro/image-editor-pro.js +6 -12
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  46. package/es2015/plugins/keyboard/keyboard.css +1 -1
  47. package/es2015/plugins/keyboard/keyboard.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  49. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  50. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  51. package/es2015/plugins/page-break/page-break.js +1 -1
  52. package/es2015/plugins/page-break/page-break.min.js +1 -1
  53. package/es2015/plugins/paste-code/paste-code.css +1 -1
  54. package/es2015/plugins/paste-code/paste-code.js +1 -1
  55. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  56. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  57. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  58. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  59. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  60. package/es2015/plugins/style/style.css +1 -1
  61. package/es2015/plugins/style/style.js +1 -1
  62. package/es2015/plugins/style/style.min.js +1 -1
  63. package/es2015/plugins/templates/templates.css +1 -1
  64. package/es2015/plugins/templates/templates.js +1 -1
  65. package/es2015/plugins/templates/templates.min.js +1 -1
  66. package/es2015/plugins/todo-list/todo-list.css +1 -1
  67. package/es2015/plugins/todo-list/todo-list.js +1 -1
  68. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  69. package/es2015/plugins/translate/translate.css +1 -1
  70. package/es2015/plugins/translate/translate.js +1 -1
  71. package/es2015/plugins/translate/translate.min.js +1 -1
  72. package/es2015/plugins/tune-block/tune-block.css +1 -1
  73. package/es2015/plugins/tune-block/tune-block.js +1 -1
  74. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  75. package/es2018/jodit.fat.min.css +1 -1
  76. package/es2018/jodit.fat.min.js +19 -19
  77. package/es2018/jodit.min.css +1 -1
  78. package/es2018/jodit.min.js +2 -2
  79. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
  80. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  81. package/es2018/plugins/backup/backup.min.js +1 -1
  82. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  83. package/es2018/plugins/change-case/change-case.min.js +1 -1
  84. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  85. package/es2018/plugins/emoji/emoji.min.js +1 -1
  86. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  87. package/es2018/plugins/finder/finder.min.css +1 -1
  88. package/es2018/plugins/finder/finder.min.js +1 -1
  89. package/es2018/plugins/google-maps/google-maps.min.js +7 -7
  90. package/es2018/plugins/google-search/google-search.min.js +1 -1
  91. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  92. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  93. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  94. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  95. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  96. package/es2018/plugins/page-break/page-break.min.js +1 -1
  97. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  98. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  99. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  100. package/es2018/plugins/style/style.min.js +1 -1
  101. package/es2018/plugins/templates/templates.min.js +1 -1
  102. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  103. package/es2018/plugins/translate/translate.min.js +1 -1
  104. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  105. package/es2021/jodit.css +1 -1
  106. package/es2021/jodit.fat.min.css +1 -1
  107. package/es2021/jodit.fat.min.js +19 -19
  108. package/es2021/jodit.js +2 -2
  109. package/es2021/jodit.min.css +1 -1
  110. package/es2021/jodit.min.js +2 -2
  111. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  112. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
  113. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
  114. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  115. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  116. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  117. package/es2021/plugins/backup/backup.css +1 -1
  118. package/es2021/plugins/backup/backup.js +1 -1
  119. package/es2021/plugins/backup/backup.min.js +1 -1
  120. package/es2021/plugins/button-generator/button-generator.css +1 -1
  121. package/es2021/plugins/button-generator/button-generator.js +1 -1
  122. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  123. package/es2021/plugins/change-case/change-case.js +1 -1
  124. package/es2021/plugins/change-case/change-case.min.js +1 -1
  125. package/es2021/plugins/color-picker/color-picker.css +1 -1
  126. package/es2021/plugins/color-picker/color-picker.js +1 -1
  127. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  128. package/es2021/plugins/emoji/emoji.css +1 -1
  129. package/es2021/plugins/emoji/emoji.js +1 -1
  130. package/es2021/plugins/emoji/emoji.min.js +1 -1
  131. package/es2021/plugins/export-docs/export-docs.js +1 -1
  132. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  133. package/es2021/plugins/finder/finder.css +1 -1
  134. package/es2021/plugins/finder/finder.js +1 -1
  135. package/es2021/plugins/finder/finder.min.css +1 -1
  136. package/es2021/plugins/finder/finder.min.js +1 -1
  137. package/es2021/plugins/google-maps/google-maps.css +1 -1
  138. package/es2021/plugins/google-maps/google-maps.js +236 -75
  139. package/es2021/plugins/google-maps/google-maps.min.js +9 -9
  140. package/es2021/plugins/google-search/google-search.js +1 -1
  141. package/es2021/plugins/google-search/google-search.min.js +1 -1
  142. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  143. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  144. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  145. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  146. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  147. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  148. package/es2021/plugins/image-editor-pro/image-editor-pro.js +2 -4
  149. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  150. package/es2021/plugins/keyboard/keyboard.css +1 -1
  151. package/es2021/plugins/keyboard/keyboard.js +1 -1
  152. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  153. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  154. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  155. package/es2021/plugins/page-break/page-break.js +1 -1
  156. package/es2021/plugins/page-break/page-break.min.js +1 -1
  157. package/es2021/plugins/paste-code/paste-code.css +1 -1
  158. package/es2021/plugins/paste-code/paste-code.js +1 -1
  159. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  160. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  161. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  162. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  163. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  164. package/es2021/plugins/style/style.css +1 -1
  165. package/es2021/plugins/style/style.js +1 -1
  166. package/es2021/plugins/style/style.min.js +1 -1
  167. package/es2021/plugins/templates/templates.css +1 -1
  168. package/es2021/plugins/templates/templates.js +1 -1
  169. package/es2021/plugins/templates/templates.min.js +1 -1
  170. package/es2021/plugins/todo-list/todo-list.css +1 -1
  171. package/es2021/plugins/todo-list/todo-list.js +1 -1
  172. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  173. package/es2021/plugins/translate/translate.css +1 -1
  174. package/es2021/plugins/translate/translate.js +1 -1
  175. package/es2021/plugins/translate/translate.min.js +1 -1
  176. package/es2021/plugins/tune-block/tune-block.css +1 -1
  177. package/es2021/plugins/tune-block/tune-block.js +1 -1
  178. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  179. package/es2021.en/jodit.css +1 -1
  180. package/es2021.en/jodit.fat.min.css +1 -1
  181. package/es2021.en/jodit.fat.min.js +19 -19
  182. package/es2021.en/jodit.js +2 -2
  183. package/es2021.en/jodit.min.css +1 -1
  184. package/es2021.en/jodit.min.js +2 -2
  185. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  186. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
  187. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
  188. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  189. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  190. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  191. package/es2021.en/plugins/backup/backup.css +1 -1
  192. package/es2021.en/plugins/backup/backup.js +1 -1
  193. package/es2021.en/plugins/backup/backup.min.js +1 -1
  194. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  195. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  196. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  197. package/es2021.en/plugins/change-case/change-case.js +1 -1
  198. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  199. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  200. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  201. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  202. package/es2021.en/plugins/emoji/emoji.css +1 -1
  203. package/es2021.en/plugins/emoji/emoji.js +1 -1
  204. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  205. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  206. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  207. package/es2021.en/plugins/finder/finder.css +1 -1
  208. package/es2021.en/plugins/finder/finder.js +1 -1
  209. package/es2021.en/plugins/finder/finder.min.css +1 -1
  210. package/es2021.en/plugins/finder/finder.min.js +1 -1
  211. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  212. package/es2021.en/plugins/google-maps/google-maps.js +236 -75
  213. package/es2021.en/plugins/google-maps/google-maps.min.js +9 -9
  214. package/es2021.en/plugins/google-search/google-search.js +1 -1
  215. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  216. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  217. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  218. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  219. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  220. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  221. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  222. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +2 -4
  223. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  224. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  225. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  226. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  227. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  228. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  229. package/es2021.en/plugins/page-break/page-break.js +1 -1
  230. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  231. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  232. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  233. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  234. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  235. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  236. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  237. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  238. package/es2021.en/plugins/style/style.css +1 -1
  239. package/es2021.en/plugins/style/style.js +1 -1
  240. package/es2021.en/plugins/style/style.min.js +1 -1
  241. package/es2021.en/plugins/templates/templates.css +1 -1
  242. package/es2021.en/plugins/templates/templates.js +1 -1
  243. package/es2021.en/plugins/templates/templates.min.js +1 -1
  244. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  245. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  246. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  247. package/es2021.en/plugins/translate/translate.css +1 -1
  248. package/es2021.en/plugins/translate/translate.js +1 -1
  249. package/es2021.en/plugins/translate/translate.min.js +1 -1
  250. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  251. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  252. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  253. package/es5/jodit.css +2 -2
  254. package/es5/jodit.fat.min.css +1 -1
  255. package/es5/jodit.fat.min.js +2 -2
  256. package/es5/jodit.js +1788 -2701
  257. package/es5/jodit.min.css +3 -3
  258. package/es5/jodit.min.js +2 -2
  259. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  260. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +406 -275
  261. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  262. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  263. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  264. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  265. package/es5/plugins/backup/backup.css +1 -1
  266. package/es5/plugins/backup/backup.js +9 -9
  267. package/es5/plugins/backup/backup.min.js +2 -2
  268. package/es5/plugins/button-generator/button-generator.css +1 -1
  269. package/es5/plugins/button-generator/button-generator.js +11 -18
  270. package/es5/plugins/button-generator/button-generator.min.js +2 -2
  271. package/es5/plugins/change-case/change-case.js +1 -1
  272. package/es5/plugins/change-case/change-case.min.js +1 -1
  273. package/es5/plugins/color-picker/color-picker.css +1 -1
  274. package/es5/plugins/color-picker/color-picker.js +10 -17
  275. package/es5/plugins/color-picker/color-picker.min.js +2 -2
  276. package/es5/plugins/emoji/emoji.css +1 -1
  277. package/es5/plugins/emoji/emoji.js +7 -7
  278. package/es5/plugins/emoji/emoji.min.js +2 -2
  279. package/es5/plugins/export-docs/export-docs.js +11 -11
  280. package/es5/plugins/export-docs/export-docs.min.js +2 -2
  281. package/es5/plugins/finder/finder.css +1 -1
  282. package/es5/plugins/finder/finder.js +4 -10
  283. package/es5/plugins/finder/finder.min.css +1 -1
  284. package/es5/plugins/finder/finder.min.js +2 -2
  285. package/es5/plugins/google-maps/google-maps.css +1 -1
  286. package/es5/plugins/google-maps/google-maps.js +334 -114
  287. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  288. package/es5/plugins/google-search/google-search.js +1 -1
  289. package/es5/plugins/google-search/google-search.min.js +1 -1
  290. package/es5/plugins/highlight-signature/highlight-signature.js +6 -6
  291. package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
  292. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  293. package/es5/plugins/iframe-editor/iframe-editor.js +6 -6
  294. package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
  295. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  296. package/es5/plugins/image-editor-pro/image-editor-pro.js +29 -42
  297. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
  298. package/es5/plugins/keyboard/keyboard.css +1 -1
  299. package/es5/plugins/keyboard/keyboard.js +6 -6
  300. package/es5/plugins/keyboard/keyboard.min.js +2 -2
  301. package/es5/plugins/mobile-view/mobile-view.js +6 -6
  302. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  303. package/es5/plugins/page-break/page-break.js +6 -6
  304. package/es5/plugins/page-break/page-break.min.js +2 -2
  305. package/es5/plugins/paste-code/paste-code.css +1 -1
  306. package/es5/plugins/paste-code/paste-code.js +13 -13
  307. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  308. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  309. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  310. package/es5/plugins/show-blocks/show-blocks.js +8 -8
  311. package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
  312. package/es5/plugins/style/style.css +1 -1
  313. package/es5/plugins/style/style.js +1 -1
  314. package/es5/plugins/style/style.min.js +1 -1
  315. package/es5/plugins/templates/templates.css +1 -1
  316. package/es5/plugins/templates/templates.js +1 -1
  317. package/es5/plugins/templates/templates.min.js +1 -1
  318. package/es5/plugins/todo-list/todo-list.css +1 -1
  319. package/es5/plugins/todo-list/todo-list.js +18 -18
  320. package/es5/plugins/todo-list/todo-list.min.js +2 -2
  321. package/es5/plugins/translate/translate.css +1 -1
  322. package/es5/plugins/translate/translate.js +7 -7
  323. package/es5/plugins/translate/translate.min.js +2 -2
  324. package/es5/plugins/tune-block/tune-block.css +1 -1
  325. package/es5/plugins/tune-block/tune-block.js +7 -7
  326. package/es5/plugins/tune-block/tune-block.min.js +2 -2
  327. package/es5/polyfills.fat.min.js +2 -2
  328. package/es5/polyfills.js +225 -105
  329. package/es5/polyfills.min.js +2 -2
  330. package/esm/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
  331. package/esm/plugins/ai-assistant-pro/core/sanitize-utils.js +1 -0
  332. package/esm/plugins/ai-assistant-pro/tools/add-html/executor.js +1 -1
  333. package/esm/plugins/ai-assistant-pro/tools/replace-block/executor.js +1 -1
  334. package/esm/plugins/ai-assistant-pro/tools/replace-in-document/executor.js +1 -1
  335. package/esm/plugins/google-maps/config.js +1 -1
  336. package/esm/plugins/google-maps/ui/map/map.d.ts +3 -2
  337. package/esm/plugins/google-maps/ui/map/map.js +2 -2
  338. package/esm/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
  339. package/esm/plugins/google-maps/ui/map/modules/drawing-controller.js +1 -0
  340. package/package.json +1 -1
  341. package/types/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
  342. package/types/plugins/google-maps/ui/map/map.d.ts +3 -2
  343. package/types/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.38
4
+ * Version: v4.13.44
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1642,7 +1642,7 @@ jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_7__.Icon.set('map', (_icon_svg__
1642
1642
  jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.googleMaps = {
1643
1643
  saveStateInStorage: true,
1644
1644
  useStaticImage: false,
1645
- apiUrl: 'https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler',
1645
+ apiUrl: 'https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places&language=${j.o.language}&callback=JoditGoogleReadyHandler',
1646
1646
  API_KEY: 'AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY',
1647
1647
  dialog: {
1648
1648
  size: [
@@ -2557,17 +2557,18 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__de
2557
2557
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
2558
2558
  /* harmony import */ var jodit_pro_plugins_google_maps_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55029);
2559
2559
  /* harmony import */ var _modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22125);
2560
- /* harmony import */ var _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1475);
2561
- /* harmony import */ var jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(81577);
2562
- /* harmony import */ var jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97357);
2563
- /* harmony import */ var jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(13525);
2564
- /* harmony import */ var jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(37133);
2565
- /* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(580);
2566
- /* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(38837);
2567
- /* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41180);
2568
- /* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(67510);
2569
- /* harmony import */ var jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(11676);
2570
- /* harmony import */ var jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(17298);
2560
+ /* harmony import */ var _modules_drawing_controller__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76864);
2561
+ /* harmony import */ var _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1475);
2562
+ /* harmony import */ var jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(81577);
2563
+ /* harmony import */ var jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(97357);
2564
+ /* harmony import */ var jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(13525);
2565
+ /* harmony import */ var jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(37133);
2566
+ /* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(580);
2567
+ /* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(38837);
2568
+ /* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(41180);
2569
+ /* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(67510);
2570
+ /* harmony import */ var jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(11676);
2571
+ /* harmony import */ var jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(17298);
2571
2572
  /*!
2572
2573
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
2573
2574
  * See LICENSE.md in the project root for license information.
@@ -2588,7 +2589,8 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__de
2588
2589
 
2589
2590
 
2590
2591
 
2591
- class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2592
+
2593
+ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__.UIGroup {
2592
2594
  className() {
2593
2595
  return 'UIMap';
2594
2596
  }
@@ -2601,7 +2603,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2601
2603
  async onReady() {
2602
2604
  await this.apiLoaded;
2603
2605
  const container = this.getElm('map-root');
2604
- (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__.assert)(container != null, 'map-root element does not exists');
2606
+ (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__.assert)(container != null, 'map-root element does not exists');
2605
2607
  this.map = new google.maps.Map(container, {
2606
2608
  center: {
2607
2609
  lat: this.state.center[0],
@@ -2625,7 +2627,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2625
2627
  this.state.type = type;
2626
2628
  }
2627
2629
  });
2628
- this.initDrawManager();
2630
+ this.initDrawingController();
2629
2631
  this.onChangeElementsList();
2630
2632
  this.onChangeSize();
2631
2633
  this.onChangeControls();
@@ -2637,47 +2639,18 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2637
2639
  this.j.e.fire(this, 'GoogleMapsIsReady');
2638
2640
  });
2639
2641
  }
2640
- initDrawManager() {
2641
- try {
2642
- const drawingManager = new google.maps.drawing.DrawingManager();
2643
- drawingManager.setMap(this.map);
2644
- drawingManager.setOptions({
2645
- drawingControl: false,
2646
- polygonOptions: {
2647
- ...this.options.googleMaps.map.defaultStates.polygon,
2648
- clickable: true,
2649
- editable: true
2650
- },
2651
- polylineOptions: {
2652
- ...this.options.googleMaps.map.defaultStates.polyline,
2653
- clickable: true,
2654
- editable: true
2655
- },
2656
- markerOptions: {
2657
- ...this.options.googleMaps.map.defaultStates.marker,
2658
- clickable: true
2659
- },
2660
- circleOptions: {
2661
- ...this.options.googleMaps.map.defaultStates.circle,
2662
- clickable: true,
2663
- editable: true
2664
- }
2665
- });
2666
- this.drawingManager = drawingManager;
2667
- google.maps.event.addListener(drawingManager, 'overlaycomplete', (event)=>{
2668
- if (event.overlay) {
2669
- _modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_3__.addNewInState.call(this, event.overlay);
2670
- event.overlay.setMap(null);
2671
- }
2672
- });
2673
- } catch {}
2642
+ initDrawingController() {
2643
+ this.drawing = new _modules_drawing_controller__WEBPACK_IMPORTED_MODULE_4__.DrawingController(this.map, this.options.googleMaps.map.defaultStates, (overlay)=>{
2644
+ _modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_3__.addNewInState.call(this, overlay);
2645
+ overlay.setMap(null);
2646
+ });
2674
2647
  }
2675
2648
  changeCreateMode(mode) {
2676
2649
  this.state.mode = this.state.mode === mode ? 'hand' : mode;
2677
2650
  }
2678
2651
  onChangeMode() {
2679
2652
  this.j.buffer.set('createMode.gm', this.state.mode);
2680
- this.drawingManager?.setDrawingMode(this.state.mode === 'hand' ? null : this.state.mode);
2653
+ this.drawing?.setMode(this.state.mode);
2681
2654
  this.j.e.fire('updateToolbar');
2682
2655
  }
2683
2656
  onChangeElementsList() {
@@ -2688,7 +2661,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2688
2661
  });
2689
2662
  }
2690
2663
  mapElements.length = elements.length;
2691
- elements.forEach((state, index)=>_modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_4__.initOrUpdateElementFromState.call(this, state, index));
2664
+ elements.forEach((state, index)=>_modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_5__.initOrUpdateElementFromState.call(this, state, index));
2692
2665
  }
2693
2666
  onChangeCenter() {
2694
2667
  const center = this.map.getCenter();
@@ -2709,7 +2682,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2709
2682
  }
2710
2683
  }
2711
2684
  onChangeBound() {
2712
- this.options.googleMaps.saveStateInStorage && this.j.storage.set(jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_14__.STORAGE_KEY, {
2685
+ this.options.googleMaps.saveStateInStorage && this.j.storage.set(jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_15__.STORAGE_KEY, {
2713
2686
  center: this.state.center,
2714
2687
  size: this.state.size,
2715
2688
  zoom: this.state.zoom,
@@ -2720,8 +2693,8 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2720
2693
  }
2721
2694
  onChangeSize() {
2722
2695
  const mapSize = this.getElm('map-size');
2723
- (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__.assert)(mapSize != null, 'map-size element does not exists');
2724
- (0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__.css)(mapSize, {
2696
+ (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__.assert)(mapSize != null, 'map-size element does not exists');
2697
+ (0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_12__.css)(mapSize, {
2725
2698
  width: this.state.size[0],
2726
2699
  height: this.state.size[1]
2727
2700
  });
@@ -2745,6 +2718,10 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2745
2718
  }
2746
2719
  this.layers.forEach((layer)=>layer.setMap(this.map));
2747
2720
  }
2721
+ destruct() {
2722
+ this.drawing?.destruct();
2723
+ return super.destruct();
2724
+ }
2748
2725
  render() {
2749
2726
  return `<div>
2750
2727
  <div class='&__map-root'></div>
@@ -2754,8 +2731,8 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2754
2731
  }
2755
2732
  appendChildToContainer() {}
2756
2733
  constructor(jodit, state, options){
2757
- super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "drawingManager", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "toolbar", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mapElements", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "apiLoaded", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mapInitialized", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "map", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "layers", void 0), this.options = options, this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_13__.ToolbarCollection(this.jodit), this.state = {
2758
- uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_9__.uniqueUid)() + new Date().toString().replace(/[^0-9]/g, ''),
2734
+ super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "drawing", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "toolbar", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mapElements", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "apiLoaded", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mapInitialized", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "map", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "layers", void 0), this.options = options, this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_14__.ToolbarCollection(this.jodit), this.state = {
2735
+ uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_10__.uniqueUid)() + new Date().toString().replace(/[^0-9]/g, ''),
2759
2736
  layer: this.options.googleMaps.map.layer,
2760
2737
  center: this.options.googleMaps.map.defaultCenter,
2761
2738
  zoom: this.options.googleMaps.map.defaultZoom,
@@ -2781,36 +2758,36 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2781
2758
  'gm.circle'
2782
2759
  ]);
2783
2760
  const palette = this.getElm('map-palette');
2784
- (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__.assert)(palette != null, 'palette element does not exists');
2761
+ (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__.assert)(palette != null, 'palette element does not exists');
2785
2762
  palette.appendChild(this.toolbar.container);
2786
2763
  }
2787
2764
  }
2788
2765
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2789
- (0,jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_6__.hook)('ready')
2766
+ (0,jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_7__.hook)('ready')
2790
2767
  ], UIMap.prototype, "onReady", null);
2791
2768
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2792
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('?:changeCreateMode.gm')
2769
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)('?:changeCreateMode.gm')
2793
2770
  ], UIMap.prototype, "changeCreateMode", null);
2794
2771
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2795
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.mode')
2772
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)('state.mode')
2796
2773
  ], UIMap.prototype, "onChangeMode", null);
2797
2774
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2798
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.elements')
2775
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)('state.elements')
2799
2776
  ], UIMap.prototype, "onChangeElementsList", null);
2800
2777
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2801
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.center'),
2802
- (0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_7__.wait)((ctx)=>ctx.mapInitialized),
2803
- (0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__.debounce)()
2778
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)('state.center'),
2779
+ (0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_8__.wait)((ctx)=>ctx.mapInitialized),
2780
+ (0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_6__.debounce)()
2804
2781
  ], UIMap.prototype, "onChangeCenter", null);
2805
2782
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2806
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.zoom'),
2807
- (0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__.debounce)()
2783
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)('state.zoom'),
2784
+ (0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_6__.debounce)()
2808
2785
  ], UIMap.prototype, "onChangeZoom", null);
2809
2786
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2810
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.controls')
2787
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)('state.controls')
2811
2788
  ], UIMap.prototype, "onChangeControls", null);
2812
2789
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2813
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)([
2790
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)([
2814
2791
  'state.center',
2815
2792
  'state.zoom',
2816
2793
  'state.controls',
@@ -2818,18 +2795,18 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_12__.UIGroup {
2818
2795
  'state.type',
2819
2796
  'state.layer'
2820
2797
  ]),
2821
- (0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_7__.wait)((ctx)=>ctx.mapInitialized),
2822
- (0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__.debounce)()
2798
+ (0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_8__.wait)((ctx)=>ctx.mapInitialized),
2799
+ (0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_6__.debounce)()
2823
2800
  ], UIMap.prototype, "onChangeBound", null);
2824
2801
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2825
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.size'),
2826
- (0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_5__.debounce)()
2802
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)('state.size'),
2803
+ (0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_6__.debounce)()
2827
2804
  ], UIMap.prototype, "onChangeSize", null);
2828
2805
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2829
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.type')
2806
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)('state.type')
2830
2807
  ], UIMap.prototype, "onChangeMapType", null);
2831
2808
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
2832
- (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.layer')
2809
+ (0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_9__.watch)('state.layer')
2833
2810
  ], UIMap.prototype, "onChangeLayer", null);
2834
2811
 
2835
2812
 
@@ -2901,6 +2878,190 @@ function addNewInState(mvc) {
2901
2878
  }
2902
2879
 
2903
2880
 
2881
+ /***/ }),
2882
+
2883
+ /***/ 76864:
2884
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2885
+
2886
+ "use strict";
2887
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2888
+ /* harmony export */ DrawingController: function() { return /* binding */ DrawingController; }
2889
+ /* harmony export */ });
2890
+ /* unused harmony export isDrawableMode */
2891
+ /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
2892
+ /*!
2893
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
2894
+ * See LICENSE.md in the project root for license information.
2895
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
2896
+ */
2897
+ const DRAWABLE_MODES = [
2898
+ 'marker',
2899
+ 'polyline',
2900
+ 'polygon',
2901
+ 'circle'
2902
+ ];
2903
+ function isDrawableMode(mode) {
2904
+ return DRAWABLE_MODES.includes(mode);
2905
+ }
2906
+ /**
2907
+ * Replacement for the removed `google.maps.drawing.DrawingManager`
2908
+ * (the Drawing Library was discontinued in Maps JS API v3.65):
2909
+ * draws markers, polylines, polygons and circles with plain map events.
2910
+ *
2911
+ * Click places a marker / a vertex / a circle center; for circles the
2912
+ * radius follows the cursor and a second click fixes it; polylines and
2913
+ * polygons are finished with a double click. The completed shape is
2914
+ * passed to `onComplete` and removed from the map — the caller
2915
+ * re-creates it from state, exactly as with DrawingManager overlays.
2916
+ */ class DrawingController {
2917
+ setMode(mode) {
2918
+ const nextMode = isDrawableMode(mode) ? mode : null;
2919
+ if (nextMode === this.mode) {
2920
+ return;
2921
+ }
2922
+ this.cancel();
2923
+ this.unbind();
2924
+ this.mode = nextMode;
2925
+ if (nextMode) {
2926
+ this.bind();
2927
+ this.map.setOptions({
2928
+ draggableCursor: 'crosshair',
2929
+ disableDoubleClickZoom: true
2930
+ });
2931
+ } else {
2932
+ this.map.setOptions({
2933
+ draggableCursor: null,
2934
+ disableDoubleClickZoom: false
2935
+ });
2936
+ }
2937
+ }
2938
+ destruct() {
2939
+ this.cancel();
2940
+ this.unbind();
2941
+ this.mode = null;
2942
+ }
2943
+ bind() {
2944
+ this.listeners = [
2945
+ this.map.addListener('click', (e)=>this.onClick(e)),
2946
+ this.map.addListener('mousemove', (e)=>this.onMove(e)),
2947
+ this.map.addListener('dblclick', ()=>this.onDblClick())
2948
+ ];
2949
+ }
2950
+ unbind() {
2951
+ this.listeners.forEach((listener)=>listener.remove());
2952
+ this.listeners = [];
2953
+ }
2954
+ onClick(e) {
2955
+ const point = e.latLng;
2956
+ if (!point) {
2957
+ return;
2958
+ }
2959
+ switch(this.mode){
2960
+ case 'marker':
2961
+ this.onComplete(new google.maps.Marker({
2962
+ position: point
2963
+ }));
2964
+ break;
2965
+ case 'circle':
2966
+ if (!this.previewCircle) {
2967
+ this.previewCircle = new google.maps.Circle({
2968
+ ...this.defaultStates.circle,
2969
+ center: point,
2970
+ radius: 0,
2971
+ clickable: false,
2972
+ map: this.map
2973
+ });
2974
+ } else {
2975
+ this.finishCircle();
2976
+ }
2977
+ break;
2978
+ case 'polyline':
2979
+ case 'polygon':
2980
+ this.vertices.push(point);
2981
+ this.updatePolyPreview(point);
2982
+ break;
2983
+ }
2984
+ }
2985
+ onMove(e) {
2986
+ const point = e.latLng;
2987
+ if (!point) {
2988
+ return;
2989
+ }
2990
+ if (this.previewCircle) {
2991
+ const center = this.previewCircle.getCenter();
2992
+ center && this.previewCircle.setRadius(google.maps.geometry.spherical.computeDistanceBetween(center, point));
2993
+ return;
2994
+ }
2995
+ if (this.vertices.length) {
2996
+ this.updatePolyPreview(point);
2997
+ }
2998
+ }
2999
+ onDblClick() {
3000
+ if (this.mode !== 'polyline' && this.mode !== 'polygon') {
3001
+ return;
3002
+ }
3003
+ // The double click is preceded by two single clicks at the same
3004
+ // point — collapse the duplicated trailing vertices
3005
+ const path = this.vertices.filter((point, i, list)=>i === 0 || !point.equals(list[i - 1]));
3006
+ const minPoints = this.mode === 'polygon' ? 3 : 2;
3007
+ if (path.length >= minPoints && this.preview) {
3008
+ const shape = this.preview;
3009
+ shape.setPath(path);
3010
+ this.onComplete(shape);
3011
+ }
3012
+ this.cancel();
3013
+ }
3014
+ finishCircle() {
3015
+ const circle = this.previewCircle;
3016
+ if (circle) {
3017
+ this.previewCircle = null;
3018
+ this.onComplete(circle);
3019
+ circle.setMap(null);
3020
+ }
3021
+ }
3022
+ updatePolyPreview(cursor) {
3023
+ const path = [
3024
+ ...this.vertices,
3025
+ cursor
3026
+ ];
3027
+ if (!this.preview) {
3028
+ const options = {
3029
+ ...this.defaultStates[this.mode === 'polygon' ? 'polygon' : 'polyline'],
3030
+ clickable: false,
3031
+ map: this.map
3032
+ };
3033
+ this.preview = this.mode === 'polygon' ? new google.maps.Polygon(options) : new google.maps.Polyline(options);
3034
+ }
3035
+ this.preview.setPath(path);
3036
+ }
3037
+ cancel() {
3038
+ this.preview?.setMap(null);
3039
+ this.preview = null;
3040
+ this.previewCircle?.setMap(null);
3041
+ this.previewCircle = null;
3042
+ this.vertices = [];
3043
+ }
3044
+ constructor(map, defaultStates, onComplete){
3045
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "map", void 0);
3046
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "defaultStates", void 0);
3047
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "onComplete", void 0);
3048
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mode", void 0);
3049
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "listeners", void 0);
3050
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "preview", void 0);
3051
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "previewCircle", void 0);
3052
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "vertices", void 0);
3053
+ this.map = map;
3054
+ this.defaultStates = defaultStates;
3055
+ this.onComplete = onComplete;
3056
+ this.mode = null;
3057
+ this.listeners = [];
3058
+ this.preview = null;
3059
+ this.previewCircle = null;
3060
+ this.vertices = [];
3061
+ }
3062
+ }
3063
+
3064
+
2904
3065
  /***/ }),
2905
3066
 
2906
3067
  /***/ 1475: