argous 1.2.202 → 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.
- package/dist/components/ConfirmModal/ModalProvider.d.ts +1 -1
- package/dist/components/Editor/components/Editor.d.ts +4 -4
- package/dist/components/Editor/components/Editor.js +3 -3
- package/dist/components/Editor/skins/content/dark/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/dark/content.js +3 -0
- package/dist/components/Editor/skins/content/default/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/default/content.js +3 -0
- package/dist/components/Editor/skins/content/document/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/document/content.js +3 -0
- package/dist/components/Editor/skins/content/tinymce-5/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/tinymce-5/content.js +3 -0
- package/dist/components/Editor/skins/content/tinymce-5-dark/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/tinymce-5-dark/content.js +3 -0
- package/dist/components/Editor/skins/content/writer/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/writer/content.js +3 -0
- package/dist/components/Editor/skins/ui/oxide/content.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide/content.inline.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide/content.inline.js +3 -0
- package/dist/components/Editor/skins/ui/oxide/content.js +3 -0
- package/dist/components/Editor/skins/ui/oxide/skin.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide/skin.js +3 -0
- package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.js +3 -0
- package/dist/components/Editor/skins/ui/oxide-dark/content.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide-dark/content.inline.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide-dark/content.inline.js +3 -0
- package/dist/components/Editor/skins/ui/oxide-dark/content.js +3 -0
- package/dist/components/Editor/skins/ui/oxide-dark/skin.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide-dark/skin.js +3 -0
- package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5/content.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5/content.inline.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5/content.inline.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5/content.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5/skin.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5/skin.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +3 -0
- package/dist/components/Editor/tinymce/tinymce.d.ts +1722 -1447
- package/lib/components/Editor/components/Editor.tsx +8 -8
- package/lib/components/Editor/skins/content/dark/content.js +2 -0
- package/lib/components/Editor/skins/content/dark/content.min.css +1 -8
- package/lib/components/Editor/skins/content/default/content.js +2 -0
- package/lib/components/Editor/skins/content/default/content.min.css +0 -7
- package/lib/components/Editor/skins/content/document/content.js +2 -0
- package/lib/components/Editor/skins/content/document/content.min.css +0 -7
- package/lib/components/Editor/skins/content/tinymce-5/content.js +2 -0
- package/lib/components/Editor/skins/content/tinymce-5/content.min.css +1 -0
- package/lib/components/Editor/skins/content/tinymce-5-dark/content.js +2 -0
- package/lib/components/Editor/skins/content/tinymce-5-dark/content.min.css +1 -0
- package/lib/components/Editor/skins/content/writer/content.js +2 -0
- package/lib/components/Editor/skins/content/writer/content.min.css +0 -7
- package/lib/components/Editor/skins/ui/oxide/content.inline.js +2 -0
- package/lib/components/Editor/skins/ui/oxide/content.inline.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide/content.js +2 -0
- package/lib/components/Editor/skins/ui/oxide/content.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide/skin.js +2 -0
- package/lib/components/Editor/skins/ui/oxide/skin.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.js +2 -0
- package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide-dark/content.inline.js +2 -0
- package/lib/components/Editor/skins/ui/oxide-dark/content.inline.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide-dark/content.js +2 -0
- package/lib/components/Editor/skins/ui/oxide-dark/content.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide-dark/skin.js +2 -0
- package/lib/components/Editor/skins/ui/oxide-dark/skin.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
- package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5/content.inline.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5/content.inline.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5/content.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5/content.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5/skin.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5/skin.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/content.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/content.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
- package/lib/components/Editor/tinymce/README.md +24 -14
- package/lib/components/Editor/tinymce/icons/default/icons.js +185 -163
- package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -1
- package/lib/components/Editor/tinymce/langs/README.md +1 -1
- package/lib/components/Editor/tinymce/license.txt +21 -504
- package/lib/components/Editor/tinymce/models/dom/model.js +8040 -0
- package/lib/components/Editor/tinymce/models/dom/model.min.js +4 -0
- package/lib/components/Editor/tinymce/plugins/accordion/plugin.js +1054 -0
- package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +4 -0
- package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +187 -208
- package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +82 -84
- package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +210 -167
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +118 -97
- package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +129 -108
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +285 -333
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/code/plugin.js +19 -26
- package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2225 -2094
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +318 -243
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -9424
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +1 -9423
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +406 -416
- package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +821 -604
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/plugin.js +428 -403
- package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/image/plugin.js +887 -1043
- package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +163 -162
- package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +101 -91
- package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/link/plugin.js +739 -784
- package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/lists/plugin.js +1282 -1396
- package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/media/plugin.js +641 -806
- package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +76 -54
- package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +58 -46
- package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/preview/plugin.js +39 -69
- package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +307 -349
- package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/save/plugin.js +50 -51
- package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +517 -587
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/table/plugin.js +2666 -10142
- package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/template/plugin.js +403 -413
- package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +42 -48
- package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +352 -333
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +184 -195
- package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/skins/content/dark/content.css +2 -8
- package/lib/components/Editor/tinymce/skins/content/dark/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +2 -8
- package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/content/default/content.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/default/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/content/document/content.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/document/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.min.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -1
- package/lib/components/Editor/{skins/content/default → tinymce/skins/content/tinymce-5}/content.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css.map +1 -0
- package/lib/components/Editor/{skins/content/dark → tinymce/skins/content/tinymce-5-dark}/content.css +1 -7
- package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/writer/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +74 -21
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +74 -21
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +1131 -402
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +8 -15
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +72 -20
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +74 -21
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +1155 -423
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +8 -15
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -1
- package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.css +75 -22
- package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.inline.css +75 -22
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.css +1261 -438
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.shadowdom.css +8 -15
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.css +73 -21
- package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.inline.css +75 -22
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.css +1244 -421
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.shadowdom.css +8 -15
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/tinymce/themes/silver/theme.js +23228 -24955
- package/lib/components/Editor/tinymce/themes/silver/theme.min.js +2 -7
- package/lib/components/Editor/tinymce/tinymce.d.ts +1722 -1447
- package/lib/components/Editor/tinymce/tinymce.js +23668 -22018
- package/lib/components/Editor/tinymce/tinymce.min.js +2 -30104
- package/package.json +1 -1
- package/lib/components/Editor/skins/content/dark/content.min.css.map +0 -1
- package/lib/components/Editor/skins/content/default/content.min.css.map +0 -1
- package/lib/components/Editor/skins/content/document/content.css +0 -72
- package/lib/components/Editor/skins/content/document/content.min.css.map +0 -1
- package/lib/components/Editor/skins/content/writer/content.css +0 -68
- package/lib/components/Editor/skins/content/writer/content.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/content.inline.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/content.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/content.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/content.mobile.css +0 -29
- package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/dark/skin.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/skin.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/skin.mobile.css +0 -673
- package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/content.inline.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/content.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/content.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/content.mobile.css +0 -29
- package/lib/components/Editor/skins/ui/default/content.mobile.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/default/skin.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/skin.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/skin.mobile.css +0 -673
- package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.css +0 -1641
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +0 -8
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +0 -1
- package/lib/components/Editor/tinymce/jquery.tinymce.min.js +0 -92
- package/lib/components/Editor/tinymce/langs/pt_BR.js +0 -419
- package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -99
- package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.js +0 -22
- package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.js +0 -22
- package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -544
- package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/hr/plugin.js +0 -46
- package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1354
- package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -199
- package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -117
- package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/paste/plugin.js +0 -1764
- package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/print/plugin.js +0 -53
- package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -731
- package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -129
- package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/textcolor/plugin.js +0 -22
- package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1394
- package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/toc/plugin.js +0 -236
- package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +0 -29
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +0 -8
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +0 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +0 -673
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -8
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +0 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -29
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -8
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +0 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -673
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -8
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +0 -1
- package/lib/components/Editor/tinymce/themes/mobile/theme.js +0 -13587
- package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +0 -9
|
@@ -1,320 +1,395 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
66
|
-
var always = constant(true);
|
|
45
|
+
const never = constant(false);
|
|
67
46
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
166
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
166
|
+
const DOCUMENT = 9;
|
|
167
|
+
const DOCUMENT_FRAGMENT = 11;
|
|
168
|
+
const ELEMENT = 1;
|
|
169
|
+
const TEXT = 3;
|
|
177
170
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
|
|
184
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
182
|
+
const fromTag = (tag, scope) => {
|
|
183
|
+
const doc = scope || document;
|
|
184
|
+
const node = doc.createElement(tag);
|
|
191
185
|
return fromDom(node);
|
|
192
186
|
};
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
187
|
+
const fromText = (text, scope) => {
|
|
188
|
+
const doc = scope || document;
|
|
189
|
+
const node = doc.createTextNode(text);
|
|
196
190
|
return fromDom(node);
|
|
197
191
|
};
|
|
198
|
-
|
|
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
|
-
|
|
205
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
|
|
227
|
+
typeof window !== 'undefined' ? window : Function('return this;')();
|
|
216
228
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
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
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
-
|
|
234
|
-
|
|
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
|
-
|
|
237
|
-
|
|
254
|
+
const set = (element, key, value) => {
|
|
255
|
+
rawSet(element.dom, key, value);
|
|
238
256
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
return isDocumentFragment(dos) && isNonNullable(dos.dom.host);
|
|
257
|
+
const remove = (element, key) => {
|
|
258
|
+
element.dom.removeAttribute(key);
|
|
242
259
|
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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
|
-
|
|
252
|
-
return SugarElement.fromDom(e.dom.host);
|
|
253
|
-
};
|
|
268
|
+
const getShadowHost = e => SugarElement.fromDom(e.dom.host);
|
|
254
269
|
|
|
255
|
-
|
|
256
|
-
|
|
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
|
-
|
|
261
|
-
return getShadowRoot(SugarElement.fromDom(dom)).fold(
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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
|
-
|
|
273
|
-
|
|
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
|
-
|
|
277
|
-
|
|
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
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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
|
-
|
|
371
|
+
const register = editor => {
|
|
293
372
|
editor.ui.registry.addToggleButton('ltr', {
|
|
294
373
|
tooltip: 'Left to right',
|
|
295
374
|
icon: 'ltr',
|
|
296
|
-
onAction:
|
|
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:
|
|
305
|
-
return editor.execCommand('mceDirectionRTL');
|
|
306
|
-
},
|
|
381
|
+
onAction: () => editor.execCommand('mceDirectionRTL'),
|
|
307
382
|
onSetup: getNodeChangeHandler(editor, 'rtl')
|
|
308
383
|
});
|
|
309
384
|
};
|
|
310
385
|
|
|
311
|
-
|
|
312
|
-
global.add('directionality',
|
|
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
|
+
})();
|