argous 1.2.201 → 1.2.203

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 (409) hide show
  1. package/dist/components/ConfirmModal/ModalProvider.d.ts +1 -1
  2. package/dist/components/DropArea/DropArea.js +2 -7
  3. package/dist/components/Editor/components/Editor.d.ts +4 -4
  4. package/dist/components/Editor/components/Editor.js +3 -3
  5. package/dist/components/Editor/skins/content/dark/content.d.ts +0 -0
  6. package/dist/components/Editor/skins/content/dark/content.js +3 -0
  7. package/dist/components/Editor/skins/content/default/content.d.ts +0 -0
  8. package/dist/components/Editor/skins/content/default/content.js +3 -0
  9. package/dist/components/Editor/skins/content/document/content.d.ts +0 -0
  10. package/dist/components/Editor/skins/content/document/content.js +3 -0
  11. package/dist/components/Editor/skins/content/tinymce-5/content.d.ts +0 -0
  12. package/dist/components/Editor/skins/content/tinymce-5/content.js +3 -0
  13. package/dist/components/Editor/skins/content/tinymce-5-dark/content.d.ts +0 -0
  14. package/dist/components/Editor/skins/content/tinymce-5-dark/content.js +3 -0
  15. package/dist/components/Editor/skins/content/writer/content.d.ts +0 -0
  16. package/dist/components/Editor/skins/content/writer/content.js +3 -0
  17. package/dist/components/Editor/skins/ui/oxide/content.d.ts +0 -0
  18. package/dist/components/Editor/skins/ui/oxide/content.inline.d.ts +0 -0
  19. package/dist/components/Editor/skins/ui/oxide/content.inline.js +3 -0
  20. package/dist/components/Editor/skins/ui/oxide/content.js +3 -0
  21. package/dist/components/Editor/skins/ui/oxide/skin.d.ts +0 -0
  22. package/dist/components/Editor/skins/ui/oxide/skin.js +3 -0
  23. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
  24. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.js +3 -0
  25. package/dist/components/Editor/skins/ui/oxide-dark/content.d.ts +0 -0
  26. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.d.ts +0 -0
  27. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.js +3 -0
  28. package/dist/components/Editor/skins/ui/oxide-dark/content.js +3 -0
  29. package/dist/components/Editor/skins/ui/oxide-dark/skin.d.ts +0 -0
  30. package/dist/components/Editor/skins/ui/oxide-dark/skin.js +3 -0
  31. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
  32. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +3 -0
  33. package/dist/components/Editor/skins/ui/tinymce-5/content.d.ts +0 -0
  34. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.d.ts +0 -0
  35. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.js +3 -0
  36. package/dist/components/Editor/skins/ui/tinymce-5/content.js +3 -0
  37. package/dist/components/Editor/skins/ui/tinymce-5/skin.d.ts +0 -0
  38. package/dist/components/Editor/skins/ui/tinymce-5/skin.js +3 -0
  39. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.d.ts +0 -0
  40. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +3 -0
  41. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.d.ts +0 -0
  42. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.d.ts +0 -0
  43. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +3 -0
  44. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.js +3 -0
  45. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.d.ts +0 -0
  46. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.js +3 -0
  47. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.d.ts +0 -0
  48. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +3 -0
  49. package/dist/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  50. package/lib/components/DropArea/DropArea.js +9 -10
  51. package/lib/components/Editor/components/Editor.tsx +8 -8
  52. package/lib/components/Editor/skins/content/dark/content.js +2 -0
  53. package/lib/components/Editor/skins/content/dark/content.min.css +1 -8
  54. package/lib/components/Editor/skins/content/default/content.js +2 -0
  55. package/lib/components/Editor/skins/content/default/content.min.css +0 -7
  56. package/lib/components/Editor/skins/content/document/content.js +2 -0
  57. package/lib/components/Editor/skins/content/document/content.min.css +0 -7
  58. package/lib/components/Editor/skins/content/tinymce-5/content.js +2 -0
  59. package/lib/components/Editor/skins/content/tinymce-5/content.min.css +1 -0
  60. package/lib/components/Editor/skins/content/tinymce-5-dark/content.js +2 -0
  61. package/lib/components/Editor/skins/content/tinymce-5-dark/content.min.css +1 -0
  62. package/lib/components/Editor/skins/content/writer/content.js +2 -0
  63. package/lib/components/Editor/skins/content/writer/content.min.css +0 -7
  64. package/lib/components/Editor/skins/ui/oxide/content.inline.js +2 -0
  65. package/lib/components/Editor/skins/ui/oxide/content.inline.min.css +1 -0
  66. package/lib/components/Editor/skins/ui/oxide/content.js +2 -0
  67. package/lib/components/Editor/skins/ui/oxide/content.min.css +1 -0
  68. package/lib/components/Editor/skins/ui/oxide/skin.js +2 -0
  69. package/lib/components/Editor/skins/ui/oxide/skin.min.css +1 -0
  70. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.js +2 -0
  71. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  72. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.js +2 -0
  73. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.min.css +1 -0
  74. package/lib/components/Editor/skins/ui/oxide-dark/content.js +2 -0
  75. package/lib/components/Editor/skins/ui/oxide-dark/content.min.css +1 -0
  76. package/lib/components/Editor/skins/ui/oxide-dark/skin.js +2 -0
  77. package/lib/components/Editor/skins/ui/oxide-dark/skin.min.css +1 -0
  78. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  79. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  80. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.js +2 -0
  81. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.min.css +1 -0
  82. package/lib/components/Editor/skins/ui/tinymce-5/content.js +2 -0
  83. package/lib/components/Editor/skins/ui/tinymce-5/content.min.css +1 -0
  84. package/lib/components/Editor/skins/ui/tinymce-5/skin.js +2 -0
  85. package/lib/components/Editor/skins/ui/tinymce-5/skin.min.css +1 -0
  86. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  87. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  88. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  89. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  90. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.js +2 -0
  91. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.min.css +1 -0
  92. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.js +2 -0
  93. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  94. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  95. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  96. package/lib/components/Editor/tinymce/README.md +24 -14
  97. package/lib/components/Editor/tinymce/icons/default/icons.js +185 -163
  98. package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -1
  99. package/lib/components/Editor/tinymce/langs/README.md +1 -1
  100. package/lib/components/Editor/tinymce/license.txt +21 -504
  101. package/lib/components/Editor/tinymce/models/dom/model.js +8040 -0
  102. package/lib/components/Editor/tinymce/models/dom/model.min.js +4 -0
  103. package/lib/components/Editor/tinymce/plugins/accordion/plugin.js +1054 -0
  104. package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +4 -0
  105. package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +187 -208
  106. package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +2 -7
  107. package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +82 -84
  108. package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +2 -7
  109. package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +210 -167
  110. package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +2 -7
  111. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +118 -97
  112. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +2 -7
  113. package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +129 -108
  114. package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +2 -7
  115. package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +285 -333
  116. package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +2 -7
  117. package/lib/components/Editor/tinymce/plugins/code/plugin.js +19 -26
  118. package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +2 -7
  119. package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2225 -2094
  120. package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +2 -7
  121. package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +318 -243
  122. package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +2 -7
  123. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -9424
  124. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +1 -1
  125. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +1 -9423
  126. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +1 -1
  127. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +406 -416
  128. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +2 -7
  129. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +821 -604
  130. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +2 -7
  131. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
  132. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
  133. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
  134. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
  135. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
  136. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
  137. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
  138. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
  139. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
  140. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
  141. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
  142. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
  143. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
  144. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
  145. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
  146. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
  147. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
  148. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
  149. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
  150. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
  151. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
  152. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
  153. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
  154. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
  155. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
  156. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
  157. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
  158. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
  159. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
  160. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
  161. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
  162. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
  163. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
  164. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
  165. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
  166. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
  167. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
  168. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
  169. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
  170. package/lib/components/Editor/tinymce/plugins/help/plugin.js +428 -403
  171. package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +2 -7
  172. package/lib/components/Editor/tinymce/plugins/image/plugin.js +887 -1043
  173. package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +2 -7
  174. package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +163 -162
  175. package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +2 -7
  176. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +101 -91
  177. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +2 -7
  178. package/lib/components/Editor/tinymce/plugins/link/plugin.js +739 -784
  179. package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +2 -7
  180. package/lib/components/Editor/tinymce/plugins/lists/plugin.js +1282 -1396
  181. package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +2 -7
  182. package/lib/components/Editor/tinymce/plugins/media/plugin.js +641 -806
  183. package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +2 -7
  184. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +76 -54
  185. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +2 -7
  186. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +58 -46
  187. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +2 -7
  188. package/lib/components/Editor/tinymce/plugins/preview/plugin.js +39 -69
  189. package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +2 -7
  190. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +307 -349
  191. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +2 -7
  192. package/lib/components/Editor/tinymce/plugins/save/plugin.js +50 -51
  193. package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +2 -7
  194. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +517 -587
  195. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +2 -7
  196. package/lib/components/Editor/tinymce/plugins/table/plugin.js +2666 -10142
  197. package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +2 -7
  198. package/lib/components/Editor/tinymce/plugins/template/plugin.js +403 -413
  199. package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +2 -7
  200. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +42 -48
  201. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +2 -7
  202. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +352 -333
  203. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +2 -7
  204. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +184 -195
  205. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +2 -7
  206. package/lib/components/Editor/tinymce/skins/content/dark/content.css +2 -8
  207. package/lib/components/Editor/tinymce/skins/content/dark/content.js +2 -0
  208. package/lib/components/Editor/tinymce/skins/content/dark/content.js.map +1 -0
  209. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +2 -8
  210. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -1
  211. package/lib/components/Editor/tinymce/skins/content/default/content.css +0 -6
  212. package/lib/components/Editor/tinymce/skins/content/default/content.js +2 -0
  213. package/lib/components/Editor/tinymce/skins/content/default/content.js.map +1 -0
  214. package/lib/components/Editor/tinymce/skins/content/default/content.min.css +1 -7
  215. package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -1
  216. package/lib/components/Editor/tinymce/skins/content/document/content.css +0 -6
  217. package/lib/components/Editor/tinymce/skins/content/document/content.js +2 -0
  218. package/lib/components/Editor/tinymce/skins/content/document/content.js.map +1 -0
  219. package/lib/components/Editor/tinymce/skins/content/document/content.min.css +0 -6
  220. package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -1
  221. package/lib/components/Editor/{skins/content/default → tinymce/skins/content/tinymce-5}/content.css +0 -6
  222. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js +2 -0
  223. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js.map +1 -0
  224. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +2 -0
  225. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css.map +1 -0
  226. package/lib/components/Editor/{skins/content/dark → tinymce/skins/content/tinymce-5-dark}/content.css +1 -7
  227. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
  228. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js.map +1 -0
  229. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +2 -0
  230. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css.map +1 -0
  231. package/lib/components/Editor/tinymce/skins/content/writer/content.css +0 -6
  232. package/lib/components/Editor/tinymce/skins/content/writer/content.js +2 -0
  233. package/lib/components/Editor/tinymce/skins/content/writer/content.js.map +1 -0
  234. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +0 -6
  235. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -1
  236. package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +74 -21
  237. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +74 -21
  238. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
  239. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js.map +1 -0
  240. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
  241. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -1
  242. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js +2 -0
  243. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js.map +1 -0
  244. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +1 -7
  245. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -1
  246. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +1131 -402
  247. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js +2 -0
  248. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js.map +1 -0
  249. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +1 -7
  250. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -1
  251. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +8 -15
  252. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  253. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js.map +1 -0
  254. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
  255. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -1
  256. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +72 -20
  257. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +74 -21
  258. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  259. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js.map +1 -0
  260. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
  261. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
  262. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
  263. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js.map +1 -0
  264. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
  265. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -1
  266. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +1155 -423
  267. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  268. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js.map +1 -0
  269. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
  270. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -1
  271. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +8 -15
  272. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  273. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js.map +1 -0
  274. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
  275. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -1
  276. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.css +75 -22
  277. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.inline.css +75 -22
  278. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
  279. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js.map +1 -0
  280. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +2 -0
  281. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css.map +1 -0
  282. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
  283. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js.map +1 -0
  284. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +2 -0
  285. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css.map +1 -0
  286. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.css +1261 -438
  287. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
  288. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js.map +1 -0
  289. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +2 -0
  290. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css.map +1 -0
  291. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.shadowdom.css +8 -15
  292. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  293. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js.map +1 -0
  294. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +2 -0
  295. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css.map +1 -0
  296. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.css +73 -21
  297. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.inline.css +75 -22
  298. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  299. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js.map +1 -0
  300. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +2 -0
  301. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css.map +1 -0
  302. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
  303. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js.map +1 -0
  304. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +2 -0
  305. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css.map +1 -0
  306. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.css +1244 -421
  307. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
  308. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js.map +1 -0
  309. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +2 -0
  310. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css.map +1 -0
  311. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.shadowdom.css +8 -15
  312. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  313. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js.map +1 -0
  314. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +2 -0
  315. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.map +1 -0
  316. package/lib/components/Editor/tinymce/themes/silver/theme.js +23228 -24955
  317. package/lib/components/Editor/tinymce/themes/silver/theme.min.js +2 -7
  318. package/lib/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  319. package/lib/components/Editor/tinymce/tinymce.js +23668 -22018
  320. package/lib/components/Editor/tinymce/tinymce.min.js +2 -30104
  321. package/package.json +1 -1
  322. package/lib/components/Editor/skins/content/dark/content.min.css.map +0 -1
  323. package/lib/components/Editor/skins/content/default/content.min.css.map +0 -1
  324. package/lib/components/Editor/skins/content/document/content.css +0 -72
  325. package/lib/components/Editor/skins/content/document/content.min.css.map +0 -1
  326. package/lib/components/Editor/skins/content/writer/content.css +0 -68
  327. package/lib/components/Editor/skins/content/writer/content.min.css.map +0 -1
  328. package/lib/components/Editor/skins/ui/dark/content.inline.min.css +0 -8
  329. package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +0 -1
  330. package/lib/components/Editor/skins/ui/dark/content.min.css +0 -8
  331. package/lib/components/Editor/skins/ui/dark/content.min.css.map +0 -1
  332. package/lib/components/Editor/skins/ui/dark/content.mobile.css +0 -29
  333. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +0 -8
  334. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +0 -1
  335. package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
  336. package/lib/components/Editor/skins/ui/dark/skin.min.css +0 -8
  337. package/lib/components/Editor/skins/ui/dark/skin.min.css.map +0 -1
  338. package/lib/components/Editor/skins/ui/dark/skin.mobile.css +0 -673
  339. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +0 -8
  340. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +0 -1
  341. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +0 -8
  342. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +0 -1
  343. package/lib/components/Editor/skins/ui/default/content.inline.min.css +0 -8
  344. package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +0 -1
  345. package/lib/components/Editor/skins/ui/default/content.min.css +0 -8
  346. package/lib/components/Editor/skins/ui/default/content.min.css.map +0 -1
  347. package/lib/components/Editor/skins/ui/default/content.mobile.css +0 -29
  348. package/lib/components/Editor/skins/ui/default/content.mobile.min.css +0 -8
  349. package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +0 -1
  350. package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
  351. package/lib/components/Editor/skins/ui/default/skin.min.css +0 -8
  352. package/lib/components/Editor/skins/ui/default/skin.min.css.map +0 -1
  353. package/lib/components/Editor/skins/ui/default/skin.mobile.css +0 -673
  354. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +0 -8
  355. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +0 -1
  356. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +0 -8
  357. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +0 -1
  358. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/fonts/tinymce-mobile.woff +0 -0
  359. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.css +0 -1641
  360. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +0 -8
  361. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +0 -1
  362. package/lib/components/Editor/tinymce/jquery.tinymce.min.js +0 -92
  363. package/lib/components/Editor/tinymce/langs/pt_BR.js +0 -419
  364. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -99
  365. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +0 -9
  366. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.js +0 -22
  367. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +0 -9
  368. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.js +0 -22
  369. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +0 -9
  370. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -544
  371. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +0 -9
  372. package/lib/components/Editor/tinymce/plugins/hr/plugin.js +0 -46
  373. package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +0 -9
  374. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1354
  375. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +0 -9
  376. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -199
  377. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +0 -9
  378. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -117
  379. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +0 -9
  380. package/lib/components/Editor/tinymce/plugins/paste/plugin.js +0 -1764
  381. package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +0 -9
  382. package/lib/components/Editor/tinymce/plugins/print/plugin.js +0 -53
  383. package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +0 -9
  384. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -731
  385. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +0 -9
  386. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -129
  387. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +0 -9
  388. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.js +0 -22
  389. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +0 -9
  390. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1394
  391. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +0 -9
  392. package/lib/components/Editor/tinymce/plugins/toc/plugin.js +0 -236
  393. package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +0 -9
  394. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +0 -29
  395. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +0 -8
  396. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +0 -1
  397. package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  398. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +0 -673
  399. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -8
  400. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +0 -1
  401. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -29
  402. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -8
  403. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +0 -1
  404. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  405. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -673
  406. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -8
  407. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +0 -1
  408. package/lib/components/Editor/tinymce/themes/mobile/theme.js +0 -13587
  409. package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +0 -9
