argous 1.2.132 → 1.2.136
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/api/index.d.ts +1 -0
- package/dist/api/index.js +18 -1
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +21 -0
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +331 -0
- package/dist/components/Compartilhar/Compartilhar.js +1 -1
- package/lib/actions/index.ts +57 -0
- package/lib/api/WebSocket.js +148 -0
- package/lib/api/index.js +402 -0
- package/lib/api/ws.js +27 -0
- package/lib/components/Alert/Alert.d.ts +8 -0
- package/lib/components/Alert/Alert.js +49 -0
- package/lib/components/Alert/index.d.ts +2 -0
- package/lib/components/Alert/index.js +1 -0
- package/lib/components/ArgousAction/ArgousAction.d.ts +8 -0
- package/lib/components/ArgousAction/ArgousAction.js +78 -0
- package/lib/components/ArgousAction/index.d.ts +2 -0
- package/lib/components/ArgousAction/index.js +1 -0
- package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +14 -0
- package/lib/components/ArgousAvatar/ArgousAvatar.js +79 -0
- package/lib/components/ArgousAvatar/index.d.ts +2 -0
- package/lib/components/ArgousAvatar/index.js +1 -0
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +76 -0
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +182 -0
- package/lib/components/ArgousComplexPagination/index.d.ts +2 -0
- package/lib/components/ArgousComplexPagination/index.js +1 -0
- package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +131 -0
- package/lib/components/ArgousComplexTable/ArgousComplexTable.js +360 -0
- package/lib/components/ArgousComplexTable/index.d.ts +2 -0
- package/lib/components/ArgousComplexTable/index.js +1 -0
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +177 -0
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +162 -0
- package/lib/components/ArgousComplexTableBody/index.d.ts +2 -0
- package/lib/components/ArgousComplexTableBody/index.js +1 -0
- package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +73 -0
- package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +98 -0
- package/lib/components/ArgousComplexTableHead/index.d.ts +2 -0
- package/lib/components/ArgousComplexTableHead/index.js +1 -0
- package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +58 -0
- package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +66 -0
- package/lib/components/ArgousComplexTableToolbar/index.d.ts +2 -0
- package/lib/components/ArgousComplexTableToolbar/index.js +1 -0
- package/lib/components/ArgousInput/ArgousInput.d.ts +8 -0
- package/lib/components/ArgousInput/ArgousInput.js +616 -0
- package/lib/components/ArgousInput/index.d.ts +2 -0
- package/lib/components/ArgousInput/index.js +1 -0
- package/lib/components/ArgousPagination/ArgousPagination.d.ts +8 -0
- package/lib/components/ArgousPagination/ArgousPagination.js +43 -0
- package/lib/components/ArgousPagination/index.d.ts +2 -0
- package/lib/components/ArgousPagination/index.js +1 -0
- package/lib/components/ArgousProgressBar/ArgousProgressBar.d.ts +22 -0
- package/lib/components/ArgousProgressBar/ArgousProgressBar.js +167 -0
- package/lib/components/ArgousProgressBar/index.d.ts +2 -0
- package/lib/components/ArgousProgressBar/index.js +1 -0
- package/lib/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +8 -0
- package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +241 -0
- package/lib/components/ArgousSimpleTable/index.d.ts +2 -0
- package/lib/components/ArgousSimpleTable/index.js +1 -0
- package/lib/components/AutoComplete/AutoComplete.d.ts +8 -0
- package/lib/components/AutoComplete/AutoComplete.js +189 -0
- package/lib/components/AutoComplete/index.d.ts +2 -0
- package/lib/components/AutoComplete/index.js +1 -0
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +298 -0
- package/lib/components/BarChart/BarChart.d.ts +8 -0
- package/lib/components/BarChart/BarChart.js +92 -0
- package/lib/components/BarChart/index.d.ts +2 -0
- package/lib/components/BarChart/index.js +1 -0
- package/lib/components/BarraFerramentas/BarraFerramentas.d.ts +21 -0
- package/lib/components/BarraFerramentas/BarraFerramentas.js +277 -0
- package/lib/components/BarraFerramentas/index.d.ts +2 -0
- package/lib/components/BarraFerramentas/index.js +1 -0
- package/lib/components/Button/Button.d.ts +8 -0
- package/lib/components/Button/Button.js +135 -0
- package/lib/components/Button/index.d.ts +2 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Cabecalho/Cabecalho.d.ts +8 -0
- package/lib/components/Cabecalho/Cabecalho.js +245 -0
- package/lib/components/Cabecalho/index.d.ts +2 -0
- package/lib/components/Cabecalho/index.js +1 -0
- package/lib/components/Calendar/Calendar.d.ts +8 -0
- package/lib/components/Calendar/Calendar.js +156 -0
- package/lib/components/Calendar/index.d.ts +2 -0
- package/lib/components/Calendar/index.js +1 -0
- package/lib/components/CartaoUsuario/CartaoUsuario.d.ts +9 -0
- package/lib/components/CartaoUsuario/CartaoUsuario.js +108 -0
- package/lib/components/CartaoUsuario/index.d.ts +2 -0
- package/lib/components/CartaoUsuario/index.js +1 -0
- package/lib/components/Collapse/Collapse.d.ts +60 -0
- package/lib/components/Collapse/Collapse.js +317 -0
- package/lib/components/Collapse/index.d.ts +3 -0
- package/lib/components/Collapse/index.js +1 -0
- package/lib/components/Compartilhar/Compartilhar.d.ts +7 -0
- package/lib/components/Compartilhar/Compartilhar.js +314 -0
- package/lib/components/Compartilhar/index.d.ts +2 -0
- package/lib/components/Compartilhar/index.js +1 -0
- package/lib/components/ConfirmModal/BasicModal.tsx +63 -0
- package/lib/components/ConfirmModal/ModalProvider.tsx +81 -0
- package/lib/components/ConfirmModal/WrapperModal.tsx +33 -0
- package/lib/components/ConfirmModal/index.d.ts +20 -0
- package/lib/components/ConfirmModal/index.js +8 -0
- package/lib/components/DropArea/DropArea.d.ts +21 -0
- package/lib/components/DropArea/DropArea.js +90 -0
- package/lib/components/DropArea/Html5FileSelector.js +164 -0
- package/lib/components/DropArea/index.d.ts +2 -0
- package/lib/components/DropArea/index.js +1 -0
- package/lib/components/Editor/Events.ts +83 -0
- package/lib/components/Editor/ScriptLoader.ts +96 -0
- package/lib/components/Editor/TinyMCE.ts +19 -0
- package/lib/components/Editor/Utils.ts +95 -0
- package/lib/components/Editor/components/Editor.tsx +375 -0
- package/lib/components/Editor/components/EditorPropTypes.ts +106 -0
- package/lib/components/Editor/index.tsx +11 -0
- package/lib/components/Editor/skins/content/dark/content.css +72 -0
- package/lib/components/Editor/skins/content/dark/content.min.css +8 -0
- package/lib/components/Editor/skins/content/dark/content.min.css.map +1 -0
- package/lib/components/Editor/skins/content/default/content.css +67 -0
- package/lib/components/Editor/skins/content/default/content.min.css +8 -0
- package/lib/components/Editor/skins/content/default/content.min.css.map +1 -0
- package/lib/components/Editor/skins/content/document/content.css +72 -0
- package/lib/components/Editor/skins/content/document/content.min.css +8 -0
- package/lib/components/Editor/skins/content/document/content.min.css.map +1 -0
- package/lib/components/Editor/skins/content/writer/content.css +68 -0
- package/lib/components/Editor/skins/content/writer/content.min.css +8 -0
- package/lib/components/Editor/skins/content/writer/content.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/content.css +714 -0
- package/lib/components/Editor/skins/ui/dark/content.inline.css +726 -0
- package/lib/components/Editor/skins/ui/dark/content.inline.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/content.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/content.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/content.mobile.css +29 -0
- package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/dark/skin.css +3034 -0
- package/lib/components/Editor/skins/ui/dark/skin.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/skin.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/skin.mobile.css +673 -0
- package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.css +37 -0
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/content.css +732 -0
- package/lib/components/Editor/skins/ui/default/content.inline.css +726 -0
- package/lib/components/Editor/skins/ui/default/content.inline.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/content.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/content.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/content.mobile.css +29 -0
- package/lib/components/Editor/skins/ui/default/content.mobile.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/default/skin.css +3034 -0
- package/lib/components/Editor/skins/ui/default/skin.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/skin.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/skin.mobile.css +673 -0
- package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.css +37 -0
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +1 -0
- 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 +1641 -0
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +8 -0
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +1 -0
- package/lib/components/Editor/tinymce/README.md +63 -0
- package/lib/components/Editor/tinymce/icons/default/icons.js +172 -0
- package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -0
- package/lib/components/Editor/tinymce/jquery.tinymce.min.js +92 -0
- package/lib/components/Editor/tinymce/langs/README.md +3 -0
- package/lib/components/Editor/tinymce/langs/pt_BR.js +419 -0
- package/lib/components/Editor/tinymce/license.txt +504 -0
- package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +280 -0
- package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +216 -0
- package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +185 -0
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +171 -0
- package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +212 -0
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +99 -0
- package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +1706 -0
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/code/plugin.js +92 -0
- package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2332 -0
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +9 -0
- package/{dist/components/Editor/tinymce/plugins/textcolor → lib/components/Editor/tinymce/plugins/colorpicker}/plugin.js +8 -5
- package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +9 -0
- package/{dist/components/Editor/tinymce/plugins/colorpicker → lib/components/Editor/tinymce/plugins/contextmenu}/plugin.js +8 -5
- package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +320 -0
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +9424 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +9423 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +605 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +544 -0
- package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +979 -0
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/help/plugin.js +873 -0
- package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/hr/plugin.js +46 -0
- package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/image/plugin.js +1661 -0
- package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +1354 -0
- package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +343 -0
- package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +177 -0
- package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +199 -0
- package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/link/plugin.js +1287 -0
- package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/lists/plugin.js +2286 -0
- package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/media/plugin.js +1382 -0
- package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +101 -0
- package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +117 -0
- package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +105 -0
- package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/paste/plugin.js +1764 -0
- package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/preview/plugin.js +127 -0
- package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/print/plugin.js +53 -0
- package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +489 -0
- package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/save/plugin.js +119 -0
- package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +1163 -0
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +731 -0
- package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +129 -0
- package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/table/plugin.js +10938 -0
- package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/template/plugin.js +577 -0
- package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +9 -0
- package/{dist/components/Editor/tinymce/plugins/contextmenu → lib/components/Editor/tinymce/plugins/textcolor}/plugin.js +8 -5
- package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +1394 -0
- package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/toc/plugin.js +236 -0
- package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +104 -0
- package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +541 -0
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +416 -0
- package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.css +72 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.css +67 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.css +72 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.css +68 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +732 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +726 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +29 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +3034 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +673 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +37 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +714 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +726 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +29 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +1 -0
- 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.css +3034 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +673 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/tinymce/themes/mobile/theme.js +13587 -0
- package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +9 -0
- package/lib/components/Editor/tinymce/themes/silver/theme.js +32480 -0
- package/lib/components/Editor/tinymce/themes/silver/theme.min.js +9 -0
- package/lib/components/Editor/tinymce/tinymce.d.ts +2963 -0
- package/lib/components/Editor/tinymce/tinymce.js +30106 -0
- package/lib/components/Editor/tinymce/tinymce.min.js +30106 -0
- package/lib/components/FilePreparer/FilePreparer.d.ts +26 -0
- package/lib/components/FilePreparer/FilePreparer.js +247 -0
- package/lib/components/FilePreparer/index.d.ts +2 -0
- package/lib/components/FilePreparer/index.js +1 -0
- package/lib/components/FileUploader/FileUploader.d.ts +9 -0
- package/lib/components/FileUploader/FileUploader.js +318 -0
- package/lib/components/FileUploader/index.d.ts +2 -0
- package/lib/components/FileUploader/index.js +1 -0
- package/lib/components/FormVisualizer/FormVisualizer.d.ts +92 -0
- package/lib/components/FormVisualizer/FormVisualizer.js +289 -0
- package/lib/components/FormVisualizer/index.d.ts +2 -0
- package/lib/components/FormVisualizer/index.js +1 -0
- package/lib/components/Highlight/Highlight.d.ts +7 -0
- package/lib/components/Highlight/Highlight.js +51 -0
- package/lib/components/Highlight/index.d.ts +2 -0
- package/lib/components/Highlight/index.js +1 -0
- package/lib/components/ImageResize/ImageResize.d.ts +28 -0
- package/lib/components/ImageResize/ImageResize.js +479 -0
- package/lib/components/ImageResize/index.d.ts +2 -0
- package/lib/components/ImageResize/index.js +1 -0
- package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +26 -0
- package/lib/components/ImageResizeButton/ImageResizeButton.js +65 -0
- package/lib/components/ImageResizeButton/index.d.ts +2 -0
- package/lib/components/ImageResizeButton/index.js +1 -0
- package/lib/components/Input/Input.d.ts +8 -0
- package/lib/components/Input/Input.js +353 -0
- package/lib/components/Input/index.d.ts +2 -0
- package/lib/components/Input/index.js +1 -0
- package/lib/components/InputTags/InputTags.d.ts +8 -0
- package/lib/components/InputTags/InputTags.js +94 -0
- package/lib/components/InputTags/index.d.ts +2 -0
- package/lib/components/InputTags/index.js +1 -0
- package/lib/components/ListSelect/ListSelect.d.ts +8 -0
- package/lib/components/ListSelect/ListSelect.js +94 -0
- package/lib/components/ListSelect/index.d.ts +2 -0
- package/lib/components/ListSelect/index.js +1 -0
- package/lib/components/MaterialButton/MaterialButton.d.ts +13 -0
- package/lib/components/MaterialButton/MaterialButton.js +177 -0
- package/lib/components/MaterialButton/index.d.ts +2 -0
- package/lib/components/MaterialButton/index.js +1 -0
- package/lib/components/MenuBar/MenuBar.d.ts +8 -0
- package/lib/components/MenuBar/MenuBar.js +139 -0
- package/lib/components/MenuBar/index.d.ts +2 -0
- package/lib/components/MenuBar/index.js +1 -0
- package/lib/components/MonthPicker/MonthPicker.d.ts +8 -0
- package/lib/components/MonthPicker/MonthPicker.js +313 -0
- package/lib/components/MonthPicker/index.d.ts +2 -0
- package/lib/components/MonthPicker/index.js +1 -0
- package/lib/components/MultipleSelect/MultipleSelect.d.ts +8 -0
- package/lib/components/MultipleSelect/MultipleSelect.js +106 -0
- package/lib/components/MultipleSelect/index.d.ts +2 -0
- package/lib/components/MultipleSelect/index.js +1 -0
- package/lib/components/OtpInput/OtpInput.tsx +244 -0
- package/lib/components/OtpInput/index.d.ts +2 -0
- package/lib/components/OtpInput/index.js +1 -0
- package/lib/components/OutputText/OutputText.d.ts +8 -0
- package/lib/components/OutputText/OutputText.js +57 -0
- package/lib/components/OutputText/index.d.ts +2 -0
- package/lib/components/OutputText/index.js +1 -0
- package/lib/components/Pagination/Pagination.d.ts +8 -0
- package/lib/components/Pagination/Pagination.js +32 -0
- package/lib/components/Pagination/index.d.ts +2 -0
- package/lib/components/Pagination/index.js +1 -0
- package/lib/components/Programa/Programa.d.ts +31 -0
- package/lib/components/Programa/Programa.js +172 -0
- package/lib/components/Programa/index.d.ts +2 -0
- package/lib/components/Programa/index.js +1 -0
- package/lib/components/ProgressBar/ProgressBar.d.ts +8 -0
- package/lib/components/ProgressBar/ProgressBar.js +71 -0
- package/lib/components/ProgressBar/index.d.ts +2 -0
- package/lib/components/ProgressBar/index.js +1 -0
- package/lib/components/Select/Select.d.ts +8 -0
- package/lib/components/Select/Select.js +117 -0
- package/lib/components/Select/index.d.ts +2 -0
- package/lib/components/Select/index.js +1 -0
- package/lib/components/SimpleTable/SimpleTable.d.ts +13 -0
- package/lib/components/SimpleTable/SimpleTable.js +504 -0
- package/lib/components/SimpleTable/index.d.ts +2 -0
- package/lib/components/SimpleTable/index.js +2 -0
- package/lib/components/Stepper/Stepper.d.ts +54 -0
- package/lib/components/Stepper/Stepper.js +222 -0
- package/lib/components/Stepper/index.d.ts +2 -0
- package/lib/components/Stepper/index.js +1 -0
- package/lib/components/TablePicker/TablePicker.d.ts +8 -0
- package/lib/components/TablePicker/TablePicker.js +238 -0
- package/lib/components/TablePicker/index.d.ts +2 -0
- package/lib/components/TablePicker/index.js +1 -0
- package/lib/components/Tabs/Tabs.d.ts +8 -0
- package/lib/components/Tabs/Tabs.js +59 -0
- package/lib/components/Tabs/index.d.ts +2 -0
- package/lib/components/Tabs/index.js +1 -0
- package/lib/components/TextArea/TextArea.d.ts +8 -0
- package/lib/components/TextArea/TextArea.js +123 -0
- package/lib/components/TextArea/index.d.ts +2 -0
- package/lib/components/TextArea/index.js +1 -0
- package/lib/components/ThreadLog/ThreadLog.d.ts +8 -0
- package/lib/components/ThreadLog/ThreadLog.js +189 -0
- package/lib/components/ThreadLog/index.d.ts +2 -0
- package/lib/components/ThreadLog/index.js +1 -0
- package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +93 -0
- package/lib/components/UtilAutoComplete/UtilAutoComplete.js +130 -0
- package/lib/components/UtilAutoComplete/index.d.ts +2 -0
- package/lib/components/UtilAutoComplete/index.js +1 -0
- package/lib/components/index.d.ts +148 -0
- package/lib/components/index.js +146 -0
- package/lib/fieldsRedux/createField.d.ts +8 -0
- package/lib/fieldsRedux/createField.js +120 -0
- package/lib/fieldsRedux/fieldsRedux.d.ts +71 -0
- package/lib/fieldsRedux/fieldsRedux.js +391 -0
- package/lib/fieldsRedux/index.d.ts +4 -0
- package/lib/fieldsRedux/index.js +5 -0
- package/lib/fieldsRedux/passFields.d.ts +5 -0
- package/lib/fieldsRedux/passFields.js +76 -0
- package/lib/reducers/argous.ts +103 -0
- package/lib/reducers/index.ts +6 -0
- package/lib/types.d.ts +144 -0
- package/lib/utils/api.ts +153 -0
- package/lib/utils/config.ts +12 -0
- package/lib/utils/date.ts +63 -0
- package/lib/utils/index.ts +314 -0
- package/lib/utils/rippleEffect.js +211 -0
- package/lib/utils/store.ts +11 -0
- package/lib/utils/xmlToJson.js +117 -0
- package/package.json +1 -1
- package/dist/components/ArgousComplexTableBody/dnd/Container.d.ts +0 -55
- package/dist/components/ArgousComplexTableBody/dnd/Container.js +0 -173
- package/dist/components/ArgousComplexTableBody/dnd/Draggable.d.ts +0 -14
- package/dist/components/ArgousComplexTableBody/dnd/Draggable.js +0 -73
- package/dist/components/ArgousComplexTableBody/dnd/index.d.ts +0 -2
- package/dist/components/ArgousComplexTableBody/dnd/index.js +0 -10
- package/dist/components/ConfirmModal/useModal.d.ts +0 -2
- package/dist/components/ConfirmModal/useModal.js +0 -9
- package/dist/components/DropArea/worker.d.ts +0 -1
- package/dist/components/DropArea/worker.js +0 -55
- package/dist/components/Editor/tinymce/icons/default/icons.d.ts +0 -0
- package/dist/components/Editor/tinymce/icons/default/icons.js +0 -173
- package/dist/components/Editor/tinymce/plugins/advlist/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/advlist/plugin.js +0 -271
- package/dist/components/Editor/tinymce/plugins/anchor/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/anchor/plugin.js +0 -207
- package/dist/components/Editor/tinymce/plugins/autolink/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/autolink/plugin.js +0 -187
- package/dist/components/Editor/tinymce/plugins/autoresize/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/autoresize/plugin.js +0 -163
- package/dist/components/Editor/tinymce/plugins/autosave/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/autosave/plugin.js +0 -199
- package/dist/components/Editor/tinymce/plugins/bbcode/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -94
- package/dist/components/Editor/tinymce/plugins/charmap/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/charmap/plugin.js +0 -1691
- package/dist/components/Editor/tinymce/plugins/code/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/code/plugin.js +0 -85
- package/dist/components/Editor/tinymce/plugins/codesample/plugin.js +0 -2331
- package/dist/components/Editor/tinymce/plugins/colorpicker/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/contextmenu/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/directionality/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/directionality/plugin.js +0 -300
- package/dist/components/Editor/tinymce/plugins/emoticons/js/emojiimages.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +0 -9425
- package/dist/components/Editor/tinymce/plugins/emoticons/js/emojis.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/emoticons/js/emojis.js +0 -9424
- package/dist/components/Editor/tinymce/plugins/emoticons/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/emoticons/plugin.js +0 -585
- package/dist/components/Editor/tinymce/plugins/fullpage/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -539
- package/dist/components/Editor/tinymce/plugins/fullscreen/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/fullscreen/plugin.js +0 -962
- package/dist/components/Editor/tinymce/plugins/help/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/help/plugin.js +0 -850
- package/dist/components/Editor/tinymce/plugins/hr/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/hr/plugin.js +0 -41
- package/dist/components/Editor/tinymce/plugins/image/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/image/plugin.js +0 -1673
- package/dist/components/Editor/tinymce/plugins/imagetools/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1335
- package/dist/components/Editor/tinymce/plugins/importcss/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/importcss/plugin.js +0 -346
- package/dist/components/Editor/tinymce/plugins/insertdatetime/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/insertdatetime/plugin.js +0 -171
- package/dist/components/Editor/tinymce/plugins/legacyoutput/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -193
- package/dist/components/Editor/tinymce/plugins/link/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/link/plugin.js +0 -1282
- package/dist/components/Editor/tinymce/plugins/lists/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/lists/plugin.js +0 -2256
- package/dist/components/Editor/tinymce/plugins/media/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/media/plugin.js +0 -1374
- package/dist/components/Editor/tinymce/plugins/nonbreaking/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/nonbreaking/plugin.js +0 -93
- package/dist/components/Editor/tinymce/plugins/noneditable/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -114
- package/dist/components/Editor/tinymce/plugins/pagebreak/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/pagebreak/plugin.js +0 -96
- package/dist/components/Editor/tinymce/plugins/paste/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/paste/plugin.js +0 -1747
- package/dist/components/Editor/tinymce/plugins/preview/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/preview/plugin.js +0 -119
- package/dist/components/Editor/tinymce/plugins/print/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/print/plugin.js +0 -48
- package/dist/components/Editor/tinymce/plugins/quickbars/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/quickbars/plugin.js +0 -475
- package/dist/components/Editor/tinymce/plugins/save/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/save/plugin.js +0 -112
- package/dist/components/Editor/tinymce/plugins/searchreplace/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/searchreplace/plugin.js +0 -1149
- package/dist/components/Editor/tinymce/plugins/spellchecker/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -723
- package/dist/components/Editor/tinymce/plugins/tabfocus/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -124
- package/dist/components/Editor/tinymce/plugins/table/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/table/plugin.js +0 -10853
- package/dist/components/Editor/tinymce/plugins/template/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/template/plugin.js +0 -561
- package/dist/components/Editor/tinymce/plugins/textcolor/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/textpattern/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1393
- package/dist/components/Editor/tinymce/plugins/toc/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/toc/plugin.js +0 -227
- package/dist/components/Editor/tinymce/plugins/visualblocks/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/visualblocks/plugin.js +0 -94
- package/dist/components/Editor/tinymce/plugins/visualchars/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/visualchars/plugin.js +0 -521
- package/dist/components/Editor/tinymce/plugins/wordcount/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/wordcount/plugin.js +0 -397
- package/dist/components/Editor/tinymce/themes/mobile/theme.js +0 -13348
- package/dist/components/Editor/tinymce/themes/silver/theme.js +0 -32028
- package/dist/components/Editor/tinymce/tinymce.js +0 -30486
- package/dist/components/FilePreparer/worker.d.ts +0 -2
- package/dist/components/FilePreparer/worker.js +0 -31
- package/dist/convertReacticons.d.ts +0 -1
- package/dist/convertReacticons.js +0 -62
- package/dist/utils/Fields.d.ts +0 -0
- package/dist/utils/Fields.js +0 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
const DEFAULT_FILES_TO_IGNORE = [
|
|
2
|
+
'.DS_Store', // OSX indexing file
|
|
3
|
+
'Thumbs.db' // Windows indexing file
|
|
4
|
+
];
|
|
5
|
+
|
|
6
|
+
// map of common (mostly media types) mime types to use when the browser does not supply the mime type
|
|
7
|
+
const EXTENSION_TO_MIME_TYPE_MAP = {
|
|
8
|
+
avi: 'video/avi',
|
|
9
|
+
gif: 'image/gif',
|
|
10
|
+
ico: 'image/x-icon',
|
|
11
|
+
jpeg: 'image/jpeg',
|
|
12
|
+
jpg: 'image/jpeg',
|
|
13
|
+
mkv: 'video/x-matroska',
|
|
14
|
+
mov: 'video/quicktime',
|
|
15
|
+
mp4: 'video/mp4',
|
|
16
|
+
pdf: 'application/pdf',
|
|
17
|
+
png: 'image/png',
|
|
18
|
+
zip: 'application/zip'
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
function shouldIgnoreFile(file) {
|
|
22
|
+
return DEFAULT_FILES_TO_IGNORE.indexOf(file.name) >= 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function copyString(aString) {
|
|
26
|
+
return ` ${aString}`.slice(1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function traverseDirectory(entry) {
|
|
30
|
+
const reader = entry.createReader();
|
|
31
|
+
// Resolved when the entire directory is traversed
|
|
32
|
+
return new Promise((resolveDirectory) => {
|
|
33
|
+
const iterationAttempts = [];
|
|
34
|
+
const errorHandler = () => {};
|
|
35
|
+
function readEntries() {
|
|
36
|
+
// According to the FileSystem API spec, readEntries() must be called until
|
|
37
|
+
// it calls the callback with an empty array.
|
|
38
|
+
reader.readEntries((batchEntries) => {
|
|
39
|
+
if (!batchEntries.length) {
|
|
40
|
+
// Done iterating this particular directory
|
|
41
|
+
resolveDirectory(Promise.all(iterationAttempts));
|
|
42
|
+
} else {
|
|
43
|
+
// Add a list of promises for each directory entry. If the entry is itself
|
|
44
|
+
// a directory, then that promise won't resolve until it is fully traversed.
|
|
45
|
+
iterationAttempts.push(Promise.all(batchEntries.map((batchEntry) => {
|
|
46
|
+
if (batchEntry.isDirectory) {
|
|
47
|
+
return traverseDirectory(batchEntry);
|
|
48
|
+
}
|
|
49
|
+
return Promise.resolve(batchEntry);
|
|
50
|
+
})));
|
|
51
|
+
// Try calling readEntries() again for the same dir, according to spec
|
|
52
|
+
readEntries();
|
|
53
|
+
}
|
|
54
|
+
}, errorHandler);
|
|
55
|
+
}
|
|
56
|
+
// initial call to recursive entry reader function
|
|
57
|
+
readEntries();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// package the file in an object that includes the fullPath from the file entry
|
|
62
|
+
// that would otherwise be lost
|
|
63
|
+
function packageFile(file, entry) {
|
|
64
|
+
// let fileTypeOverride = '';
|
|
65
|
+
// handle some browsers sometimes missing mime types for dropped files
|
|
66
|
+
// const hasExtension = file.name && file.name.lastIndexOf('.') !== -1;
|
|
67
|
+
// if (hasExtension && !file.type) {
|
|
68
|
+
// const fileExtension = (file.name || '').split('.').pop();
|
|
69
|
+
// fileTypeOverride = EXTENSION_TO_MIME_TYPE_MAP[fileExtension];
|
|
70
|
+
// }
|
|
71
|
+
return {
|
|
72
|
+
fileObject: file, // provide access to the raw File object (required for uploading)
|
|
73
|
+
fullPath: entry ? copyString(entry.fullPath)?.replace(file.name, '') : file.name,
|
|
74
|
+
// lastModified: file.lastModified,
|
|
75
|
+
// lastModifiedDate: file.lastModifiedDate,
|
|
76
|
+
// name: file.name,
|
|
77
|
+
// size: file.size,
|
|
78
|
+
// type: file.type ? file.type : fileTypeOverride,
|
|
79
|
+
// webkitRelativePath: file.webkitRelativePath
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function getFile(entry) {
|
|
84
|
+
return new Promise((resolve) => {
|
|
85
|
+
entry.file((file) => {
|
|
86
|
+
resolve(packageFile(file, entry));
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
async function handleFilePromises(promises, fileList) {
|
|
92
|
+
const files = await Promise.all(promises);
|
|
93
|
+
files.forEach((file) => {
|
|
94
|
+
if (!shouldIgnoreFile(file)) {
|
|
95
|
+
fileList.push(file);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
return fileList;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @param {DataTransfer} dataTransfer
|
|
103
|
+
*/
|
|
104
|
+
export async function getDataTransferFiles(dataTransfer) {
|
|
105
|
+
const dataTransferFiles = [];
|
|
106
|
+
const folderPromises = [];
|
|
107
|
+
const filePromises = [];
|
|
108
|
+
|
|
109
|
+
[].slice.call(dataTransfer.items).forEach((listItem) => {
|
|
110
|
+
if (typeof listItem.webkitGetAsEntry === 'function') {
|
|
111
|
+
const entry = listItem.webkitGetAsEntry();
|
|
112
|
+
|
|
113
|
+
if (entry) {
|
|
114
|
+
if (entry.isDirectory) {
|
|
115
|
+
folderPromises.push(traverseDirectory(entry));
|
|
116
|
+
} else {
|
|
117
|
+
filePromises.push(getFile(entry));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
} else {
|
|
121
|
+
dataTransferFiles.push(listItem);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
if (folderPromises.length) {
|
|
125
|
+
const flatten = (array) => array.reduce((a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), []);
|
|
126
|
+
const fileEntries = await Promise.all(folderPromises);
|
|
127
|
+
const flattenedEntries = flatten(fileEntries);
|
|
128
|
+
// collect async promises to convert each fileEntry into a File object
|
|
129
|
+
flattenedEntries.forEach((fileEntry) => {
|
|
130
|
+
filePromises.push(getFile(fileEntry));
|
|
131
|
+
});
|
|
132
|
+
return await handleFilePromises(filePromises, dataTransferFiles);
|
|
133
|
+
} else if (filePromises.length) {
|
|
134
|
+
return handleFilePromises(filePromises, dataTransferFiles);
|
|
135
|
+
}
|
|
136
|
+
return Promise.resolve(dataTransferFiles);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* This function should be called from both the onDrop event from your drag/drop
|
|
141
|
+
* dropzone as well as from the HTML5 file selector input field onChange event
|
|
142
|
+
* handler. Pass the event object from the triggered event into this function.
|
|
143
|
+
* Supports mix of files and folders dropped via drag/drop.
|
|
144
|
+
*
|
|
145
|
+
* Returns: an array of File objects, that includes all files within folders
|
|
146
|
+
* and subfolders of the dropped/selected items.
|
|
147
|
+
*
|
|
148
|
+
* @param {React.DragEvent<HTMLDivElement>} event
|
|
149
|
+
*/
|
|
150
|
+
export async function getDroppedOrSelectedFiles(event) {
|
|
151
|
+
const dataTransfer = event.dataTransfer;
|
|
152
|
+
if (dataTransfer && dataTransfer.items) {
|
|
153
|
+
return await getDataTransferFiles(dataTransfer);
|
|
154
|
+
}
|
|
155
|
+
const files = [];
|
|
156
|
+
const dragDropFileList = dataTransfer && dataTransfer.files;
|
|
157
|
+
const inputFieldFileList = event.target && event.target.files;
|
|
158
|
+
const fileList = dragDropFileList || inputFieldFileList || [];
|
|
159
|
+
// convert the FileList to a simple array of File objects
|
|
160
|
+
for (let i = 0; i < fileList.length; i++) {
|
|
161
|
+
files.push(packageFile(fileList[i]));
|
|
162
|
+
}
|
|
163
|
+
return files;
|
|
164
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DropArea';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2017-present, Ephox, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { Editor as TinyMCEEditor, EditorEvent, Events } from './tinymce/tinymce';
|
|
10
|
+
|
|
11
|
+
export type EventHandler<A> = (a: EditorEvent<A>, editor: TinyMCEEditor) => unknown;
|
|
12
|
+
|
|
13
|
+
type EEventHandler<K extends keyof Events.EditorEventMap> = EventHandler<Events.EditorEventMap[K]>;
|
|
14
|
+
|
|
15
|
+
export interface INativeEvents {
|
|
16
|
+
onBeforePaste: EEventHandler<'beforepaste'>;
|
|
17
|
+
onBlur: EEventHandler<'blur'>;
|
|
18
|
+
onClick: EEventHandler<'click'>;
|
|
19
|
+
onContextMenu: EEventHandler<'contextmenu'>;
|
|
20
|
+
onCopy: EEventHandler<'copy'>;
|
|
21
|
+
onCut: EEventHandler<'cut'>;
|
|
22
|
+
onDblclick: EEventHandler<'dblclick'>;
|
|
23
|
+
onDrag: EEventHandler<'drag'>;
|
|
24
|
+
onDragDrop: EEventHandler<'dragdrop'>;
|
|
25
|
+
onDragEnd: EEventHandler<'dragend'>;
|
|
26
|
+
onDragGesture: EEventHandler<'draggesture'>;
|
|
27
|
+
onDragOver: EEventHandler<'dragover'>;
|
|
28
|
+
onDrop: EEventHandler<'drop'>;
|
|
29
|
+
onFocus: EEventHandler<'focus'>;
|
|
30
|
+
onFocusIn: EEventHandler<'focusin'>;
|
|
31
|
+
onFocusOut: EEventHandler<'focusout'>;
|
|
32
|
+
onKeyDown: EEventHandler<'keydown'>;
|
|
33
|
+
onKeyPress: EEventHandler<'keypress'>;
|
|
34
|
+
onKeyUp: EEventHandler<'keyup'>;
|
|
35
|
+
onMouseDown: EEventHandler<'mousedown'>;
|
|
36
|
+
onMouseEnter: EEventHandler<'mouseenter'>;
|
|
37
|
+
onMouseLeave: EEventHandler<'mouseleave'>;
|
|
38
|
+
onMouseMove: EEventHandler<'mousemove'>;
|
|
39
|
+
onMouseOut: EEventHandler<'mouseout'>;
|
|
40
|
+
onMouseOver: EEventHandler<'mouseover'>;
|
|
41
|
+
onMouseUp: EEventHandler<'mouseup'>;
|
|
42
|
+
onPaste: EEventHandler<'paste'>;
|
|
43
|
+
onSelectionChange: EEventHandler<'selectionchange'>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ITinyEvents {
|
|
47
|
+
onActivate: EEventHandler<'activate'>;
|
|
48
|
+
onAddUndo: EEventHandler<'AddUndo'>;
|
|
49
|
+
onBeforeAddUndo: EEventHandler<'BeforeAddUndo'>;
|
|
50
|
+
onBeforeExecCommand: EEventHandler<'BeforeExecCommand'>;
|
|
51
|
+
onBeforeGetContent: EEventHandler<'BeforeGetContent'>;
|
|
52
|
+
onBeforeRenderUI: EventHandler<unknown>;
|
|
53
|
+
onBeforeSetContent: EEventHandler<'BeforeSetContent'>;
|
|
54
|
+
onChange: EventHandler<unknown>;
|
|
55
|
+
onClearUndos: EEventHandler<'ClearUndos'>;
|
|
56
|
+
onDeactivate: EEventHandler<'deactivate'>;
|
|
57
|
+
onDirty: EventHandler<unknown>;
|
|
58
|
+
onExecCommand: EEventHandler<'ExecCommand'>;
|
|
59
|
+
onGetContent: EEventHandler<'GetContent'>;
|
|
60
|
+
onHide: EventHandler<unknown>;
|
|
61
|
+
onInit: EEventHandler<'init'>;
|
|
62
|
+
onLoadContent: EEventHandler<'LoadContent'>;
|
|
63
|
+
onNodeChange: EEventHandler<'NodeChange'>;
|
|
64
|
+
onPostProcess: EventHandler<unknown>;
|
|
65
|
+
onPostRender: EEventHandler<'PostRender'>;
|
|
66
|
+
onPreProcess: EventHandler<unknown>;
|
|
67
|
+
onProgressState: EEventHandler<'ProgressState'>;
|
|
68
|
+
onRedo: EEventHandler<'Redo'>;
|
|
69
|
+
onRemove: EEventHandler<'remove'>;
|
|
70
|
+
onReset: EventHandler<unknown>;
|
|
71
|
+
onSaveContent: EventHandler<unknown>;
|
|
72
|
+
onSetAttrib: EventHandler<unknown>;
|
|
73
|
+
onObjectResizeStart: EEventHandler<'ObjectResizeStart'>;
|
|
74
|
+
onObjectResized: EEventHandler<'ObjectResized'>;
|
|
75
|
+
onObjectSelected: EEventHandler<'ObjectSelected'>;
|
|
76
|
+
onSetContent: EEventHandler<'SetContent'>;
|
|
77
|
+
onShow: EventHandler<unknown>;
|
|
78
|
+
onSubmit: EventHandler<unknown>;
|
|
79
|
+
onUndo: EEventHandler<'Undo'>;
|
|
80
|
+
onVisualAid: EventHandler<unknown>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface IEvents extends INativeEvents, ITinyEvents {}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2017-present, Ephox, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { uuid } from './Utils';
|
|
10
|
+
|
|
11
|
+
export type callbackFn = () => void;
|
|
12
|
+
export interface IStateObj {
|
|
13
|
+
listeners: callbackFn[];
|
|
14
|
+
scriptId: string;
|
|
15
|
+
scriptLoading: boolean;
|
|
16
|
+
scriptLoaded: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const createState = (): IStateObj => ({
|
|
20
|
+
listeners: [],
|
|
21
|
+
scriptId: uuid('tiny-script'),
|
|
22
|
+
scriptLoading: false,
|
|
23
|
+
scriptLoaded: false
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
interface ScriptLoaderInterface {
|
|
27
|
+
load: (doc: Document, url: string, async: boolean, defer: boolean, delay: number, callback: callbackFn) => void;
|
|
28
|
+
reinitialize: () => void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const CreateScriptLoader = (): ScriptLoaderInterface => {
|
|
32
|
+
let state: IStateObj = createState();
|
|
33
|
+
|
|
34
|
+
const injectScriptTag = (scriptId: string, doc: Document, url: string, async: boolean, defer: boolean, callback: callbackFn) => {
|
|
35
|
+
const scriptTag = doc.createElement('script');
|
|
36
|
+
scriptTag.referrerPolicy = 'origin';
|
|
37
|
+
scriptTag.type = 'application/javascript';
|
|
38
|
+
scriptTag.id = scriptId;
|
|
39
|
+
scriptTag.src = url;
|
|
40
|
+
scriptTag.async = async;
|
|
41
|
+
scriptTag.defer = defer;
|
|
42
|
+
|
|
43
|
+
// scriptTag.appendChild(document.createTextNode(url));
|
|
44
|
+
|
|
45
|
+
const handler = () => {
|
|
46
|
+
scriptTag.removeEventListener('load', handler);
|
|
47
|
+
callback();
|
|
48
|
+
};
|
|
49
|
+
scriptTag.addEventListener('load', handler);
|
|
50
|
+
if (doc.head) {
|
|
51
|
+
doc.head.appendChild(scriptTag);
|
|
52
|
+
}
|
|
53
|
+
// document.body.appendChild(scriptTag);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const load = (doc: Document, url: string, async: boolean, defer: boolean, delay: number, callback: callbackFn) => {
|
|
57
|
+
|
|
58
|
+
const scriptTagInjection = () => injectScriptTag(
|
|
59
|
+
state.scriptId, doc, url, async, defer,
|
|
60
|
+
() => {
|
|
61
|
+
state.listeners.forEach((fn) => fn());
|
|
62
|
+
state.scriptLoaded = true;
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
if (state.scriptLoaded) {
|
|
67
|
+
callback();
|
|
68
|
+
} else {
|
|
69
|
+
state.listeners.push(callback);
|
|
70
|
+
if (!state.scriptLoading) {
|
|
71
|
+
state.scriptLoading = true;
|
|
72
|
+
if (delay > 0) {
|
|
73
|
+
setTimeout(scriptTagInjection, delay);
|
|
74
|
+
} else {
|
|
75
|
+
scriptTagInjection();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// Only to be used by tests.
|
|
82
|
+
const reinitialize = () => {
|
|
83
|
+
state = createState();
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
load,
|
|
88
|
+
reinitialize
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const ScriptLoader = CreateScriptLoader();
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
ScriptLoader
|
|
96
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2017-present, Ephox, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { TinyMCE as TinyMCEGlobal } from './tinymce/tinymce';
|
|
10
|
+
|
|
11
|
+
const getGlobal = (): any => (typeof window !== 'undefined' ? window : global);
|
|
12
|
+
|
|
13
|
+
const getTinymce = (): TinyMCEGlobal | null => {
|
|
14
|
+
const global = getGlobal();
|
|
15
|
+
|
|
16
|
+
return global && global.tinymce ? global.tinymce : null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { getTinymce };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2017-present, Ephox, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache 2 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { IAllProps } from './components/Editor';
|
|
10
|
+
import { eventPropTypes, IEventPropTypes } from './components/EditorPropTypes';
|
|
11
|
+
import { Editor as TinyMCEEditor, EditorEvent } from './tinymce/tinymce';
|
|
12
|
+
|
|
13
|
+
export const isFunction = (x: unknown): x is Function => typeof x === 'function';
|
|
14
|
+
|
|
15
|
+
const isEventProp = (name: string): name is keyof IEventPropTypes => name in eventPropTypes;
|
|
16
|
+
|
|
17
|
+
const eventAttrToEventName = <T extends string>(attrName: `on${T}`): T => attrName.substr(2) as T;
|
|
18
|
+
|
|
19
|
+
type PropLookup = <K extends keyof IAllProps>(key: K) => IAllProps[K] | undefined;
|
|
20
|
+
|
|
21
|
+
export const configHandlers2 = <H> (
|
|
22
|
+
handlerLookup: PropLookup,
|
|
23
|
+
on: (name: string, handler: H) => void,
|
|
24
|
+
off: (name: string, handler: H) => void,
|
|
25
|
+
adapter: <K extends keyof IEventPropTypes> (lookup: PropLookup, key: K) => H,
|
|
26
|
+
prevProps: Partial<IAllProps>,
|
|
27
|
+
props: Partial<IAllProps>,
|
|
28
|
+
boundHandlers: Record<string, H>
|
|
29
|
+
): void => {
|
|
30
|
+
const prevEventKeys = Object.keys(prevProps).filter(isEventProp);
|
|
31
|
+
const currEventKeys = Object.keys(props).filter(isEventProp);
|
|
32
|
+
|
|
33
|
+
const removedKeys = prevEventKeys.filter((key) => props[key] === undefined);
|
|
34
|
+
const addedKeys = currEventKeys.filter((key) => prevProps[key] === undefined);
|
|
35
|
+
|
|
36
|
+
removedKeys.forEach((key) => {
|
|
37
|
+
// remove event handler
|
|
38
|
+
const eventName = eventAttrToEventName(key);
|
|
39
|
+
const wrappedHandler = boundHandlers[eventName];
|
|
40
|
+
off(eventName, wrappedHandler);
|
|
41
|
+
delete boundHandlers[eventName];
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
addedKeys.forEach((key) => {
|
|
45
|
+
const wrappedHandler = adapter(handlerLookup, key);
|
|
46
|
+
const eventName = eventAttrToEventName(key);
|
|
47
|
+
boundHandlers[eventName] = wrappedHandler;
|
|
48
|
+
on(eventName, wrappedHandler);
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const configHandlers = (
|
|
53
|
+
editor: TinyMCEEditor,
|
|
54
|
+
prevProps: Partial<IAllProps>,
|
|
55
|
+
props: Partial<IAllProps>,
|
|
56
|
+
boundHandlers: Record<string, (event: EditorEvent<any>) => unknown>,
|
|
57
|
+
lookup: PropLookup
|
|
58
|
+
): void =>
|
|
59
|
+
configHandlers2(
|
|
60
|
+
lookup,
|
|
61
|
+
editor.on.bind(editor),
|
|
62
|
+
editor.off.bind(editor),
|
|
63
|
+
(handlerLookup, key) => (e) => handlerLookup(key)?.(e, editor),
|
|
64
|
+
prevProps,
|
|
65
|
+
props,
|
|
66
|
+
boundHandlers
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
let unique = 0;
|
|
70
|
+
|
|
71
|
+
export const uuid = (prefix: string): string => {
|
|
72
|
+
const time = Date.now();
|
|
73
|
+
const random = Math.floor(Math.random() * 1000000000);
|
|
74
|
+
|
|
75
|
+
unique++;
|
|
76
|
+
|
|
77
|
+
return prefix + '_' + random + unique + String(time);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const isTextareaOrInput = (element: Element | null): element is (HTMLTextAreaElement | HTMLInputElement) =>
|
|
81
|
+
element !== null && (element.tagName.toLowerCase() === 'textarea' || element.tagName.toLowerCase() === 'input');
|
|
82
|
+
|
|
83
|
+
const normalizePluginArray = (plugins?: string | string[]): string[] => {
|
|
84
|
+
if (typeof plugins === 'undefined' || plugins === '') {
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return Array.isArray(plugins) ? plugins : plugins.split(' ');
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// eslint-disable-next-line max-len
|
|
92
|
+
export const mergePlugins = (initPlugins: string | string[] | undefined, inputPlugins: string | string[] | undefined): string[] => normalizePluginArray(initPlugins).concat(normalizePluginArray(inputPlugins));
|
|
93
|
+
|
|
94
|
+
export const isBeforeInputEventAvailable = () => window.InputEvent && typeof (InputEvent.prototype as any).getTargetRanges === 'function';
|
|
95
|
+
|