jodit-pro 4.2.13 → 4.2.19

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 (322) hide show
  1. package/es2015/jodit.css +47 -1
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +489 -464
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  9. package/es2015/plugins/backup/backup.css +1 -1
  10. package/es2015/plugins/backup/backup.js +7 -7
  11. package/es2015/plugins/backup/backup.min.js +2 -2
  12. package/es2015/plugins/button-generator/button-generator.css +1 -1
  13. package/es2015/plugins/button-generator/button-generator.js +9 -9
  14. package/es2015/plugins/button-generator/button-generator.min.js +2 -2
  15. package/es2015/plugins/change-case/change-case.js +6 -6
  16. package/es2015/plugins/change-case/change-case.min.js +2 -2
  17. package/es2015/plugins/color-picker/color-picker.css +1 -1
  18. package/es2015/plugins/color-picker/color-picker.js +1 -1
  19. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  20. package/es2015/plugins/emoji/emoji.css +1 -1
  21. package/es2015/plugins/emoji/emoji.js +11 -11
  22. package/es2015/plugins/emoji/emoji.min.js +2 -2
  23. package/es2015/plugins/export-docs/export-docs.js +7 -7
  24. package/es2015/plugins/export-docs/export-docs.min.js +2 -2
  25. package/es2015/plugins/finder/finder.css +1 -1
  26. package/es2015/plugins/finder/finder.js +33 -33
  27. package/es2015/plugins/finder/finder.min.js +2 -2
  28. package/es2015/plugins/google-maps/google-maps.css +1 -1
  29. package/es2015/plugins/google-maps/google-maps.js +2 -2
  30. package/es2015/plugins/google-maps/google-maps.min.js +2 -2
  31. package/es2015/plugins/google-search/google-search.js +6 -6
  32. package/es2015/plugins/google-search/google-search.min.js +2 -2
  33. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  34. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  35. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  36. package/es2015/plugins/iframe-editor/iframe-editor.js +8 -8
  37. package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
  38. package/es2015/plugins/keyboard/keyboard.css +1 -1
  39. package/es2015/plugins/keyboard/keyboard.js +15 -15
  40. package/es2015/plugins/keyboard/keyboard.min.js +2 -2
  41. package/es2015/plugins/mobile-view/mobile-view.js +20 -9
  42. package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
  43. package/es2015/plugins/page-break/page-break.js +8 -8
  44. package/es2015/plugins/page-break/page-break.min.js +2 -2
  45. package/es2015/plugins/paste-code/paste-code.css +1 -1
  46. package/es2015/plugins/paste-code/paste-code.js +7 -7
  47. package/es2015/plugins/paste-code/paste-code.min.js +2 -2
  48. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  49. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  50. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  51. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  52. package/es2015/plugins/todo-list/todo-list.css +1 -1
  53. package/es2015/plugins/todo-list/todo-list.js +7 -7
  54. package/es2015/plugins/todo-list/todo-list.min.js +2 -2
  55. package/es2015/plugins/translate/translate.css +1 -1
  56. package/es2015/plugins/translate/translate.js +9 -9
  57. package/es2015/plugins/translate/translate.min.js +2 -2
  58. package/es2015/plugins/tune-block/tune-block.css +1 -1
  59. package/es2015/plugins/tune-block/tune-block.js +1 -1
  60. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  61. package/es2018/jodit.css +47 -1
  62. package/es2018/jodit.fat.min.css +1 -1
  63. package/es2018/jodit.fat.min.js +2 -2
  64. package/es2018/jodit.js +489 -466
  65. package/es2018/jodit.min.css +1 -1
  66. package/es2018/jodit.min.js +2 -2
  67. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  68. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  69. package/es2018/plugins/backup/backup.css +1 -1
  70. package/es2018/plugins/backup/backup.js +7 -7
  71. package/es2018/plugins/backup/backup.min.js +2 -2
  72. package/es2018/plugins/button-generator/button-generator.css +1 -1
  73. package/es2018/plugins/button-generator/button-generator.js +9 -9
  74. package/es2018/plugins/button-generator/button-generator.min.js +2 -2
  75. package/es2018/plugins/change-case/change-case.js +6 -6
  76. package/es2018/plugins/change-case/change-case.min.js +2 -2
  77. package/es2018/plugins/color-picker/color-picker.css +1 -1
  78. package/es2018/plugins/color-picker/color-picker.js +1 -1
  79. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  80. package/es2018/plugins/emoji/emoji.css +1 -1
  81. package/es2018/plugins/emoji/emoji.js +11 -11
  82. package/es2018/plugins/emoji/emoji.min.js +2 -2
  83. package/es2018/plugins/export-docs/export-docs.js +7 -7
  84. package/es2018/plugins/export-docs/export-docs.min.js +2 -2
  85. package/es2018/plugins/finder/finder.css +1 -1
  86. package/es2018/plugins/finder/finder.js +33 -33
  87. package/es2018/plugins/finder/finder.min.js +2 -2
  88. package/es2018/plugins/google-maps/google-maps.css +1 -1
  89. package/es2018/plugins/google-maps/google-maps.js +2 -2
  90. package/es2018/plugins/google-maps/google-maps.min.js +2 -2
  91. package/es2018/plugins/google-search/google-search.js +6 -6
  92. package/es2018/plugins/google-search/google-search.min.js +2 -2
  93. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  94. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  95. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  96. package/es2018/plugins/iframe-editor/iframe-editor.js +8 -8
  97. package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
  98. package/es2018/plugins/keyboard/keyboard.css +1 -1
  99. package/es2018/plugins/keyboard/keyboard.js +15 -15
  100. package/es2018/plugins/keyboard/keyboard.min.js +2 -2
  101. package/es2018/plugins/mobile-view/mobile-view.js +20 -9
  102. package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
  103. package/es2018/plugins/page-break/page-break.js +8 -8
  104. package/es2018/plugins/page-break/page-break.min.js +2 -2
  105. package/es2018/plugins/paste-code/paste-code.css +1 -1
  106. package/es2018/plugins/paste-code/paste-code.js +7 -7
  107. package/es2018/plugins/paste-code/paste-code.min.js +2 -2
  108. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  109. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  110. package/es2018/plugins/show-blocks/show-blocks.js +1 -1
  111. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  112. package/es2018/plugins/todo-list/todo-list.css +1 -1
  113. package/es2018/plugins/todo-list/todo-list.js +7 -7
  114. package/es2018/plugins/todo-list/todo-list.min.js +2 -2
  115. package/es2018/plugins/translate/translate.css +1 -1
  116. package/es2018/plugins/translate/translate.js +9 -9
  117. package/es2018/plugins/translate/translate.min.js +2 -2
  118. package/es2018/plugins/tune-block/tune-block.css +1 -1
  119. package/es2018/plugins/tune-block/tune-block.js +1 -1
  120. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  121. package/es2021/jodit.css +47 -1
  122. package/es2021/jodit.fat.min.css +1 -1
  123. package/es2021/jodit.fat.min.js +2 -2
  124. package/es2021/jodit.js +489 -464
  125. package/es2021/jodit.min.css +1 -1
  126. package/es2021/jodit.min.js +2 -2
  127. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  128. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  129. package/es2021/plugins/backup/backup.css +1 -1
  130. package/es2021/plugins/backup/backup.js +7 -7
  131. package/es2021/plugins/backup/backup.min.js +2 -2
  132. package/es2021/plugins/button-generator/button-generator.css +1 -1
  133. package/es2021/plugins/button-generator/button-generator.js +9 -9
  134. package/es2021/plugins/button-generator/button-generator.min.js +2 -2
  135. package/es2021/plugins/change-case/change-case.js +6 -6
  136. package/es2021/plugins/change-case/change-case.min.js +2 -2
  137. package/es2021/plugins/color-picker/color-picker.css +1 -1
  138. package/es2021/plugins/color-picker/color-picker.js +1 -1
  139. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  140. package/es2021/plugins/emoji/emoji.css +1 -1
  141. package/es2021/plugins/emoji/emoji.js +11 -11
  142. package/es2021/plugins/emoji/emoji.min.js +2 -2
  143. package/es2021/plugins/export-docs/export-docs.js +7 -7
  144. package/es2021/plugins/export-docs/export-docs.min.js +2 -2
  145. package/es2021/plugins/finder/finder.css +1 -1
  146. package/es2021/plugins/finder/finder.js +33 -33
  147. package/es2021/plugins/finder/finder.min.js +2 -2
  148. package/es2021/plugins/google-maps/google-maps.css +1 -1
  149. package/es2021/plugins/google-maps/google-maps.js +2 -2
  150. package/es2021/plugins/google-maps/google-maps.min.js +2 -2
  151. package/es2021/plugins/google-search/google-search.js +6 -6
  152. package/es2021/plugins/google-search/google-search.min.js +2 -2
  153. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  154. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  155. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  156. package/es2021/plugins/iframe-editor/iframe-editor.js +8 -8
  157. package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
  158. package/es2021/plugins/keyboard/keyboard.css +1 -1
  159. package/es2021/plugins/keyboard/keyboard.js +15 -15
  160. package/es2021/plugins/keyboard/keyboard.min.js +2 -2
  161. package/es2021/plugins/mobile-view/mobile-view.js +19 -9
  162. package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
  163. package/es2021/plugins/page-break/page-break.js +8 -8
  164. package/es2021/plugins/page-break/page-break.min.js +2 -2
  165. package/es2021/plugins/paste-code/paste-code.css +1 -1
  166. package/es2021/plugins/paste-code/paste-code.js +7 -7
  167. package/es2021/plugins/paste-code/paste-code.min.js +2 -2
  168. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  169. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  170. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  171. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  172. package/es2021/plugins/todo-list/todo-list.css +1 -1
  173. package/es2021/plugins/todo-list/todo-list.js +7 -7
  174. package/es2021/plugins/todo-list/todo-list.min.js +2 -2
  175. package/es2021/plugins/translate/translate.css +1 -1
  176. package/es2021/plugins/translate/translate.js +9 -9
  177. package/es2021/plugins/translate/translate.min.js +2 -2
  178. package/es2021/plugins/tune-block/tune-block.css +1 -1
  179. package/es2021/plugins/tune-block/tune-block.js +1 -1
  180. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  181. package/es2021.en/jodit.css +47 -1
  182. package/es2021.en/jodit.fat.min.css +1 -1
  183. package/es2021.en/jodit.fat.min.js +2 -2
  184. package/es2021.en/jodit.js +489 -464
  185. package/es2021.en/jodit.min.css +1 -1
  186. package/es2021.en/jodit.min.js +2 -2
  187. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  188. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  189. package/es2021.en/plugins/backup/backup.css +1 -1
  190. package/es2021.en/plugins/backup/backup.js +7 -7
  191. package/es2021.en/plugins/backup/backup.min.js +2 -2
  192. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  193. package/es2021.en/plugins/button-generator/button-generator.js +9 -9
  194. package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
  195. package/es2021.en/plugins/change-case/change-case.js +6 -6
  196. package/es2021.en/plugins/change-case/change-case.min.js +2 -2
  197. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  198. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  199. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  200. package/es2021.en/plugins/emoji/emoji.css +1 -1
  201. package/es2021.en/plugins/emoji/emoji.js +11 -11
  202. package/es2021.en/plugins/emoji/emoji.min.js +2 -2
  203. package/es2021.en/plugins/export-docs/export-docs.js +7 -7
  204. package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
  205. package/es2021.en/plugins/finder/finder.css +1 -1
  206. package/es2021.en/plugins/finder/finder.js +33 -33
  207. package/es2021.en/plugins/finder/finder.min.js +2 -2
  208. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  209. package/es2021.en/plugins/google-maps/google-maps.js +2 -2
  210. package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
  211. package/es2021.en/plugins/google-search/google-search.js +6 -6
  212. package/es2021.en/plugins/google-search/google-search.min.js +2 -2
  213. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  214. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  215. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  216. package/es2021.en/plugins/iframe-editor/iframe-editor.js +8 -8
  217. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
  218. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  219. package/es2021.en/plugins/keyboard/keyboard.js +15 -15
  220. package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
  221. package/es2021.en/plugins/mobile-view/mobile-view.js +19 -9
  222. package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
  223. package/es2021.en/plugins/page-break/page-break.js +8 -8
  224. package/es2021.en/plugins/page-break/page-break.min.js +2 -2
  225. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  226. package/es2021.en/plugins/paste-code/paste-code.js +7 -7
  227. package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
  228. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  229. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  230. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  231. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  232. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  233. package/es2021.en/plugins/todo-list/todo-list.js +7 -7
  234. package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
  235. package/es2021.en/plugins/translate/translate.css +1 -1
  236. package/es2021.en/plugins/translate/translate.js +9 -9
  237. package/es2021.en/plugins/translate/translate.min.js +2 -2
  238. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  239. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  240. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  241. package/es5/jodit.css +77 -2
  242. package/es5/jodit.fat.min.css +1 -1
  243. package/es5/jodit.fat.min.js +2 -2
  244. package/es5/jodit.js +493 -466
  245. package/es5/jodit.min.css +3 -3
  246. package/es5/jodit.min.js +2 -2
  247. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  248. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  249. package/es5/plugins/backup/backup.css +1 -1
  250. package/es5/plugins/backup/backup.js +7 -7
  251. package/es5/plugins/backup/backup.min.js +2 -2
  252. package/es5/plugins/button-generator/button-generator.css +1 -1
  253. package/es5/plugins/button-generator/button-generator.js +9 -9
  254. package/es5/plugins/button-generator/button-generator.min.js +2 -2
  255. package/es5/plugins/change-case/change-case.js +6 -6
  256. package/es5/plugins/change-case/change-case.min.js +2 -2
  257. package/es5/plugins/color-picker/color-picker.css +1 -1
  258. package/es5/plugins/color-picker/color-picker.js +1 -1
  259. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  260. package/es5/plugins/emoji/emoji.css +1 -1
  261. package/es5/plugins/emoji/emoji.js +11 -11
  262. package/es5/plugins/emoji/emoji.min.js +2 -2
  263. package/es5/plugins/export-docs/export-docs.js +7 -7
  264. package/es5/plugins/export-docs/export-docs.min.js +2 -2
  265. package/es5/plugins/finder/finder.css +1 -1
  266. package/es5/plugins/finder/finder.js +33 -33
  267. package/es5/plugins/finder/finder.min.js +2 -2
  268. package/es5/plugins/google-maps/google-maps.css +1 -1
  269. package/es5/plugins/google-maps/google-maps.js +2 -2
  270. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  271. package/es5/plugins/google-search/google-search.js +6 -6
  272. package/es5/plugins/google-search/google-search.min.js +2 -2
  273. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  274. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  275. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  276. package/es5/plugins/iframe-editor/iframe-editor.js +8 -8
  277. package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
  278. package/es5/plugins/keyboard/keyboard.css +1 -1
  279. package/es5/plugins/keyboard/keyboard.js +15 -15
  280. package/es5/plugins/keyboard/keyboard.min.js +2 -2
  281. package/es5/plugins/mobile-view/mobile-view.js +20 -9
  282. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  283. package/es5/plugins/page-break/page-break.js +8 -8
  284. package/es5/plugins/page-break/page-break.min.js +2 -2
  285. package/es5/plugins/paste-code/paste-code.css +1 -1
  286. package/es5/plugins/paste-code/paste-code.js +7 -7
  287. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  288. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  289. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  290. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  291. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  292. package/es5/plugins/todo-list/todo-list.css +1 -1
  293. package/es5/plugins/todo-list/todo-list.js +7 -7
  294. package/es5/plugins/todo-list/todo-list.min.js +2 -2
  295. package/es5/plugins/translate/translate.css +1 -1
  296. package/es5/plugins/translate/translate.js +9 -9
  297. package/es5/plugins/translate/translate.min.js +2 -2
  298. package/es5/plugins/tune-block/tune-block.css +1 -1
  299. package/es5/plugins/tune-block/tune-block.js +1 -1
  300. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  301. package/esm/plugins/autocomplete/autocomplete.js +1 -1
  302. package/esm/plugins/backup/config.js +1 -1
  303. package/esm/plugins/button-generator/config.js +1 -1
  304. package/esm/plugins/change-case/config.js +1 -1
  305. package/esm/plugins/emoji/config.js +1 -1
  306. package/esm/plugins/export-docs/config.js +1 -1
  307. package/esm/plugins/finder/browser.js +1 -1
  308. package/esm/plugins/finder/interface.d.ts +69 -0
  309. package/esm/plugins/google-maps/config.js +1 -1
  310. package/esm/plugins/google-maps/interface.d.ts +109 -0
  311. package/esm/plugins/google-search/google-search.js +1 -1
  312. package/esm/plugins/iframe-editor/config.js +1 -1
  313. package/esm/plugins/keyboard/config.js +1 -1
  314. package/esm/plugins/keyboard/keyboard.js +1 -1
  315. package/esm/plugins/mobile-view/config.js +1 -1
  316. package/esm/plugins/page-break/config.js +1 -1
  317. package/esm/plugins/paste-code/config.js +1 -1
  318. package/esm/plugins/todo-list/config.js +1 -1
  319. package/esm/plugins/translate/config.js +1 -1
  320. package/package.json +1 -1
  321. package/types/plugins/finder/interface.d.ts +69 -0
  322. package/types/plugins/google-maps/interface.d.ts +109 -0