@@ -1,44 +1,59 @@
1
1
  /**
2
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
- * Licensed under the LGPL or a commercial license.
4
- * For LGPL see License.txt in the project root for license information.
5
- * For commercial licenses see https://www.tiny.cloud/
6
- *
7
- * Version: 5.9.0 (TBD)
2
+ * TinyMCE version 6.8.2 (2023-12-11)
8
3
  */
4
+
9
5
  (function () {
10
6
  'use strict';
11
7
 
12
- var Cell = function (initial) {
13
- var value = initial;
14
- var get = function () {
8
+ const Cell = initial => {
9
+ let value = initial;
10
+ const get = () => {
15
11
  return value;
16
12
  };
17
- var set = function (v) {
13
+ const set = v => {
18
14
  value = v;
19
15
  };
20
16
  return {
21
- get: get,
22
- set: set
17
+ get,
18
+ set
23
19
  };
24
20
  };
25
21
 
26
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
22
+ var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager');
23
+
24
+ let unique = 0;
25
+ const generate = prefix => {
26
+ const date = new Date();
27
+ const time = date.getTime();
28
+ const random = Math.floor(Math.random() * 1000000000);
29
+ unique++;
30
+ return prefix + '_' + random + unique + String(time);
31
+ };
27
32
 
28
- var get = function (customTabs) {
29
- var addTab = function (spec) {
30
- var currentCustomTabs = customTabs.get();
31
- currentCustomTabs[spec.name] = spec;
33
+ const get$1 = customTabs => {
34
+ const addTab = spec => {
35
+ var _a;
36
+ const name = (_a = spec.name) !== null && _a !== void 0 ? _a : generate('tab-name');
37
+ const currentCustomTabs = customTabs.get();
38
+ currentCustomTabs[name] = spec;
32
39
  customTabs.set(currentCustomTabs);
33
40
  };
34
- return { addTab: addTab };
41
+ return { addTab };
35
42
  };
36
43
 
37
- var register = function (editor, dialogOpener) {
44
+ const register$2 = (editor, dialogOpener) => {
38
45
  editor.addCommand('mceHelp', dialogOpener);
39
46
  };
40
47
 
41
- var register$1 = function (editor, dialogOpener) {
48
+ const option = name => editor => editor.options.get(name);
49
+ const register$1 = editor => {
50
+ const registerOption = editor.options.register;
51
+ registerOption('help_tabs', { processor: 'array' });
52
+ };
53
+ const getHelpTabs = option('help_tabs');
54
+ const getForcedPlugins = option('forced_plugins');
55
+
56
+ const register = (editor, dialogOpener) => {
42
57
  editor.ui.registry.addButton('help', {
43
58
  icon: 'help',
44
59
  tooltip: 'Help',
@@ -52,164 +67,161 @@
52
67
  });
53
68
  };
54
69
 
55
- var __assign = function () {
56
- __assign = Object.assign || function __assign(t) {
57
- for (var s, i = 1, n = arguments.length; i < n; i++) {
58
- s = arguments[i];
59
- for (var p in s)
60
- if (Object.prototype.hasOwnProperty.call(s, p))
61
- t[p] = s[p];
62
- }
70
+ const hasProto = (v, constructor, predicate) => {
71
+ var _a;
72
+ if (predicate(v, constructor.prototype)) {
73
+ return true;
74
+ } else {
75
+ return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
76
+ }
77
+ };
78
+ const typeOf = x => {
79
+ const t = typeof x;
80
+ if (x === null) {
81
+ return 'null';
82
+ } else if (t === 'object' && Array.isArray(x)) {
83
+ return 'array';
84
+ } else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
85
+ return 'string';
86
+ } else {
63
87
  return t;
64
- };
65
- return __assign.apply(this, arguments);
88
+ }
66
89
  };
90
+ const isType = type => value => typeOf(value) === type;
91
+ const isSimpleType = type => value => typeof value === type;
92
+ const eq = t => a => t === a;
93
+ const isString = isType('string');
94
+ const isUndefined = eq(undefined);
95
+ const isNullable = a => a === null || a === undefined;
96
+ const isNonNullable = a => !isNullable(a);
97
+ const isFunction = isSimpleType('function');
67
98
 
68
- var noop = function () {
69
- };
70
- var constant = function (value) {
71
- return function () {
99
+ const constant = value => {
100
+ return () => {
72
101
  return value;
73
102
  };
74
103
  };
75
- var never = constant(false);
76
- var always = constant(true);
104
+ const never = constant(false);
77
105
 
78
- var none = function () {
79
- return NONE;
80
- };
81
- var NONE = function () {
82
- var eq = function (o) {
83
- return o.isNone();
84
- };
85
- var call = function (thunk) {
86
- return thunk();
87
- };
88
- var id = function (n) {
89
- return n;
90
- };
91
- var me = {
92
- fold: function (n, _s) {
93
- return n();
94
- },
95
- is: never,
96
- isSome: never,
97
- isNone: always,
98
- getOr: id,
99
- getOrThunk: call,
100
- getOrDie: function (msg) {
101
- throw new Error(msg || 'error: getOrDie called on none.');
102
- },
103
- getOrNull: constant(null),
104
- getOrUndefined: constant(undefined),
105
- or: id,
106
- orThunk: call,
107
- map: none,
108
- each: noop,
109
- bind: none,
110
- exists: never,
111
- forall: always,
112
- filter: none,
113
- equals: eq,
114
- equals_: eq,
115
- toArray: function () {
116
- return [];
117
- },
118
- toString: constant('none()')
119
- };
120
- return me;
121
- }();
122
- var some = function (a) {
123
- var constant_a = constant(a);
124
- var self = function () {
125
- return me;
126
- };
127
- var bind = function (f) {
128
- return f(a);
129
- };
130
- var me = {
131
- fold: function (n, s) {
132
- return s(a);
133
- },
134
- is: function (v) {
135
- return a === v;
136
- },
137
- isSome: always,
138
- isNone: never,
139
- getOr: constant_a,
140
- getOrThunk: constant_a,
141
- getOrDie: constant_a,
142
- getOrNull: constant_a,
143
- getOrUndefined: constant_a,
144
- or: self,
145
- orThunk: self,
146
- map: function (f) {
147
- return some(f(a));
148
- },
149
- each: function (f) {
150
- f(a);
151
- },
152
- bind: bind,
153
- exists: bind,
154
- forall: bind,
155
- filter: function (f) {
156
- return f(a) ? me : NONE;
157
- },
158
- toArray: function () {
159
- return [a];
160
- },
161
- toString: function () {
162
- return 'some(' + a + ')';
163
- },
164
- equals: function (o) {
165
- return o.is(a);
166
- },
167
- equals_: function (o, elementEq) {
168
- return o.fold(never, function (b) {
169
- return elementEq(a, b);
170
- });
106
+ class Optional {
107
+ constructor(tag, value) {
108
+ this.tag = tag;
109
+ this.value = value;
110
+ }
111
+ static some(value) {
112
+ return new Optional(true, value);
113
+ }
114
+ static none() {
115
+ return Optional.singletonNone;
116
+ }
117
+ fold(onNone, onSome) {
118
+ if (this.tag) {
119
+ return onSome(this.value);
120
+ } else {
121
+ return onNone();
171
122
  }
172
- };
173
- return me;
174
- };
175
- var from = function (value) {
176
- return value === null || value === undefined ? NONE : some(value);
177
- };
178
- var Optional = {
179
- some: some,
180
- none: none,
181
- from: from
182
- };
123
+ }
124
+ isSome() {
125
+ return this.tag;
126
+ }
127
+ isNone() {
128
+ return !this.tag;
129
+ }
130
+ map(mapper) {
131
+ if (this.tag) {
132
+ return Optional.some(mapper(this.value));
133
+ } else {
134
+ return Optional.none();
135
+ }
136
+ }
137
+ bind(binder) {
138
+ if (this.tag) {
139
+ return binder(this.value);
140
+ } else {
141
+ return Optional.none();
142
+ }
143
+ }
144
+ exists(predicate) {
145
+ return this.tag && predicate(this.value);
146
+ }
147
+ forall(predicate) {
148
+ return !this.tag || predicate(this.value);
149
+ }
150
+ filter(predicate) {
151
+ if (!this.tag || predicate(this.value)) {
152
+ return this;
153
+ } else {
154
+ return Optional.none();
155
+ }
156
+ }
157
+ getOr(replacement) {
158
+ return this.tag ? this.value : replacement;
159
+ }
160
+ or(replacement) {
161
+ return this.tag ? this : replacement;
162
+ }
163
+ getOrThunk(thunk) {
164
+ return this.tag ? this.value : thunk();
165
+ }
166
+ orThunk(thunk) {
167
+ return this.tag ? this : thunk();
168
+ }
169
+ getOrDie(message) {
170
+ if (!this.tag) {
171
+ throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
172
+ } else {
173
+ return this.value;
174
+ }
175
+ }
176
+ static from(value) {
177
+ return isNonNullable(value) ? Optional.some(value) : Optional.none();
178
+ }
179
+ getOrNull() {
180
+ return this.tag ? this.value : null;
181
+ }
182
+ getOrUndefined() {
183
+ return this.value;
184
+ }
185
+ each(worker) {
186
+ if (this.tag) {
187
+ worker(this.value);
188
+ }
189
+ }
190
+ toArray() {
191
+ return this.tag ? [this.value] : [];
192
+ }
193
+ toString() {
194
+ return this.tag ? `some(${ this.value })` : 'none()';
195
+ }
196
+ }
197
+ Optional.singletonNone = new Optional(false);
183
198
 
184
- var nativeIndexOf = Array.prototype.indexOf;
185
- var rawIndexOf = function (ts, t) {
186
- return nativeIndexOf.call(ts, t);
187
- };
188
- var contains = function (xs, x) {
189
- return rawIndexOf(xs, x) > -1;
190
- };
191
- var map = function (xs, f) {
192
- var len = xs.length;
193
- var r = new Array(len);
194
- for (var i = 0; i < len; i++) {
195
- var x = xs[i];
199
+ const nativeSlice = Array.prototype.slice;
200
+ const nativeIndexOf = Array.prototype.indexOf;
201
+ const rawIndexOf = (ts, t) => nativeIndexOf.call(ts, t);
202
+ const contains = (xs, x) => rawIndexOf(xs, x) > -1;
203
+ const map = (xs, f) => {
204
+ const len = xs.length;
205
+ const r = new Array(len);
206
+ for (let i = 0; i < len; i++) {
207
+ const x = xs[i];
196
208
  r[i] = f(x, i);
197
209
  }
198
210
  return r;
199
211
  };
200
- var filter = function (xs, pred) {
201
- var r = [];
202
- for (var i = 0, len = xs.length; i < len; i++) {
203
- var x = xs[i];
212
+ const filter = (xs, pred) => {
213
+ const r = [];
214
+ for (let i = 0, len = xs.length; i < len; i++) {
215
+ const x = xs[i];
204
216
  if (pred(x, i)) {
205
217
  r.push(x);
206
218
  }
207
219
  }
208
220
  return r;
209
221
  };
210
- var findUntil = function (xs, pred, until) {
211
- for (var i = 0, len = xs.length; i < len; i++) {
212
- var x = xs[i];
222
+ const findUntil = (xs, pred, until) => {
223
+ for (let i = 0, len = xs.length; i < len; i++) {
224
+ const x = xs[i];
213
225
  if (pred(x, i)) {
214
226
  return Optional.some(x);
215
227
  } else if (until(x, i)) {
@@ -218,43 +230,50 @@
218
230
  }
219
231
  return Optional.none();
220
232
  };
221
- var find = function (xs, pred) {
233
+ const find = (xs, pred) => {
222
234
  return findUntil(xs, pred, never);
223
235
  };
236
+ const sort = (xs, comparator) => {
237
+ const copy = nativeSlice.call(xs, 0);
238
+ copy.sort(comparator);
239
+ return copy;
240
+ };
224
241
 
225
- var keys = Object.keys;
226
- var hasOwnProperty = Object.hasOwnProperty;
227
- var get$1 = function (obj, key) {
242
+ const keys = Object.keys;
243
+ const hasOwnProperty = Object.hasOwnProperty;
244
+ const get = (obj, key) => {
228
245
  return has(obj, key) ? Optional.from(obj[key]) : Optional.none();
229
246
  };
230
- var has = function (obj, key) {
231
- return hasOwnProperty.call(obj, key);
232
- };
247
+ const has = (obj, key) => hasOwnProperty.call(obj, key);
233
248
 
234
- var cat = function (arr) {
235
- var r = [];
236
- var push = function (x) {
249
+ const cat = arr => {
250
+ const r = [];
251
+ const push = x => {
237
252
  r.push(x);
238
253
  };
239
- for (var i = 0; i < arr.length; i++) {
254
+ for (let i = 0; i < arr.length; i++) {
240
255
  arr[i].each(push);
241
256
  }
242
257
  return r;
243
258
  };
244
259
 
245
- var getHelpTabs = function (editor) {
246
- return Optional.from(editor.getParam('help_tabs'));
247
- };
248
- var getForcedPlugins = function (editor) {
249
- return editor.getParam('forced_plugins');
260
+ var global$3 = tinymce.util.Tools.resolve('tinymce.Resource');
261
+
262
+ var global$2 = tinymce.util.Tools.resolve('tinymce.util.I18n');
263
+
264
+ const pLoadHtmlByLangCode = (baseUrl, langCode) => global$3.load(`tinymce.html-i18n.help-keynav.${ langCode }`, `${ baseUrl }/js/i18n/keynav/${ langCode }.js`);
265
+ const pLoadI18nHtml = baseUrl => pLoadHtmlByLangCode(baseUrl, global$2.getCode()).catch(() => pLoadHtmlByLangCode(baseUrl, 'en'));
266
+ const initI18nLoad = (editor, baseUrl) => {
267
+ editor.on('init', () => {
268
+ pLoadI18nHtml(baseUrl);
269
+ });
250
270
  };
251
271
 
252
- var description = '<h1>Editor UI keyboard navigation</h1>\n\n<h2>Activating keyboard navigation</h2>\n\n<p>The sections of the outer UI of the editor - the menubar, toolbar, sidebar and footer - are all keyboard navigable. As such, there are multiple ways to activate keyboard navigation:</p>\n<ul>\n <li>Focus the menubar: Alt + F9 (Windows) or &#x2325;F9 (MacOS)</li>\n <li>Focus the toolbar: Alt + F10 (Windows) or &#x2325;F10 (MacOS)</li>\n <li>Focus the footer: Alt + F11 (Windows) or &#x2325;F11 (MacOS)</li>\n</ul>\n\n<p>Focusing the menubar or toolbar will start keyboard navigation at the first item in the menubar or toolbar, which will be highlighted with a gray background. Focusing the footer will start keyboard navigation at the first item in the element path, which will be highlighted with an underline. </p>\n\n<h2>Moving between UI sections</h2>\n\n<p>When keyboard navigation is active, pressing tab will move the focus to the next major section of the UI, where applicable. These sections are:</p>\n<ul>\n <li>the menubar</li>\n <li>each group of the toolbar </li>\n <li>the sidebar</li>\n <li>the element path in the footer </li>\n <li>the wordcount toggle button in the footer </li>\n <li>the branding link in the footer </li>\n <li>the editor resize handle in the footer</li>\n</ul>\n\n<p>Pressing shift + tab will move backwards through the same sections, except when moving from the footer to the toolbar. Focusing the element path then pressing shift + tab will move focus to the first toolbar group, not the last.</p>\n\n<h2>Moving within UI sections</h2>\n\n<p>Keyboard navigation within UI sections can usually be achieved using the left and right arrow keys. This includes:</p>\n<ul>\n <li>moving between menus in the menubar</li>\n <li>moving between buttons in a toolbar group</li>\n <li>moving between items in the element path</li>\n</ul>\n\n<p>In all these UI sections, keyboard navigation will cycle within the section. For example, focusing the last button in a toolbar group then pressing right arrow will move focus to the first item in the same toolbar group. </p>\n\n<h1>Executing buttons</h1>\n\n<p>To execute a button, navigate the selection to the desired button and hit space or enter.</p>\n\n<h1>Opening, navigating and closing menus</h1>\n\n<p>When focusing a menubar button or a toolbar button with a menu, pressing space, enter or down arrow will open the menu. When the menu opens the first item will be selected. To move up or down the menu, press the up or down arrow key respectively. This is the same for submenus, which can also be opened and closed using the left and right arrow keys.</p>\n\n<p>To close any active menu, hit the escape key. When a menu is closed the selection will be restored to its previous selection. This also works for closing submenus.</p>\n\n<h1>Context toolbars and menus</h1>\n\n<p>To focus an open context toolbar such as the table context toolbar, press Ctrl + F9 (Windows) or &#x2303;F9 (MacOS).</p>\n\n<p>Context toolbar navigation is the same as toolbar navigation, and context menu navigation is the same as standard menu navigation.</p>\n\n<h1>Dialog navigation</h1>\n\n<p>There are two types of dialog UIs in TinyMCE: tabbed dialogs and non-tabbed dialogs.</p>\n\n<p>When a non-tabbed dialog is opened, the first interactive component in the dialog will be focused. Users can navigate between interactive components by pressing tab. This includes any footer buttons. Navigation will cycle back to the first dialog component if tab is pressed while focusing the last component in the dialog. Pressing shift + tab will navigate backwards.</p>\n\n<p>When a tabbed dialog is opened, the first button in the tab menu is focused. Pressing tab will navigate to the first interactive component in that tab, and will cycle through the tab\u2019s components, the footer buttons, then back to the tab button. To switch to another tab, focus the tab button for the current tab, then use the arrow keys to cycle through the tab buttons.</p>';
253
- var tab = function () {
254
- var body = {
272
+ const pTab = async pluginUrl => {
273
+ const body = {
255
274
  type: 'htmlpanel',
256
275
  presets: 'document',
257
- html: description
276
+ html: await pLoadI18nHtml(pluginUrl)
258
277
  };
259
278
  return {
260
279
  name: 'keyboardnav',
@@ -265,28 +284,29 @@
265
284
 
266
285
  var global$1 = tinymce.util.Tools.resolve('tinymce.Env');
267
286
 
268
- var convertText = function (source) {
269
- var mac = {
287
+ const convertText = source => {
288
+ const isMac = global$1.os.isMacOS() || global$1.os.isiOS();
289
+ const mac = {
270
290
  alt: '&#x2325;',
271
291
  ctrl: '&#x2303;',
272
292
  shift: '&#x21E7;',
273
293
  meta: '&#x2318;',
274
294
  access: '&#x2303;&#x2325;'
275
295
  };
276
- var other = {
296
+ const other = {
277
297
  meta: 'Ctrl ',
278
298
  access: 'Shift + Alt '
279
299
  };
280
- var replace = global$1.mac ? mac : other;
281
- var shortcut = source.split('+');
282
- var updated = map(shortcut, function (segment) {
283
- var search = segment.toLowerCase().trim();
300
+ const replace = isMac ? mac : other;
301
+ const shortcut = source.split('+');
302
+ const updated = map(shortcut, segment => {
303
+ const search = segment.toLowerCase().trim();
284
304
  return has(replace, search) ? replace[search] : segment;
285
305
  });
286
- return global$1.mac ? updated.join('').replace(/\s/, '') : updated.join('+');
306
+ return isMac ? updated.join('').replace(/\s/, '') : updated.join('+');
287
307
  };
288
308
 
289
- var shortcuts = [
309
+ const shortcuts = [
290
310
  {
291
311
  shortcuts: ['Meta + B'],
292
312
  action: 'Bold'
@@ -392,15 +412,15 @@
392
412
  }
393
413
  ];
394
414
 
395
- var tab$1 = function () {
396
- var shortcutList = map(shortcuts, function (shortcut) {
397
- var shortcutText = map(shortcut.shortcuts, convertText).join(' or ');
415
+ const tab$2 = () => {
416
+ const shortcutList = map(shortcuts, shortcut => {
417
+ const shortcutText = map(shortcut.shortcuts, convertText).join(' or ');
398
418
  return [
399
419
  shortcut.action,
400
420
  shortcutText
401
421
  ];
402
422
  });
403
- var tablePanel = {
423
+ const tablePanel = {
404
424
  type: 'table',
405
425
  header: [
406
426
  'Action',
@@ -415,11 +435,11 @@
415
435
  };
416
436
  };
417
437
 
418
- var global$2 = tinymce.util.Tools.resolve('tinymce.util.I18n');
419
-
420
- var premiumType = 'premium';
421
- var openSourceType = 'opensource';
422
- var urls = map([
438
+ const urls = map([
439
+ {
440
+ key: 'accordion',
441
+ name: 'Accordion'
442
+ },
423
443
  {
424
444
  key: 'advlist',
425
445
  name: 'Advanced List'
@@ -440,10 +460,6 @@
440
460
  key: 'autosave',
441
461
  name: 'Autosave'
442
462
  },
443
- {
444
- key: 'bbcode',
445
- name: 'BBCode'
446
- },
447
463
  {
448
464
  key: 'charmap',
449
465
  name: 'Character Map'
@@ -468,10 +484,6 @@
468
484
  key: 'emoticons',
469
485
  name: 'Emoticons'
470
486
  },
471
- {
472
- key: 'fullpage',
473
- name: 'Full Page'
474
- },
475
487
  {
476
488
  key: 'fullscreen',
477
489
  name: 'Full Screen'
@@ -480,18 +492,10 @@
480
492
  key: 'help',
481
493
  name: 'Help'
482
494
  },
483
- {
484
- key: 'hr',
485
- name: 'Horizontal Rule'
486
- },
487
495
  {
488
496
  key: 'image',
489
497
  name: 'Image'
490
498
  },
491
- {
492
- key: 'imagetools',
493
- name: 'Image Tools'
494
- },
495
499
  {
496
500
  key: 'importcss',
497
501
  name: 'Import CSS'
@@ -500,10 +504,6 @@
500
504
  key: 'insertdatetime',
501
505
  name: 'Insert Date/Time'
502
506
  },
503
- {
504
- key: 'legacyoutput',
505
- name: 'Legacy Output'
506
- },
507
507
  {
508
508
  key: 'link',
509
509
  name: 'Link'
@@ -520,25 +520,17 @@
520
520
  key: 'nonbreaking',
521
521
  name: 'Nonbreaking'
522
522
  },
523
- {
524
- key: 'noneditable',
525
- name: 'Noneditable'
526
- },
527
523
  {
528
524
  key: 'pagebreak',
529
525
  name: 'Page Break'
530
526
  },
531
- {
532
- key: 'paste',
533
- name: 'Paste'
534
- },
535
527
  {
536
528
  key: 'preview',
537
529
  name: 'Preview'
538
530
  },
539
531
  {
540
- key: 'print',
541
- name: 'Print'
532
+ key: 'quickbars',
533
+ name: 'Quick Toolbars'
542
534
  },
543
535
  {
544
536
  key: 'save',
@@ -548,14 +540,6 @@
548
540
  key: 'searchreplace',
549
541
  name: 'Search and Replace'
550
542
  },
551
- {
552
- key: 'spellchecker',
553
- name: 'Spell Checker'
554
- },
555
- {
556
- key: 'tabfocus',
557
- name: 'Tab Focus'
558
- },
559
543
  {
560
544
  key: 'table',
561
545
  name: 'Table'
@@ -568,14 +552,6 @@
568
552
  key: 'textcolor',
569
553
  name: 'Text Color'
570
554
  },
571
- {
572
- key: 'textpattern',
573
- name: 'Text Pattern'
574
- },
575
- {
576
- key: 'toc',
577
- name: 'Table of Contents'
578
- },
579
555
  {
580
556
  key: 'visualblocks',
581
557
  name: 'Visual Blocks'
@@ -588,168 +564,217 @@
588
564
  key: 'wordcount',
589
565
  name: 'Word Count'
590
566
  },
567
+ {
568
+ key: 'a11ychecker',
569
+ name: 'Accessibility Checker',
570
+ type: 'premium'
571
+ },
591
572
  {
592
573
  key: 'advcode',
593
- name: 'Advanced Code Editor*',
594
- type: premiumType
574
+ name: 'Advanced Code Editor',
575
+ type: 'premium'
595
576
  },
596
577
  {
597
- key: 'formatpainter',
598
- name: 'Format Painter*',
599
- type: premiumType
578
+ key: 'advtable',
579
+ name: 'Advanced Tables',
580
+ type: 'premium'
600
581
  },
601
582
  {
602
- key: 'powerpaste',
603
- name: 'PowerPaste*',
604
- type: premiumType
583
+ key: 'advtemplate',
584
+ name: 'Advanced Templates',
585
+ type: 'premium',
586
+ slug: 'advanced-templates'
605
587
  },
606
588
  {
607
- key: 'tinydrive',
608
- name: 'Tiny Drive*',
609
- type: premiumType
589
+ key: 'ai',
590
+ name: 'AI Assistant',
591
+ type: 'premium'
610
592
  },
611
593
  {
612
- key: 'tinymcespellchecker',
613
- name: 'Spell Checker Pro*',
614
- type: premiumType
594
+ key: 'casechange',
595
+ name: 'Case Change',
596
+ type: 'premium'
615
597
  },
616
598
  {
617
- key: 'a11ychecker',
618
- name: 'Accessibility Checker*',
619
- type: premiumType
599
+ key: 'checklist',
600
+ name: 'Checklist',
601
+ type: 'premium'
620
602
  },
621
603
  {
622
- key: 'linkchecker',
623
- name: 'Link Checker*',
624
- type: premiumType
604
+ key: 'editimage',
605
+ name: 'Enhanced Image Editing',
606
+ type: 'premium'
625
607
  },
626
608
  {
627
- key: 'mentions',
628
- name: 'Mentions*',
629
- type: premiumType
609
+ key: 'footnotes',
610
+ name: 'Footnotes',
611
+ type: 'premium'
612
+ },
613
+ {
614
+ key: 'typography',
615
+ name: 'Advanced Typography',
616
+ type: 'premium',
617
+ slug: 'advanced-typography'
630
618
  },
631
619
  {
632
620
  key: 'mediaembed',
633
- name: 'Enhanced Media Embed*',
634
- type: premiumType
621
+ name: 'Enhanced Media Embed',
622
+ type: 'premium',
623
+ slug: 'introduction-to-mediaembed'
635
624
  },
636
625
  {
637
- key: 'checklist',
638
- name: 'Checklist*',
639
- type: premiumType
626
+ key: 'export',
627
+ name: 'Export',
628
+ type: 'premium'
640
629
  },
641
630
  {
642
- key: 'casechange',
643
- name: 'Case Change*',
644
- type: premiumType
631
+ key: 'formatpainter',
632
+ name: 'Format Painter',
633
+ type: 'premium'
645
634
  },
646
635
  {
647
- key: 'permanentpen',
648
- name: 'Permanent Pen*',
649
- type: premiumType
636
+ key: 'inlinecss',
637
+ name: 'Inline CSS',
638
+ type: 'premium',
639
+ slug: 'inline-css'
640
+ },
641
+ {
642
+ key: 'linkchecker',
643
+ name: 'Link Checker',
644
+ type: 'premium'
645
+ },
646
+ {
647
+ key: 'mentions',
648
+ name: 'Mentions',
649
+ type: 'premium'
650
+ },
651
+ {
652
+ key: 'mergetags',
653
+ name: 'Merge Tags',
654
+ type: 'premium'
650
655
  },
651
656
  {
652
657
  key: 'pageembed',
653
- name: 'Page Embed*',
654
- type: premiumType
658
+ name: 'Page Embed',
659
+ type: 'premium'
655
660
  },
656
661
  {
657
- key: 'tinycomments',
658
- name: 'Tiny Comments*',
659
- type: premiumType,
660
- slug: 'comments'
662
+ key: 'permanentpen',
663
+ name: 'Permanent Pen',
664
+ type: 'premium'
661
665
  },
662
666
  {
663
- key: 'advtable',
664
- name: 'Advanced Tables*',
665
- type: premiumType
667
+ key: 'powerpaste',
668
+ name: 'PowerPaste',
669
+ type: 'premium',
670
+ slug: 'introduction-to-powerpaste'
671
+ },
672
+ {
673
+ key: 'rtc',
674
+ name: 'Real-Time Collaboration',
675
+ type: 'premium',
676
+ slug: 'rtc-introduction'
677
+ },
678
+ {
679
+ key: 'tinymcespellchecker',
680
+ name: 'Spell Checker Pro',
681
+ type: 'premium',
682
+ slug: 'introduction-to-tiny-spellchecker'
666
683
  },
667
684
  {
668
685
  key: 'autocorrect',
669
- name: 'Autocorrect*',
670
- type: premiumType
686
+ name: 'Spelling Autocorrect',
687
+ type: 'premium'
671
688
  },
672
689
  {
673
- key: 'export',
674
- name: 'Export*',
675
- type: premiumType
690
+ key: 'tableofcontents',
691
+ name: 'Table of Contents',
692
+ type: 'premium'
693
+ },
694
+ {
695
+ key: 'tinycomments',
696
+ name: 'Tiny Comments',
697
+ type: 'premium',
698
+ slug: 'introduction-to-tiny-comments'
699
+ },
700
+ {
701
+ key: 'tinydrive',
702
+ name: 'Tiny Drive',
703
+ type: 'premium',
704
+ slug: 'tinydrive-introduction'
676
705
  }
677
- ], function (item) {
678
- return __assign(__assign({}, item), {
679
- type: item.type || openSourceType,
680
- slug: item.slug || item.key
681
- });
682
- });
706
+ ], item => ({
707
+ ...item,
708
+ type: item.type || 'opensource',
709
+ slug: item.slug || item.key
710
+ }));
683
711
 
684
- var tab$2 = function (editor) {
685
- var availablePlugins = function () {
686
- var premiumPlugins = [
687
- 'Accessibility Checker',
688
- 'Advanced Code Editor',
689
- 'Advanced Tables',
690
- 'Case Change',
691
- 'Checklist',
692
- 'Export',
693
- 'Tiny Comments',
694
- 'Tiny Drive',
695
- 'Enhanced Media Embed',
696
- 'Format Painter',
697
- 'Link Checker',
698
- 'Mentions',
699
- 'MoxieManager',
700
- 'Page Embed',
701
- 'Permanent Pen',
702
- 'PowerPaste',
703
- 'Spell Checker Pro'
704
- ];
705
- var premiumPluginList = map(premiumPlugins, function (plugin) {
706
- return '<li>' + global$2.translate(plugin) + '</li>';
707
- }).join('');
708
- return '<div data-mce-tabstop="1" tabindex="-1">' + '<p><b>' + global$2.translate('Premium plugins:') + '</b></p>' + '<ul>' + premiumPluginList + '<li class="tox-help__more-link" "><a href="https://www.tiny.cloud/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">' + global$2.translate('Learn more...') + '</a></li>' + '</ul>' + '</div>';
709
- };
710
- var makeLink = function (p) {
711
- return '<a href="' + p.url + '" target="_blank" rel="noopener">' + p.name + '</a>';
712
- };
713
- var maybeUrlize = function (editor, key) {
714
- return find(urls, function (x) {
715
- return x.key === key;
716
- }).fold(function () {
717
- var getMetadata = editor.plugins[key].getMetadata;
718
- return typeof getMetadata === 'function' ? makeLink(getMetadata()) : key;
719
- }, function (x) {
720
- return makeLink({
721
- name: x.name,
722
- url: 'https://www.tiny.cloud/docs/plugins/' + x.type + '/' + x.slug
723
- });
712
+ const tab$1 = editor => {
713
+ const availablePlugins = () => {
714
+ const premiumPlugins = filter(urls, ({type}) => {
715
+ return type === 'premium';
724
716
  });
717
+ const sortedPremiumPlugins = sort(map(premiumPlugins, p => p.name), (s1, s2) => s1.localeCompare(s2));
718
+ const premiumPluginList = map(sortedPremiumPlugins, pluginName => `<li>${ pluginName }</li>`).join('');
719
+ return '<div>' + '<p><b>' + global$2.translate('Premium plugins:') + '</b></p>' + '<ul>' + premiumPluginList + '<li class="tox-help__more-link" ">' + '<a href="https://www.tiny.cloud/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" rel="noopener" target="_blank"' + ' data-alloy-tabstop="true" tabindex="-1">' + global$2.translate('Learn more...') + '</a></li>' + '</ul>' + '</div>';
720
+ };
721
+ const makeLink = p => `<a data-alloy-tabstop="true" tabindex="-1" href="${ p.url }" target="_blank" rel="noopener">${ p.name }</a>`;
722
+ const identifyUnknownPlugin = (editor, key) => {
723
+ const getMetadata = editor.plugins[key].getMetadata;
724
+ if (isFunction(getMetadata)) {
725
+ const metadata = getMetadata();
726
+ return {
727
+ name: metadata.name,
728
+ html: makeLink(metadata)
729
+ };
730
+ } else {
731
+ return {
732
+ name: key,
733
+ html: key
734
+ };
735
+ }
725
736
  };
726
- var getPluginKeys = function (editor) {
727
- var keys$1 = keys(editor.plugins);
728
- var forced_plugins = getForcedPlugins(editor);
729
- return forced_plugins === undefined ? keys$1 : filter(keys$1, function (k) {
730
- return !contains(forced_plugins, k);
737
+ const getPluginData = (editor, key) => find(urls, x => {
738
+ return x.key === key;
739
+ }).fold(() => {
740
+ return identifyUnknownPlugin(editor, key);
741
+ }, x => {
742
+ const name = x.type === 'premium' ? `${ x.name }*` : x.name;
743
+ const html = makeLink({
744
+ name,
745
+ url: `https://www.tiny.cloud/docs/tinymce/6/${ x.slug }/`
731
746
  });
732
- };
733
- var pluginLister = function (editor) {
734
- var pluginKeys = getPluginKeys(editor);
735
- var pluginLis = map(pluginKeys, function (key) {
736
- return '<li>' + maybeUrlize(editor, key) + '</li>';
747
+ return {
748
+ name,
749
+ html
750
+ };
751
+ });
752
+ const getPluginKeys = editor => {
753
+ const keys$1 = keys(editor.plugins);
754
+ const forcedPlugins = getForcedPlugins(editor);
755
+ return isUndefined(forcedPlugins) ? keys$1 : filter(keys$1, k => !contains(forcedPlugins, k));
756
+ };
757
+ const pluginLister = editor => {
758
+ const pluginKeys = getPluginKeys(editor);
759
+ const sortedPluginData = sort(map(pluginKeys, k => getPluginData(editor, k)), (pd1, pd2) => pd1.name.localeCompare(pd2.name));
760
+ const pluginLis = map(sortedPluginData, key => {
761
+ return '<li>' + key.html + '</li>';
737
762
  });
738
- var count = pluginLis.length;
739
- var pluginsString = pluginLis.join('');
740
- var html = '<p><b>' + global$2.translate([
763
+ const count = pluginLis.length;
764
+ const pluginsString = pluginLis.join('');
765
+ const html = '<p><b>' + global$2.translate([
741
766
  'Plugins installed ({0}):',
742
767
  count
743
768
  ]) + '</b></p>' + '<ul>' + pluginsString + '</ul>';
744
769
  return html;
745
770
  };
746
- var installedPlugins = function (editor) {
771
+ const installedPlugins = editor => {
747
772
  if (editor == null) {
748
773
  return '';
749
774
  }
750
- return '<div data-mce-tabstop="1" tabindex="-1">' + pluginLister(editor) + '</div>';
775
+ return '<div>' + pluginLister(editor) + '</div>';
751
776
  };
752
- var htmlPanel = {
777
+ const htmlPanel = {
753
778
  type: 'htmlpanel',
754
779
  presets: 'document',
755
780
  html: [
@@ -764,15 +789,13 @@
764
789
  };
765
790
  };
766
791
 
767
- var global$3 = tinymce.util.Tools.resolve('tinymce.EditorManager');
792
+ var global = tinymce.util.Tools.resolve('tinymce.EditorManager');
768
793
 
769
- var tab$3 = function () {
770
- var getVersion = function (major, minor) {
771
- return major.indexOf('@') === 0 ? 'X.X.X' : major + '.' + minor;
772
- };
773
- var version = getVersion(global$3.majorVersion, global$3.minorVersion);
774
- var changeLogLink = '<a href="https://www.tiny.cloud/docs/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">TinyMCE ' + version + '</a>';
775
- var htmlPanel = {
794
+ const tab = () => {
795
+ const getVersion = (major, minor) => major.indexOf('@') === 0 ? 'X.X.X' : major + '.' + minor;
796
+ const version = getVersion(global.majorVersion, global.minorVersion);
797
+ const changeLogLink = '<a data-alloy-tabstop="true" tabindex="-1" href="https://www.tiny.cloud/docs/tinymce/6/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" rel="noopener" target="_blank">TinyMCE ' + version + '</a>';
798
+ const htmlPanel = {
776
799
  type: 'htmlpanel',
777
800
  html: '<p>' + global$2.translate([
778
801
  'You are using {0}',
@@ -787,64 +810,64 @@
787
810
  };
788
811
  };
789
812
 
790
- var parseHelpTabsSetting = function (tabsFromSettings, tabs) {
791
- var newTabs = {};
792
- var names = map(tabsFromSettings, function (t) {
793
- if (typeof t === 'string') {
813
+ const parseHelpTabsSetting = (tabsFromSettings, tabs) => {
814
+ const newTabs = {};
815
+ const names = map(tabsFromSettings, t => {
816
+ var _a;
817
+ if (isString(t)) {
794
818
  if (has(tabs, t)) {
795
819
  newTabs[t] = tabs[t];
796
820
  }
797
821
  return t;
798
822
  } else {
799
- newTabs[t.name] = t;
800
- return t.name;
823
+ const name = (_a = t.name) !== null && _a !== void 0 ? _a : generate('tab-name');
824
+ newTabs[name] = t;
825
+ return name;
801
826
  }
802
827
  });
803
828
  return {
804
829
  tabs: newTabs,
805
- names: names
830
+ names
806
831
  };
807
832
  };
808
- var getNamesFromTabs = function (tabs) {
809
- var names = keys(tabs);
810
- var idx = names.indexOf('versions');
833
+ const getNamesFromTabs = tabs => {
834
+ const names = keys(tabs);
835
+ const idx = names.indexOf('versions');
811
836
  if (idx !== -1) {
812
837
  names.splice(idx, 1);
813
838
  names.push('versions');
814
839
  }
815
840
  return {
816
- tabs: tabs,
817
- names: names
841
+ tabs,
842
+ names
818
843
  };
819
844
  };
820
- var parseCustomTabs = function (editor, customTabs) {
821
- var _a;
822
- var shortcuts = tab$1();
823
- var nav = tab();
824
- var plugins = tab$2(editor);
825
- var versions = tab$3();
826
- var tabs = __assign((_a = {}, _a[shortcuts.name] = shortcuts, _a[nav.name] = nav, _a[plugins.name] = plugins, _a[versions.name] = versions, _a), customTabs.get());
827
- return getHelpTabs(editor).fold(function () {
828
- return getNamesFromTabs(tabs);
829
- }, function (tabsFromSettings) {
830
- return parseHelpTabsSetting(tabsFromSettings, tabs);
831
- });
845
+ const pParseCustomTabs = async (editor, customTabs, pluginUrl) => {
846
+ const shortcuts = tab$2();
847
+ const nav = await pTab(pluginUrl);
848
+ const plugins = tab$1(editor);
849
+ const versions = tab();
850
+ const tabs = {
851
+ [shortcuts.name]: shortcuts,
852
+ [nav.name]: nav,
853
+ [plugins.name]: plugins,
854
+ [versions.name]: versions,
855
+ ...customTabs.get()
856
+ };
857
+ return Optional.from(getHelpTabs(editor)).fold(() => getNamesFromTabs(tabs), tabsFromSettings => parseHelpTabsSetting(tabsFromSettings, tabs));
832
858
  };
833
- var init = function (editor, customTabs) {
834
- return function () {
835
- var _a = parseCustomTabs(editor, customTabs), tabs = _a.tabs, names = _a.names;
836
- var foundTabs = map(names, function (name) {
837
- return get$1(tabs, name);
838
- });
839
- var dialogTabs = cat(foundTabs);
840
- var body = {
859
+ const init = (editor, customTabs, pluginUrl) => () => {
860
+ pParseCustomTabs(editor, customTabs, pluginUrl).then(({tabs, names}) => {
861
+ const foundTabs = map(names, name => get(tabs, name));
862
+ const dialogTabs = cat(foundTabs);
863
+ const body = {
841
864
  type: 'tabpanel',
842
865
  tabs: dialogTabs
843
866
  };
844
867
  editor.windowManager.open({
845
868
  title: 'Help',
846
869
  size: 'medium',
847
- body: body,
870
+ body,
848
871
  buttons: [{
849
872
  type: 'cancel',
850
873
  name: 'close',
@@ -853,21 +876,23 @@
853
876
  }],
854
877
  initialData: {}
855
878
  });
856
- };
879
+ });
857
880
  };
858
881
 
859
- function Plugin () {
860
- global.add('help', function (editor) {
861
- var customTabs = Cell({});
862
- var api = get(customTabs);
863
- var dialogOpener = init(editor, customTabs);
864
- register$1(editor, dialogOpener);
882
+ var Plugin = () => {
883
+ global$4.add('help', (editor, pluginUrl) => {
884
+ const customTabs = Cell({});
885
+ const api = get$1(customTabs);
886
+ register$1(editor);
887
+ const dialogOpener = init(editor, customTabs, pluginUrl);
865
888
  register(editor, dialogOpener);
889
+ register$2(editor, dialogOpener);
866
890
  editor.shortcuts.add('Alt+0', 'Open help dialog', 'mceHelp');
891
+ initI18nLoad(editor, pluginUrl);
867
892
  return api;
868
893
  });
869
- }
894
+ };
870
895
 
871
896
  Plugin();
872
897
 
873
- }());
898
+ })();