jodit-pro 4.13.44 → 4.13.45

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 (335) hide show
  1. package/es2015/jodit.css +2 -2
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +8 -8
  4. package/es2015/jodit.js +19 -32
  5. package/es2015/jodit.min.js +4 -4
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  9. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  11. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  12. package/es2015/plugins/backup/backup.css +1 -1
  13. package/es2015/plugins/backup/backup.js +1 -1
  14. package/es2015/plugins/backup/backup.min.js +1 -1
  15. package/es2015/plugins/button-generator/button-generator.css +1 -1
  16. package/es2015/plugins/button-generator/button-generator.js +1 -1
  17. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  18. package/es2015/plugins/change-case/change-case.js +1 -1
  19. package/es2015/plugins/change-case/change-case.min.js +1 -1
  20. package/es2015/plugins/color-picker/color-picker.css +1 -1
  21. package/es2015/plugins/color-picker/color-picker.js +1 -1
  22. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  23. package/es2015/plugins/emoji/emoji.css +1 -1
  24. package/es2015/plugins/emoji/emoji.js +1 -1
  25. package/es2015/plugins/emoji/emoji.min.js +1 -1
  26. package/es2015/plugins/export-docs/export-docs.js +1 -1
  27. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  28. package/es2015/plugins/finder/finder.css +1 -1
  29. package/es2015/plugins/finder/finder.js +1 -1
  30. package/es2015/plugins/finder/finder.min.js +1 -1
  31. package/es2015/plugins/google-maps/google-maps.css +11 -1
  32. package/es2015/plugins/google-maps/google-maps.js +90 -16
  33. package/es2015/plugins/google-maps/google-maps.min.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.min.js +6 -6
  35. package/es2015/plugins/google-search/google-search.js +1 -1
  36. package/es2015/plugins/google-search/google-search.min.js +1 -1
  37. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  39. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  42. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  43. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  44. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  45. package/es2015/plugins/keyboard/keyboard.css +1 -1
  46. package/es2015/plugins/keyboard/keyboard.js +1 -1
  47. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  48. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  49. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  50. package/es2015/plugins/page-break/page-break.js +1 -1
  51. package/es2015/plugins/page-break/page-break.min.js +1 -1
  52. package/es2015/plugins/paste-code/paste-code.css +1 -1
  53. package/es2015/plugins/paste-code/paste-code.js +1 -1
  54. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  55. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  56. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  57. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  58. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  59. package/es2015/plugins/style/style.css +1 -1
  60. package/es2015/plugins/style/style.js +1 -1
  61. package/es2015/plugins/style/style.min.js +1 -1
  62. package/es2015/plugins/templates/templates.css +1 -1
  63. package/es2015/plugins/templates/templates.js +1 -1
  64. package/es2015/plugins/templates/templates.min.js +1 -1
  65. package/es2015/plugins/todo-list/todo-list.css +1 -1
  66. package/es2015/plugins/todo-list/todo-list.js +1 -1
  67. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  68. package/es2015/plugins/translate/translate.css +1 -1
  69. package/es2015/plugins/translate/translate.js +1 -1
  70. package/es2015/plugins/translate/translate.min.js +1 -1
  71. package/es2015/plugins/tune-block/tune-block.css +1 -1
  72. package/es2015/plugins/tune-block/tune-block.js +1 -1
  73. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  74. package/es2018/jodit.fat.min.css +1 -1
  75. package/es2018/jodit.fat.min.js +13 -13
  76. package/es2018/jodit.min.js +4 -4
  77. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  78. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  79. package/es2018/plugins/backup/backup.min.js +1 -1
  80. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  81. package/es2018/plugins/change-case/change-case.min.js +1 -1
  82. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  83. package/es2018/plugins/emoji/emoji.min.js +1 -1
  84. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  85. package/es2018/plugins/finder/finder.min.js +1 -1
  86. package/es2018/plugins/google-maps/google-maps.min.css +1 -1
  87. package/es2018/plugins/google-maps/google-maps.min.js +5 -5
  88. package/es2018/plugins/google-search/google-search.min.js +1 -1
  89. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  90. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  91. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  92. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  93. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  94. package/es2018/plugins/page-break/page-break.min.js +1 -1
  95. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  96. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  97. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  98. package/es2018/plugins/style/style.min.js +1 -1
  99. package/es2018/plugins/templates/templates.min.js +1 -1
  100. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  101. package/es2018/plugins/translate/translate.min.js +1 -1
  102. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  103. package/es2021/jodit.css +2 -2
  104. package/es2021/jodit.fat.min.css +1 -1
  105. package/es2021/jodit.fat.min.js +16 -16
  106. package/es2021/jodit.js +19 -32
  107. package/es2021/jodit.min.js +4 -4
  108. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  109. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  110. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  111. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  112. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  113. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  114. package/es2021/plugins/backup/backup.css +1 -1
  115. package/es2021/plugins/backup/backup.js +1 -1
  116. package/es2021/plugins/backup/backup.min.js +1 -1
  117. package/es2021/plugins/button-generator/button-generator.css +1 -1
  118. package/es2021/plugins/button-generator/button-generator.js +1 -1
  119. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  120. package/es2021/plugins/change-case/change-case.js +1 -1
  121. package/es2021/plugins/change-case/change-case.min.js +1 -1
  122. package/es2021/plugins/color-picker/color-picker.css +1 -1
  123. package/es2021/plugins/color-picker/color-picker.js +1 -1
  124. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  125. package/es2021/plugins/emoji/emoji.css +1 -1
  126. package/es2021/plugins/emoji/emoji.js +1 -1
  127. package/es2021/plugins/emoji/emoji.min.js +1 -1
  128. package/es2021/plugins/export-docs/export-docs.js +1 -1
  129. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  130. package/es2021/plugins/finder/finder.css +1 -1
  131. package/es2021/plugins/finder/finder.js +1 -1
  132. package/es2021/plugins/finder/finder.min.js +1 -1
  133. package/es2021/plugins/google-maps/google-maps.css +11 -1
  134. package/es2021/plugins/google-maps/google-maps.js +89 -15
  135. package/es2021/plugins/google-maps/google-maps.min.css +1 -1
  136. package/es2021/plugins/google-maps/google-maps.min.js +6 -6
  137. package/es2021/plugins/google-search/google-search.js +1 -1
  138. package/es2021/plugins/google-search/google-search.min.js +1 -1
  139. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  140. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  141. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  142. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  143. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  144. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  145. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  146. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  147. package/es2021/plugins/keyboard/keyboard.css +1 -1
  148. package/es2021/plugins/keyboard/keyboard.js +1 -1
  149. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  150. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  151. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  152. package/es2021/plugins/page-break/page-break.js +1 -1
  153. package/es2021/plugins/page-break/page-break.min.js +1 -1
  154. package/es2021/plugins/paste-code/paste-code.css +1 -1
  155. package/es2021/plugins/paste-code/paste-code.js +1 -1
  156. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  157. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  158. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  159. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  160. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  161. package/es2021/plugins/style/style.css +1 -1
  162. package/es2021/plugins/style/style.js +1 -1
  163. package/es2021/plugins/style/style.min.js +1 -1
  164. package/es2021/plugins/templates/templates.css +1 -1
  165. package/es2021/plugins/templates/templates.js +1 -1
  166. package/es2021/plugins/templates/templates.min.js +1 -1
  167. package/es2021/plugins/todo-list/todo-list.css +1 -1
  168. package/es2021/plugins/todo-list/todo-list.js +1 -1
  169. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  170. package/es2021/plugins/translate/translate.css +1 -1
  171. package/es2021/plugins/translate/translate.js +1 -1
  172. package/es2021/plugins/translate/translate.min.js +1 -1
  173. package/es2021/plugins/tune-block/tune-block.css +1 -1
  174. package/es2021/plugins/tune-block/tune-block.js +1 -1
  175. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  176. package/es2021.en/jodit.css +2 -2
  177. package/es2021.en/jodit.fat.min.css +1 -1
  178. package/es2021.en/jodit.fat.min.js +8 -8
  179. package/es2021.en/jodit.js +19 -32
  180. package/es2021.en/jodit.min.js +4 -4
  181. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  182. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  183. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  184. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  185. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  186. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  187. package/es2021.en/plugins/backup/backup.css +1 -1
  188. package/es2021.en/plugins/backup/backup.js +1 -1
  189. package/es2021.en/plugins/backup/backup.min.js +1 -1
  190. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  191. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  192. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  193. package/es2021.en/plugins/change-case/change-case.js +1 -1
  194. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  195. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  196. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  197. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  198. package/es2021.en/plugins/emoji/emoji.css +1 -1
  199. package/es2021.en/plugins/emoji/emoji.js +1 -1
  200. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  201. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  202. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  203. package/es2021.en/plugins/finder/finder.css +1 -1
  204. package/es2021.en/plugins/finder/finder.js +1 -1
  205. package/es2021.en/plugins/finder/finder.min.js +1 -1
  206. package/es2021.en/plugins/google-maps/google-maps.css +11 -1
  207. package/es2021.en/plugins/google-maps/google-maps.js +89 -15
  208. package/es2021.en/plugins/google-maps/google-maps.min.css +1 -1
  209. package/es2021.en/plugins/google-maps/google-maps.min.js +6 -6
  210. package/es2021.en/plugins/google-search/google-search.js +1 -1
  211. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  212. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  213. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  214. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  215. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  216. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  217. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  218. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  219. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  220. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  221. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  222. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  223. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  224. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  225. package/es2021.en/plugins/page-break/page-break.js +1 -1
  226. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  227. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  228. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  229. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  230. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  231. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  232. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  233. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  234. package/es2021.en/plugins/style/style.css +1 -1
  235. package/es2021.en/plugins/style/style.js +1 -1
  236. package/es2021.en/plugins/style/style.min.js +1 -1
  237. package/es2021.en/plugins/templates/templates.css +1 -1
  238. package/es2021.en/plugins/templates/templates.js +1 -1
  239. package/es2021.en/plugins/templates/templates.min.js +1 -1
  240. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  241. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  242. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  243. package/es2021.en/plugins/translate/translate.css +1 -1
  244. package/es2021.en/plugins/translate/translate.js +1 -1
  245. package/es2021.en/plugins/translate/translate.min.js +1 -1
  246. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  247. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  248. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  249. package/es5/jodit.css +3 -3
  250. package/es5/jodit.fat.min.css +1 -1
  251. package/es5/jodit.fat.min.js +2 -2
  252. package/es5/jodit.js +46 -32
  253. package/es5/jodit.min.css +2 -2
  254. package/es5/jodit.min.js +2 -2
  255. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  256. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  257. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  258. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  259. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  260. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  261. package/es5/plugins/backup/backup.css +1 -1
  262. package/es5/plugins/backup/backup.js +1 -1
  263. package/es5/plugins/backup/backup.min.js +1 -1
  264. package/es5/plugins/button-generator/button-generator.css +1 -1
  265. package/es5/plugins/button-generator/button-generator.js +1 -1
  266. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  267. package/es5/plugins/change-case/change-case.js +1 -1
  268. package/es5/plugins/change-case/change-case.min.js +1 -1
  269. package/es5/plugins/color-picker/color-picker.css +1 -1
  270. package/es5/plugins/color-picker/color-picker.js +1 -1
  271. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  272. package/es5/plugins/emoji/emoji.css +1 -1
  273. package/es5/plugins/emoji/emoji.js +1 -1
  274. package/es5/plugins/emoji/emoji.min.js +1 -1
  275. package/es5/plugins/export-docs/export-docs.js +1 -1
  276. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  277. package/es5/plugins/finder/finder.css +1 -1
  278. package/es5/plugins/finder/finder.js +1 -1
  279. package/es5/plugins/finder/finder.min.js +1 -1
  280. package/es5/plugins/google-maps/google-maps.css +11 -1
  281. package/es5/plugins/google-maps/google-maps.js +101 -16
  282. package/es5/plugins/google-maps/google-maps.min.css +1 -1
  283. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  284. package/es5/plugins/google-search/google-search.js +1 -1
  285. package/es5/plugins/google-search/google-search.min.js +1 -1
  286. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  287. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  288. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  289. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  290. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  291. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  292. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  293. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  294. package/es5/plugins/keyboard/keyboard.css +1 -1
  295. package/es5/plugins/keyboard/keyboard.js +1 -1
  296. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  297. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  298. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  299. package/es5/plugins/page-break/page-break.js +1 -1
  300. package/es5/plugins/page-break/page-break.min.js +1 -1
  301. package/es5/plugins/paste-code/paste-code.css +1 -1
  302. package/es5/plugins/paste-code/paste-code.js +1 -1
  303. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  304. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  305. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  306. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  307. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  308. package/es5/plugins/style/style.css +1 -1
  309. package/es5/plugins/style/style.js +1 -1
  310. package/es5/plugins/style/style.min.js +1 -1
  311. package/es5/plugins/templates/templates.css +1 -1
  312. package/es5/plugins/templates/templates.js +1 -1
  313. package/es5/plugins/templates/templates.min.js +1 -1
  314. package/es5/plugins/todo-list/todo-list.css +1 -1
  315. package/es5/plugins/todo-list/todo-list.js +1 -1
  316. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  317. package/es5/plugins/translate/translate.css +1 -1
  318. package/es5/plugins/translate/translate.js +1 -1
  319. package/es5/plugins/translate/translate.min.js +1 -1
  320. package/es5/plugins/tune-block/tune-block.css +1 -1
  321. package/es5/plugins/tune-block/tune-block.js +1 -1
  322. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  323. package/es5/polyfills.fat.min.js +1 -1
  324. package/es5/polyfills.js +1 -1
  325. package/es5/polyfills.min.js +1 -1
  326. package/esm/plugins/google-maps/config.js +1 -1
  327. package/esm/plugins/google-maps/google-maps.js +1 -1
  328. package/esm/plugins/google-maps/helpers/helpers.d.ts +8 -0
  329. package/esm/plugins/google-maps/helpers/helpers.js +1 -1
  330. package/esm/plugins/google-maps/ui/map/map.d.ts +6 -0
  331. package/esm/plugins/google-maps/ui/map/map.js +2 -2
  332. package/esm/plugins/google-maps/ui/map/modules/drawing-controller.js +1 -1
  333. package/package.json +1 -1
  334. package/types/plugins/google-maps/helpers/helpers.d.ts +8 -0
  335. package/types/plugins/google-maps/ui/map/map.d.ts +6 -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.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -11,6 +11,7 @@