@@ -1 +1 @@
1
- var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};import{autobind as t}from"../../core/decorators.js";import{isString as o}from"../../core/helpers/checker.js";import{Plugin as r}from"../../core/plugin.js";import{UISelect as s}from"../../core/ui/index.js";import{Dialog as i}from"../../modules.js";import"./config.js";import{UIKeyboard as a}from"./ui/keyboard/keyboard.js";import{Config as n}from"../../config.js";import{JoditPro as d}from"../../jodit-pro.js";export class keyboard extends r{constructor(e){super(e),this.hasStyle=!d.fatMode,this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:t,extraKeyGroup:r}=e.o.keyboard;t.length&&t.forEach(((t,s)=>{const i=o(t)?t:t.key,a=o(t)||!t.hotkeys?[`ctrl+${s+1}`]:t.hotkeys;e.registerButton({name:`extraKeyboardButtons.${i}`,group:r});const{extraKeyboardButtons:d}=n.defaultOptions.controls;d[i]={name:i,tooltip:i,args:[i],hotkeys:a,command:"insertChar"}}))}afterInit(e){e.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),e.e.on("isKeyboardOpened",(()=>this.__keyboard?.isOpened))}insertChar(e,t,o){this.j.s.insertNode(this.j.createInside.text(o))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new i({toolbarButtonSize:"tiny"});const e=new a(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(e);const{showLayoutSwitcher:t,layoutSwitchList:o,layoutList:r}=this.j.o.keyboard;if(t){const t=new s(this.__keyboard,{value:e.state.currentLayout,options:o.map((e=>({text:r[e]?.title??e,value:e}))),onChange(t){e.state.currentLayout=t}});t.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(t)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(e){this.__keyboard?.destruct()}}keyboard.requires=["license"],e([t],keyboard.prototype,"insertChar",null),e([t],keyboard.prototype,"toggleKeyboard",null),d.plugins.add("keyboard",keyboard);
1
+ var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};import{autobind as t}from"../../core/decorators.js";import{isString as o}from"../../core/helpers/checker.js";import{Plugin as r}from"../../core/plugin.js";import{UISelect as s}from"../../core/ui/index.js";import{Config as i}from"../../config.js";import{Dialog as a}from"../../modules.js";import"./config.js";import{UIKeyboard as n}from"./ui/keyboard/keyboard.js";import{JoditPro as d}from"../../jodit-pro.js";export class keyboard extends r{constructor(e){super(e),this.hasStyle=!d.fatMode,this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:t,extraKeyGroup:r}=e.o.keyboard;t.length&&t.forEach(((t,s)=>{const a=o(t)?t:t.key,n=o(t)||!t.hotkeys?[`ctrl+${s+1}`]:t.hotkeys;e.registerButton({name:`extraKeyboardButtons.${a}`,group:r});const{extraKeyboardButtons:d}=i.defaultOptions.controls;d[a]={name:a,tooltip:a,args:[a],hotkeys:n,command:"insertChar"}}))}afterInit(e){e.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),e.e.on("isKeyboardOpened",(()=>this.__keyboard?.isOpened))}insertChar(e,t,o){this.j.s.insertNode(this.j.createInside.text(o))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new a({toolbarButtonSize:"tiny"});const e=new n(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(e);const{showLayoutSwitcher:t,layoutSwitchList:o,layoutList:r}=this.j.o.keyboard;if(t){const t=new s(this.__keyboard,{value:e.state.currentLayout,options:o.map((e=>({text:r[e]?.title??e,value:e}))),onChange(t){e.state.currentLayout=t}});t.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(t)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(e){this.__keyboard?.destruct()}}keyboard.requires=["license"],e([t],keyboard.prototype,"insertChar",null),e([t],keyboard.prototype,"toggleKeyboard",null),d.plugins.add("keyboard",keyboard);
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import{dataBind as e}from"../../core/helpers/utils/data-bind.js";import o from"./icon.svg.js";import{Config as i}from"../../config.js";i.prototype.mobileView={mode:"default"};export const dataBindStoredKey="buttonmobileSView";export const dataBindCurrentKey="buttonmobileCView";i.prototype.controls.mobileView={tooltip:"Mobile View",icon:o,command:"mobileView",isActive:o=>e(o,dataBindCurrentKey)&&"default"!==e(o,dataBindCurrentKey),isChildActive:(o,i)=>e(o,dataBindCurrentKey)===i.control.args?.[1],exec:o=>{if(!e(o,dataBindStoredKey))return!1;o.execCommand("mobileView",!1,e(o,dataBindStoredKey))},childExec:(e,o,{button:i})=>{e.execCommand("mobileView",!1,Number(i.control?.args?.[0]))},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}};
6
+ import{isNumeric as e}from"../../core/helpers/checker/is-numeric.js";import{dataBind as o}from"../../core/helpers/utils/data-bind.js";import{Config as t}from"../../config.js";import i from"./icon.svg.js";t.prototype.mobileView={mode:"default"};export const dataBindStoredKey="buttonmobileSView";export const dataBindCurrentKey="buttonmobileCView";t.prototype.controls.mobileView={tooltip:"Mobile View",icon:i,command:"mobileView",isActive:e=>o(e,dataBindCurrentKey)&&"default"!==o(e,dataBindCurrentKey),isChildActive:(t,i)=>{let r=i.control?.args?.[0];return e(r)&&(r=Number(r)),(o(t,dataBindCurrentKey)||"default")===r},exec:e=>{if(!o(e,dataBindStoredKey))return!1;e.execCommand("mobileView",!1,o(e,dataBindStoredKey))},childExec:(o,t,{button:i})=>{const r=i.control?.args?.[0];o.execCommand("mobileView",!1,e(r)?Number(r):r)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}};
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import e from"./assets/page-break.svg.js";import r from"./page-break.css.js";import{Config as a}from"../../config.js";a.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},a.prototype.controls.pageBreak={tooltip:"Insert page break",icon:e,command:"insertPageBreak"},a.prototype.iframeStyle=`${a.prototype.iframeStyle};${r.replace(/[\n\t]/g,"")}`;
6
+ import{Config as e}from"../../config.js";import r from"./assets/page-break.svg.js";import a from"./page-break.css.js";e.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},e.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r,command:"insertPageBreak"},e.prototype.iframeStyle=`${e.prototype.iframeStyle};${a.replace(/[\n\t]/g,"")}`;
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import{htmlspecialchars as t}from"../../core/helpers/html/htmlspecialchars.js";import e from"./icon.svg.js";import{Config as a}from"../../config.js";a.prototype.controls.pasteCode={icon:e,tooltip:"Paste code",command:"pasteCode"},a.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(t){switch(t){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return t},highlightLib:{highlight:(t,e)=>"undefined"!=typeof Prism?Prism.highlight(t,Prism.languages[e]||Prism.languages.plain,e):t,isLangLoaded:t=>"undefined"!=typeof Prism&&Boolean(Prism.languages[t]),js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:t=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-${t}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,a,s)=>`<pre class="language-${a}">${t(s)}</pre>`,languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}};
6
+ import{htmlspecialchars as t}from"../../core/helpers/html/htmlspecialchars.js";import{Config as e}from"../../config.js";import a from"./icon.svg.js";e.prototype.controls.pasteCode={icon:a,tooltip:"Paste code",command:"pasteCode"},e.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(t){switch(t){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return t},highlightLib:{highlight:(t,e)=>"undefined"!=typeof Prism?Prism.highlight(t,Prism.languages[e]||Prism.languages.plain,e):t,isLangLoaded:t=>"undefined"!=typeof Prism&&Boolean(Prism.languages[t]),js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:t=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-${t}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,a,s)=>`<pre class="language-${a}">${t(s)}</pre>`,languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}};
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import{Dom as o}from"../../core/dom/dom.js";import{Icon as t}from"../../core/ui/icon.js";import s from"./assets/todo-list.svg.js";import{Config as i}from"../../config.js";i.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:o=>o.createInside.element("input",{type:"checkbox",tabindex:-1})},i.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive(t){const s=t.s.current();return Boolean(s&&o.closest(s,(t=>o.isElement(t)&&o.isTag(t,"ul")&&t.classList.contains("todo-list")),t.editor))}},t.set("todo-list",s);
6
+ import{Dom as o}from"../../core/dom/dom.js";import{Icon as t}from"../../core/ui/icon.js";import{Config as s}from"../../config.js";import i from"./assets/todo-list.svg.js";s.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:o=>o.createInside.element("input",{type:"checkbox",tabindex:-1})},s.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive(t){const s=t.s.current();return Boolean(s&&o.closest(s,(t=>o.isElement(t)&&o.isTag(t,"ul")&&t.classList.contains("todo-list")),t.editor))}},t.set("todo-list",i);
@@ -3,4 +3,4 @@
3
3
  * See LICENSE.md in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
