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,202 +1,180 @@
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
22
  var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
27
23
 
28
- var get = function (toggleState) {
29
- var isEnabled = function () {
24
+ const get$2 = toggleState => {
25
+ const isEnabled = () => {
30
26
  return toggleState.get();
31
27
  };
32
- return { isEnabled: isEnabled };
28
+ return { isEnabled };
33
29
  };
34
30
 
35
- var fireVisualChars = function (editor, state) {
36
- return editor.fire('VisualChars', { state: state });
31
+ const fireVisualChars = (editor, state) => {
32
+ return editor.dispatch('VisualChars', { state });
37
33
  };
38
34
 
39
- var typeOf = function (x) {
40
- var t = typeof x;
35
+ const hasProto = (v, constructor, predicate) => {
36
+ var _a;
37
+ if (predicate(v, constructor.prototype)) {
38
+ return true;
39
+ } else {
40
+ return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
41
+ }
42
+ };
43
+ const typeOf = x => {
44
+ const t = typeof x;
41
45
  if (x === null) {
42
46
  return 'null';
43
- } else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
47
+ } else if (t === 'object' && Array.isArray(x)) {
44
48
  return 'array';
45
- } else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
49
+ } else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
46
50
  return 'string';
47
51
  } else {
48
52
  return t;
49
53
  }
50
54
  };
51
- var isType = function (type) {
52
- return function (value) {
53
- return typeOf(value) === type;
54
- };
55
- };
56
- var isSimpleType = function (type) {
57
- return function (value) {
58
- return typeof value === type;
59
- };
60
- };
61
- var isString = isType('string');
62
- var isBoolean = isSimpleType('boolean');
63
- var isNumber = isSimpleType('number');
64
-
65
- var noop = function () {
66
- };
67
- var constant = function (value) {
68
- return function () {
69
- return value;
70
- };
71
- };
72
- var never = constant(false);
73
- var always = constant(true);
55
+ const isType$1 = type => value => typeOf(value) === type;
56
+ const isSimpleType = type => value => typeof value === type;
57
+ const eq = t => a => t === a;
58
+ const isString = isType$1('string');
59
+ const isObject = isType$1('object');
60
+ const isNull = eq(null);
61
+ const isBoolean = isSimpleType('boolean');
62
+ const isNullable = a => a === null || a === undefined;
63
+ const isNonNullable = a => !isNullable(a);
64
+ const isNumber = isSimpleType('number');
74
65
 
75
- var none = function () {
76
- return NONE;
77
- };
78
- var NONE = function () {
79
- var eq = function (o) {
80
- return o.isNone();
81
- };
82
- var call = function (thunk) {
83
- return thunk();
84
- };
85
- var id = function (n) {
86
- return n;
87
- };
88
- var me = {
89
- fold: function (n, _s) {
90
- return n();
91
- },
92
- is: never,
93
- isSome: never,
94
- isNone: always,
95
- getOr: id,
96
- getOrThunk: call,
97
- getOrDie: function (msg) {
98
- throw new Error(msg || 'error: getOrDie called on none.');
99
- },
100
- getOrNull: constant(null),
101
- getOrUndefined: constant(undefined),
102
- or: id,
103
- orThunk: call,
104
- map: none,
105
- each: noop,
106
- bind: none,
107
- exists: never,
108
- forall: always,
109
- filter: none,
110
- equals: eq,
111
- equals_: eq,
112
- toArray: function () {
113
- return [];
114
- },
115
- toString: constant('none()')
116
- };
117
- return me;
118
- }();
119
- var some = function (a) {
120
- var constant_a = constant(a);
121
- var self = function () {
122
- return me;
123
- };
124
- var bind = function (f) {
125
- return f(a);
126
- };
127
- var me = {
128
- fold: function (n, s) {
129
- return s(a);
130
- },
131
- is: function (v) {
132
- return a === v;
133
- },
134
- isSome: always,
135
- isNone: never,
136
- getOr: constant_a,
137
- getOrThunk: constant_a,
138
- getOrDie: constant_a,
139
- getOrNull: constant_a,
140
- getOrUndefined: constant_a,
141
- or: self,
142
- orThunk: self,
143
- map: function (f) {
144
- return some(f(a));
145
- },
146
- each: function (f) {
147
- f(a);
148
- },
149
- bind: bind,
150
- exists: bind,
151
- forall: bind,
152
- filter: function (f) {
153
- return f(a) ? me : NONE;
154
- },
155
- toArray: function () {
156
- return [a];
157
- },
158
- toString: function () {
159
- return 'some(' + a + ')';
160
- },
161
- equals: function (o) {
162
- return o.is(a);
163
- },
164
- equals_: function (o, elementEq) {
165
- return o.fold(never, function (b) {
166
- return elementEq(a, b);
167
- });
66
+ class Optional {
67
+ constructor(tag, value) {
68
+ this.tag = tag;
69
+ this.value = value;
70
+ }
71
+ static some(value) {
72
+ return new Optional(true, value);
73
+ }
74
+ static none() {
75
+ return Optional.singletonNone;
76
+ }
77
+ fold(onNone, onSome) {
78
+ if (this.tag) {
79
+ return onSome(this.value);
80
+ } else {
81
+ return onNone();
168
82
  }
169
- };
170
- return me;
171
- };
172
- var from = function (value) {
173
- return value === null || value === undefined ? NONE : some(value);
174
- };
175
- var Optional = {
176
- some: some,
177
- none: none,
178
- from: from
179
- };
83
+ }
84
+ isSome() {
85
+ return this.tag;
86
+ }
87
+ isNone() {
88
+ return !this.tag;
89
+ }
90
+ map(mapper) {
91
+ if (this.tag) {
92
+ return Optional.some(mapper(this.value));
93
+ } else {
94
+ return Optional.none();
95
+ }
96
+ }
97
+ bind(binder) {
98
+ if (this.tag) {
99
+ return binder(this.value);
100
+ } else {
101
+ return Optional.none();
102
+ }
103
+ }
104
+ exists(predicate) {
105
+ return this.tag && predicate(this.value);
106
+ }
107
+ forall(predicate) {
108
+ return !this.tag || predicate(this.value);
109
+ }
110
+ filter(predicate) {
111
+ if (!this.tag || predicate(this.value)) {
112
+ return this;
113
+ } else {
114
+ return Optional.none();
115
+ }
116
+ }
117
+ getOr(replacement) {
118
+ return this.tag ? this.value : replacement;
119
+ }
120
+ or(replacement) {
121
+ return this.tag ? this : replacement;
122
+ }
123
+ getOrThunk(thunk) {
124
+ return this.tag ? this.value : thunk();
125
+ }
126
+ orThunk(thunk) {
127
+ return this.tag ? this : thunk();
128
+ }
129
+ getOrDie(message) {
130
+ if (!this.tag) {
131
+ throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
132
+ } else {
133
+ return this.value;
134
+ }
135
+ }
136
+ static from(value) {
137
+ return isNonNullable(value) ? Optional.some(value) : Optional.none();
138
+ }
139
+ getOrNull() {
140
+ return this.tag ? this.value : null;
141
+ }
142
+ getOrUndefined() {
143
+ return this.value;
144
+ }
145
+ each(worker) {
146
+ if (this.tag) {
147
+ worker(this.value);
148
+ }
149
+ }
150
+ toArray() {
151
+ return this.tag ? [this.value] : [];
152
+ }
153
+ toString() {
154
+ return this.tag ? `some(${ this.value })` : 'none()';
155
+ }
156
+ }
157
+ Optional.singletonNone = new Optional(false);
180
158
 
181
- var map = function (xs, f) {
182
- var len = xs.length;
183
- var r = new Array(len);
184
- for (var i = 0; i < len; i++) {
185
- var x = xs[i];
159
+ const map = (xs, f) => {
160
+ const len = xs.length;
161
+ const r = new Array(len);
162
+ for (let i = 0; i < len; i++) {
163
+ const x = xs[i];
186
164
  r[i] = f(x, i);
187
165
  }
188
166
  return r;
189
167
  };
190
- var each = function (xs, f) {
191
- for (var i = 0, len = xs.length; i < len; i++) {
192
- var x = xs[i];
168
+ const each$1 = (xs, f) => {
169
+ for (let i = 0, len = xs.length; i < len; i++) {
170
+ const x = xs[i];
193
171
  f(x, i);
194
172
  }
195
173
  };
196
- var filter = function (xs, pred) {
197
- var r = [];
198
- for (var i = 0, len = xs.length; i < len; i++) {
199
- var x = xs[i];
174
+ const filter = (xs, pred) => {
175
+ const r = [];
176
+ for (let i = 0, len = xs.length; i < len; i++) {
177
+ const x = xs[i];
200
178
  if (pred(x, i)) {
201
179
  r.push(x);
202
180
  }
@@ -204,34 +182,61 @@
204
182
  return r;
205
183
  };
206
184
 
207
- var keys = Object.keys;
208
- var each$1 = function (obj, f) {
209
- var props = keys(obj);
210
- for (var k = 0, len = props.length; k < len; k++) {
211
- var i = props[k];
212
- var x = obj[i];
185
+ const keys = Object.keys;
186
+ const each = (obj, f) => {
187
+ const props = keys(obj);
188
+ for (let k = 0, len = props.length; k < len; k++) {
189
+ const i = props[k];
190
+ const x = obj[i];
213
191
  f(x, i);
214
192
  }
215
193
  };
216
194
 
217
- var Global = typeof window !== 'undefined' ? window : Function('return this;')();
195
+ const Global = typeof window !== 'undefined' ? window : Function('return this;')();
218
196
 
219
- var TEXT = 3;
197
+ const path = (parts, scope) => {
198
+ let o = scope !== undefined && scope !== null ? scope : Global;
199
+ for (let i = 0; i < parts.length && o !== undefined && o !== null; ++i) {
200
+ o = o[parts[i]];
201
+ }
202
+ return o;
203
+ };
204
+ const resolve = (p, scope) => {
205
+ const parts = p.split('.');
206
+ return path(parts, scope);
207
+ };
220
208
 
221
- var type = function (element) {
222
- return element.dom.nodeType;
209
+ const unsafe = (name, scope) => {
210
+ return resolve(name, scope);
223
211
  };
224
- var value = function (element) {
225
- return element.dom.nodeValue;
212
+ const getOrDie = (name, scope) => {
213
+ const actual = unsafe(name, scope);
214
+ if (actual === undefined || actual === null) {
215
+ throw new Error(name + ' not available on this browser');
216
+ }
217
+ return actual;
226
218
  };
227
- var isType$1 = function (t) {
228
- return function (element) {
229
- return type(element) === t;
230
- };
219
+
220
+ const getPrototypeOf = Object.getPrototypeOf;
221
+ const sandHTMLElement = scope => {
222
+ return getOrDie('HTMLElement', scope);
223
+ };
224
+ const isPrototypeOf = x => {
225
+ const scope = resolve('ownerDocument.defaultView', x);
226
+ return isObject(x) && (sandHTMLElement(scope).prototype.isPrototypeOf(x) || /^HTML\w*Element$/.test(getPrototypeOf(x).constructor.name));
231
227
  };
232
- var isText = isType$1(TEXT);
233
228
 
234
- var rawSet = function (dom, key, value) {
229
+ const ELEMENT = 1;
230
+ const TEXT = 3;
231
+
232
+ const type = element => element.dom.nodeType;
233
+ const value = element => element.dom.nodeValue;
234
+ const isType = t => element => type(element) === t;
235
+ const isHTMLElement = element => isElement(element) && isPrototypeOf(element.dom);
236
+ const isElement = isType(ELEMENT);
237
+ const isText = isType(TEXT);
238
+
239
+ const rawSet = (dom, key, value) => {
235
240
  if (isString(value) || isBoolean(value) || isNumber(value)) {
236
241
  dom.setAttribute(key, value + '');
237
242
  } else {
@@ -239,126 +244,115 @@
239
244
  throw new Error('Attribute value was not simple');
240
245
  }
241
246
  };
242
- var set = function (element, key, value) {
247
+ const set = (element, key, value) => {
243
248
  rawSet(element.dom, key, value);
244
249
  };
245
- var get$1 = function (element, key) {
246
- var v = element.dom.getAttribute(key);
250
+ const get$1 = (element, key) => {
251
+ const v = element.dom.getAttribute(key);
247
252
  return v === null ? undefined : v;
248
253
  };
249
- var remove = function (element, key) {
254
+ const remove$3 = (element, key) => {
250
255
  element.dom.removeAttribute(key);
251
256
  };
252
257
 
253
- var read = function (element, attr) {
254
- var value = get$1(element, attr);
258
+ const read = (element, attr) => {
259
+ const value = get$1(element, attr);
255
260
  return value === undefined || value === '' ? [] : value.split(' ');
256
261
  };
257
- var add = function (element, attr, id) {
258
- var old = read(element, attr);
259
- var nu = old.concat([id]);
262
+ const add$2 = (element, attr, id) => {
263
+ const old = read(element, attr);
264
+ const nu = old.concat([id]);
260
265
  set(element, attr, nu.join(' '));
261
266
  return true;
262
267
  };
263
- var remove$1 = function (element, attr, id) {
264
- var nu = filter(read(element, attr), function (v) {
265
- return v !== id;
266
- });
268
+ const remove$2 = (element, attr, id) => {
269
+ const nu = filter(read(element, attr), v => v !== id);
267
270
  if (nu.length > 0) {
268
271
  set(element, attr, nu.join(' '));
269
272
  } else {
270
- remove(element, attr);
273
+ remove$3(element, attr);
271
274
  }
272
275
  return false;
273
276
  };
274
277
 
275
- var supports = function (element) {
276
- return element.dom.classList !== undefined;
277
- };
278
- var get$2 = function (element) {
279
- return read(element, 'class');
280
- };
281
- var add$1 = function (element, clazz) {
282
- return add(element, 'class', clazz);
283
- };
284
- var remove$2 = function (element, clazz) {
285
- return remove$1(element, 'class', clazz);
286
- };
278
+ const supports = element => element.dom.classList !== undefined;
279
+ const get = element => read(element, 'class');
280
+ const add$1 = (element, clazz) => add$2(element, 'class', clazz);
281
+ const remove$1 = (element, clazz) => remove$2(element, 'class', clazz);
287
282
 
288
- var add$2 = function (element, clazz) {
283
+ const add = (element, clazz) => {
289
284
  if (supports(element)) {
290
285
  element.dom.classList.add(clazz);
291
286
  } else {
292
287
  add$1(element, clazz);
293
288
  }
294
289
  };
295
- var cleanClass = function (element) {
296
- var classList = supports(element) ? element.dom.classList : get$2(element);
290
+ const cleanClass = element => {
291
+ const classList = supports(element) ? element.dom.classList : get(element);
297
292
  if (classList.length === 0) {
298
- remove(element, 'class');
293
+ remove$3(element, 'class');
299
294
  }
300
295
  };
301
- var remove$3 = function (element, clazz) {
296
+ const remove = (element, clazz) => {
302
297
  if (supports(element)) {
303
- var classList = element.dom.classList;
298
+ const classList = element.dom.classList;
304
299
  classList.remove(clazz);
305
300
  } else {
306
- remove$2(element, clazz);
301
+ remove$1(element, clazz);
307
302
  }
308
303
  cleanClass(element);
309
304
  };
310
305
 
311
- var fromHtml = function (html, scope) {
312
- var doc = scope || document;
313
- var div = doc.createElement('div');
306
+ const fromHtml = (html, scope) => {
307
+ const doc = scope || document;
308
+ const div = doc.createElement('div');
314
309
  div.innerHTML = html;
315
310
  if (!div.hasChildNodes() || div.childNodes.length > 1) {
316
- console.error('HTML does not have a single root node', html);
317
- throw new Error('HTML must have a single root node');
311
+ const message = 'HTML does not have a single root node';
312
+ console.error(message, html);
313
+ throw new Error(message);
318
314
  }
319
315
  return fromDom(div.childNodes[0]);
320
316
  };
321
- var fromTag = function (tag, scope) {
322
- var doc = scope || document;
323
- var node = doc.createElement(tag);
317
+ const fromTag = (tag, scope) => {
318
+ const doc = scope || document;
319
+ const node = doc.createElement(tag);
324
320
  return fromDom(node);
325
321
  };
326
- var fromText = function (text, scope) {
327
- var doc = scope || document;
328
- var node = doc.createTextNode(text);
322
+ const fromText = (text, scope) => {
323
+ const doc = scope || document;
324
+ const node = doc.createTextNode(text);
329
325
  return fromDom(node);
330
326
  };
331
- var fromDom = function (node) {
327
+ const fromDom = node => {
332
328
  if (node === null || node === undefined) {
333
329
  throw new Error('Node cannot be null or undefined');
334
330
  }
335
331
  return { dom: node };
336
332
  };
337
- var fromPoint = function (docElm, x, y) {
338
- return Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
339
- };
340
- var SugarElement = {
341
- fromHtml: fromHtml,
342
- fromTag: fromTag,
343
- fromText: fromText,
344
- fromDom: fromDom,
345
- fromPoint: fromPoint
333
+ const fromPoint = (docElm, x, y) => Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
334
+ const SugarElement = {
335
+ fromHtml,
336
+ fromTag,
337
+ fromText,
338
+ fromDom,
339
+ fromPoint
346
340
  };
347
341
 
348
- var charMap = {
342
+ const charMap = {
349
343
  '\xA0': 'nbsp',
350
344
  '\xAD': 'shy'
351
345
  };
352
- var charMapToRegExp = function (charMap, global) {
353
- var regExp = '';
354
- each$1(charMap, function (_value, key) {
346
+ const charMapToRegExp = (charMap, global) => {
347
+ let regExp = '';
348
+ each(charMap, (_value, key) => {
355
349
  regExp += key;
356
350
  });
357
351
  return new RegExp('[' + regExp + ']', global ? 'g' : '');
358
352
  };
359
- var charMapToSelector = function (charMap) {
360
- var selector = '';
361
- each$1(charMap, function (value) {
353
+ const charMapToSelector = charMap => {
354
+ let selector = '';
355
+ each(charMap, value => {
362
356
  if (selector) {
363
357
  selector += ',';
364
358
  }
@@ -366,176 +360,201 @@
366
360
  });
367
361
  return selector;
368
362
  };
369
- var regExp = charMapToRegExp(charMap);
370
- var regExpGlobal = charMapToRegExp(charMap, true);
371
- var selector = charMapToSelector(charMap);
372
- var nbspClass = 'mce-nbsp';
363
+ const regExp = charMapToRegExp(charMap);
364
+ const regExpGlobal = charMapToRegExp(charMap, true);
365
+ const selector = charMapToSelector(charMap);
366
+ const nbspClass = 'mce-nbsp';
373
367
 
374
- var wrapCharWithSpan = function (value) {
375
- return '<span data-mce-bogus="1" class="mce-' + charMap[value] + '">' + value + '</span>';
376
- };
368
+ const getRaw = element => element.dom.contentEditable;
377
369
 
378
- var isMatch = function (n) {
379
- var value$1 = value(n);
380
- return isText(n) && value$1 !== undefined && regExp.test(value$1);
381
- };
382
- var filterDescendants = function (scope, predicate) {
383
- var result = [];
384
- var dom = scope.dom;
385
- var children = map(dom.childNodes, SugarElement.fromDom);
386
- each(children, function (x) {
387
- if (predicate(x)) {
370
+ const wrapCharWithSpan = value => '<span data-mce-bogus="1" class="mce-' + charMap[value] + '">' + value + '</span>';
371
+
372
+ const isWrappedNbsp = node => node.nodeName.toLowerCase() === 'span' && node.classList.contains('mce-nbsp-wrap');
373
+ const isMatch = n => {
374
+ const value$1 = value(n);
375
+ return isText(n) && isString(value$1) && regExp.test(value$1);
376
+ };
377
+ const isContentEditableFalse = node => isHTMLElement(node) && getRaw(node) === 'false';
378
+ const isChildEditable = (node, currentState) => {
379
+ if (isHTMLElement(node) && !isWrappedNbsp(node.dom)) {
380
+ const value = getRaw(node);
381
+ if (value === 'true') {
382
+ return true;
383
+ } else if (value === 'false') {
384
+ return false;
385
+ }
386
+ }
387
+ return currentState;
388
+ };
389
+ const filterEditableDescendants = (scope, predicate, editable) => {
390
+ let result = [];
391
+ const dom = scope.dom;
392
+ const children = map(dom.childNodes, SugarElement.fromDom);
393
+ const isEditable = node => isWrappedNbsp(node.dom) || !isContentEditableFalse(node);
394
+ each$1(children, x => {
395
+ if (editable && isEditable(x) && predicate(x)) {
388
396
  result = result.concat([x]);
389
397
  }
390
- result = result.concat(filterDescendants(x, predicate));
398
+ result = result.concat(filterEditableDescendants(x, predicate, isChildEditable(x, editable)));
391
399
  });
392
400
  return result;
393
401
  };
394
- var findParentElm = function (elm, rootElm) {
402
+ const findParentElm = (elm, rootElm) => {
395
403
  while (elm.parentNode) {
396
404
  if (elm.parentNode === rootElm) {
397
- return elm;
405
+ return rootElm;
398
406
  }
399
407
  elm = elm.parentNode;
400
408
  }
409
+ return undefined;
401
410
  };
402
- var replaceWithSpans = function (text) {
403
- return text.replace(regExpGlobal, wrapCharWithSpan);
404
- };
411
+ const replaceWithSpans = text => text.replace(regExpGlobal, wrapCharWithSpan);
405
412
 
406
- var isWrappedNbsp = function (node) {
407
- return node.nodeName.toLowerCase() === 'span' && node.classList.contains('mce-nbsp-wrap');
408
- };
409
- var show = function (editor, rootElm) {
410
- var nodeList = filterDescendants(SugarElement.fromDom(rootElm), isMatch);
411
- each(nodeList, function (n) {
412
- var parent = n.dom.parentNode;
413
+ const show = (editor, rootElm) => {
414
+ const dom = editor.dom;
415
+ const nodeList = filterEditableDescendants(SugarElement.fromDom(rootElm), isMatch, editor.dom.isEditable(rootElm));
416
+ each$1(nodeList, n => {
417
+ var _a;
418
+ const parent = n.dom.parentNode;
413
419
  if (isWrappedNbsp(parent)) {
414
- add$2(SugarElement.fromDom(parent), nbspClass);
420
+ add(SugarElement.fromDom(parent), nbspClass);
415
421
  } else {
416
- var withSpans = replaceWithSpans(editor.dom.encode(value(n)));
417
- var div = editor.dom.create('div', null, withSpans);
418
- var node = void 0;
422
+ const withSpans = replaceWithSpans(dom.encode((_a = value(n)) !== null && _a !== void 0 ? _a : ''));
423
+ const div = dom.create('div', {}, withSpans);
424
+ let node;
419
425
  while (node = div.lastChild) {
420
- editor.dom.insertAfter(node, n.dom);
426
+ dom.insertAfter(node, n.dom);
421
427
  }
422
428
  editor.dom.remove(n.dom);
423
429
  }
424
430
  });
425
431
  };
426
- var hide = function (editor, rootElm) {
427
- var nodeList = editor.dom.select(selector, rootElm);
428
- each(nodeList, function (node) {
432
+ const hide = (editor, rootElm) => {
433
+ const nodeList = editor.dom.select(selector, rootElm);
434
+ each$1(nodeList, node => {
429
435
  if (isWrappedNbsp(node)) {
430
- remove$3(SugarElement.fromDom(node), nbspClass);
436
+ remove(SugarElement.fromDom(node), nbspClass);
431
437
  } else {
432
438
  editor.dom.remove(node, true);
433
439
  }
434
440
  });
435
441
  };
436
- var toggle = function (editor) {
437
- var body = editor.getBody();
438
- var bookmark = editor.selection.getBookmark();
439
- var parentNode = findParentElm(editor.selection.getNode(), body);
442
+ const toggle = editor => {
443
+ const body = editor.getBody();
444
+ const bookmark = editor.selection.getBookmark();
445
+ let parentNode = findParentElm(editor.selection.getNode(), body);
440
446
  parentNode = parentNode !== undefined ? parentNode : body;
441
447
  hide(editor, parentNode);
442
448
  show(editor, parentNode);
443
449
  editor.selection.moveToBookmark(bookmark);
444
450
  };
445
451
 
446
- var applyVisualChars = function (editor, toggleState) {
452
+ const applyVisualChars = (editor, toggleState) => {
447
453
  fireVisualChars(editor, toggleState.get());
448
- var body = editor.getBody();
454
+ const body = editor.getBody();
449
455
  if (toggleState.get() === true) {
450
456
  show(editor, body);
451
457
  } else {
452
458
  hide(editor, body);
453
459
  }
454
460
  };
455
- var toggleVisualChars = function (editor, toggleState) {
461
+ const toggleVisualChars = (editor, toggleState) => {
456
462
  toggleState.set(!toggleState.get());
457
- var bookmark = editor.selection.getBookmark();
463
+ const bookmark = editor.selection.getBookmark();
458
464
  applyVisualChars(editor, toggleState);
459
465
  editor.selection.moveToBookmark(bookmark);
460
466
  };
461
467
 
462
- var register = function (editor, toggleState) {
463
- editor.addCommand('mceVisualChars', function () {
468
+ const register$2 = (editor, toggleState) => {
469
+ editor.addCommand('mceVisualChars', () => {
464
470
  toggleVisualChars(editor, toggleState);
465
471
  });
466
472
  };
467
473
 
468
- var isEnabledByDefault = function (editor) {
469
- return editor.getParam('visualchars_default_state', false);
470
- };
471
- var hasForcedRootBlock = function (editor) {
472
- return editor.getParam('forced_root_block') !== false;
474
+ const option = name => editor => editor.options.get(name);
475
+ const register$1 = editor => {
476
+ const registerOption = editor.options.register;
477
+ registerOption('visualchars_default_state', {
478
+ processor: 'boolean',
479
+ default: false
480
+ });
473
481
  };
482
+ const isEnabledByDefault = option('visualchars_default_state');
474
483
 
475
- var setup = function (editor, toggleState) {
476
- editor.on('init', function () {
484
+ const setup$1 = (editor, toggleState) => {
485
+ editor.on('init', () => {
477
486
  applyVisualChars(editor, toggleState);
478
487
  });
479
488
  };
480
489
 
481
- var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay');
490
+ const first = (fn, rate) => {
491
+ let timer = null;
492
+ const cancel = () => {
493
+ if (!isNull(timer)) {
494
+ clearTimeout(timer);
495
+ timer = null;
496
+ }
497
+ };
498
+ const throttle = (...args) => {
499
+ if (isNull(timer)) {
500
+ timer = setTimeout(() => {
501
+ timer = null;
502
+ fn.apply(null, args);
503
+ }, rate);
504
+ }
505
+ };
506
+ return {
507
+ cancel,
508
+ throttle
509
+ };
510
+ };
482
511
 
483
- var setup$1 = function (editor, toggleState) {
484
- var debouncedToggle = global$1.debounce(function () {
512
+ const setup = (editor, toggleState) => {
513
+ const debouncedToggle = first(() => {
485
514
  toggle(editor);
486
515
  }, 300);
487
- if (hasForcedRootBlock(editor)) {
488
- editor.on('keydown', function (e) {
489
- if (toggleState.get() === true) {
490
- e.keyCode === 13 ? toggle(editor) : debouncedToggle();
491
- }
492
- });
493
- }
494
- editor.on('remove', debouncedToggle.stop);
516
+ editor.on('keydown', e => {
517
+ if (toggleState.get() === true) {
518
+ e.keyCode === 13 ? toggle(editor) : debouncedToggle.throttle();
519
+ }
520
+ });
521
+ editor.on('remove', debouncedToggle.cancel);
495
522
  };
496
523
 
497
- var toggleActiveState = function (editor, enabledStated) {
498
- return function (api) {
499
- api.setActive(enabledStated.get());
500
- var editorEventCallback = function (e) {
501
- return api.setActive(e.state);
502
- };
503
- editor.on('VisualChars', editorEventCallback);
504
- return function () {
505
- return editor.off('VisualChars', editorEventCallback);
506
- };
507
- };
508
- };
509
- var register$1 = function (editor, toggleState) {
524
+ const toggleActiveState = (editor, enabledStated) => api => {
525
+ api.setActive(enabledStated.get());
526
+ const editorEventCallback = e => api.setActive(e.state);
527
+ editor.on('VisualChars', editorEventCallback);
528
+ return () => editor.off('VisualChars', editorEventCallback);
529
+ };
530
+ const register = (editor, toggleState) => {
531
+ const onAction = () => editor.execCommand('mceVisualChars');
510
532
  editor.ui.registry.addToggleButton('visualchars', {
511
533
  tooltip: 'Show invisible characters',
512
534
  icon: 'visualchars',
513
- onAction: function () {
514
- return editor.execCommand('mceVisualChars');
515
- },
535
+ onAction,
516
536
  onSetup: toggleActiveState(editor, toggleState)
517
537
  });
518
538
  editor.ui.registry.addToggleMenuItem('visualchars', {
519
539
  text: 'Show invisible characters',
520
540
  icon: 'visualchars',
521
- onAction: function () {
522
- return editor.execCommand('mceVisualChars');
523
- },
541
+ onAction,
524
542
  onSetup: toggleActiveState(editor, toggleState)
525
543
  });
526
544
  };
527
545
 
528
- function Plugin () {
529
- global.add('visualchars', function (editor) {
530
- var toggleState = Cell(isEnabledByDefault(editor));
546
+ var Plugin = () => {
547
+ global.add('visualchars', editor => {
548
+ register$1(editor);
549
+ const toggleState = Cell(isEnabledByDefault(editor));
550
+ register$2(editor, toggleState);
531
551
  register(editor, toggleState);
532
- register$1(editor, toggleState);
533
- setup$1(editor, toggleState);
534
552
  setup(editor, toggleState);
535
- return get(toggleState);
553
+ setup$1(editor, toggleState);
554
+ return get$2(toggleState);
536
555
  });
537
- }
556
+ };
538
557
 
539
558
  Plugin();
540
559
 
541
- }());
560
+ })();