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
  */
@@ -1708,6 +1708,8 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.googleMa
1708
1708
  const gmButton = (name)=>({
1709
1709
  icon: `edit-${name}`,
1710
1710
  isActive: (editor)=>editor.buffer.get('createMode.gm') === name,
1711
+ // Drawing needs a working map — see `failed.gm`
1712
+ isDisabled: (editor)=>name !== 'hand' && Boolean(editor.buffer.get('failed.gm')),
1711
1713
  exec: (editor)=>{
1712
1714
  editor.e.fire('changeCreateMode.gm', name);
1713
1715
  }
@@ -1779,6 +1781,7 @@ __webpack_require__.r(__webpack_exports__);
1779
1781
 
1780
1782
  // @ts-ignore
1781
1783
  window['JoditGoogleReadyHandler'] = _helpers_helpers__WEBPACK_IMPORTED_MODULE_8__.GoogleReadyHandler;
1784
+ window['gm_authFailure'] = _helpers_helpers__WEBPACK_IMPORTED_MODULE_8__.GoogleAuthFailureHandler;
1782
1785
  class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_15__.Plugin {
1783
1786
  className() {
1784
1787
  return 'google-maps';
@@ -2180,14 +2183,17 @@ function generateStaticElements(uiMap) {
2180
2183
 
2181
2184
  "use strict";
2182
2185
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2186
+ /* harmony export */ GoogleAuthFailureHandler: function() { return /* binding */ GoogleAuthFailureHandler; },
2183
2187
  /* harmony export */ GoogleReadyHandler: function() { return /* binding */ GoogleReadyHandler; },
2184
2188
  /* harmony export */ arrayToPath: function() { return /* binding */ arrayToPath; },
2189
+ /* harmony export */ googleAuthFailure: function() { return /* binding */ googleAuthFailure; },
2185
2190
  /* harmony export */ googleReady: function() { return /* binding */ googleReady; },
2186
2191
  /* harmony export */ isApiAvailable: function() { return /* binding */ isApiAvailable; },
2192
+ /* harmony export */ isApiFailed: function() { return /* binding */ isApiFailed; },
2187
2193
  /* harmony export */ pathToArray: function() { return /* binding */ pathToArray; },
2188
2194
  /* harmony export */ specialColor: function() { return /* binding */ specialColor; }
2189
2195
  /* harmony export */ });
2190
- /* unused harmony exports jdGoogleMapsAlreadyLoaded, jdGoogleMapsOnloadHandlers */
2196
+ /* unused harmony exports jdGoogleMapsAlreadyLoaded, jdGoogleMapsOnloadHandlers, jdGoogleMapsAuthFailed */
2191
2197
  /*!
2192
2198
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
2193
2199
  * See LICENSE.md in the project root for license information.
@@ -2207,6 +2213,25 @@ function GoogleReadyHandler() {
2207
2213
  jdGoogleMapsOnloadHandlers.forEach((callback)=>callback());
2208
2214
  }
2209
2215
  }
2216
+ let jdGoogleMapsAuthFailed = false;
2217
+ const jdGoogleMapsAuthFailureHandlers = [];
2218
+ /**
2219
+ * Google calls `gm_authFailure` when the key or the HTTP referrer is not
2220
+ * authorized: the API is loaded, but every map instance is dead
2221
+ */ function GoogleAuthFailureHandler() {
2222
+ jdGoogleMapsAuthFailed = true;
2223
+ jdGoogleMapsAuthFailureHandlers.forEach((callback)=>callback());
2224
+ }
2225
+ function googleAuthFailure(callback) {
2226
+ if (jdGoogleMapsAuthFailed) {
2227
+ callback();
2228
+ } else {
2229
+ jdGoogleMapsAuthFailureHandlers.push(callback);
2230
+ }
2231
+ }
2232
+ function isApiFailed() {
2233
+ return jdGoogleMapsAuthFailed;
2234
+ }
2210
2235
  function arrayToPath(array, likePlainObject = false) {
2211
2236
  const path = [];
2212
2237
  if (Array.isArray(array)) {
@@ -2594,6 +2619,7 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__de
2594
2619
  /* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(67510);
2595
2620
  /* harmony import */ var jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(11676);
2596
2621
  /* harmony import */ var jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(17298);
2622
+ /* harmony import */ var jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(67912);
2597
2623
  /*!
2598
2624
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
2599
2625
  * See LICENSE.md in the project root for license information.
@@ -2618,6 +2644,7 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__de
2618
2644
 
2619
2645
 
2620
2646
 
2647
+
2621
2648
  class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_16__.UIGroup {
2622
2649
  className() {
2623
2650
  return 'UIMap';
@@ -2632,14 +2659,31 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_16__.UIGroup {
2632
2659
  yield this.apiLoaded;
2633
2660
  const container = this.getElm('map-root');
2634
2661
  (0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_14__.assert)(container != null, 'map-root element does not exists');
2635
- this.map = new google.maps.Map(container, {
2636
- center: {
2637
- lat: this.state.center[0],
2638
- lng: this.state.center[1]
2639
- },
2640
- zoom: this.state.zoom,
2641
- mapTypeId: this.state.type
2642
- });
2662
+ // Once Google has reported an authorization failure every further
2663
+ // map is dead on arrival, and constructing one makes the API throw
2664
+ // from inside its own promise — which no try/catch of ours can
2665
+ // intercept. Show the failed state instead of building it
2666
+ if ((0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_19__.isApiFailed)()) {
2667
+ this.markAsFailed();
2668
+ return;
2669
+ }
2670
+ try {
2671
+ this.map = new google.maps.Map(container, {
2672
+ center: {
2673
+ lat: this.state.center[0],
2674
+ lng: this.state.center[1]
2675
+ },
2676
+ zoom: this.state.zoom,
2677
+ mapTypeId: this.state.type
2678
+ });
2679
+ } catch (error) {
2680
+ // The API is loaded but unusable — an unauthorized key or
2681
+ // referrer leaves google.maps in a broken state. Keep the
2682
+ // dialog alive with the drawing tools switched off instead
2683
+ // of throwing out of an event handler
2684
+ this.markAsFailed();
2685
+ return;
2686
+ }
2643
2687
  this.map.addListener('zoom_changed', ()=>{
2644
2688
  var _this_map_getZoom;
2645
2689
  this.state.zoom = (_this_map_getZoom = this.map.getZoom()) !== null && _this_map_getZoom !== void 0 ? _this_map_getZoom : 10;
@@ -2658,6 +2702,11 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_16__.UIGroup {
2658
2702
  this.state.type = type;
2659
2703
  }
2660
2704
  });
2705
+ (0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_19__.googleAuthFailure)(()=>{
2706
+ if (!this.isInDestruct) {
2707
+ this.markAsFailed();
2708
+ }
2709
+ });
2661
2710
  this.initDrawingController();
2662
2711
  this.onChangeElementsList();
2663
2712
  this.onChangeSize();
@@ -2671,6 +2720,21 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_16__.UIGroup {
2671
2720
  });
2672
2721
  }).call(this);
2673
2722
  }
2723
+ /**
2724
+ * Google Maps could not start: disable everything that needs a live
2725
+ * map, so the toolbar tools do not act on a broken instance
2726
+ */ markAsFailed() {
2727
+ this.failed = true;
2728
+ this.state.mode = 'hand';
2729
+ this.j.buffer.set('failed.gm', true);
2730
+ const container = this.getElm('map-root');
2731
+ if (container && !container.firstChild) {
2732
+ 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.')));
2733
+ }
2734
+ // Straight to the collection: the `updateToolbar` event is debounced
2735
+ this.toolbar.update();
2736
+ this.j.e.fire(this, 'GoogleMapsIsFailed');
2737
+ }
2674
2738
  initDrawingController() {
2675
2739
  this.drawing = new _modules_drawing_controller__WEBPACK_IMPORTED_MODULE_7__.DrawingController(this.map, this.options.googleMaps.map.defaultStates, (overlay)=>{
2676
2740
  _modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_6__.addNewInState.call(this, overlay);
@@ -2678,6 +2742,9 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_16__.UIGroup {
2678
2742
  });
2679
2743
  }
2680
2744
  changeCreateMode(mode) {
2745
+ if (this.failed) {
2746
+ return;
2747
+ }
2681
2748
  this.state.mode = this.state.mode === mode ? 'hand' : mode;
2682
2749
  }
2683
2750
  onChangeMode() {
@@ -2754,8 +2821,13 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_16__.UIGroup {
2754
2821
  this.layers.forEach((layer)=>layer.setMap(this.map));
2755
2822
  }
2756
2823
  destruct() {
2757
- var _this_drawing;
2758
- (_this_drawing = this.drawing) === null || _this_drawing === void 0 ? void 0 : _this_drawing.destruct();
2824
+ // Never let a broken map keep the dialog from closing
2825
+ try {
2826
+ var _this_drawing;
2827
+ (_this_drawing = this.drawing) === null || _this_drawing === void 0 ? void 0 : _this_drawing.destruct();
2828
+ } catch (unused) {}
2829
+ this.drawing = undefined;
2830
+ this.j.buffer.set('failed.gm', false);
2759
2831
  return super.destruct();
2760
2832
  }
2761
2833
  render() {
@@ -2767,7 +2839,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_16__.UIGroup {
2767
2839
  }
2768
2840
  appendChildToContainer() {}
2769
2841
  constructor(jodit, state, options){
2770
- super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "drawing", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "toolbar", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "mapElements", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "apiLoaded", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "mapInitialized", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "map", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "layers", void 0), this.options = options, this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_17__.ToolbarCollection(this.jodit), this.state = {
2842
+ super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "drawing", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "toolbar", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "mapElements", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "apiLoaded", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "mapInitialized", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "failed", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "map", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_1__._)(this, "layers", void 0), this.options = options, this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_17__.ToolbarCollection(this.jodit), this.state = {
2771
2843
  uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_13__.uniqueUid)() + new Date().toString().replace(/[^0-9]/g, ''),
2772
2844
  layer: this.options.googleMaps.map.layer,
2773
2845
  center: this.options.googleMaps.map.defaultCenter,
@@ -2784,7 +2856,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_16__.UIGroup {
2784
2856
  },
2785
2857
  mode: 'hand',
2786
2858
  elements: []
2787
- }, this.mapElements = [], this.apiLoaded = null, this.mapInitialized = false, this.layers = [];
2859
+ }, this.mapElements = [], this.apiLoaded = null, this.mapInitialized = false, this.failed = false, this.layers = [];
2788
2860
  Object.assign(this.state, state);
2789
2861
  this.toolbar.build([
2790
2862
  'gm.hand',
@@ -2984,14 +3056,16 @@ function isDrawableMode(mode) {
2984
3056
  this.mode = null;
2985
3057
  }
2986
3058
  bind() {
3059
+ // A map whose API failed to authorize returns nothing from
3060
+ // addListener, so keep only real listeners
2987
3061
  this.listeners = [
2988
3062
  this.map.addListener('click', (e)=>this.onClick(e)),
2989
3063
  this.map.addListener('mousemove', (e)=>this.onMove(e)),
2990
3064
  this.map.addListener('dblclick', ()=>this.onDblClick())
2991
- ];
3065
+ ].filter(Boolean);
2992
3066
  }
2993
3067
  unbind() {
2994
- this.listeners.forEach((listener)=>listener.remove());
3068
+ this.listeners.forEach((listener)=>listener === null || listener === void 0 ? void 0 : listener.remove());
2995
3069
  this.listeners = [];
2996
3070
  }
2997
3071
  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}}