5
  */
6
- import{Icon as t}from"../../core/ui/icon.js";import e from"./assets/swap.svg.js";import a from"./assets/translate.svg.js";import{Config as s}from"../../config.js";s.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},s.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,e,{control:a}){t.execCommand("translate"+a.name)},mods:{stroke:!1}}},t.set("translate",a).set("translate-swap",e);
6
+ import{Icon as t}from"../../core/ui/icon.js";import{Config as e}from"../../config.js";import a from"./assets/swap.svg.js";import s from"./assets/translate.svg.js";e.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},e.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,e,{control:a}){t.execCommand("translate"+a.name)},mods:{stroke:!1}}},t.set("translate",s).set("translate-swap",a);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit-pro",
3
- "version": "4.2.13",
3
+ "version": "4.2.19",
4
4
  "author": "Chupurnov Valeriy <chupurnov@gmail.com>",
5
5
  "homepage": "https://xdsoft.net/jodit/pro/",
6
6
  "bugs": {
@@ -0,0 +1,69 @@
1
+ /*!
2
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
+ * See LICENSE.md in the project root for license information.
4
+ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
+ */
6
+ import type { IDialogOptions, IDictionary, IFileBrowser, IFileBrowserCallBackData, IFileBrowserOptions, IFileBrowserState, IObservable, Nullable } from "../../types";
7
+ import type { ContextMenuManager } from "./helpers/context-menu";
8
+ import type { LoadingManager } from "./helpers/loading-manager";
9
+ import type { PersistentStore } from "./helpers/persistent-store";
10
+ import type { StateManager } from "./helpers/state-manager";
11
+ import type { UIBrowserPanel } from "./ui/panel/panel";
12
+ import type { IViewOptionsPro } from "./types/view";
13
+ export interface IFileBrowserStatePro extends IFileBrowserState {
14
+ theme: string;
15
+ onSelectCallBack: Nullable<(data: IFileBrowserCallBackData) => void>;
16
+ showSideBar: boolean;
17
+ showSettings: boolean;
18
+ showFavorites: boolean;
19
+ showPreview: boolean;
20
+ lastSelectedIndex: number;
21
+ withFolders: boolean;
22
+ foldersPosition: 'top' | 'bottom' | 'default';
23
+ progress: number;
24
+ info: string;
25
+ metaInfo: Nullable<IDictionary>;
26
+ tileSize: 'xsmall' | 'small' | 'default' | 'large' | 'xlarge';
27
+ favorites: IFileBrowserState['activeElements'];
28
+ tree: IFileBrowserTreeItemPro[];
29
+ }
30
+ // @ts-ignore
31
+ export interface IFileBrowserOptionsPro extends IFileBrowserOptions, IDialogOptions, IViewOptionsPro {
32
+ toolbarButtons: IFileBrowserOptions['buttons'];
33
+ maxWidth: number;
34
+ previewOfficeURL: string;
35
+ license: string;
36
+ }
37
+ export interface IFileBrowserTreeItemPro {
38
+ type: 'file' | 'directory' | 'source';
39
+ name: string;
40
+ title?: string;
41
+ isCollapsed?: boolean;
42
+ isActive?: boolean;
43
+ path: string;
44
+ sourceName: string;
45
+ children: IFileBrowserTreeItemPro[];
46
+ }
47
+ export interface IFileBrowserPro extends IFileBrowser<IFileBrowserOptionsPro> {
48
+ readonly state: IFileBrowserStatePro & IObservable;
49
+ readonly persistent: PersistentStore;
50
+ readonly loadingManager: LoadingManager;
51
+ readonly stateManager: StateManager;
52
+ readonly historyManager: IHistoryManager;
53
+ readonly contextMenuManager: ContextMenuManager;
54
+ readonly panel: UIBrowserPanel;
55
+ }
56
+ export interface IHistoryManager {
57
+ canNext(): boolean;
58
+ canPrevious(): boolean;
59
+ push(item: IHistoryItem): void;
60
+ next(): void;
61
+ previous(): void;
62
+ updateCurrent(): void;
63
+ }
64
+ export interface IHistoryItem {
65
+ currentPath: IFileBrowserStatePro['currentPath'];
66
+ currentSource: IFileBrowserStatePro['currentSource'];
67
+ tree: IFileBrowserStatePro['tree'];
68
+ elements: IFileBrowserStatePro['elements'];
69
+ }
@@ -0,0 +1,109 @@
1
+ /*!
2
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
+ * See LICENSE.md in the project root for license information.
4
+ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
+ */
6
+ export type MapElementType = 'circle' | 'marker' | 'polyline' | 'polygon' | 'text';
7
+ export type CreateMode = 'hand' | MapElementType;
8
+ interface IMarkerState {
9
+ readonly type: 'marker';
10
+ readonly coordinates: [
11
+ number,
12
+ number
13
+ ];
14
+ readonly showCaption?: boolean;
15
+ readonly title?: string;
16
+ readonly text?: string;
17
+ readonly icon?: string;
18
+ }
19
+ interface IPolylineState {
20
+ readonly type: 'polyline';
21
+ readonly coordinates: number[][];
22
+ readonly strokeColor?: string;
23
+ readonly strokeWeight?: number;
24
+ readonly fillColor?: string;
25
+ }
26
+ interface IPolygonState {
27
+ readonly type: 'polygon';
28
+ readonly coordinates: number[][];
29
+ readonly strokeColor?: string;
30
+ readonly fillColor?: string;
31
+ readonly strokeWeight?: number;
32
+ readonly fillOpacity?: number;
33
+ }
34
+ interface ICircleState {
35
+ readonly type: 'circle';
36
+ readonly coordinates: [
37
+ number,
38
+ number
39
+ ];
40
+ readonly radius: number;
41
+ readonly strokeColor?: string;
42
+ readonly fillColor?: string;
43
+ readonly strokeWeight?: number;
44
+ readonly fillOpacity?: number;
45
+ }
46
+ interface ITextState {
47
+ readonly type: 'text';
48
+ readonly coordinates: [
49
+ number,
50
+ number
51
+ ];
52
+ readonly text: string;
53
+ readonly size: number;
54
+ readonly color?: string;
55
+ }
56
+ export type IUIMapElementState = IMarkerState | IPolylineState | IPolygonState | ICircleState | ITextState;
57
+ export type IGMElement = google.maps.Marker | google.maps.Polygon | google.maps.Polyline | google.maps.Circle;
58
+ export type IUIMapElement = {
59
+ readonly uid: string;
60
+ readonly type: 'marker';
61
+ readonly gme: google.maps.Marker;
62
+ state: IMarkerState;
63
+ } | {
64
+ readonly uid: string;
65
+ readonly type: 'polygon';
66
+ readonly gme: google.maps.Polygon;
67
+ state: IPolygonState;
68
+ } | {
69
+ readonly uid: string;
70
+ readonly type: 'polyline';
71
+ readonly gme: google.maps.Polyline;
72
+ state: IPolylineState;
73
+ } | {
74
+ readonly uid: string;
75
+ readonly type: 'circle';
76
+ readonly gme: google.maps.Circle;
77
+ state: ICircleState;
78
+ } | {
79
+ readonly uid: string;
80
+ readonly type: 'text';
81
+ readonly gme: google.maps.Marker;
82
+ state: ITextState;
83
+ };
84
+ export interface IUIMapBaseState {
85
+ uid: string;
86
+ center: [
87
+ number,
88
+ number
89
+ ];
90
+ size: [
91
+ number,
92
+ number
93
+ ];
94
+ zoom: number;
95
+ type: 'hybrid' | 'roadmap' | 'satellite' | 'terrain';
96
+ layer: 'default' | 'traffic' | 'transit' | 'bicycling';
97
+ controls: {
98
+ zoomControl: boolean;
99
+ mapTypeControl: boolean;
100
+ scaleControl: boolean;
101
+ streetViewControl: boolean;
102
+ rotateControl: boolean;
103
+ fullscreenControl: boolean;
104
+ };
105
+ }
106
+ export interface IUIMapState extends IUIMapBaseState {
107
+ mode: CreateMode;
108
+ elements: IUIMapElementState[];
109
+ }