argous 1.2.202 → 1.2.204

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 (426) hide show
  1. package/dist/components/ConfirmModal/ModalProvider.d.ts +1 -1
  2. package/dist/components/Editor/Events.d.ts +9 -7
  3. package/dist/components/Editor/Events.js +0 -7
  4. package/dist/components/Editor/ScriptLoader2.d.ts +10 -0
  5. package/dist/components/Editor/ScriptLoader2.js +146 -0
  6. package/dist/components/Editor/TinyMCE.d.ts +1 -8
  7. package/dist/components/Editor/TinyMCE.js +2 -10
  8. package/dist/components/Editor/Utils.d.ts +2 -7
  9. package/dist/components/Editor/Utils.js +29 -9
  10. package/dist/components/Editor/components/Editor.d.ts +17 -16
  11. package/dist/components/Editor/components/Editor.js +94 -51
  12. package/dist/components/Editor/components/EditorPropTypes.d.ts +1 -8
  13. package/dist/components/Editor/components/EditorPropTypes.js +19 -9
  14. package/dist/components/Editor/index.d.ts +2 -9
  15. package/dist/components/Editor/index.js +0 -7
  16. package/dist/components/Editor/skins/content/dark/content.d.ts +0 -0
  17. package/dist/components/Editor/skins/content/dark/content.js +3 -0
  18. package/dist/components/Editor/skins/content/default/content.d.ts +0 -0
  19. package/dist/components/Editor/skins/content/default/content.js +3 -0
  20. package/dist/components/Editor/skins/content/document/content.d.ts +0 -0
  21. package/dist/components/Editor/skins/content/document/content.js +3 -0
  22. package/dist/components/Editor/skins/content/tinymce-5/content.d.ts +0 -0
  23. package/dist/components/Editor/skins/content/tinymce-5/content.js +3 -0
  24. package/dist/components/Editor/skins/content/tinymce-5-dark/content.d.ts +0 -0
  25. package/dist/components/Editor/skins/content/tinymce-5-dark/content.js +3 -0
  26. package/dist/components/Editor/skins/content/writer/content.d.ts +0 -0
  27. package/dist/components/Editor/skins/content/writer/content.js +3 -0
  28. package/dist/components/Editor/skins/ui/oxide/content.d.ts +0 -0
  29. package/dist/components/Editor/skins/ui/oxide/content.inline.d.ts +0 -0
  30. package/dist/components/Editor/skins/ui/oxide/content.inline.js +3 -0
  31. package/dist/components/Editor/skins/ui/oxide/content.js +3 -0
  32. package/dist/components/Editor/skins/ui/oxide/skin.d.ts +0 -0
  33. package/dist/components/Editor/skins/ui/oxide/skin.js +3 -0
  34. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
  35. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.js +3 -0
  36. package/dist/components/Editor/skins/ui/oxide-dark/content.d.ts +0 -0
  37. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.d.ts +0 -0
  38. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.js +3 -0
  39. package/dist/components/Editor/skins/ui/oxide-dark/content.js +3 -0
  40. package/dist/components/Editor/skins/ui/oxide-dark/skin.d.ts +0 -0
  41. package/dist/components/Editor/skins/ui/oxide-dark/skin.js +3 -0
  42. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
  43. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +3 -0
  44. package/dist/components/Editor/skins/ui/tinymce-5/content.d.ts +0 -0
  45. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.d.ts +0 -0
  46. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.js +3 -0
  47. package/dist/components/Editor/skins/ui/tinymce-5/content.js +3 -0
  48. package/dist/components/Editor/skins/ui/tinymce-5/skin.d.ts +0 -0
  49. package/dist/components/Editor/skins/ui/tinymce-5/skin.js +3 -0
  50. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.d.ts +0 -0
  51. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +3 -0
  52. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.d.ts +0 -0
  53. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.d.ts +0 -0
  54. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +3 -0
  55. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.js +3 -0
  56. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.d.ts +0 -0
  57. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.js +3 -0
  58. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.d.ts +0 -0
  59. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +3 -0
  60. package/dist/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  61. package/lib/components/Editor/Events.ts +9 -8
  62. package/lib/components/Editor/ScriptLoader2.ts +161 -0
  63. package/lib/components/Editor/TinyMCE.ts +2 -12
  64. package/lib/components/Editor/Utils.ts +25 -8
  65. package/lib/components/Editor/components/Editor.tsx +102 -79
  66. package/lib/components/Editor/components/EditorPropTypes.ts +21 -12
  67. package/lib/components/Editor/index.tsx +2 -10
  68. package/lib/components/Editor/skins/content/dark/content.js +2 -0
  69. package/lib/components/Editor/skins/content/dark/content.min.css +1 -8
  70. package/lib/components/Editor/skins/content/default/content.js +2 -0
  71. package/lib/components/Editor/skins/content/default/content.min.css +0 -7
  72. package/lib/components/Editor/skins/content/document/content.js +2 -0
  73. package/lib/components/Editor/skins/content/document/content.min.css +0 -7
  74. package/lib/components/Editor/skins/content/tinymce-5/content.js +2 -0
  75. package/lib/components/Editor/skins/content/tinymce-5/content.min.css +1 -0
  76. package/lib/components/Editor/skins/content/tinymce-5-dark/content.js +2 -0
  77. package/lib/components/Editor/skins/content/tinymce-5-dark/content.min.css +1 -0
  78. package/lib/components/Editor/skins/content/writer/content.js +2 -0
  79. package/lib/components/Editor/skins/content/writer/content.min.css +0 -7
  80. package/lib/components/Editor/skins/ui/oxide/content.inline.js +2 -0
  81. package/lib/components/Editor/skins/ui/oxide/content.inline.min.css +1 -0
  82. package/lib/components/Editor/skins/ui/oxide/content.js +2 -0
  83. package/lib/components/Editor/skins/ui/oxide/content.min.css +1 -0
  84. package/lib/components/Editor/skins/ui/oxide/skin.js +2 -0
  85. package/lib/components/Editor/skins/ui/oxide/skin.min.css +1 -0
  86. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.js +2 -0
  87. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  88. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.js +2 -0
  89. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.min.css +1 -0
  90. package/lib/components/Editor/skins/ui/oxide-dark/content.js +2 -0
  91. package/lib/components/Editor/skins/ui/oxide-dark/content.min.css +1 -0
  92. package/lib/components/Editor/skins/ui/oxide-dark/skin.js +2 -0
  93. package/lib/components/Editor/skins/ui/oxide-dark/skin.min.css +1 -0
  94. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  95. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  96. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.js +2 -0
  97. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.min.css +1 -0
  98. package/lib/components/Editor/skins/ui/tinymce-5/content.js +2 -0
  99. package/lib/components/Editor/skins/ui/tinymce-5/content.min.css +1 -0
  100. package/lib/components/Editor/skins/ui/tinymce-5/skin.js +2 -0
  101. package/lib/components/Editor/skins/ui/tinymce-5/skin.min.css +1 -0
  102. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  103. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  104. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  105. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  106. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.js +2 -0
  107. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.min.css +1 -0
  108. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.js +2 -0
  109. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  110. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  111. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  112. package/lib/components/Editor/tinymce/README.md +24 -14
  113. package/lib/components/Editor/tinymce/icons/default/icons.js +185 -163
  114. package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -1
  115. package/lib/components/Editor/tinymce/langs/README.md +1 -1
  116. package/lib/components/Editor/tinymce/license.txt +21 -504
  117. package/lib/components/Editor/tinymce/models/dom/model.js +8040 -0
  118. package/lib/components/Editor/tinymce/models/dom/model.min.js +4 -0
  119. package/lib/components/Editor/tinymce/plugins/accordion/plugin.js +1054 -0
  120. package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +4 -0
  121. package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +187 -208
  122. package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +2 -7
  123. package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +82 -84
  124. package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +2 -7
  125. package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +210 -167
  126. package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +2 -7
  127. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +118 -97
  128. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +2 -7
  129. package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +129 -108
  130. package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +2 -7
  131. package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +285 -333
  132. package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +2 -7
  133. package/lib/components/Editor/tinymce/plugins/code/plugin.js +19 -26
  134. package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +2 -7
  135. package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2225 -2094
  136. package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +2 -7
  137. package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +318 -243
  138. package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +2 -7
  139. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -9424
  140. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +1 -1
  141. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +1 -9423
  142. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +1 -1
  143. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +406 -416
  144. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +2 -7
  145. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +821 -604
  146. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +2 -7
  147. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
  148. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
  149. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
  150. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
  151. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
  152. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
  153. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
  154. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
  155. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
  156. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
  157. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
  158. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
  159. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
  160. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
  161. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
  162. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
  163. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
  164. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
  165. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
  166. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
  167. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
  168. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
  169. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
  170. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
  171. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
  172. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
  173. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
  174. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
  175. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
  176. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
  177. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
  178. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
  179. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
  180. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
  181. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
  182. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
  183. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
  184. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
  185. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
  186. package/lib/components/Editor/tinymce/plugins/help/plugin.js +428 -403
  187. package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +2 -7
  188. package/lib/components/Editor/tinymce/plugins/image/plugin.js +887 -1043
  189. package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +2 -7
  190. package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +163 -162
  191. package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +2 -7
  192. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +101 -91
  193. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +2 -7
  194. package/lib/components/Editor/tinymce/plugins/link/plugin.js +739 -784
  195. package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +2 -7
  196. package/lib/components/Editor/tinymce/plugins/lists/plugin.js +1282 -1396
  197. package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +2 -7
  198. package/lib/components/Editor/tinymce/plugins/media/plugin.js +641 -806
  199. package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +2 -7
  200. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +76 -54
  201. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +2 -7
  202. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +58 -46
  203. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +2 -7
  204. package/lib/components/Editor/tinymce/plugins/preview/plugin.js +39 -69
  205. package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +2 -7
  206. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +307 -349
  207. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +2 -7
  208. package/lib/components/Editor/tinymce/plugins/save/plugin.js +50 -51
  209. package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +2 -7
  210. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +517 -587
  211. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +2 -7
  212. package/lib/components/Editor/tinymce/plugins/table/plugin.js +2666 -10142
  213. package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +2 -7
  214. package/lib/components/Editor/tinymce/plugins/template/plugin.js +403 -413
  215. package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +2 -7
  216. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +42 -48
  217. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +2 -7
  218. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +352 -333
  219. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +2 -7
  220. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +184 -195
  221. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +2 -7
  222. package/lib/components/Editor/tinymce/skins/content/dark/content.css +2 -8
  223. package/lib/components/Editor/tinymce/skins/content/dark/content.js +2 -0
  224. package/lib/components/Editor/tinymce/skins/content/dark/content.js.map +1 -0
  225. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +2 -8
  226. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -1
  227. package/lib/components/Editor/tinymce/skins/content/default/content.css +0 -6
  228. package/lib/components/Editor/tinymce/skins/content/default/content.js +2 -0
  229. package/lib/components/Editor/tinymce/skins/content/default/content.js.map +1 -0
  230. package/lib/components/Editor/tinymce/skins/content/default/content.min.css +1 -7
  231. package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -1
  232. package/lib/components/Editor/tinymce/skins/content/document/content.css +0 -6
  233. package/lib/components/Editor/tinymce/skins/content/document/content.js +2 -0
  234. package/lib/components/Editor/tinymce/skins/content/document/content.js.map +1 -0
  235. package/lib/components/Editor/tinymce/skins/content/document/content.min.css +0 -6
  236. package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -1
  237. package/lib/components/Editor/{skins/content/default → tinymce/skins/content/tinymce-5}/content.css +0 -6
  238. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js +2 -0
  239. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js.map +1 -0
  240. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +2 -0
  241. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css.map +1 -0
  242. package/lib/components/Editor/{skins/content/dark → tinymce/skins/content/tinymce-5-dark}/content.css +1 -7
  243. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
  244. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js.map +1 -0
  245. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +2 -0
  246. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css.map +1 -0
  247. package/lib/components/Editor/tinymce/skins/content/writer/content.css +0 -6
  248. package/lib/components/Editor/tinymce/skins/content/writer/content.js +2 -0
  249. package/lib/components/Editor/tinymce/skins/content/writer/content.js.map +1 -0
  250. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +0 -6
  251. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -1
  252. package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +74 -21
  253. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +74 -21
  254. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
  255. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js.map +1 -0
  256. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
  257. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -1
  258. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js +2 -0
  259. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js.map +1 -0
  260. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +1 -7
  261. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -1
  262. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +1131 -402
  263. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js +2 -0
  264. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js.map +1 -0
  265. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +1 -7
  266. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -1
  267. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +8 -15
  268. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  269. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js.map +1 -0
  270. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
  271. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -1
  272. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +72 -20
  273. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +74 -21
  274. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  275. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js.map +1 -0
  276. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
  277. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
  278. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
  279. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js.map +1 -0
  280. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
  281. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -1
  282. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +1155 -423
  283. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  284. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js.map +1 -0
  285. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
  286. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -1
  287. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +8 -15
  288. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  289. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js.map +1 -0
  290. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
  291. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -1
  292. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.css +75 -22
  293. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.inline.css +75 -22
  294. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
  295. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js.map +1 -0
  296. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +2 -0
  297. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css.map +1 -0
  298. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
  299. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js.map +1 -0
  300. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +2 -0
  301. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css.map +1 -0
  302. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.css +1261 -438
  303. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
  304. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js.map +1 -0
  305. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +2 -0
  306. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css.map +1 -0
  307. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.shadowdom.css +8 -15
  308. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  309. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js.map +1 -0
  310. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +2 -0
  311. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css.map +1 -0
  312. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.css +73 -21
  313. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.inline.css +75 -22
  314. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  315. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js.map +1 -0
  316. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +2 -0
  317. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css.map +1 -0
  318. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
  319. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js.map +1 -0
  320. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +2 -0
  321. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css.map +1 -0
  322. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.css +1244 -421
  323. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
  324. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js.map +1 -0
  325. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +2 -0
  326. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css.map +1 -0
  327. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.shadowdom.css +8 -15
  328. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  329. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js.map +1 -0
  330. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +2 -0
  331. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.map +1 -0
  332. package/lib/components/Editor/tinymce/themes/silver/theme.js +23228 -24955
  333. package/lib/components/Editor/tinymce/themes/silver/theme.min.js +2 -7
  334. package/lib/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  335. package/lib/components/Editor/tinymce/tinymce.js +23668 -22018
  336. package/lib/components/Editor/tinymce/tinymce.min.js +2 -30104
  337. package/package.json +1 -1
  338. package/lib/components/Editor/ScriptLoader.ts +0 -96
  339. package/lib/components/Editor/skins/content/dark/content.min.css.map +0 -1
  340. package/lib/components/Editor/skins/content/default/content.min.css.map +0 -1
  341. package/lib/components/Editor/skins/content/document/content.css +0 -72
  342. package/lib/components/Editor/skins/content/document/content.min.css.map +0 -1
  343. package/lib/components/Editor/skins/content/writer/content.css +0 -68
  344. package/lib/components/Editor/skins/content/writer/content.min.css.map +0 -1
  345. package/lib/components/Editor/skins/ui/dark/content.inline.min.css +0 -8
  346. package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +0 -1
  347. package/lib/components/Editor/skins/ui/dark/content.min.css +0 -8
  348. package/lib/components/Editor/skins/ui/dark/content.min.css.map +0 -1
  349. package/lib/components/Editor/skins/ui/dark/content.mobile.css +0 -29
  350. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +0 -8
  351. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +0 -1
  352. package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
  353. package/lib/components/Editor/skins/ui/dark/skin.min.css +0 -8
  354. package/lib/components/Editor/skins/ui/dark/skin.min.css.map +0 -1
  355. package/lib/components/Editor/skins/ui/dark/skin.mobile.css +0 -673
  356. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +0 -8
  357. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +0 -1
  358. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +0 -8
  359. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +0 -1
  360. package/lib/components/Editor/skins/ui/default/content.inline.min.css +0 -8
  361. package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +0 -1
  362. package/lib/components/Editor/skins/ui/default/content.min.css +0 -8
  363. package/lib/components/Editor/skins/ui/default/content.min.css.map +0 -1
  364. package/lib/components/Editor/skins/ui/default/content.mobile.css +0 -29
  365. package/lib/components/Editor/skins/ui/default/content.mobile.min.css +0 -8
  366. package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +0 -1
  367. package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
  368. package/lib/components/Editor/skins/ui/default/skin.min.css +0 -8
  369. package/lib/components/Editor/skins/ui/default/skin.min.css.map +0 -1
  370. package/lib/components/Editor/skins/ui/default/skin.mobile.css +0 -673
  371. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +0 -8
  372. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +0 -1
  373. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +0 -8
  374. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +0 -1
  375. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/fonts/tinymce-mobile.woff +0 -0
  376. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.css +0 -1641
  377. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +0 -8
  378. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +0 -1
  379. package/lib/components/Editor/tinymce/jquery.tinymce.min.js +0 -92
  380. package/lib/components/Editor/tinymce/langs/pt_BR.js +0 -419
  381. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -99
  382. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +0 -9
  383. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.js +0 -22
  384. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +0 -9
  385. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.js +0 -22
  386. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +0 -9
  387. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -544
  388. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +0 -9
  389. package/lib/components/Editor/tinymce/plugins/hr/plugin.js +0 -46
  390. package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +0 -9
  391. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1354
  392. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +0 -9
  393. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -199
  394. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +0 -9
  395. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -117
  396. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +0 -9
  397. package/lib/components/Editor/tinymce/plugins/paste/plugin.js +0 -1764
  398. package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +0 -9
  399. package/lib/components/Editor/tinymce/plugins/print/plugin.js +0 -53
  400. package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +0 -9
  401. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -731
  402. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +0 -9
  403. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -129
  404. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +0 -9
  405. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.js +0 -22
  406. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +0 -9
  407. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1394
  408. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +0 -9
  409. package/lib/components/Editor/tinymce/plugins/toc/plugin.js +0 -236
  410. package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +0 -9
  411. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +0 -29
  412. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +0 -8
  413. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +0 -1
  414. package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  415. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +0 -673
  416. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -8
  417. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +0 -1
  418. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -29
  419. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -8
  420. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +0 -1
  421. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  422. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -673
  423. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -8
  424. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +0 -1
  425. package/lib/components/Editor/tinymce/themes/mobile/theme.js +0 -13587
  426. package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +0 -9