11
11
  flex-direction: column;
12
12
  margin-bottom: var(--jd-padding-default);
13
13
  position: relative;
14
+ line-height: normal;
14
15
  }
15
16
  .jodit-ui-combo-box__input {
16
17
  font-family: var(--jd-font-default);
@@ -319,6 +320,15 @@
319
320
  .jodit-ui-map__map-root {
320
321
  height: 100%;
321
322
  }
323
+ .jodit-ui-map__error {
324
+ display: flex;
325
+ height: 100%;
326
+ padding: 20px;
327
+ align-items: center;
328
+ justify-content: center;
329
+ color: #7a7a7a;
330
+ text-align: center;
331
+ }
322
332
  .jodit-ui-map__map-size {
323
333
  position: absolute;
324
334
  top: 50%;
@@ -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.44
4
+ * Version: v4.13.45
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1704,6 +1704,8 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.googleMa
1704
1704
  const gmButton = (name)=>({
1705
1705
  icon: `edit-${name}`,
1706
1706
  isActive: (editor)=>editor.buffer.get('createMode.gm') === name,
1707
+ // Drawing needs a working map — see `failed.gm`
1708
+ isDisabled: (editor)=>name !== 'hand' && Boolean(editor.buffer.get('failed.gm')),
1707
1709
  exec: (editor)=>{
1708
1710
  editor.e.fire('changeCreateMode.gm', name);
1709
1711
  }
@@ -1771,6 +1773,7 @@ __webpack_require__.r(__webpack_exports__);
1771
1773
 
1772
1774
  // @ts-ignore
1773
1775
  window['JoditGoogleReadyHandler'] = _helpers_helpers__WEBPACK_IMPORTED_MODULE_6__.GoogleReadyHandler;
1776
+ window['gm_authFailure'] = _helpers_helpers__WEBPACK_IMPORTED_MODULE_6__.GoogleAuthFailureHandler;
1774
1777
  class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_13__.Plugin {
1775
1778
  className() {
1776
1779
  return 'google-maps';
@@ -2166,14 +2169,17 @@ function generateStaticElements(uiMap) {
2166
2169
 
2167
2170
  "use strict";
2168
2171
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2172
+ /* harmony export */ GoogleAuthFailureHandler: function() { return /* binding */ GoogleAuthFailureHandler; },
2169
2173
  /* harmony export */ GoogleReadyHandler: function() { return /* binding */ GoogleReadyHandler; },
2170
2174
  /* harmony export */ arrayToPath: function() { return /* binding */ arrayToPath; },
2175
+ /* harmony export */ googleAuthFailure: function() { return /* binding */ googleAuthFailure; },
2171
2176
  /* harmony export */ googleReady: function() { return /* binding */ googleReady; },
2172
2177
  /* harmony export */ isApiAvailable: function() { return /* binding */ isApiAvailable; },
2178
+ /* harmony export */ isApiFailed: function() { return /* binding */ isApiFailed; },
2173
2179
  /* harmony export */ pathToArray: function() { return /* binding */ pathToArray; },
2174
2180
  /* harmony export */ specialColor: function() { return /* binding */ specialColor; }
2175
2181
  /* harmony export */ });
2176
- /* unused harmony exports jdGoogleMapsAlreadyLoaded, jdGoogleMapsOnloadHandlers */
2182
+ /* unused harmony exports jdGoogleMapsAlreadyLoaded, jdGoogleMapsOnloadHandlers, jdGoogleMapsAuthFailed */
2177
2183
  /*!
2178
2184
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
2179
2185
  * See LICENSE.md in the project root for license information.
@@ -2193,6 +2199,25 @@ function GoogleReadyHandler() {
2193
2199
  jdGoogleMapsOnloadHandlers.forEach((callback)=>callback());
2194
2200
  }
2195
2201
  }
2202
+ let jdGoogleMapsAuthFailed = false;
2203
+ const jdGoogleMapsAuthFailureHandlers = [];
2204
+ /**
2205
+ * Google calls `gm_authFailure` when the key or the HTTP referrer is not
2206
+ * authorized: the API is loaded, but every map instance is dead
2207
+ */ function GoogleAuthFailureHandler() {
2208
+ jdGoogleMapsAuthFailed = true;
2209
+ jdGoogleMapsAuthFailureHandlers.forEach((callback)=>callback());
2210
+ }
2211
+ function googleAuthFailure(callback) {
2212
+ if (jdGoogleMapsAuthFailed) {
2213
+ callback();
2214
+ } else {
2215
+ jdGoogleMapsAuthFailureHandlers.push(callback);
2216
+ }
2217
+ }
2218
+ function isApiFailed() {
2219
+ return jdGoogleMapsAuthFailed;
2220
+ }
2196
2221
  function arrayToPath(array, likePlainObject = false) {
2197
2222
  const path = [];
2198
2223
  if (Array.isArray(array)) {
@@ -2569,6 +2594,7 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__de
2569
2594
  /* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(67510);
2570
2595
  /* harmony import */ var jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(11676);
2571
2596
  /* harmony import */ var jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(17298);
2597
+ /* harmony import */ var jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(67912);
2572
2598
  /*!
2573
2599
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
2574
2600
  * See LICENSE.md in the project root for license information.
@@ -2590,6 +2616,7 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__de
2590
2616
 
2591
2617
 
2592
2618
 
2619
+
2593
2620
  class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__.UIGroup {
2594
2621
  className() {
2595
2622
  return 'UIMap';
@@ -2604,14 +2631,31 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__.UIGroup {
2604
2631
  await this.apiLoaded;
2605
2632
  const container = this.getElm('map-root');
2606
2633
  (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__.assert)(container != null, 'map-root element does not exists');
2607
- this.map = new google.maps.Map(container, {
2608
- center: {
2609
- lat: this.state.center[0],
2610
- lng: this.state.center[1]
2611
- },
2612
- zoom: this.state.zoom,
2613
- mapTypeId: this.state.type
2614
- });
2634
+ // Once Google has reported an authorization failure every further
2635
+ // map is dead on arrival, and constructing one makes the API throw
2636
+ // from inside its own promise — which no try/catch of ours can
2637
+ // intercept. Show the failed state instead of building it
2638
+ if ((0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_16__.isApiFailed)()) {
2639
+ this.markAsFailed();
2640
+ return;
2641
+ }
2642
+ try {
2643
+ this.map = new google.maps.Map(container, {
2644
+ center: {
2645
+ lat: this.state.center[0],
2646
+ lng: this.state.center[1]
2647
+ },
2648
+ zoom: this.state.zoom,
2649
+ mapTypeId: this.state.type
2650
+ });
2651
+ } catch (error) {
2652
+ // The API is loaded but unusable — an unauthorized key or
2653
+ // referrer leaves google.maps in a broken state. Keep the
2654
+ // dialog alive with the drawing tools switched off instead
2655
+ // of throwing out of an event handler
2656
+ this.markAsFailed();
2657
+ return;
2658
+ }
2615
2659
  this.map.addListener('zoom_changed', ()=>{
2616
2660
  this.state.zoom = this.map.getZoom() ?? 10;
2617
2661
  });
@@ -2627,6 +2671,11 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__.UIGroup {
2627
2671
  this.state.type = type;
2628
2672
  }
2629
2673
  });
2674
+ (0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_16__.googleAuthFailure)(()=>{
2675
+ if (!this.isInDestruct) {
2676
+ this.markAsFailed();
2677
+ }
2678
+ });
2630
2679
  this.initDrawingController();
2631
2680
  this.onChangeElementsList();
2632
2681
  this.onChangeSize();
@@ -2639,6 +2688,21 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__.UIGroup {
2639
2688
  this.j.e.fire(this, 'GoogleMapsIsReady');
2640
2689
  });
2641
2690
  }
2691
+ /**
2692
+ * Google Maps could not start: disable everything that needs a live
2693
+ * map, so the toolbar tools do not act on a broken instance
2694
+ */ markAsFailed() {
2695
+ this.failed = true;
2696
+ this.state.mode = 'hand';
2697
+ this.j.buffer.set('failed.gm', true);
2698
+ const container = this.getElm('map-root');
2699
+ if (container && !container.firstChild) {
2700
+ container.appendChild(this.j.c.div(this.getFullElName('error'), this.j.i18n('Google Maps could not be loaded. Check the API key and the list of allowed HTTP referrers.')));
2701
+ }
2702
+ // Straight to the collection: the `updateToolbar` event is debounced
2703
+ this.toolbar.update();
2704
+ this.j.e.fire(this, 'GoogleMapsIsFailed');
2705
+ }
2642
2706
  initDrawingController() {
2643
2707
  this.drawing = new _modules_drawing_controller__WEBPACK_IMPORTED_MODULE_4__.DrawingController(this.map, this.options.googleMaps.map.defaultStates, (overlay)=>{
2644
2708
  _modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_3__.addNewInState.call(this, overlay);
@@ -2646,6 +2710,9 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__.UIGroup {
2646
2710
  });
2647
2711
  }
2648
2712
  changeCreateMode(mode) {
2713
+ if (this.failed) {
2714
+ return;
2715
+ }
2649
2716
  this.state.mode = this.state.mode === mode ? 'hand' : mode;
2650
2717
  }
2651
2718
  onChangeMode() {
@@ -2719,7 +2786,12 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__.UIGroup {
2719
2786
  this.layers.forEach((layer)=>layer.setMap(this.map));
2720
2787
  }
2721
2788
  destruct() {
2722
- this.drawing?.destruct();
2789
+ // Never let a broken map keep the dialog from closing
2790
+ try {
2791
+ this.drawing?.destruct();
2792
+ } catch {}
2793
+ this.drawing = undefined;
2794
+ this.j.buffer.set('failed.gm', false);
2723
2795
  return super.destruct();
2724
2796
  }
2725
2797
  render() {
@@ -2731,7 +2803,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__.UIGroup {
2731
2803
  }
2732
2804
  appendChildToContainer() {}
2733
2805
  constructor(jodit, state, options){
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 = {
2806
+ 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, "failed", 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
2807
  uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_10__.uniqueUid)() + new Date().toString().replace(/[^0-9]/g, ''),
2736
2808
  layer: this.options.googleMaps.map.layer,
2737
2809
  center: this.options.googleMaps.map.defaultCenter,
@@ -2748,7 +2820,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_13__.UIGroup {
2748
2820
  },
2749
2821
  mode: 'hand',
2750
2822
  elements: []
2751
- }, this.mapElements = [], this.apiLoaded = null, this.mapInitialized = false, this.layers = [];
2823
+ }, this.mapElements = [], this.apiLoaded = null, this.mapInitialized = false, this.failed = false, this.layers = [];
2752
2824
  Object.assign(this.state, state);
2753
2825
  this.toolbar.build([
2754
2826
  'gm.hand',
@@ -2941,14 +3013,16 @@ function isDrawableMode(mode) {
2941
3013
  this.mode = null;
2942
3014
  }
2943
3015
  bind() {
3016
+ // A map whose API failed to authorize returns nothing from
3017
+ // addListener, so keep only real listeners
2944
3018
  this.listeners = [
2945
3019
  this.map.addListener('click', (e)=>this.onClick(e)),
2946
3020
  this.map.addListener('mousemove', (e)=>this.onMove(e)),
2947
3021
  this.map.addListener('dblclick', ()=>this.onDblClick())
2948
- ];
3022
+ ].filter(Boolean);
2949
3023
  }
2950
3024
  unbind() {
2951
- this.listeners.forEach((listener)=>listener.remove());
3025
+ this.listeners.forEach((listener)=>listener?.remove());
2952
3026
  this.listeners = [];
2953
3027
  }
2954
3028
  onClick(e) {
@@ -1 +1 @@
1
- .jodit-ui-combo-box{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default);position:relative}.jodit-ui-combo-box__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-combo-box__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-combo-box__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-combo-box__input:focus{outline:0}.jodit-ui-combo-box_theme_dark .jodit-ui-combo-box__input{background-color:var(--jd-color-gray)}.jodit-ui-combo-box_has-error_true .jodit-ui-combo-box__input{border-color:var(--jd-color-red)}.jodit-ui-combo-box__error,.jodit-ui-combo-box__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-combo-box__error,.jodit-ui-combo-box_has-error_true .jodit-ui-combo-box__label{color:var(--jd-color-error)}.jodit-ui-combo-box__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-combo-box__wrapper{min-width:140px}}.jodit-ui-combo-box_theme_dark .jodit-ui-combo-box__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-combo-box_focused_true .jodit-ui-combo-box__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-combo-box__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-combo-box__icon:not(:empty) svg{fill:var(--jd-color-border);height:16px;width:16px}.jodit-ui-combo-box__icon:not(:empty)+.jodit-ui-combo-box__input{padding-left:0}.jodit-ui-combo-box__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-combo-box__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-combo-box__clear svg{fill:var(--jd-color-border);height:12px;width:12px}.jodit-ui-combo-box_theme_dark .jodit-ui-combo-box__clear svg,.jodit-ui-combo-box_theme_dark .jodit-ui-combo-box__icon svg{fill:var(--jd-color-dark)}.jodit-ui-combo-box_in-header_true{justify-self:flex-end;margin:0;width:400px}@media (max-width:480px){.jodit-ui-combo-box_in-header_true{width:270px}}.pac-container{z-index:1000000000}.jodit-ui-wysiwyg__label{color:var(--jd-color-label);padding-bottom:2px}.jodit-ui-range{user-select:none}.jodit-ui-range__slider{background:#1e87f0;height:2px;margin:var(--jd-padding-default) 7px;position:relative;z-index:1}.jodit-ui-range__slider:after,.jodit-ui-range__slider:before{background:#1e87f0;content:"";height:2px;left:-6px;position:absolute;top:0;width:7px}.jodit-ui-range__slider:after{left:auto;right:-6px}.jodit-ui-range__handle{background:#28a5f5;border:1px solid #ccc;border-radius:50%;cursor:ew-resize;height:12px;position:absolute;top:-5px;transform:translateX(-50%);width:12px;z-index:2}.jodit-ui-range__handle:active{transform:translateX(-50%) scale(1.1)}.jodit-ui-range__label{color:var(--jd-color-label);display:flex;font-size:.8em;justify-content:space-between}.jodit-ui-range__log{color:#7f7272;font-weight:700}.jodit-ui-range_log_false .jodit-ui-range__log{display:none}.jodit-color-input{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-color-input__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-color-input__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-color-input__input_has-error_true{border-color:var(--jd-color-red)}.jodit-color-input__input:focus{outline:0}.jodit-color-input_theme_dark .jodit-color-input__input{background-color:var(--jd-color-gray)}.jodit-color-input_has-error_true .jodit-color-input__input{border-color:var(--jd-color-red)}.jodit-color-input__error,.jodit-color-input__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-color-input__error,.jodit-color-input_has-error_true .jodit-color-input__label{color:var(--jd-color-error)}.jodit-color-input__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-color-input__wrapper{min-width:140px}}.jodit-color-input_theme_dark .jodit-color-input__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-color-input_focused_true .jodit-color-input__wrapper{border-color:var(--jd-color-border-selected)}.jodit-color-input__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-color-input__icon:not(:empty) svg{fill:var(--jd-color-border);height:16px;width:16px}.jodit-color-input__icon:not(:empty)+.jodit-color-input__input{padding-left:0}.jodit-color-input__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-color-input__clear:active{opacity:1;transform:scale(1.1)}.jodit-color-input__clear svg{fill:var(--jd-color-border);height:12px;width:12px}.jodit-color-input_theme_dark .jodit-color-input__clear svg,.jodit-color-input_theme_dark .jodit-color-input__icon svg{fill:var(--jd-color-dark)}.jodit-color-input__trigger{background-color:var(--jd-color-panel);border:1px solid var(--jd-color-border);border-left:0;border-radius:0;box-sizing:content-box;height:calc(var(--jd-input-height) - 2px);width:var(--jd-input-height)}.jodit-color-input_slim_true .jodit-color-input__input,.jodit-color-input_slim_true .jodit-color-input__wrapper{color:transparent;height:24px;min-width:auto;width:24px}.jodit-color-input_slim_true .jodit-color-input__trigger,.jodit-color-input_trigger_false .jodit-color-input__trigger{display:none}:root{--jd-color-map-bounding-box:rgba(99,170,241,.5)}.jodit-ui-map{background-color:#f6f6f6;height:100%;position:relative}.jodit-ui-map__map-root{height:100%}.jodit-ui-map__map-size{border:1px dotted var(--jd-color-map-bounding-box);left:50%;pointer-events:none;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.jodit-ui-map__map-size:after,.jodit-ui-map__map-size:before{background-color:var(--jd-color-map-bounding-box);content:"";display:block;height:30px;left:50%;position:absolute;top:50%;transform:translateY(-50%);width:1px}.jodit-ui-map__map-size:before{height:1px;transform:translateX(-50%);width:30px}.jodit-ui-map_info-opened_true .jodit-ui-map__map-size{display:none}.jodit-ui-map__map-palette{background-color:#fff;left:50%;position:absolute;top:5px;transform:translateX(-50%)}.jodit-ui-map__map-palette .jodit-ui-group{flex-wrap:nowrap}.jodit-ui-maps-controls-form,.jodit-ui-maps-props-form{padding:16px;width:300px}.jodit-google-maps .jodit-tabs{display:flex;flex-direction:column;height:100%}.jodit-google-maps .jodit-tabs__wrapper{flex:1}.jodit-google-maps .jodit-tabs__wrapper .jodit-tab{height:100%}@media (max-width:480px){.jodit-google-maps .jodit-dialog__header{flex-direction:row}}
1
+ .jodit-ui-combo-box{display:flex;flex-direction:column;line-height:normal;margin-bottom:var(--jd-padding-default);position:relative}.jodit-ui-combo-box__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-combo-box__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-combo-box__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-combo-box__input:focus{outline:0}.jodit-ui-combo-box_theme_dark .jodit-ui-combo-box__input{background-color:var(--jd-color-gray)}.jodit-ui-combo-box_has-error_true .jodit-ui-combo-box__input{border-color:var(--jd-color-red)}.jodit-ui-combo-box__error,.jodit-ui-combo-box__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-combo-box__error,.jodit-ui-combo-box_has-error_true .jodit-ui-combo-box__label{color:var(--jd-color-error)}.jodit-ui-combo-box__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-combo-box__wrapper{min-width:140px}}.jodit-ui-combo-box_theme_dark .jodit-ui-combo-box__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-combo-box_focused_true .jodit-ui-combo-box__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-combo-box__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-combo-box__icon:not(:empty) svg{fill:var(--jd-color-border);height:16px;width:16px}.jodit-ui-combo-box__icon:not(:empty)+.jodit-ui-combo-box__input{padding-left:0}.jodit-ui-combo-box__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-combo-box__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-combo-box__clear svg{fill:var(--jd-color-border);height:12px;width:12px}.jodit-ui-combo-box_theme_dark .jodit-ui-combo-box__clear svg,.jodit-ui-combo-box_theme_dark .jodit-ui-combo-box__icon svg{fill:var(--jd-color-dark)}.jodit-ui-combo-box_in-header_true{justify-self:flex-end;margin:0;width:400px}@media (max-width:480px){.jodit-ui-combo-box_in-header_true{width:270px}}.pac-container{z-index:1000000000}.jodit-ui-wysiwyg__label{color:var(--jd-color-label);padding-bottom:2px}.jodit-ui-range{user-select:none}.jodit-ui-range__slider{background:#1e87f0;height:2px;margin:var(--jd-padding-default) 7px;position:relative;z-index:1}.jodit-ui-range__slider:after,.jodit-ui-range__slider:before{background:#1e87f0;content:"";height:2px;left:-6px;position:absolute;top:0;width:7px}.jodit-ui-range__slider:after{left:auto;right:-6px}.jodit-ui-range__handle{background:#28a5f5;border:1px solid #ccc;border-radius:50%;cursor:ew-resize;height:12px;position:absolute;top:-5px;transform:translateX(-50%);width:12px;z-index:2}.jodit-ui-range__handle:active{transform:translateX(-50%) scale(1.1)}.jodit-ui-range__label{color:var(--jd-color-label);display:flex;font-size:.8em;justify-content:space-between}.jodit-ui-range__log{color:#7f7272;font-weight:700}.jodit-ui-range_log_false .jodit-ui-range__log{display:none}.jodit-color-input{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-color-input__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-color-input__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-color-input__input_has-error_true{border-color:var(--jd-color-red)}.jodit-color-input__input:focus{outline:0}.jodit-color-input_theme_dark .jodit-color-input__input{background-color:var(--jd-color-gray)}.jodit-color-input_has-error_true .jodit-color-input__input{border-color:var(--jd-color-red)}.jodit-color-input__error,.jodit-color-input__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-color-input__error,.jodit-color-input_has-error_true .jodit-color-input__label{color:var(--jd-color-error)}.jodit-color-input__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-color-input__wrapper{min-width:140px}}.jodit-color-input_theme_dark .jodit-color-input__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-color-input_focused_true .jodit-color-input__wrapper{border-color:var(--jd-color-border-selected)}.jodit-color-input__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-color-input__icon:not(:empty) svg{fill:var(--jd-color-border);height:16px;width:16px}.jodit-color-input__icon:not(:empty)+.jodit-color-input__input{padding-left:0}.jodit-color-input__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-color-input__clear:active{opacity:1;transform:scale(1.1)}.jodit-color-input__clear svg{fill:var(--jd-color-border);height:12px;width:12px}.jodit-color-input_theme_dark .jodit-color-input__clear svg,.jodit-color-input_theme_dark .jodit-color-input__icon svg{fill:var(--jd-color-dark)}.jodit-color-input__trigger{background-color:var(--jd-color-panel);border:1px solid var(--jd-color-border);border-left:0;border-radius:0;box-sizing:content-box;height:calc(var(--jd-input-height) - 2px);width:var(--jd-input-height)}.jodit-color-input_slim_true .jodit-color-input__input,.jodit-color-input_slim_true .jodit-color-input__wrapper{color:transparent;height:24px;min-width:auto;width:24px}.jodit-color-input_slim_true .jodit-color-input__trigger,.jodit-color-input_trigger_false .jodit-color-input__trigger{display:none}:root{--jd-color-map-bounding-box:rgba(99,170,241,.5)}.jodit-ui-map{background-color:#f6f6f6;height:100%;position:relative}.jodit-ui-map__map-root{height:100%}.jodit-ui-map__error{align-items:center;color:#7a7a7a;display:flex;height:100%;justify-content:center;padding:20px;text-align:center}.jodit-ui-map__map-size{border:1px dotted var(--jd-color-map-bounding-box);left:50%;pointer-events:none;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.jodit-ui-map__map-size:after,.jodit-ui-map__map-size:before{background-color:var(--jd-color-map-bounding-box);content:"";display:block;height:30px;left:50%;position:absolute;top:50%;transform:translateY(-50%);width:1px}.jodit-ui-map__map-size:before{height:1px;transform:translateX(-50%);width:30px}.jodit-ui-map_info-opened_true .jodit-ui-map__map-size{display:none}.jodit-ui-map__map-palette{background-color:#fff;left:50%;position:absolute;top:5px;transform:translateX(-50%)}.jodit-ui-map__map-palette .jodit-ui-group{flex-wrap:nowrap}.jodit-ui-maps-controls-form,.jodit-ui-maps-props-form{padding:16px;width:300px}.jodit-google-maps .jodit-tabs{display:flex;flex-direction:column;height:100%}.jodit-google-maps .jodit-tabs__wrapper{flex:1}.jodit-google-maps .jodit-tabs__wrapper .jodit-tab{height:100%}@media (max-width:480px){.jodit-google-maps .jodit-dialog__header{flex-direction:row}}