@@ -1,320 +1,395 @@
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
8
  var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
13
9
 
14
- var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
15
-
16
- var setDir = function (editor, dir) {
17
- var dom = editor.dom;
18
- var curDir;
19
- var blocks = editor.selection.getSelectedBlocks();
20
- if (blocks.length) {
21
- curDir = dom.getAttrib(blocks[0], 'dir');
22
- global$1.each(blocks, function (block) {
23
- if (!dom.getParent(block.parentNode, '*[dir="' + dir + '"]', dom.getRoot())) {
24
- dom.setAttrib(block, 'dir', curDir !== dir ? dir : null);
25
- }
26
- });
27
- editor.nodeChanged();
10
+ const hasProto = (v, constructor, predicate) => {
11
+ var _a;
12
+ if (predicate(v, constructor.prototype)) {
13
+ return true;
14
+ } else {
15
+ return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
28
16
  }
29
17
  };
30
-
31
- var register = function (editor) {
32
- editor.addCommand('mceDirectionLTR', function () {
33
- setDir(editor, 'ltr');
34
- });
35
- editor.addCommand('mceDirectionRTL', function () {
36
- setDir(editor, 'rtl');
37
- });
38
- };
39
-
40
- var isSimpleType = function (type) {
41
- return function (value) {
42
- return typeof value === type;
43
- };
44
- };
45
- var isNullable = function (a) {
46
- return a === null || a === undefined;
47
- };
48
- var isNonNullable = function (a) {
49
- return !isNullable(a);
18
+ const typeOf = x => {
19
+ const t = typeof x;
20
+ if (x === null) {
21
+ return 'null';
22
+ } else if (t === 'object' && Array.isArray(x)) {
23
+ return 'array';
24
+ } else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
25
+ return 'string';
26
+ } else {
27
+ return t;
28
+ }
50
29
  };
51
- var isFunction = isSimpleType('function');
30
+ const isType$1 = type => value => typeOf(value) === type;
31
+ const isSimpleType = type => value => typeof value === type;
32
+ const isString = isType$1('string');
33
+ const isBoolean = isSimpleType('boolean');
34
+ const isNullable = a => a === null || a === undefined;
35
+ const isNonNullable = a => !isNullable(a);
36
+ const isFunction = isSimpleType('function');
37
+ const isNumber = isSimpleType('number');
52
38
 
53
- var noop = function () {
54
- };
55
- var compose1 = function (fbc, fab) {
56
- return function (a) {
57
- return fbc(fab(a));
58
- };
59
- };
60
- var constant = function (value) {
61
- return function () {
39
+ const compose1 = (fbc, fab) => a => fbc(fab(a));
40
+ const constant = value => {
41
+ return () => {
62
42
  return value;
63
43
  };
64
44
  };
65
- var never = constant(false);
66
- var always = constant(true);
45
+ const never = constant(false);
67
46
 
68
- var none = function () {
69
- return NONE;
70
- };
71
- var NONE = function () {
72
- var eq = function (o) {
73
- return o.isNone();
74
- };
75
- var call = function (thunk) {
76
- return thunk();
77
- };
78
- var id = function (n) {
79
- return n;
80
- };
81
- var me = {
82
- fold: function (n, _s) {
83
- return n();
84
- },
85
- is: never,
86
- isSome: never,
87
- isNone: always,
88
- getOr: id,
89
- getOrThunk: call,
90
- getOrDie: function (msg) {
91
- throw new Error(msg || 'error: getOrDie called on none.');
92
- },
93
- getOrNull: constant(null),
94
- getOrUndefined: constant(undefined),
95
- or: id,
96
- orThunk: call,
97
- map: none,
98
- each: noop,
99
- bind: none,
100
- exists: never,
101
- forall: always,
102
- filter: none,
103
- equals: eq,
104
- equals_: eq,
105
- toArray: function () {
106
- return [];
107
- },
108
- toString: constant('none()')
109
- };
110
- return me;
111
- }();
112
- var some = function (a) {
113
- var constant_a = constant(a);
114
- var self = function () {
115
- return me;
116
- };
117
- var bind = function (f) {
118
- return f(a);
119
- };
120
- var me = {
121
- fold: function (n, s) {
122
- return s(a);
123
- },
124
- is: function (v) {
125
- return a === v;
126
- },
127
- isSome: always,
128
- isNone: never,
129
- getOr: constant_a,
130
- getOrThunk: constant_a,
131
- getOrDie: constant_a,
132
- getOrNull: constant_a,
133
- getOrUndefined: constant_a,
134
- or: self,
135
- orThunk: self,
136
- map: function (f) {
137
- return some(f(a));
138
- },
139
- each: function (f) {
140
- f(a);
141
- },
142
- bind: bind,
143
- exists: bind,
144
- forall: bind,
145
- filter: function (f) {
146
- return f(a) ? me : NONE;
147
- },
148
- toArray: function () {
149
- return [a];
150
- },
151
- toString: function () {
152
- return 'some(' + a + ')';
153
- },
154
- equals: function (o) {
155
- return o.is(a);
156
- },
157
- equals_: function (o, elementEq) {
158
- return o.fold(never, function (b) {
159
- return elementEq(a, b);
160
- });
47
+ class Optional {
48
+ constructor(tag, value) {
49
+ this.tag = tag;
50
+ this.value = value;
51
+ }
52
+ static some(value) {
53
+ return new Optional(true, value);
54
+ }
55
+ static none() {
56
+ return Optional.singletonNone;
57
+ }
58
+ fold(onNone, onSome) {
59
+ if (this.tag) {
60
+ return onSome(this.value);
61
+ } else {
62
+ return onNone();
161
63
  }
162
- };
163
- return me;
64
+ }
65
+ isSome() {
66
+ return this.tag;
67
+ }
68
+ isNone() {
69
+ return !this.tag;
70
+ }
71
+ map(mapper) {
72
+ if (this.tag) {
73
+ return Optional.some(mapper(this.value));
74
+ } else {
75
+ return Optional.none();
76
+ }
77
+ }
78
+ bind(binder) {
79
+ if (this.tag) {
80
+ return binder(this.value);
81
+ } else {
82
+ return Optional.none();
83
+ }
84
+ }
85
+ exists(predicate) {
86
+ return this.tag && predicate(this.value);
87
+ }
88
+ forall(predicate) {
89
+ return !this.tag || predicate(this.value);
90
+ }
91
+ filter(predicate) {
92
+ if (!this.tag || predicate(this.value)) {
93
+ return this;
94
+ } else {
95
+ return Optional.none();
96
+ }
97
+ }
98
+ getOr(replacement) {
99
+ return this.tag ? this.value : replacement;
100
+ }
101
+ or(replacement) {
102
+ return this.tag ? this : replacement;
103
+ }
104
+ getOrThunk(thunk) {
105
+ return this.tag ? this.value : thunk();
106
+ }
107
+ orThunk(thunk) {
108
+ return this.tag ? this : thunk();
109
+ }
110
+ getOrDie(message) {
111
+ if (!this.tag) {
112
+ throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
113
+ } else {
114
+ return this.value;
115
+ }
116
+ }
117
+ static from(value) {
118
+ return isNonNullable(value) ? Optional.some(value) : Optional.none();
119
+ }
120
+ getOrNull() {
121
+ return this.tag ? this.value : null;
122
+ }
123
+ getOrUndefined() {
124
+ return this.value;
125
+ }
126
+ each(worker) {
127
+ if (this.tag) {
128
+ worker(this.value);
129
+ }
130
+ }
131
+ toArray() {
132
+ return this.tag ? [this.value] : [];
133
+ }
134
+ toString() {
135
+ return this.tag ? `some(${ this.value })` : 'none()';
136
+ }
137
+ }
138
+ Optional.singletonNone = new Optional(false);
139
+
140
+ const map = (xs, f) => {
141
+ const len = xs.length;
142
+ const r = new Array(len);
143
+ for (let i = 0; i < len; i++) {
144
+ const x = xs[i];
145
+ r[i] = f(x, i);
146
+ }
147
+ return r;
164
148
  };
165
- var from = function (value) {
166
- return value === null || value === undefined ? NONE : some(value);
149
+ const each = (xs, f) => {
150
+ for (let i = 0, len = xs.length; i < len; i++) {
151
+ const x = xs[i];
152
+ f(x, i);
153
+ }
167
154
  };
168
- var Optional = {
169
- some: some,
170
- none: none,
171
- from: from
155
+ const filter = (xs, pred) => {
156
+ const r = [];
157
+ for (let i = 0, len = xs.length; i < len; i++) {
158
+ const x = xs[i];
159
+ if (pred(x, i)) {
160
+ r.push(x);
161
+ }
162
+ }
163
+ return r;
172
164
  };
173
165
 
174
- var isSupported = function (dom) {
175
- return dom.style !== undefined && isFunction(dom.style.getPropertyValue);
176
- };
166
+ const DOCUMENT = 9;
167
+ const DOCUMENT_FRAGMENT = 11;
168
+ const ELEMENT = 1;
169
+ const TEXT = 3;
177
170
 
178
- var fromHtml = function (html, scope) {
179
- var doc = scope || document;
180
- var div = doc.createElement('div');
171
+ const fromHtml = (html, scope) => {
172
+ const doc = scope || document;
173
+ const div = doc.createElement('div');
181
174
  div.innerHTML = html;
182
175
  if (!div.hasChildNodes() || div.childNodes.length > 1) {
183
- console.error('HTML does not have a single root node', html);
184
- throw new Error('HTML must have a single root node');
176
+ const message = 'HTML does not have a single root node';
177
+ console.error(message, html);
178
+ throw new Error(message);
185
179
  }
186
180
  return fromDom(div.childNodes[0]);
187
181
  };
188
- var fromTag = function (tag, scope) {
189
- var doc = scope || document;
190
- var node = doc.createElement(tag);
182
+ const fromTag = (tag, scope) => {
183
+ const doc = scope || document;
184
+ const node = doc.createElement(tag);
191
185
  return fromDom(node);
192
186
  };
193
- var fromText = function (text, scope) {
194
- var doc = scope || document;
195
- var node = doc.createTextNode(text);
187
+ const fromText = (text, scope) => {
188
+ const doc = scope || document;
189
+ const node = doc.createTextNode(text);
196
190
  return fromDom(node);
197
191
  };
198
- var fromDom = function (node) {
192
+ const fromDom = node => {
199
193
  if (node === null || node === undefined) {
200
194
  throw new Error('Node cannot be null or undefined');
201
195
  }
202
196
  return { dom: node };
203
197
  };
204
- var fromPoint = function (docElm, x, y) {
205
- return Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
198
+ const fromPoint = (docElm, x, y) => Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
199
+ const SugarElement = {
200
+ fromHtml,
201
+ fromTag,
202
+ fromText,
203
+ fromDom,
204
+ fromPoint
206
205
  };
207
- var SugarElement = {
208
- fromHtml: fromHtml,
209
- fromTag: fromTag,
210
- fromText: fromText,
211
- fromDom: fromDom,
212
- fromPoint: fromPoint
206
+
207
+ const is = (element, selector) => {
208
+ const dom = element.dom;
209
+ if (dom.nodeType !== ELEMENT) {
210
+ return false;
211
+ } else {
212
+ const elem = dom;
213
+ if (elem.matches !== undefined) {
214
+ return elem.matches(selector);
215
+ } else if (elem.msMatchesSelector !== undefined) {
216
+ return elem.msMatchesSelector(selector);
217
+ } else if (elem.webkitMatchesSelector !== undefined) {
218
+ return elem.webkitMatchesSelector(selector);
219
+ } else if (elem.mozMatchesSelector !== undefined) {
220
+ return elem.mozMatchesSelector(selector);
221
+ } else {
222
+ throw new Error('Browser lacks native selectors');
223
+ }
224
+ }
213
225
  };
214
226
 
215
- var Global = typeof window !== 'undefined' ? window : Function('return this;')();
227
+ typeof window !== 'undefined' ? window : Function('return this;')();
216
228
 
217
- var DOCUMENT = 9;
218
- var DOCUMENT_FRAGMENT = 11;
219
- var TEXT = 3;
229
+ const name = element => {
230
+ const r = element.dom.nodeName;
231
+ return r.toLowerCase();
232
+ };
233
+ const type = element => element.dom.nodeType;
234
+ const isType = t => element => type(element) === t;
235
+ const isElement = isType(ELEMENT);
236
+ const isText = isType(TEXT);
237
+ const isDocument = isType(DOCUMENT);
238
+ const isDocumentFragment = isType(DOCUMENT_FRAGMENT);
239
+ const isTag = tag => e => isElement(e) && name(e) === tag;
220
240
 
221
- var type = function (element) {
222
- return element.dom.nodeType;
223
- };
224
- var isType = function (t) {
225
- return function (element) {
226
- return type(element) === t;
227
- };
228
- };
229
- var isText = isType(TEXT);
230
- var isDocument = isType(DOCUMENT);
231
- var isDocumentFragment = isType(DOCUMENT_FRAGMENT);
241
+ const owner = element => SugarElement.fromDom(element.dom.ownerDocument);
242
+ const documentOrOwner = dos => isDocument(dos) ? dos : owner(dos);
243
+ const parent = element => Optional.from(element.dom.parentNode).map(SugarElement.fromDom);
244
+ const children$2 = element => map(element.dom.childNodes, SugarElement.fromDom);
232
245
 
233
- var owner = function (element) {
234
- return SugarElement.fromDom(element.dom.ownerDocument);
246
+ const rawSet = (dom, key, value) => {
247
+ if (isString(value) || isBoolean(value) || isNumber(value)) {
248
+ dom.setAttribute(key, value + '');
249
+ } else {
250
+ console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);
251
+ throw new Error('Attribute value was not simple');
252
+ }
235
253
  };
236
- var documentOrOwner = function (dos) {
237
- return isDocument(dos) ? dos : owner(dos);
254
+ const set = (element, key, value) => {
255
+ rawSet(element.dom, key, value);
238
256
  };
239
-
240
- var isShadowRoot = function (dos) {
241
- return isDocumentFragment(dos) && isNonNullable(dos.dom.host);
257
+ const remove = (element, key) => {
258
+ element.dom.removeAttribute(key);
242
259
  };
243
- var supported = isFunction(Element.prototype.attachShadow) && isFunction(Node.prototype.getRootNode);
244
- var getRootNode = supported ? function (e) {
245
- return SugarElement.fromDom(e.dom.getRootNode());
246
- } : documentOrOwner;
247
- var getShadowRoot = function (e) {
248
- var r = getRootNode(e);
260
+
261
+ const isShadowRoot = dos => isDocumentFragment(dos) && isNonNullable(dos.dom.host);
262
+ const supported = isFunction(Element.prototype.attachShadow) && isFunction(Node.prototype.getRootNode);
263
+ const getRootNode = supported ? e => SugarElement.fromDom(e.dom.getRootNode()) : documentOrOwner;
264
+ const getShadowRoot = e => {
265
+ const r = getRootNode(e);
249
266
  return isShadowRoot(r) ? Optional.some(r) : Optional.none();
250
267
  };
251
- var getShadowHost = function (e) {
252
- return SugarElement.fromDom(e.dom.host);
253
- };
268
+ const getShadowHost = e => SugarElement.fromDom(e.dom.host);
254
269
 
255
- var inBody = function (element) {
256
- var dom = isText(element) ? element.dom.parentNode : element.dom;
270
+ const inBody = element => {
271
+ const dom = isText(element) ? element.dom.parentNode : element.dom;
257
272
  if (dom === undefined || dom === null || dom.ownerDocument === null) {
258
273
  return false;
259
274
  }
260
- var doc = dom.ownerDocument;
261
- return getShadowRoot(SugarElement.fromDom(dom)).fold(function () {
262
- return doc.body.contains(dom);
263
- }, compose1(inBody, getShadowHost));
275
+ const doc = dom.ownerDocument;
276
+ return getShadowRoot(SugarElement.fromDom(dom)).fold(() => doc.body.contains(dom), compose1(inBody, getShadowHost));
264
277
  };
265
278
 
266
- var get = function (element, property) {
267
- var dom = element.dom;
268
- var styles = window.getComputedStyle(dom);
269
- var r = styles.getPropertyValue(property);
279
+ const ancestor$1 = (scope, predicate, isRoot) => {
280
+ let element = scope.dom;
281
+ const stop = isFunction(isRoot) ? isRoot : never;
282
+ while (element.parentNode) {
283
+ element = element.parentNode;
284
+ const el = SugarElement.fromDom(element);
285
+ if (predicate(el)) {
286
+ return Optional.some(el);
287
+ } else if (stop(el)) {
288
+ break;
289
+ }
290
+ }
291
+ return Optional.none();
292
+ };
293
+
294
+ const ancestor = (scope, selector, isRoot) => ancestor$1(scope, e => is(e, selector), isRoot);
295
+
296
+ const isSupported = dom => dom.style !== undefined && isFunction(dom.style.getPropertyValue);
297
+
298
+ const get = (element, property) => {
299
+ const dom = element.dom;
300
+ const styles = window.getComputedStyle(dom);
301
+ const r = styles.getPropertyValue(property);
270
302
  return r === '' && !inBody(element) ? getUnsafeProperty(dom, property) : r;
271
303
  };
272
- var getUnsafeProperty = function (dom, property) {
273
- return isSupported(dom) ? dom.style.getPropertyValue(property) : '';
304
+ const getUnsafeProperty = (dom, property) => isSupported(dom) ? dom.style.getPropertyValue(property) : '';
305
+
306
+ const getDirection = element => get(element, 'direction') === 'rtl' ? 'rtl' : 'ltr';
307
+
308
+ const children$1 = (scope, predicate) => filter(children$2(scope), predicate);
309
+
310
+ const children = (scope, selector) => children$1(scope, e => is(e, selector));
311
+
312
+ const getParentElement = element => parent(element).filter(isElement);
313
+ const getNormalizedBlock = (element, isListItem) => {
314
+ const normalizedElement = isListItem ? ancestor(element, 'ol,ul') : Optional.some(element);
315
+ return normalizedElement.getOr(element);
316
+ };
317
+ const isListItem = isTag('li');
318
+ const setDirOnElements = (dom, blocks, dir) => {
319
+ each(blocks, block => {
320
+ const blockElement = SugarElement.fromDom(block);
321
+ const isBlockElementListItem = isListItem(blockElement);
322
+ const normalizedBlock = getNormalizedBlock(blockElement, isBlockElementListItem);
323
+ const normalizedBlockParent = getParentElement(normalizedBlock);
324
+ normalizedBlockParent.each(parent => {
325
+ dom.setStyle(normalizedBlock.dom, 'direction', null);
326
+ const parentDirection = getDirection(parent);
327
+ if (parentDirection === dir) {
328
+ remove(normalizedBlock, 'dir');
329
+ } else {
330
+ set(normalizedBlock, 'dir', dir);
331
+ }
332
+ if (getDirection(normalizedBlock) !== dir) {
333
+ dom.setStyle(normalizedBlock.dom, 'direction', dir);
334
+ }
335
+ if (isBlockElementListItem) {
336
+ const listItems = children(normalizedBlock, 'li[dir],li[style]');
337
+ each(listItems, listItem => {
338
+ remove(listItem, 'dir');
339
+ dom.setStyle(listItem.dom, 'direction', null);
340
+ });
341
+ }
342
+ });
343
+ });
344
+ };
345
+ const setDir = (editor, dir) => {
346
+ if (editor.selection.isEditable()) {
347
+ setDirOnElements(editor.dom, editor.selection.getSelectedBlocks(), dir);
348
+ editor.nodeChanged();
349
+ }
274
350
  };
275
351
 
276
- var getDirection = function (element) {
277
- return get(element, 'direction') === 'rtl' ? 'rtl' : 'ltr';
352
+ const register$1 = editor => {
353
+ editor.addCommand('mceDirectionLTR', () => {
354
+ setDir(editor, 'ltr');
355
+ });
356
+ editor.addCommand('mceDirectionRTL', () => {
357
+ setDir(editor, 'rtl');
358
+ });
278
359
  };
279
360
 
280
- var getNodeChangeHandler = function (editor, dir) {
281
- return function (api) {
282
- var nodeChangeHandler = function (e) {
283
- var element = SugarElement.fromDom(e.element);
284
- api.setActive(getDirection(element) === dir);
285
- };
286
- editor.on('NodeChange', nodeChangeHandler);
287
- return function () {
288
- return editor.off('NodeChange', nodeChangeHandler);
289
- };
361
+ const getNodeChangeHandler = (editor, dir) => api => {
362
+ const nodeChangeHandler = e => {
363
+ const element = SugarElement.fromDom(e.element);
364
+ api.setActive(getDirection(element) === dir);
365
+ api.setEnabled(editor.selection.isEditable());
290
366
  };
367
+ editor.on('NodeChange', nodeChangeHandler);
368
+ api.setEnabled(editor.selection.isEditable());
369
+ return () => editor.off('NodeChange', nodeChangeHandler);
291
370
  };
292
- var register$1 = function (editor) {
371
+ const register = editor => {
293
372
  editor.ui.registry.addToggleButton('ltr', {
294
373
  tooltip: 'Left to right',
295
374
  icon: 'ltr',
296
- onAction: function () {
297
- return editor.execCommand('mceDirectionLTR');
298
- },
375
+ onAction: () => editor.execCommand('mceDirectionLTR'),
299
376
  onSetup: getNodeChangeHandler(editor, 'ltr')
300
377
  });
301
378
  editor.ui.registry.addToggleButton('rtl', {
302
379
  tooltip: 'Right to left',
303
380
  icon: 'rtl',
304
- onAction: function () {
305
- return editor.execCommand('mceDirectionRTL');
306
- },
381
+ onAction: () => editor.execCommand('mceDirectionRTL'),
307
382
  onSetup: getNodeChangeHandler(editor, 'rtl')
308
383
  });
309
384
  };
310
385
 
311
- function Plugin () {
312
- global.add('directionality', function (editor) {
313
- register(editor);
386
+ var Plugin = () => {
387
+ global.add('directionality', editor => {
314
388
  register$1(editor);
389
+ register(editor);
315
390
  });
316
- }
391
+ };
317
392
 
318
393
  Plugin();
319
394
 
320
- }());
395
+ })();