@tabler/core 1.0.0-beta20 → 1.0.0-beta21
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/README.md +7 -6
- package/dist/css/demo.css +8 -8
- package/dist/css/demo.min.css +5 -5
- package/dist/css/demo.rtl.css +8 -8
- package/dist/css/demo.rtl.min.css +5 -5
- package/dist/css/tabler-flags.css +10 -10
- package/dist/css/tabler-flags.min.css +5 -5
- package/dist/css/tabler-flags.rtl.css +10 -10
- package/dist/css/tabler-flags.rtl.min.css +5 -5
- package/dist/css/tabler-payments.css +4 -4
- package/dist/css/tabler-payments.min.css +4 -4
- package/dist/css/tabler-payments.rtl.css +4 -4
- package/dist/css/tabler-payments.rtl.min.css +4 -4
- package/dist/css/tabler-social.css +4 -4
- package/dist/css/tabler-social.min.css +4 -4
- package/dist/css/tabler-social.rtl.css +4 -4
- package/dist/css/tabler-social.rtl.min.css +4 -4
- package/dist/css/tabler-vendors.css +246 -253
- package/dist/css/tabler-vendors.min.css +5 -5
- package/dist/css/tabler-vendors.rtl.css +246 -253
- package/dist/css/tabler-vendors.rtl.min.css +5 -5
- package/dist/css/tabler.css +643 -426
- package/dist/css/tabler.min.css +8 -8
- package/dist/css/tabler.rtl.css +667 -441
- package/dist/css/tabler.rtl.min.css +8 -8
- package/dist/js/demo-theme.js +4 -4
- package/dist/js/demo-theme.min.js +4 -4
- package/dist/js/demo.js +41 -42
- package/dist/js/demo.min.js +5 -5
- package/dist/js/tabler.esm.js +1949 -1248
- package/dist/js/tabler.esm.min.js +8 -8
- package/dist/js/tabler.js +1949 -1248
- package/dist/js/tabler.min.js +8 -8
- package/dist/libs/apexcharts/dist/apexcharts.amd.js +1 -1
- package/dist/libs/apexcharts/dist/apexcharts.common.js +5 -5
- package/dist/libs/apexcharts/dist/apexcharts.css +166 -65
- package/dist/libs/apexcharts/dist/apexcharts.esm.js +5 -5
- package/dist/libs/apexcharts/dist/apexcharts.js +7964 -8527
- package/dist/libs/apexcharts/dist/apexcharts.min.js +5 -5
- package/dist/libs/apexcharts/dist/locales/be-cyrl.json +55 -0
- package/dist/libs/apexcharts/dist/locales/be-latn.json +55 -0
- package/dist/libs/apexcharts/dist/locales/da.json +55 -0
- package/dist/libs/apexcharts/dist/locales/ms.json +63 -0
- package/dist/libs/apexcharts/dist/locales/pt.json +3 -3
- package/dist/libs/apexcharts/dist/locales/vi.json +63 -0
- package/dist/libs/apexcharts/dist/locales/zh-tw.json +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.js +8 -8
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js +3 -3
- package/dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.js +8 -8
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.min.js +3 -3
- package/dist/libs/bootstrap/dist/js/bootstrap.esm.min.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.js +8 -8
- package/dist/libs/bootstrap/dist/js/bootstrap.js.map +1 -1
- package/dist/libs/bootstrap/dist/js/bootstrap.min.js +3 -3
- package/dist/libs/bootstrap/dist/js/bootstrap.min.js.map +1 -1
- package/dist/libs/countup.js/dist/countUp.d.ts +1 -0
- package/dist/libs/countup.js/dist/countUp.js +4 -1
- package/dist/libs/countup.js/dist/countUp.min.js +1 -1
- package/dist/libs/countup.js/dist/countUp.umd.js +1 -1
- package/dist/libs/jsvectormap/dist/jsvectormap.cjs +2279 -0
- package/dist/libs/jsvectormap/dist/jsvectormap.css +121 -0
- package/dist/libs/jsvectormap/dist/jsvectormap.esm.js +2277 -0
- package/dist/libs/jsvectormap/dist/jsvectormap.js +2285 -0
- package/dist/libs/jsvectormap/dist/jsvectormap.min.css +1 -0
- package/dist/libs/jsvectormap/dist/jsvectormap.min.js +1 -0
- package/dist/libs/jsvectormap/dist/maps/world-merc.js +1 -1
- package/dist/libs/jsvectormap/dist/maps/world.js +1 -1
- package/dist/libs/nouislider/dist/nouislider.d.ts +8 -10
- package/dist/libs/nouislider/dist/nouislider.js +64 -5
- package/dist/libs/nouislider/dist/nouislider.min.js +1 -1
- package/dist/libs/nouislider/dist/nouislider.min.mjs +1 -1
- package/dist/libs/nouislider/dist/nouislider.mjs +64 -5
- package/dist/libs/star-rating.js/dist/star-rating.cjs.js +5 -2
- package/dist/libs/star-rating.js/dist/star-rating.css +23 -20
- package/dist/libs/star-rating.js/dist/star-rating.esm.js +5 -2
- package/dist/libs/star-rating.js/dist/star-rating.js +5 -9
- package/dist/libs/star-rating.js/dist/star-rating.min.css +1 -8
- package/dist/libs/star-rating.js/dist/star-rating.min.js +1 -8
- package/dist/libs/tinymce/CHANGELOG.md +471 -12
- package/dist/libs/tinymce/README.md +16 -10
- package/dist/libs/tinymce/bower.json +1 -1
- package/dist/libs/tinymce/composer.json +2 -2
- package/dist/libs/tinymce/icons/default/icons.js +13 -2
- package/dist/libs/tinymce/icons/default/icons.min.js +1 -1
- package/dist/libs/tinymce/license.md +6 -0
- package/dist/libs/tinymce/models/dom/model.js +237 -213
- package/dist/libs/tinymce/models/dom/model.min.js +2 -2
- package/dist/libs/tinymce/package.json +2 -2
- package/dist/libs/tinymce/plugins/accordion/index.js +7 -0
- package/dist/libs/tinymce/plugins/accordion/plugin.js +1055 -0
- package/dist/libs/tinymce/plugins/accordion/plugin.min.js +4 -0
- package/dist/libs/tinymce/plugins/advlist/plugin.js +4 -4
- package/dist/libs/tinymce/plugins/advlist/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/anchor/plugin.js +21 -3
- package/dist/libs/tinymce/plugins/anchor/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/autolink/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/autolink/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/autoresize/plugin.js +20 -33
- package/dist/libs/tinymce/plugins/autoresize/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/autosave/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/charmap/plugin.js +15 -3
- package/dist/libs/tinymce/plugins/charmap/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/code/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/code/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/codesample/plugin.js +27 -13
- package/dist/libs/tinymce/plugins/codesample/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/directionality/plugin.js +33 -27
- package/dist/libs/tinymce/plugins/directionality/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/emoticons/plugin.js +17 -4
- package/dist/libs/tinymce/plugins/emoticons/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/fullscreen/plugin.js +168 -105
- package/dist/libs/tinymce/plugins/fullscreen/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/ar.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/ca.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/cs.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/da.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/de.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/el.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/en.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/es.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/eu.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/fa.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/fi.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/he_IL.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/hi.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/hr.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/id.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/it.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/ja.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/kk.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/ms.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/nl.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/pl.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/ro.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/ru.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/sk.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/th_TH.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/tr.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/uk.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/vi.js +93 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +87 -0
- package/dist/libs/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +93 -0
- package/dist/libs/tinymce/plugins/help/plugin.js +115 -135
- package/dist/libs/tinymce/plugins/help/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/image/plugin.js +23 -5
- package/dist/libs/tinymce/plugins/image/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/importcss/plugin.js +4 -3
- package/dist/libs/tinymce/plugins/importcss/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/insertdatetime/plugin.js +15 -3
- package/dist/libs/tinymce/plugins/insertdatetime/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/link/plugin.js +193 -114
- package/dist/libs/tinymce/plugins/link/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/lists/plugin.js +290 -66
- package/dist/libs/tinymce/plugins/lists/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/media/plugin.js +80 -33
- package/dist/libs/tinymce/plugins/media/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/nonbreaking/plugin.js +15 -3
- package/dist/libs/tinymce/plugins/nonbreaking/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/pagebreak/plugin.js +15 -3
- package/dist/libs/tinymce/plugins/pagebreak/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/preview/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/preview/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/quickbars/plugin.js +19 -7
- package/dist/libs/tinymce/plugins/quickbars/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/save/plugin.js +3 -2
- package/dist/libs/tinymce/plugins/save/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/searchreplace/plugin.js +42 -36
- package/dist/libs/tinymce/plugins/searchreplace/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/table/plugin.js +121 -76
- package/dist/libs/tinymce/plugins/table/plugin.min.js +2 -2
- package/dist/libs/tinymce/plugins/visualblocks/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/visualblocks/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/visualchars/plugin.js +1 -1
- package/dist/libs/tinymce/plugins/visualchars/plugin.min.js +1 -1
- package/dist/libs/tinymce/plugins/wordcount/plugin.js +27 -19
- package/dist/libs/tinymce/plugins/wordcount/plugin.min.js +2 -2
- package/dist/libs/tinymce/skins/content/dark/content.js +1 -0
- package/dist/libs/tinymce/skins/content/default/content.js +1 -0
- package/dist/libs/tinymce/skins/content/document/content.js +1 -0
- package/dist/libs/tinymce/skins/content/tinymce-5/content.js +1 -0
- package/dist/libs/tinymce/skins/content/tinymce-5-dark/content.js +1 -0
- package/dist/libs/tinymce/skins/content/writer/content.js +1 -0
- package/dist/libs/tinymce/skins/ui/oxide/content.css +32 -29
- package/dist/libs/tinymce/skins/ui/oxide/content.inline.css +32 -29
- package/dist/libs/tinymce/skins/ui/oxide/content.inline.js +1 -0
- package/dist/libs/tinymce/skins/ui/oxide/content.inline.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/oxide/content.js +1 -0
- package/dist/libs/tinymce/skins/ui/oxide/content.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/oxide/skin.css +1003 -105
- package/dist/libs/tinymce/skins/ui/oxide/skin.js +1 -0
- package/dist/libs/tinymce/skins/ui/oxide/skin.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/oxide/skin.shadowdom.js +1 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.css +32 -22
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.inline.css +32 -29
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.inline.js +1 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.js +1 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/content.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.css +1008 -110
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.js +1 -0
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.css +32 -29
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.inline.css +32 -29
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.inline.js +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.js +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/content.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.css +1003 -86
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.js +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.css +32 -22
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.inline.css +32 -29
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.inline.js +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.js +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.css +1009 -92
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.js +1 -0
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/dist/libs/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +1 -0
- package/dist/libs/tinymce/themes/silver/theme.js +26361 -24936
- package/dist/libs/tinymce/themes/silver/theme.min.js +2 -2
- package/dist/libs/tinymce/tinymce.d.ts +205 -136
- package/dist/libs/tinymce/tinymce.js +4400 -2838
- package/dist/libs/tinymce/tinymce.min.js +2 -2
- package/dist/libs/tom-select/dist/js/plugins/caret_position.js +11 -16
- package/dist/libs/tom-select/dist/js/plugins/caret_position.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/change_listener.js +3 -2
- package/dist/libs/tom-select/dist/js/plugins/change_listener.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/checkbox_options.js +47 -34
- package/dist/libs/tom-select/dist/js/plugins/checkbox_options.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/clear_button.js +3 -13
- package/dist/libs/tom-select/dist/js/plugins/clear_button.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/drag_drop.js +249 -29
- package/dist/libs/tom-select/dist/js/plugins/drag_drop.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/dropdown_header.js +3 -11
- package/dist/libs/tom-select/dist/js/plugins/dropdown_header.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/dropdown_input.js +15 -24
- package/dist/libs/tom-select/dist/js/plugins/dropdown_input.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/input_autogrow.js +4 -6
- package/dist/libs/tom-select/dist/js/plugins/input_autogrow.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/no_active_items.js +2 -1
- package/dist/libs/tom-select/dist/js/plugins/no_active_items.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/no_backspace_delete.js +2 -2
- package/dist/libs/tom-select/dist/js/plugins/no_backspace_delete.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/optgroup_columns.js +3 -15
- package/dist/libs/tom-select/dist/js/plugins/optgroup_columns.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/remove_button.js +11 -15
- package/dist/libs/tom-select/dist/js/plugins/remove_button.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/restore_on_backspace.js +2 -3
- package/dist/libs/tom-select/dist/js/plugins/restore_on_backspace.js.map +1 -1
- package/dist/libs/tom-select/dist/js/plugins/virtual_scroll.js +41 -50
- package/dist/libs/tom-select/dist/js/plugins/virtual_scroll.js.map +1 -1
- package/dist/libs/tom-select/dist/js/tom-select.base.js +411 -685
- package/dist/libs/tom-select/dist/js/tom-select.base.js.map +1 -1
- package/dist/libs/tom-select/dist/js/tom-select.base.min.js +87 -78
- package/dist/libs/tom-select/dist/js/tom-select.base.min.js.map +1 -1
- package/dist/libs/tom-select/dist/js/tom-select.complete.js +614 -820
- package/dist/libs/tom-select/dist/js/tom-select.complete.js.map +1 -1
- package/dist/libs/tom-select/dist/js/tom-select.complete.min.js +195 -176
- package/dist/libs/tom-select/dist/js/tom-select.complete.min.js.map +1 -1
- package/dist/libs/tom-select/dist/js/tom-select.popular.js +436 -705
- package/dist/libs/tom-select/dist/js/tom-select.popular.js.map +1 -1
- package/dist/libs/tom-select/dist/js/tom-select.popular.min.js +87 -78
- package/dist/libs/tom-select/dist/js/tom-select.popular.min.js.map +1 -1
- package/docs/base/colors.mdx +25 -0
- package/docs/base/typography.mdx +296 -0
- package/docs/components/alerts.mdx +430 -0
- package/docs/components/autosize.mdx +16 -0
- package/docs/components/avatars.mdx +172 -0
- package/docs/components/badges.mdx +127 -0
- package/docs/components/breadcrumb.mdx +107 -0
- package/docs/components/buttons.mdx +863 -0
- package/docs/components/cards.mdx +343 -0
- package/docs/components/carousel.mdx +235 -0
- package/docs/components/charts.mdx +526 -0
- package/docs/components/countup.mdx +136 -0
- package/docs/components/datagrid.mdx +90 -0
- package/docs/components/divider.mdx +63 -0
- package/docs/components/dropdowns.mdx +245 -0
- package/docs/components/dropzone.mdx +63 -0
- package/docs/components/empty.mdx +103 -0
- package/docs/components/icons.mdx +120 -0
- package/docs/components/inline-player.mdx +31 -0
- package/docs/components/modals.mdx +222 -0
- package/docs/components/placeholder.mdx +270 -0
- package/docs/components/popover.mdx +55 -0
- package/docs/components/progress.mdx +92 -0
- package/docs/components/progressbg.mdx +16 -0
- package/docs/components/range-slider.mdx +17 -0
- package/docs/components/ribbons.mdx +151 -0
- package/docs/components/spinners.mdx +119 -0
- package/docs/components/statuses.mdx +285 -0
- package/docs/components/steps.mdx +111 -0
- package/docs/components/switch-icon.mdx +155 -0
- package/docs/components/tables.mdx +410 -0
- package/docs/components/tabs.mdx +243 -0
- package/docs/components/timelines.mdx +506 -0
- package/docs/components/tinymce.mdx +44 -0
- package/docs/components/toasts.mdx +73 -0
- package/docs/components/tooltips.mdx +34 -0
- package/docs/components/tracking.mdx +162 -0
- package/docs/forms/form-color-check.mdx +179 -0
- package/docs/forms/form-elements.mdx +498 -0
- package/docs/forms/form-fieldset.mdx +44 -0
- package/docs/forms/form-helpers.mdx +12 -0
- package/docs/forms/form-image-check.mdx +162 -0
- package/docs/forms/form-input-mask.mdx +18 -0
- package/docs/forms/form-selectboxes.mdx +205 -0
- package/docs/forms/form-validation.mdx +25 -0
- package/docs/getting-started/browser-support.mdx +20 -0
- package/docs/getting-started/customize.mdx +24 -0
- package/docs/getting-started/download.mdx +42 -0
- package/docs/getting-started/faq.mdx +28 -0
- package/docs/getting-started/index.mdx +40 -0
- package/docs/icons/eps.mdx +13 -0
- package/docs/icons/figma.mdx +7 -0
- package/docs/icons/index.mdx +103 -0
- package/docs/icons/pdf.mdx +13 -0
- package/docs/icons/png.mdx +19 -0
- package/docs/icons/preact.mdx +40 -0
- package/docs/icons/react.mdx +40 -0
- package/docs/icons/solidjs.mdx +39 -0
- package/docs/icons/svelte.mdx +40 -0
- package/docs/icons/svg.mdx +74 -0
- package/docs/icons/vue.mdx +45 -0
- package/docs/icons/webfont.mdx +52 -0
- package/docs/layout/page-headers.mdx +226 -0
- package/docs/layout/page-layouts.mdx +204 -0
- package/docs/menu.json +317 -0
- package/docs/plugins/flags.mdx +52 -0
- package/docs/plugins/payments.mdx +43 -0
- package/docs/utilities/borders.mdx +114 -0
- package/docs/utilities/cursors.mdx +92 -0
- package/docs/utilities/interactions.mdx +23 -0
- package/package.json +37 -37
- package/src/js/src/toast.js +9 -1
- package/src/scss/_variables-dark.scss +3 -3
- package/src/scss/_variables.scss +38 -33
- package/src/scss/layout/_dark.scss +10 -2
- package/src/scss/layout/_navbar.scss +22 -13
- package/src/scss/layout/_page.scss +4 -4
- package/src/scss/layout/_root.scss +1 -1
- package/src/scss/mixins/_mixins.scss +4 -4
- package/src/scss/ui/_alerts.scss +2 -2
- package/src/scss/ui/_buttons.scss +4 -4
- package/src/scss/ui/_dropdowns.scss +1 -0
- package/src/scss/ui/_empty.scss +0 -5
- package/src/scss/ui/_flags.scss +2 -2
- package/src/scss/ui/_forms.scss +5 -4
- package/src/scss/ui/_modals.scss +3 -3
- package/src/scss/ui/_ribbons.scss +1 -0
- package/src/scss/ui/_toasts.scss +0 -1
- package/src/scss/ui/_type.scss +4 -2
- package/src/scss/vendor/_apexcharts.scss +2 -2
- package/src/scss/vendor/_jsvectormap.scss +1 -1
- package/src/scss/vendor/_litepicker.scss +1 -1
- package/dist/libs/jsvectormap/dist/js/jsvectormap.js +0 -2318
- package/dist/libs/jsvectormap/dist/js/jsvectormap.min.js +0 -1
- package/dist/libs/tinymce/license.txt +0 -21
- package/dist/libs/tinymce/plugins/template/index.js +0 -7
- package/dist/libs/tinymce/plugins/template/plugin.js +0 -554
- package/dist/libs/tinymce/plugins/template/plugin.min.js +0 -4
|
@@ -22,8 +22,8 @@ interface PathBookmark {
|
|
|
22
22
|
isFakeCaret?: boolean;
|
|
23
23
|
forward?: boolean;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
type Bookmark = StringPathBookmark | RangeBookmark | IdBookmark | IndexBookmark | PathBookmark;
|
|
26
|
+
type NormalizedEvent<E, T = any> = E & {
|
|
27
27
|
readonly type: string;
|
|
28
28
|
readonly target: T;
|
|
29
29
|
readonly isDefaultPrevented: () => boolean;
|
|
@@ -33,7 +33,7 @@ declare type NormalizedEvent<E, T = any> = E & {
|
|
|
33
33
|
readonly isImmediatePropagationStopped: () => boolean;
|
|
34
34
|
readonly stopImmediatePropagation: () => void;
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
type MappedEvent<T extends {}, K extends string> = K extends keyof T ? T[K] : any;
|
|
37
37
|
interface NativeEventMap {
|
|
38
38
|
'beforepaste': Event;
|
|
39
39
|
'blur': FocusEvent;
|
|
@@ -76,7 +76,7 @@ interface NativeEventMap {
|
|
|
76
76
|
'touchcancel': TouchEvent;
|
|
77
77
|
'wheel': WheelEvent;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
type EditorEvent<T> = NormalizedEvent<T>;
|
|
80
80
|
interface EventDispatcherSettings {
|
|
81
81
|
scope?: any;
|
|
82
82
|
toggleEvent?: (name: string, state: boolean) => void | boolean;
|
|
@@ -101,27 +101,24 @@ declare class EventDispatcher<T extends {}> {
|
|
|
101
101
|
once<K extends string>(name: K, callback: (event: EditorEvent<MappedEvent<T, K>>) => void, prepend?: boolean): this;
|
|
102
102
|
has(name: string): boolean;
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
Fragmented = "fragmented",
|
|
106
|
-
Complete = "complete"
|
|
107
|
-
}
|
|
104
|
+
type UndoLevelType = 'fragmented' | 'complete';
|
|
108
105
|
interface BaseUndoLevel {
|
|
109
106
|
type: UndoLevelType;
|
|
110
107
|
bookmark: Bookmark | null;
|
|
111
108
|
beforeBookmark: Bookmark | null;
|
|
112
109
|
}
|
|
113
110
|
interface FragmentedUndoLevel extends BaseUndoLevel {
|
|
114
|
-
type:
|
|
111
|
+
type: 'fragmented';
|
|
115
112
|
fragments: string[];
|
|
116
113
|
content: '';
|
|
117
114
|
}
|
|
118
115
|
interface CompleteUndoLevel extends BaseUndoLevel {
|
|
119
|
-
type:
|
|
116
|
+
type: 'complete';
|
|
120
117
|
fragments: null;
|
|
121
118
|
content: string;
|
|
122
119
|
}
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
type NewUndoLevel = CompleteUndoLevel | FragmentedUndoLevel;
|
|
121
|
+
type UndoLevel = NewUndoLevel & {
|
|
125
122
|
bookmark: Bookmark;
|
|
126
123
|
};
|
|
127
124
|
interface UndoManager {
|
|
@@ -140,7 +137,7 @@ interface UndoManager {
|
|
|
140
137
|
ignore: (callback: () => void) => void;
|
|
141
138
|
extra: (callback1: () => void, callback2: () => void) => void;
|
|
142
139
|
}
|
|
143
|
-
|
|
140
|
+
type SchemaType = 'html4' | 'html5' | 'html5-strict';
|
|
144
141
|
interface ElementSettings {
|
|
145
142
|
block_elements?: string;
|
|
146
143
|
boolean_attributes?: string;
|
|
@@ -152,9 +149,10 @@ interface ElementSettings {
|
|
|
152
149
|
void_elements?: string;
|
|
153
150
|
whitespace_elements?: string;
|
|
154
151
|
transparent_elements?: string;
|
|
152
|
+
wrap_block_elements?: string;
|
|
155
153
|
}
|
|
156
154
|
interface SchemaSettings extends ElementSettings {
|
|
157
|
-
custom_elements?: string
|
|
155
|
+
custom_elements?: string | Record<string, CustomElementSpec>;
|
|
158
156
|
extended_valid_elements?: string;
|
|
159
157
|
invalid_elements?: string;
|
|
160
158
|
invalid_styles?: string | Record<string, string>;
|
|
@@ -202,6 +200,12 @@ interface SchemaMap {
|
|
|
202
200
|
interface SchemaRegExpMap {
|
|
203
201
|
[name: string]: RegExp;
|
|
204
202
|
}
|
|
203
|
+
interface CustomElementSpec {
|
|
204
|
+
extends?: string;
|
|
205
|
+
attributes?: string[];
|
|
206
|
+
children?: string[];
|
|
207
|
+
padEmpty?: boolean;
|
|
208
|
+
}
|
|
205
209
|
interface Schema {
|
|
206
210
|
type: SchemaType;
|
|
207
211
|
children: Record<string, SchemaMap>;
|
|
@@ -223,13 +227,16 @@ interface Schema {
|
|
|
223
227
|
getSpecialElements: () => SchemaRegExpMap;
|
|
224
228
|
isValidChild: (name: string, child: string) => boolean;
|
|
225
229
|
isValid: (name: string, attr?: string) => boolean;
|
|
230
|
+
isBlock: (name: string) => boolean;
|
|
231
|
+
isInline: (name: string) => boolean;
|
|
232
|
+
isWrapper: (name: string) => boolean;
|
|
226
233
|
getCustomElements: () => SchemaMap;
|
|
227
234
|
addValidElements: (validElements: string) => void;
|
|
228
235
|
setValidElements: (validElements: string) => void;
|
|
229
|
-
addCustomElements: (customElements: string) => void;
|
|
236
|
+
addCustomElements: (customElements: string | Record<string, CustomElementSpec>) => void;
|
|
230
237
|
addValidChildren: (validChildren: any) => void;
|
|
231
238
|
}
|
|
232
|
-
|
|
239
|
+
type Attributes$1 = Array<{
|
|
233
240
|
name: string;
|
|
234
241
|
value: string;
|
|
235
242
|
}> & {
|
|
@@ -269,8 +276,8 @@ declare class AstNode {
|
|
|
269
276
|
isEmpty(elements: SchemaMap, whitespace?: SchemaMap, predicate?: (node: AstNode) => boolean): boolean;
|
|
270
277
|
walk(prev?: boolean): AstNode | null | undefined;
|
|
271
278
|
}
|
|
272
|
-
|
|
273
|
-
|
|
279
|
+
type Content = string | AstNode;
|
|
280
|
+
type ContentFormat = 'raw' | 'text' | 'html' | 'tree';
|
|
274
281
|
interface GetContentArgs {
|
|
275
282
|
format: ContentFormat;
|
|
276
283
|
get: boolean;
|
|
@@ -351,16 +358,16 @@ interface Quirks {
|
|
|
351
358
|
refreshContentEditable(): void;
|
|
352
359
|
isHidden(): boolean;
|
|
353
360
|
}
|
|
354
|
-
|
|
355
|
-
|
|
361
|
+
type DecoratorData = Record<string, any>;
|
|
362
|
+
type Decorator = (uid: string, data: DecoratorData) => {
|
|
356
363
|
attributes?: {};
|
|
357
364
|
classes?: string[];
|
|
358
365
|
};
|
|
359
|
-
|
|
366
|
+
type AnnotationListener = (state: boolean, name: string, data?: {
|
|
360
367
|
uid: string;
|
|
361
368
|
nodes: any[];
|
|
362
369
|
}) => void;
|
|
363
|
-
|
|
370
|
+
type AnnotationListenerApi = AnnotationListener;
|
|
364
371
|
interface AnnotatorSettings {
|
|
365
372
|
decorate: Decorator;
|
|
366
373
|
persistent?: boolean;
|
|
@@ -373,6 +380,12 @@ interface Annotator {
|
|
|
373
380
|
removeAll: (name: string) => void;
|
|
374
381
|
getAll: (name: string) => Record<string, Element[]>;
|
|
375
382
|
}
|
|
383
|
+
interface IsEmptyOptions {
|
|
384
|
+
readonly skipBogus?: boolean;
|
|
385
|
+
readonly includeZwsp?: boolean;
|
|
386
|
+
readonly checkRootAsContent?: boolean;
|
|
387
|
+
readonly isContent?: (node: Node) => boolean;
|
|
388
|
+
}
|
|
376
389
|
interface GeomRect {
|
|
377
390
|
readonly x: number;
|
|
378
391
|
readonly y: number;
|
|
@@ -389,7 +402,7 @@ interface Rect {
|
|
|
389
402
|
fromClientRect: (clientRect: DOMRect) => GeomRect;
|
|
390
403
|
}
|
|
391
404
|
interface NotificationManagerImpl {
|
|
392
|
-
open: (spec: NotificationSpec, closeCallback: () => void) => NotificationApi;
|
|
405
|
+
open: (spec: NotificationSpec, closeCallback: () => void, hasEditorFocus: () => boolean) => NotificationApi;
|
|
393
406
|
close: <T extends NotificationApi>(notification: T) => void;
|
|
394
407
|
getArgs: <T extends NotificationApi>(notification: T) => NotificationSpec;
|
|
395
408
|
}
|
|
@@ -399,7 +412,6 @@ interface NotificationSpec {
|
|
|
399
412
|
icon?: string;
|
|
400
413
|
progressBar?: boolean;
|
|
401
414
|
timeout?: number;
|
|
402
|
-
closeButton?: boolean;
|
|
403
415
|
}
|
|
404
416
|
interface NotificationApi {
|
|
405
417
|
close: () => void;
|
|
@@ -420,14 +432,15 @@ interface UploadFailure {
|
|
|
420
432
|
message: string;
|
|
421
433
|
remove?: boolean;
|
|
422
434
|
}
|
|
423
|
-
|
|
424
|
-
|
|
435
|
+
type ProgressFn = (percent: number) => void;
|
|
436
|
+
type UploadHandler = (blobInfo: BlobInfo, progress: ProgressFn) => Promise<string>;
|
|
425
437
|
interface UploadResult$2 {
|
|
426
438
|
url: string;
|
|
427
439
|
blobInfo: BlobInfo;
|
|
428
440
|
status: boolean;
|
|
429
441
|
error?: UploadFailure;
|
|
430
442
|
}
|
|
443
|
+
type BlockPatternTrigger = 'enter' | 'space';
|
|
431
444
|
interface RawPattern {
|
|
432
445
|
start?: any;
|
|
433
446
|
end?: any;
|
|
@@ -435,6 +448,7 @@ interface RawPattern {
|
|
|
435
448
|
cmd?: any;
|
|
436
449
|
value?: any;
|
|
437
450
|
replacement?: any;
|
|
451
|
+
trigger?: BlockPatternTrigger;
|
|
438
452
|
}
|
|
439
453
|
interface InlineBasePattern {
|
|
440
454
|
readonly start: string;
|
|
@@ -449,9 +463,10 @@ interface InlineCmdPattern extends InlineBasePattern {
|
|
|
449
463
|
readonly cmd: string;
|
|
450
464
|
readonly value?: any;
|
|
451
465
|
}
|
|
452
|
-
|
|
466
|
+
type InlinePattern = InlineFormatPattern | InlineCmdPattern;
|
|
453
467
|
interface BlockBasePattern {
|
|
454
468
|
readonly start: string;
|
|
469
|
+
readonly trigger: BlockPatternTrigger;
|
|
455
470
|
}
|
|
456
471
|
interface BlockFormatPattern extends BlockBasePattern {
|
|
457
472
|
readonly type: 'block-format';
|
|
@@ -462,14 +477,14 @@ interface BlockCmdPattern extends BlockBasePattern {
|
|
|
462
477
|
readonly cmd: string;
|
|
463
478
|
readonly value?: any;
|
|
464
479
|
}
|
|
465
|
-
|
|
466
|
-
|
|
480
|
+
type BlockPattern = BlockFormatPattern | BlockCmdPattern;
|
|
481
|
+
type Pattern = InlinePattern | BlockPattern;
|
|
467
482
|
interface DynamicPatternContext {
|
|
468
483
|
readonly text: string;
|
|
469
484
|
readonly block: Element;
|
|
470
485
|
}
|
|
471
|
-
|
|
472
|
-
|
|
486
|
+
type DynamicPatternsLookup = (ctx: DynamicPatternContext) => Pattern[];
|
|
487
|
+
type RawDynamicPatternsLookup = (ctx: DynamicPatternContext) => RawPattern[];
|
|
473
488
|
interface AlertBannerSpec {
|
|
474
489
|
type: 'alertbanner';
|
|
475
490
|
level: 'info' | 'warn' | 'error' | 'success';
|
|
@@ -519,7 +534,7 @@ interface CustomEditorInit {
|
|
|
519
534
|
getValue: () => string;
|
|
520
535
|
destroy: () => void;
|
|
521
536
|
}
|
|
522
|
-
|
|
537
|
+
type CustomEditorInitFn = (elm: HTMLElement, settings: any) => Promise<CustomEditorInit>;
|
|
523
538
|
interface CustomEditorOldSpec extends FormComponentSpec {
|
|
524
539
|
type: 'customeditor';
|
|
525
540
|
tag?: string;
|
|
@@ -530,9 +545,10 @@ interface CustomEditorNewSpec extends FormComponentSpec {
|
|
|
530
545
|
tag?: string;
|
|
531
546
|
scriptId: string;
|
|
532
547
|
scriptUrl: string;
|
|
548
|
+
onFocus?: (e: HTMLElement) => void;
|
|
533
549
|
settings?: any;
|
|
534
550
|
}
|
|
535
|
-
|
|
551
|
+
type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec;
|
|
536
552
|
interface DropZoneSpec extends FormComponentWithLabelSpec {
|
|
537
553
|
type: 'dropzone';
|
|
538
554
|
}
|
|
@@ -544,11 +560,15 @@ interface GridSpec {
|
|
|
544
560
|
interface HtmlPanelSpec {
|
|
545
561
|
type: 'htmlpanel';
|
|
546
562
|
html: string;
|
|
563
|
+
onInit?: (el: HTMLElement) => void;
|
|
547
564
|
presets?: 'presentation' | 'document';
|
|
565
|
+
stretched?: boolean;
|
|
548
566
|
}
|
|
549
567
|
interface IframeSpec extends FormComponentWithLabelSpec {
|
|
550
568
|
type: 'iframe';
|
|
569
|
+
border?: boolean;
|
|
551
570
|
sandboxed?: boolean;
|
|
571
|
+
streamContent?: boolean;
|
|
552
572
|
transparent?: boolean;
|
|
553
573
|
}
|
|
554
574
|
interface ImagePreviewSpec extends FormComponentSpec {
|
|
@@ -562,10 +582,13 @@ interface InputSpec extends FormComponentWithLabelSpec {
|
|
|
562
582
|
maximized?: boolean;
|
|
563
583
|
enabled?: boolean;
|
|
564
584
|
}
|
|
585
|
+
type Alignment = 'start' | 'center' | 'end';
|
|
565
586
|
interface LabelSpec {
|
|
566
587
|
type: 'label';
|
|
567
588
|
label: string;
|
|
568
589
|
items: BodyComponentSpec[];
|
|
590
|
+
align?: Alignment;
|
|
591
|
+
for?: string;
|
|
569
592
|
}
|
|
570
593
|
interface ListBoxSingleItemSpec {
|
|
571
594
|
text: string;
|
|
@@ -575,7 +598,7 @@ interface ListBoxNestedItemSpec {
|
|
|
575
598
|
text: string;
|
|
576
599
|
items: ListBoxItemSpec[];
|
|
577
600
|
}
|
|
578
|
-
|
|
601
|
+
type ListBoxItemSpec = ListBoxNestedItemSpec | ListBoxSingleItemSpec;
|
|
579
602
|
interface ListBoxSpec extends FormComponentWithLabelSpec {
|
|
580
603
|
type: 'listbox';
|
|
581
604
|
items: ListBoxItemSpec[];
|
|
@@ -634,6 +657,7 @@ interface BaseToolbarButtonInstanceApi {
|
|
|
634
657
|
interface ToolbarButtonSpec extends BaseToolbarButtonSpec<ToolbarButtonInstanceApi> {
|
|
635
658
|
type?: 'button';
|
|
636
659
|
onAction: (api: ToolbarButtonInstanceApi) => void;
|
|
660
|
+
shortcut?: string;
|
|
637
661
|
}
|
|
638
662
|
interface ToolbarButtonInstanceApi extends BaseToolbarButtonInstanceApi {
|
|
639
663
|
}
|
|
@@ -641,7 +665,7 @@ interface ToolbarGroupSetting {
|
|
|
641
665
|
name: string;
|
|
642
666
|
items: string[];
|
|
643
667
|
}
|
|
644
|
-
|
|
668
|
+
type ToolbarConfig = string | ToolbarGroupSetting[];
|
|
645
669
|
interface GroupToolbarButtonInstanceApi extends BaseToolbarButtonInstanceApi {
|
|
646
670
|
}
|
|
647
671
|
interface GroupToolbarButtonSpec extends BaseToolbarButtonSpec<GroupToolbarButtonInstanceApi> {
|
|
@@ -660,10 +684,10 @@ interface CardTextSpec {
|
|
|
660
684
|
name?: string;
|
|
661
685
|
classes?: string[];
|
|
662
686
|
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
687
|
+
type CardItemSpec = CardContainerSpec | CardImageSpec | CardTextSpec;
|
|
688
|
+
type CardContainerDirection = 'vertical' | 'horizontal';
|
|
689
|
+
type CardContainerAlign = 'left' | 'right';
|
|
690
|
+
type CardContainerValign = 'top' | 'middle' | 'bottom';
|
|
667
691
|
interface CardContainerSpec {
|
|
668
692
|
type: 'cardcontainer';
|
|
669
693
|
items: CardItemSpec[];
|
|
@@ -711,7 +735,7 @@ interface ContextSubMenu extends CommonMenuItemSpec {
|
|
|
711
735
|
icon?: string;
|
|
712
736
|
getSubmenuItems: () => string | Array<ContextMenuContents>;
|
|
713
737
|
}
|
|
714
|
-
|
|
738
|
+
type ContextMenuContents = string | ContextMenuItem | SeparatorMenuItemSpec | ContextSubMenu;
|
|
715
739
|
interface ContextMenuApi {
|
|
716
740
|
update: (element: Element) => string | Array<ContextMenuContents>;
|
|
717
741
|
}
|
|
@@ -743,7 +767,7 @@ interface ColorSwatchMenuItemSpec extends BaseFancyMenuItemSpec<'colorswatch'> {
|
|
|
743
767
|
storageKey?: string;
|
|
744
768
|
};
|
|
745
769
|
}
|
|
746
|
-
|
|
770
|
+
type FancyMenuItemSpec = InsertTableMenuItemSpec | ColorSwatchMenuItemSpec;
|
|
747
771
|
interface MenuItemSpec extends CommonMenuItemSpec {
|
|
748
772
|
type?: 'menuitem';
|
|
749
773
|
icon?: string;
|
|
@@ -767,7 +791,7 @@ interface ToggleMenuItemInstanceApi extends CommonMenuItemInstanceApi {
|
|
|
767
791
|
isActive: () => boolean;
|
|
768
792
|
setActive: (state: boolean) => void;
|
|
769
793
|
}
|
|
770
|
-
|
|
794
|
+
type NestedMenuItemContents = string | MenuItemSpec | NestedMenuItemSpec | ToggleMenuItemSpec | SeparatorMenuItemSpec | FancyMenuItemSpec;
|
|
771
795
|
interface NestedMenuItemSpec extends CommonMenuItemSpec {
|
|
772
796
|
type?: 'nestedmenuitem';
|
|
773
797
|
icon?: string;
|
|
@@ -775,10 +799,11 @@ interface NestedMenuItemSpec extends CommonMenuItemSpec {
|
|
|
775
799
|
onSetup?: (api: NestedMenuItemInstanceApi) => (api: NestedMenuItemInstanceApi) => void;
|
|
776
800
|
}
|
|
777
801
|
interface NestedMenuItemInstanceApi extends CommonMenuItemInstanceApi {
|
|
802
|
+
setTooltip: (tooltip: string) => void;
|
|
778
803
|
setIconFill: (id: string, value: string) => void;
|
|
779
804
|
}
|
|
780
|
-
|
|
781
|
-
|
|
805
|
+
type MenuButtonItemTypes = NestedMenuItemContents;
|
|
806
|
+
type SuccessCallback$1 = (menu: string | MenuButtonItemTypes[]) => void;
|
|
782
807
|
interface MenuButtonFetchContext {
|
|
783
808
|
pattern: string;
|
|
784
809
|
}
|
|
@@ -806,11 +831,11 @@ interface ToolbarMenuButtonSpec extends BaseMenuButtonSpec {
|
|
|
806
831
|
}
|
|
807
832
|
interface ToolbarMenuButtonInstanceApi extends BaseMenuButtonInstanceApi {
|
|
808
833
|
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
834
|
+
type ToolbarSplitButtonItemTypes = ChoiceMenuItemSpec | SeparatorMenuItemSpec;
|
|
835
|
+
type SuccessCallback = (menu: ToolbarSplitButtonItemTypes[]) => void;
|
|
836
|
+
type SelectPredicate = (value: string) => boolean;
|
|
837
|
+
type PresetTypes = 'color' | 'normal' | 'listpreview';
|
|
838
|
+
type ColumnTypes$1 = number | 'auto';
|
|
814
839
|
interface ToolbarSplitButtonSpec {
|
|
815
840
|
type?: 'splitbutton';
|
|
816
841
|
tooltip?: string;
|
|
@@ -830,6 +855,7 @@ interface ToolbarSplitButtonInstanceApi {
|
|
|
830
855
|
setIconFill: (id: string, value: string) => void;
|
|
831
856
|
isActive: () => boolean;
|
|
832
857
|
setActive: (state: boolean) => void;
|
|
858
|
+
setTooltip: (tooltip: string) => void;
|
|
833
859
|
setText: (text: string) => void;
|
|
834
860
|
setIcon: (icon: string) => void;
|
|
835
861
|
}
|
|
@@ -843,14 +869,21 @@ interface BaseToolbarToggleButtonInstanceApi extends BaseToolbarButtonInstanceAp
|
|
|
843
869
|
interface ToolbarToggleButtonSpec extends BaseToolbarToggleButtonSpec<ToolbarToggleButtonInstanceApi> {
|
|
844
870
|
type?: 'togglebutton';
|
|
845
871
|
onAction: (api: ToolbarToggleButtonInstanceApi) => void;
|
|
872
|
+
shortcut?: string;
|
|
846
873
|
}
|
|
847
874
|
interface ToolbarToggleButtonInstanceApi extends BaseToolbarToggleButtonInstanceApi {
|
|
848
875
|
}
|
|
849
|
-
|
|
876
|
+
type Id = string;
|
|
850
877
|
interface TreeSpec {
|
|
851
878
|
type: 'tree';
|
|
852
879
|
items: TreeItemSpec[];
|
|
853
880
|
onLeafAction?: (id: Id) => void;
|
|
881
|
+
defaultExpandedIds?: Id[];
|
|
882
|
+
onToggleExpand?: (expandedIds: Id[], { expanded, node }: {
|
|
883
|
+
expanded: boolean;
|
|
884
|
+
node: Id;
|
|
885
|
+
}) => void;
|
|
886
|
+
defaultSelectedId?: Id;
|
|
854
887
|
}
|
|
855
888
|
interface BaseTreeItemSpec {
|
|
856
889
|
title: string;
|
|
@@ -864,11 +897,12 @@ interface DirectorySpec extends BaseTreeItemSpec {
|
|
|
864
897
|
interface LeafSpec extends BaseTreeItemSpec {
|
|
865
898
|
type: 'leaf';
|
|
866
899
|
}
|
|
867
|
-
|
|
900
|
+
type TreeItemSpec = DirectorySpec | LeafSpec;
|
|
868
901
|
interface UrlInputSpec extends FormComponentWithLabelSpec {
|
|
869
902
|
type: 'urlinput';
|
|
870
903
|
filetype?: 'image' | 'media' | 'file';
|
|
871
904
|
enabled?: boolean;
|
|
905
|
+
picker_text?: string;
|
|
872
906
|
}
|
|
873
907
|
interface UrlInputData {
|
|
874
908
|
value: string;
|
|
@@ -876,7 +910,7 @@ interface UrlInputData {
|
|
|
876
910
|
text?: string;
|
|
877
911
|
};
|
|
878
912
|
}
|
|
879
|
-
|
|
913
|
+
type BodyComponentSpec = BarSpec | ButtonSpec | CheckboxSpec | TextAreaSpec | InputSpec | ListBoxSpec | SelectBoxSpec | SizeInputSpec | SliderSpec | IframeSpec | HtmlPanelSpec | UrlInputSpec | DropZoneSpec | ColorInputSpec | GridSpec | ColorPickerSpec | ImagePreviewSpec | AlertBannerSpec | CollectionSpec | LabelSpec | TableSpec | TreeSpec | PanelSpec | CustomEditorSpec;
|
|
880
914
|
interface BarSpec {
|
|
881
915
|
type: 'bar';
|
|
882
916
|
items: BodyComponentSpec[];
|
|
@@ -885,7 +919,7 @@ interface DialogToggleMenuItemSpec extends CommonMenuItemSpec {
|
|
|
885
919
|
type?: 'togglemenuitem';
|
|
886
920
|
name: string;
|
|
887
921
|
}
|
|
888
|
-
|
|
922
|
+
type DialogFooterMenuButtonItemSpec = DialogToggleMenuItemSpec;
|
|
889
923
|
interface BaseDialogFooterButtonSpec {
|
|
890
924
|
name?: string;
|
|
891
925
|
align?: 'start' | 'end';
|
|
@@ -912,7 +946,7 @@ interface DialogFooterToggleButtonSpec extends BaseDialogFooterButtonSpec {
|
|
|
912
946
|
text?: string;
|
|
913
947
|
active?: boolean;
|
|
914
948
|
}
|
|
915
|
-
|
|
949
|
+
type DialogFooterButtonSpec = DialogFooterNormalButtonSpec | DialogFooterMenuButtonSpec | DialogFooterToggleButtonSpec;
|
|
916
950
|
interface TabSpec {
|
|
917
951
|
name?: string;
|
|
918
952
|
title: string;
|
|
@@ -922,8 +956,8 @@ interface TabPanelSpec {
|
|
|
922
956
|
type: 'tabpanel';
|
|
923
957
|
tabs: TabSpec[];
|
|
924
958
|
}
|
|
925
|
-
|
|
926
|
-
|
|
959
|
+
type DialogDataItem = any;
|
|
960
|
+
type DialogData = Record<string, DialogDataItem>;
|
|
927
961
|
interface DialogInstanceApi<T extends DialogData> {
|
|
928
962
|
getData: () => T;
|
|
929
963
|
setData: (data: Partial<T>) => void;
|
|
@@ -947,18 +981,18 @@ interface DialogTabChangeDetails {
|
|
|
947
981
|
newTabName: string;
|
|
948
982
|
oldTabName: string;
|
|
949
983
|
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
984
|
+
type DialogActionHandler<T extends DialogData> = (api: DialogInstanceApi<T>, details: DialogActionDetails) => void;
|
|
985
|
+
type DialogChangeHandler<T extends DialogData> = (api: DialogInstanceApi<T>, details: DialogChangeDetails<T>) => void;
|
|
986
|
+
type DialogSubmitHandler<T extends DialogData> = (api: DialogInstanceApi<T>) => void;
|
|
987
|
+
type DialogCloseHandler = () => void;
|
|
988
|
+
type DialogCancelHandler<T extends DialogData> = (api: DialogInstanceApi<T>) => void;
|
|
989
|
+
type DialogTabChangeHandler<T extends DialogData> = (api: DialogInstanceApi<T>, details: DialogTabChangeDetails) => void;
|
|
990
|
+
type DialogSize = 'normal' | 'medium' | 'large';
|
|
957
991
|
interface DialogSpec<T extends DialogData> {
|
|
958
992
|
title: string;
|
|
959
993
|
size?: DialogSize;
|
|
960
994
|
body: TabPanelSpec | PanelSpec;
|
|
961
|
-
buttons
|
|
995
|
+
buttons?: DialogFooterButtonSpec[];
|
|
962
996
|
initialData?: Partial<T>;
|
|
963
997
|
onAction?: DialogActionHandler<T>;
|
|
964
998
|
onChange?: DialogChangeHandler<T>;
|
|
@@ -981,10 +1015,10 @@ interface UrlDialogMessage {
|
|
|
981
1015
|
mceAction: string;
|
|
982
1016
|
[key: string]: any;
|
|
983
1017
|
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1018
|
+
type UrlDialogActionHandler = (api: UrlDialogInstanceApi, actions: UrlDialogActionDetails) => void;
|
|
1019
|
+
type UrlDialogCloseHandler = () => void;
|
|
1020
|
+
type UrlDialogCancelHandler = (api: UrlDialogInstanceApi) => void;
|
|
1021
|
+
type UrlDialogMessageHandler = (api: UrlDialogInstanceApi, message: UrlDialogMessage) => void;
|
|
988
1022
|
interface UrlDialogFooterButtonSpec extends DialogFooterNormalButtonSpec {
|
|
989
1023
|
type: 'cancel' | 'custom';
|
|
990
1024
|
}
|
|
@@ -999,8 +1033,8 @@ interface UrlDialogSpec {
|
|
|
999
1033
|
onCancel?: UrlDialogCancelHandler;
|
|
1000
1034
|
onMessage?: UrlDialogMessageHandler;
|
|
1001
1035
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1036
|
+
type ColumnTypes = number | 'auto';
|
|
1037
|
+
type SeparatorItemSpec = SeparatorMenuItemSpec;
|
|
1004
1038
|
interface AutocompleterItemSpec {
|
|
1005
1039
|
type?: 'autocompleteitem';
|
|
1006
1040
|
value: string;
|
|
@@ -1008,11 +1042,10 @@ interface AutocompleterItemSpec {
|
|
|
1008
1042
|
icon?: string;
|
|
1009
1043
|
meta?: Record<string, any>;
|
|
1010
1044
|
}
|
|
1011
|
-
|
|
1045
|
+
type AutocompleterContents = SeparatorItemSpec | AutocompleterItemSpec | CardMenuItemSpec;
|
|
1012
1046
|
interface AutocompleterSpec {
|
|
1013
1047
|
type?: 'autocompleter';
|
|
1014
|
-
|
|
1015
|
-
trigger?: string;
|
|
1048
|
+
trigger: string;
|
|
1016
1049
|
minChars?: number;
|
|
1017
1050
|
columns?: ColumnTypes;
|
|
1018
1051
|
matches?: (rng: Range, text: string, pattern: string) => boolean;
|
|
@@ -1025,8 +1058,8 @@ interface AutocompleterInstanceApi {
|
|
|
1025
1058
|
hide: () => void;
|
|
1026
1059
|
reload: (fetchOptions: Record<string, any>) => void;
|
|
1027
1060
|
}
|
|
1028
|
-
|
|
1029
|
-
|
|
1061
|
+
type ContextPosition = 'node' | 'selection' | 'line';
|
|
1062
|
+
type ContextScope = 'node' | 'editor';
|
|
1030
1063
|
interface ContextBarSpec {
|
|
1031
1064
|
predicate?: (elem: Element) => boolean;
|
|
1032
1065
|
position?: ContextPosition;
|
|
@@ -1218,7 +1251,7 @@ interface ViewButtonsGroupSpec {
|
|
|
1218
1251
|
type: 'group';
|
|
1219
1252
|
buttons: Array<ViewNormalButtonSpec | ViewToggleButtonSpec>;
|
|
1220
1253
|
}
|
|
1221
|
-
|
|
1254
|
+
type ViewButtonSpec = ViewNormalButtonSpec | ViewToggleButtonSpec | ViewButtonsGroupSpec;
|
|
1222
1255
|
interface ViewInstanceApi {
|
|
1223
1256
|
getContainer: () => HTMLElement;
|
|
1224
1257
|
}
|
|
@@ -1275,12 +1308,12 @@ interface RangeLikeObject {
|
|
|
1275
1308
|
endContainer: Node;
|
|
1276
1309
|
endOffset: number;
|
|
1277
1310
|
}
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1311
|
+
type ApplyFormat = BlockFormat | InlineFormat | SelectorFormat;
|
|
1312
|
+
type RemoveFormat = RemoveBlockFormat | RemoveInlineFormat | RemoveSelectorFormat;
|
|
1313
|
+
type Format = ApplyFormat | RemoveFormat;
|
|
1314
|
+
type Formats = Record<string, Format | Format[]>;
|
|
1315
|
+
type FormatAttrOrStyleValue = string | ((vars?: FormatVars) => string | null);
|
|
1316
|
+
type FormatVars = Record<string, string | null>;
|
|
1284
1317
|
interface BaseFormat<T> {
|
|
1285
1318
|
ceFalseOverride?: boolean;
|
|
1286
1319
|
classes?: string | string[];
|
|
@@ -1349,7 +1382,7 @@ interface ParserArgs {
|
|
|
1349
1382
|
no_events?: boolean;
|
|
1350
1383
|
[key: string]: any;
|
|
1351
1384
|
}
|
|
1352
|
-
|
|
1385
|
+
type ParserFilterCallback = (nodes: AstNode[], name: string, args: ParserArgs) => void;
|
|
1353
1386
|
interface ParserFilter extends Filter<ParserFilterCallback> {
|
|
1354
1387
|
}
|
|
1355
1388
|
interface DomParserSettings {
|
|
@@ -1361,15 +1394,18 @@ interface DomParserSettings {
|
|
|
1361
1394
|
allow_unsafe_link_target?: boolean;
|
|
1362
1395
|
blob_cache?: BlobCache;
|
|
1363
1396
|
convert_fonts_to_spans?: boolean;
|
|
1397
|
+
convert_unsafe_embeds?: boolean;
|
|
1364
1398
|
document?: Document;
|
|
1365
1399
|
fix_list_elements?: boolean;
|
|
1366
1400
|
font_size_legacy_values?: string;
|
|
1367
1401
|
forced_root_block?: boolean | string;
|
|
1368
1402
|
forced_root_block_attrs?: Record<string, string>;
|
|
1369
1403
|
inline_styles?: boolean;
|
|
1404
|
+
pad_empty_with_br?: boolean;
|
|
1370
1405
|
preserve_cdata?: boolean;
|
|
1371
|
-
remove_trailing_brs?: boolean;
|
|
1372
1406
|
root_name?: string;
|
|
1407
|
+
sandbox_iframes?: boolean;
|
|
1408
|
+
sandbox_iframes_exclusions?: string[];
|
|
1373
1409
|
sanitize?: boolean;
|
|
1374
1410
|
validate?: boolean;
|
|
1375
1411
|
}
|
|
@@ -1390,13 +1426,15 @@ interface StyleSheetLoaderSettings {
|
|
|
1390
1426
|
}
|
|
1391
1427
|
interface StyleSheetLoader {
|
|
1392
1428
|
load: (url: string) => Promise<void>;
|
|
1429
|
+
loadRawCss: (key: string, css: string) => void;
|
|
1393
1430
|
loadAll: (urls: string[]) => Promise<string[]>;
|
|
1394
1431
|
unload: (url: string) => void;
|
|
1432
|
+
unloadRawCss: (key: string) => void;
|
|
1395
1433
|
unloadAll: (urls: string[]) => void;
|
|
1396
1434
|
_setReferrerPolicy: (referrerPolicy: ReferrerPolicy) => void;
|
|
1397
1435
|
_setContentCssCors: (contentCssCors: boolean) => void;
|
|
1398
1436
|
}
|
|
1399
|
-
|
|
1437
|
+
type Registry = Registry$1;
|
|
1400
1438
|
interface EditorUiApi {
|
|
1401
1439
|
show: () => void;
|
|
1402
1440
|
hide: () => void;
|
|
@@ -1414,10 +1452,11 @@ declare namespace Ui_d {
|
|
|
1414
1452
|
export { Ui_d_Registry as Registry, PublicDialog_d as Dialog, PublicInlineContent_d as InlineContent, PublicMenu_d as Menu, PublicView_d as View, PublicSidebar_d as Sidebar, PublicToolbar_d as Toolbar, Ui_d_EditorUiApi as EditorUiApi, Ui_d_EditorUi as EditorUi, };
|
|
1415
1453
|
}
|
|
1416
1454
|
interface WindowParams {
|
|
1417
|
-
readonly inline?: 'cursor' | 'toolbar';
|
|
1455
|
+
readonly inline?: 'cursor' | 'toolbar' | 'bottom';
|
|
1418
1456
|
readonly ariaAttrs?: boolean;
|
|
1457
|
+
readonly persistent?: boolean;
|
|
1419
1458
|
}
|
|
1420
|
-
|
|
1459
|
+
type InstanceApi<T extends DialogData> = UrlDialogInstanceApi | DialogInstanceApi<T>;
|
|
1421
1460
|
interface WindowManagerImpl {
|
|
1422
1461
|
open: <T extends DialogData>(config: DialogSpec<T>, params: WindowParams | undefined, closeWindow: (dialog: DialogInstanceApi<T>) => void) => DialogInstanceApi<T>;
|
|
1423
1462
|
openUrl: (config: UrlDialogSpec, closeWindow: (dialog: UrlDialogInstanceApi) => void) => UrlDialogInstanceApi;
|
|
@@ -1536,6 +1575,9 @@ interface PastePostProcessEvent {
|
|
|
1536
1575
|
node: HTMLElement;
|
|
1537
1576
|
readonly internal: boolean;
|
|
1538
1577
|
}
|
|
1578
|
+
interface EditableRootStateChangeEvent {
|
|
1579
|
+
state: boolean;
|
|
1580
|
+
}
|
|
1539
1581
|
interface NewTableRowEvent {
|
|
1540
1582
|
node: HTMLTableRowElement;
|
|
1541
1583
|
}
|
|
@@ -1570,6 +1612,8 @@ interface EditorEventMap extends Omit<NativeEventMap, 'blur' | 'focus'> {
|
|
|
1570
1612
|
};
|
|
1571
1613
|
'resize': UIEvent;
|
|
1572
1614
|
'scroll': UIEvent;
|
|
1615
|
+
'input': InputEvent;
|
|
1616
|
+
'beforeinput': InputEvent;
|
|
1573
1617
|
'detach': {};
|
|
1574
1618
|
'remove': {};
|
|
1575
1619
|
'init': {};
|
|
@@ -1689,6 +1733,7 @@ type EventTypes_d_PostProcessEvent = PostProcessEvent;
|
|
|
1689
1733
|
type EventTypes_d_PastePlainTextToggleEvent = PastePlainTextToggleEvent;
|
|
1690
1734
|
type EventTypes_d_PastePreProcessEvent = PastePreProcessEvent;
|
|
1691
1735
|
type EventTypes_d_PastePostProcessEvent = PastePostProcessEvent;
|
|
1736
|
+
type EventTypes_d_EditableRootStateChangeEvent = EditableRootStateChangeEvent;
|
|
1692
1737
|
type EventTypes_d_NewTableRowEvent = NewTableRowEvent;
|
|
1693
1738
|
type EventTypes_d_NewTableCellEvent = NewTableCellEvent;
|
|
1694
1739
|
type EventTypes_d_TableEventData = TableEventData;
|
|
@@ -1698,7 +1743,7 @@ type EventTypes_d_OpenNotificationEvent = OpenNotificationEvent;
|
|
|
1698
1743
|
type EventTypes_d_EditorEventMap = EditorEventMap;
|
|
1699
1744
|
type EventTypes_d_EditorManagerEventMap = EditorManagerEventMap;
|
|
1700
1745
|
declare namespace EventTypes_d {
|
|
1701
|
-
export { EventTypes_d_ExecCommandEvent as ExecCommandEvent, EventTypes_d_BeforeGetContentEvent as BeforeGetContentEvent, EventTypes_d_GetContentEvent as GetContentEvent, EventTypes_d_BeforeSetContentEvent as BeforeSetContentEvent, EventTypes_d_SetContentEvent as SetContentEvent, EventTypes_d_SaveContentEvent as SaveContentEvent, EventTypes_d_NewBlockEvent as NewBlockEvent, EventTypes_d_NodeChangeEvent as NodeChangeEvent, EventTypes_d_FormatEvent as FormatEvent, EventTypes_d_ObjectResizeEvent as ObjectResizeEvent, EventTypes_d_ObjectSelectedEvent as ObjectSelectedEvent, EventTypes_d_ScrollIntoViewEvent as ScrollIntoViewEvent, EventTypes_d_SetSelectionRangeEvent as SetSelectionRangeEvent, EventTypes_d_ShowCaretEvent as ShowCaretEvent, EventTypes_d_SwitchModeEvent as SwitchModeEvent, EventTypes_d_ChangeEvent as ChangeEvent, EventTypes_d_AddUndoEvent as AddUndoEvent, EventTypes_d_UndoRedoEvent as UndoRedoEvent, EventTypes_d_WindowEvent as WindowEvent, EventTypes_d_ProgressStateEvent as ProgressStateEvent, EventTypes_d_AfterProgressStateEvent as AfterProgressStateEvent, EventTypes_d_PlaceholderToggleEvent as PlaceholderToggleEvent, EventTypes_d_LoadErrorEvent as LoadErrorEvent, EventTypes_d_PreProcessEvent as PreProcessEvent, EventTypes_d_PostProcessEvent as PostProcessEvent, EventTypes_d_PastePlainTextToggleEvent as PastePlainTextToggleEvent, EventTypes_d_PastePreProcessEvent as PastePreProcessEvent, EventTypes_d_PastePostProcessEvent as PastePostProcessEvent, EventTypes_d_NewTableRowEvent as NewTableRowEvent, EventTypes_d_NewTableCellEvent as NewTableCellEvent, EventTypes_d_TableEventData as TableEventData, EventTypes_d_TableModifiedEvent as TableModifiedEvent, EventTypes_d_BeforeOpenNotificationEvent as BeforeOpenNotificationEvent, EventTypes_d_OpenNotificationEvent as OpenNotificationEvent, EventTypes_d_EditorEventMap as EditorEventMap, EventTypes_d_EditorManagerEventMap as EditorManagerEventMap, };
|
|
1746
|
+
export { EventTypes_d_ExecCommandEvent as ExecCommandEvent, EventTypes_d_BeforeGetContentEvent as BeforeGetContentEvent, EventTypes_d_GetContentEvent as GetContentEvent, EventTypes_d_BeforeSetContentEvent as BeforeSetContentEvent, EventTypes_d_SetContentEvent as SetContentEvent, EventTypes_d_SaveContentEvent as SaveContentEvent, EventTypes_d_NewBlockEvent as NewBlockEvent, EventTypes_d_NodeChangeEvent as NodeChangeEvent, EventTypes_d_FormatEvent as FormatEvent, EventTypes_d_ObjectResizeEvent as ObjectResizeEvent, EventTypes_d_ObjectSelectedEvent as ObjectSelectedEvent, EventTypes_d_ScrollIntoViewEvent as ScrollIntoViewEvent, EventTypes_d_SetSelectionRangeEvent as SetSelectionRangeEvent, EventTypes_d_ShowCaretEvent as ShowCaretEvent, EventTypes_d_SwitchModeEvent as SwitchModeEvent, EventTypes_d_ChangeEvent as ChangeEvent, EventTypes_d_AddUndoEvent as AddUndoEvent, EventTypes_d_UndoRedoEvent as UndoRedoEvent, EventTypes_d_WindowEvent as WindowEvent, EventTypes_d_ProgressStateEvent as ProgressStateEvent, EventTypes_d_AfterProgressStateEvent as AfterProgressStateEvent, EventTypes_d_PlaceholderToggleEvent as PlaceholderToggleEvent, EventTypes_d_LoadErrorEvent as LoadErrorEvent, EventTypes_d_PreProcessEvent as PreProcessEvent, EventTypes_d_PostProcessEvent as PostProcessEvent, EventTypes_d_PastePlainTextToggleEvent as PastePlainTextToggleEvent, EventTypes_d_PastePreProcessEvent as PastePreProcessEvent, EventTypes_d_PastePostProcessEvent as PastePostProcessEvent, EventTypes_d_EditableRootStateChangeEvent as EditableRootStateChangeEvent, EventTypes_d_NewTableRowEvent as NewTableRowEvent, EventTypes_d_NewTableCellEvent as NewTableCellEvent, EventTypes_d_TableEventData as TableEventData, EventTypes_d_TableModifiedEvent as TableModifiedEvent, EventTypes_d_BeforeOpenNotificationEvent as BeforeOpenNotificationEvent, EventTypes_d_OpenNotificationEvent as OpenNotificationEvent, EventTypes_d_EditorEventMap as EditorEventMap, EventTypes_d_EditorManagerEventMap as EditorManagerEventMap, };
|
|
1702
1747
|
}
|
|
1703
1748
|
type Format_d_Formats = Formats;
|
|
1704
1749
|
type Format_d_Format = Format;
|
|
@@ -1713,8 +1758,8 @@ type Format_d_RemoveSelectorFormat = RemoveSelectorFormat;
|
|
|
1713
1758
|
declare namespace Format_d {
|
|
1714
1759
|
export { Format_d_Formats as Formats, Format_d_Format as Format, Format_d_ApplyFormat as ApplyFormat, Format_d_BlockFormat as BlockFormat, Format_d_InlineFormat as InlineFormat, Format_d_SelectorFormat as SelectorFormat, Format_d_RemoveFormat as RemoveFormat, Format_d_RemoveBlockFormat as RemoveBlockFormat, Format_d_RemoveInlineFormat as RemoveInlineFormat, Format_d_RemoveSelectorFormat as RemoveSelectorFormat, };
|
|
1715
1760
|
}
|
|
1716
|
-
|
|
1717
|
-
|
|
1761
|
+
type StyleFormat = BlockStyleFormat | InlineStyleFormat | SelectorStyleFormat;
|
|
1762
|
+
type AllowedFormat = Separator | FormatReference | StyleFormat | NestedFormatting;
|
|
1718
1763
|
interface Separator {
|
|
1719
1764
|
title: string;
|
|
1720
1765
|
}
|
|
@@ -1738,39 +1783,39 @@ interface InlineStyleFormat extends InlineFormat, CommonStyleFormat {
|
|
|
1738
1783
|
}
|
|
1739
1784
|
interface SelectorStyleFormat extends SelectorFormat, CommonStyleFormat {
|
|
1740
1785
|
}
|
|
1741
|
-
|
|
1786
|
+
type EntityEncoding = 'named' | 'numeric' | 'raw' | 'named,numeric' | 'named+numeric' | 'numeric,named' | 'numeric+named';
|
|
1742
1787
|
interface ContentLanguage {
|
|
1743
1788
|
readonly title: string;
|
|
1744
1789
|
readonly code: string;
|
|
1745
1790
|
readonly customCode?: string;
|
|
1746
1791
|
}
|
|
1747
|
-
|
|
1792
|
+
type ThemeInitFunc = (editor: Editor, elm: HTMLElement) => {
|
|
1748
1793
|
editorContainer: HTMLElement;
|
|
1749
1794
|
iframeContainer: HTMLElement;
|
|
1750
1795
|
height?: number;
|
|
1751
1796
|
iframeHeight?: number;
|
|
1752
1797
|
api?: EditorUiApi;
|
|
1753
1798
|
};
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1799
|
+
type SetupCallback = (editor: Editor) => void;
|
|
1800
|
+
type FilePickerCallback = (callback: (value: string, meta?: Record<string, any>) => void, value: string, meta: Record<string, any>) => void;
|
|
1801
|
+
type FilePickerValidationStatus = 'valid' | 'unknown' | 'invalid' | 'none';
|
|
1802
|
+
type FilePickerValidationCallback = (info: {
|
|
1758
1803
|
type: string;
|
|
1759
1804
|
url: string;
|
|
1760
1805
|
}, callback: (validation: {
|
|
1761
1806
|
status: FilePickerValidationStatus;
|
|
1762
1807
|
message: string;
|
|
1763
1808
|
}) => void) => void;
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1809
|
+
type PastePreProcessFn = (editor: Editor, args: PastePreProcessEvent) => void;
|
|
1810
|
+
type PastePostProcessFn = (editor: Editor, args: PastePostProcessEvent) => void;
|
|
1811
|
+
type URLConverter = (url: string, name: string, elm?: string | Element) => string;
|
|
1812
|
+
type URLConverterCallback = (url: string, node: Node | string | undefined, on_save: boolean, name: string) => string;
|
|
1768
1813
|
interface ToolbarGroup {
|
|
1769
1814
|
name?: string;
|
|
1770
1815
|
items: string[];
|
|
1771
1816
|
}
|
|
1772
|
-
|
|
1773
|
-
|
|
1817
|
+
type ToolbarMode = 'floating' | 'sliding' | 'scrolling' | 'wrap';
|
|
1818
|
+
type ToolbarLocation = 'top' | 'bottom' | 'auto';
|
|
1774
1819
|
interface BaseEditorOptions {
|
|
1775
1820
|
a11y_advanced_options?: boolean;
|
|
1776
1821
|
add_form_submit_trigger?: boolean;
|
|
@@ -1811,17 +1856,20 @@ interface BaseEditorOptions {
|
|
|
1811
1856
|
contextmenu?: string | string[] | false;
|
|
1812
1857
|
contextmenu_never_use_native?: boolean;
|
|
1813
1858
|
convert_fonts_to_spans?: boolean;
|
|
1859
|
+
convert_unsafe_embeds?: boolean;
|
|
1814
1860
|
convert_urls?: boolean;
|
|
1815
1861
|
custom_colors?: boolean;
|
|
1816
|
-
custom_elements?: string
|
|
1862
|
+
custom_elements?: string | Record<string, CustomElementSpec>;
|
|
1817
1863
|
custom_ui_selector?: string;
|
|
1818
1864
|
custom_undo_redo_levels?: number;
|
|
1865
|
+
default_font_stack?: string[];
|
|
1819
1866
|
deprecation_warnings?: boolean;
|
|
1820
1867
|
directionality?: 'ltr' | 'rtl';
|
|
1821
1868
|
doctype?: string;
|
|
1822
1869
|
document_base_url?: string;
|
|
1823
1870
|
draggable_modal?: boolean;
|
|
1824
1871
|
editable_class?: string;
|
|
1872
|
+
editable_root?: boolean;
|
|
1825
1873
|
element_format?: 'xhtml' | 'html';
|
|
1826
1874
|
elementpath?: boolean;
|
|
1827
1875
|
encoding?: string;
|
|
@@ -1848,6 +1896,7 @@ interface BaseEditorOptions {
|
|
|
1848
1896
|
formats?: Formats;
|
|
1849
1897
|
format_noneditable_selector?: string;
|
|
1850
1898
|
height?: number | string;
|
|
1899
|
+
help_accessibility?: boolean;
|
|
1851
1900
|
hidden_input?: boolean;
|
|
1852
1901
|
highlight_on_focus?: boolean;
|
|
1853
1902
|
icons?: string;
|
|
@@ -1890,12 +1939,14 @@ interface BaseEditorOptions {
|
|
|
1890
1939
|
min_width?: number;
|
|
1891
1940
|
model?: string;
|
|
1892
1941
|
model_url?: string;
|
|
1942
|
+
newdocument_content?: string;
|
|
1893
1943
|
newline_behavior?: 'block' | 'linebreak' | 'invert' | 'default';
|
|
1894
1944
|
no_newline_selector?: string;
|
|
1895
1945
|
noneditable_class?: string;
|
|
1896
1946
|
noneditable_regexp?: RegExp | RegExp[];
|
|
1897
1947
|
nowrap?: boolean;
|
|
1898
1948
|
object_resizing?: boolean | string;
|
|
1949
|
+
pad_empty_with_br?: boolean;
|
|
1899
1950
|
paste_as_text?: boolean;
|
|
1900
1951
|
paste_block_drop?: boolean;
|
|
1901
1952
|
paste_data_images?: boolean;
|
|
@@ -1919,6 +1970,8 @@ interface BaseEditorOptions {
|
|
|
1919
1970
|
resize?: boolean | 'both';
|
|
1920
1971
|
resize_img_proportional?: boolean;
|
|
1921
1972
|
root_name?: string;
|
|
1973
|
+
sandbox_iframes?: boolean;
|
|
1974
|
+
sandbox_iframes_exclusions?: string[];
|
|
1922
1975
|
schema?: SchemaType;
|
|
1923
1976
|
selector?: string;
|
|
1924
1977
|
setup?: SetupCallback;
|
|
@@ -1968,6 +2021,7 @@ interface BaseEditorOptions {
|
|
|
1968
2021
|
visual_table_class?: string;
|
|
1969
2022
|
width?: number | string;
|
|
1970
2023
|
xss_sanitization?: boolean;
|
|
2024
|
+
license_key?: string;
|
|
1971
2025
|
disable_nodechange?: boolean;
|
|
1972
2026
|
forced_plugins?: string | string[];
|
|
1973
2027
|
plugin_base_urls?: Record<string, string>;
|
|
@@ -2002,10 +2056,14 @@ interface EditorOptions extends NormalizedEditorOptions {
|
|
|
2002
2056
|
color_default_foreground: string;
|
|
2003
2057
|
content_css: string[];
|
|
2004
2058
|
contextmenu: string[];
|
|
2059
|
+
convert_unsafe_embeds: boolean;
|
|
2005
2060
|
custom_colors: boolean;
|
|
2061
|
+
default_font_stack: string[];
|
|
2006
2062
|
document_base_url: string;
|
|
2063
|
+
init_content_sync: boolean;
|
|
2007
2064
|
draggable_modal: boolean;
|
|
2008
2065
|
editable_class: string;
|
|
2066
|
+
editable_root: boolean;
|
|
2009
2067
|
font_css: string[];
|
|
2010
2068
|
font_family_formats: string;
|
|
2011
2069
|
font_size_classes: string;
|
|
@@ -2037,15 +2095,19 @@ interface EditorOptions extends NormalizedEditorOptions {
|
|
|
2037
2095
|
}>;
|
|
2038
2096
|
menubar: boolean | string;
|
|
2039
2097
|
model: string;
|
|
2098
|
+
newdocument_content: string;
|
|
2040
2099
|
no_newline_selector: string;
|
|
2041
2100
|
noneditable_class: string;
|
|
2042
2101
|
noneditable_regexp: RegExp[];
|
|
2043
2102
|
object_resizing: string;
|
|
2103
|
+
pad_empty_with_br: boolean;
|
|
2044
2104
|
paste_as_text: boolean;
|
|
2045
2105
|
preview_styles: string;
|
|
2046
2106
|
promotion: boolean;
|
|
2047
2107
|
readonly: boolean;
|
|
2048
2108
|
removed_menuitems: string;
|
|
2109
|
+
sandbox_iframes: boolean;
|
|
2110
|
+
sandbox_iframes_exclusions: string[];
|
|
2049
2111
|
toolbar: boolean | string | string[] | Array<ToolbarGroup>;
|
|
2050
2112
|
toolbar_groups: Record<string, GroupToolbarButtonSpec>;
|
|
2051
2113
|
toolbar_location: ToolbarLocation;
|
|
@@ -2061,7 +2123,7 @@ interface EditorOptions extends NormalizedEditorOptions {
|
|
|
2061
2123
|
width: number | string;
|
|
2062
2124
|
xss_sanitization: boolean;
|
|
2063
2125
|
}
|
|
2064
|
-
|
|
2126
|
+
type StyleMap = Record<string, string | number>;
|
|
2065
2127
|
interface StylesSettings {
|
|
2066
2128
|
allow_script_urls?: boolean;
|
|
2067
2129
|
allow_svg_data_urls?: boolean;
|
|
@@ -2072,8 +2134,8 @@ interface Styles {
|
|
|
2072
2134
|
parse: (css: string | undefined) => Record<string, string>;
|
|
2073
2135
|
serialize: (styles: StyleMap, elementName?: string) => string;
|
|
2074
2136
|
}
|
|
2075
|
-
|
|
2076
|
-
|
|
2137
|
+
type EventUtilsCallback<T> = (event: EventUtilsEvent<T>) => void | boolean;
|
|
2138
|
+
type EventUtilsEvent<T> = NormalizedEvent<T> & {
|
|
2077
2139
|
metaKey: boolean;
|
|
2078
2140
|
};
|
|
2079
2141
|
interface Callback$1<T> {
|
|
@@ -2128,16 +2190,16 @@ interface DOMUtilsSettings {
|
|
|
2128
2190
|
contentCssCors: boolean;
|
|
2129
2191
|
referrerPolicy: ReferrerPolicy;
|
|
2130
2192
|
}
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2193
|
+
type Target = Node | Window;
|
|
2194
|
+
type RunArguments<T extends Node = Node> = string | T | Array<string | T> | null;
|
|
2195
|
+
type BoundEvent = [
|
|
2134
2196
|
Target,
|
|
2135
2197
|
string,
|
|
2136
2198
|
EventUtilsCallback<any>,
|
|
2137
2199
|
any
|
|
2138
2200
|
];
|
|
2139
|
-
|
|
2140
|
-
|
|
2201
|
+
type Callback<K extends string> = EventUtilsCallback<MappedEvent<HTMLElementEventMap, K>>;
|
|
2202
|
+
type RunResult<T, R> = T extends Array<any> ? R[] : false | R;
|
|
2141
2203
|
interface DOMUtils {
|
|
2142
2204
|
doc: Document;
|
|
2143
2205
|
settings: Partial<DOMUtilsSettings>;
|
|
@@ -2245,7 +2307,7 @@ interface DOMUtils {
|
|
|
2245
2307
|
findCommonAncestor: (a: Node, b: Node) => Node | null;
|
|
2246
2308
|
run<R, T extends Node>(this: DOMUtils, elm: T | T[], func: (node: T) => R, scope?: any): typeof elm extends Array<any> ? R[] : R;
|
|
2247
2309
|
run<R, T extends Node>(this: DOMUtils, elm: RunArguments<T>, func: (node: T) => R, scope?: any): RunResult<typeof elm, R>;
|
|
2248
|
-
isEmpty: (node: Node, elements?: Record<string, any
|
|
2310
|
+
isEmpty: (node: Node, elements?: Record<string, any>, options?: IsEmptyOptions) => boolean;
|
|
2249
2311
|
createRng: () => Range;
|
|
2250
2312
|
nodeIndex: (node: Node, normalized?: boolean) => number;
|
|
2251
2313
|
split: {
|
|
@@ -2296,7 +2358,7 @@ interface WriterSettings {
|
|
|
2296
2358
|
indent_after?: string;
|
|
2297
2359
|
indent_before?: string;
|
|
2298
2360
|
}
|
|
2299
|
-
|
|
2361
|
+
type Attributes = Array<{
|
|
2300
2362
|
name: string;
|
|
2301
2363
|
value: string;
|
|
2302
2364
|
}>;
|
|
@@ -2319,6 +2381,7 @@ interface HtmlSerializer {
|
|
|
2319
2381
|
serialize: (node: AstNode) => string;
|
|
2320
2382
|
}
|
|
2321
2383
|
interface DomSerializerSettings extends DomParserSettings, WriterSettings, SchemaSettings, HtmlSerializerSettings {
|
|
2384
|
+
remove_trailing_brs?: boolean;
|
|
2322
2385
|
url_converter?: URLConverter;
|
|
2323
2386
|
url_converter_scope?: {};
|
|
2324
2387
|
}
|
|
@@ -2398,8 +2461,8 @@ interface EditorSelection {
|
|
|
2398
2461
|
type: 'word';
|
|
2399
2462
|
}) => void;
|
|
2400
2463
|
}
|
|
2401
|
-
|
|
2402
|
-
|
|
2464
|
+
type EditorCommandCallback<S> = (this: S, ui: boolean, value: any) => void;
|
|
2465
|
+
type EditorCommandsCallback = (command: string, ui: boolean, value?: any) => void;
|
|
2403
2466
|
interface Commands {
|
|
2404
2467
|
state: Record<string, (command: string) => boolean>;
|
|
2405
2468
|
exec: Record<string, EditorCommandsCallback>;
|
|
@@ -2432,13 +2495,13 @@ declare class EditorCommands {
|
|
|
2432
2495
|
interface RawString {
|
|
2433
2496
|
raw: string;
|
|
2434
2497
|
}
|
|
2435
|
-
|
|
2436
|
-
|
|
2498
|
+
type Primitive = string | number | boolean | Record<string | number, any> | Function;
|
|
2499
|
+
type TokenisedString = [
|
|
2437
2500
|
string,
|
|
2438
2501
|
...Primitive[]
|
|
2439
2502
|
];
|
|
2440
|
-
|
|
2441
|
-
|
|
2503
|
+
type Untranslated = Primitive | TokenisedString | RawString | null | undefined;
|
|
2504
|
+
type TranslatedString = string;
|
|
2442
2505
|
interface I18n {
|
|
2443
2506
|
getData: () => Record<string, Record<string, string>>;
|
|
2444
2507
|
setCode: (newCode: string) => void;
|
|
@@ -2556,8 +2619,8 @@ interface ProcessorError {
|
|
|
2556
2619
|
valid: false;
|
|
2557
2620
|
message: string;
|
|
2558
2621
|
}
|
|
2559
|
-
|
|
2560
|
-
|
|
2622
|
+
type SimpleProcessor = (value: unknown) => boolean;
|
|
2623
|
+
type Processor<T> = (value: unknown) => ProcessorSuccess<T> | ProcessorError;
|
|
2561
2624
|
interface BuiltInOptionTypeMap {
|
|
2562
2625
|
'string': string;
|
|
2563
2626
|
'number': number;
|
|
@@ -2569,7 +2632,7 @@ interface BuiltInOptionTypeMap {
|
|
|
2569
2632
|
'object[]': any[];
|
|
2570
2633
|
'regexp': RegExp;
|
|
2571
2634
|
}
|
|
2572
|
-
|
|
2635
|
+
type BuiltInOptionType = keyof BuiltInOptionTypeMap;
|
|
2573
2636
|
interface BaseOptionSpec {
|
|
2574
2637
|
immutable?: boolean;
|
|
2575
2638
|
deprecated?: boolean;
|
|
@@ -2602,6 +2665,7 @@ interface Options {
|
|
|
2602
2665
|
set: <K extends string, T>(name: K, value: K extends keyof NormalizedEditorOptions ? NormalizedEditorOptions[K] : T) => boolean;
|
|
2603
2666
|
unset: (name: string) => boolean;
|
|
2604
2667
|
isSet: (name: string) => boolean;
|
|
2668
|
+
debug: () => void;
|
|
2605
2669
|
}
|
|
2606
2670
|
interface UploadResult$1 {
|
|
2607
2671
|
element: HTMLImageElement;
|
|
@@ -2618,7 +2682,7 @@ interface EditorUpload {
|
|
|
2618
2682
|
scanForImages: () => Promise<BlobInfoImagePair[]>;
|
|
2619
2683
|
destroy: () => void;
|
|
2620
2684
|
}
|
|
2621
|
-
|
|
2685
|
+
type FormatChangeCallback = (state: boolean, data: {
|
|
2622
2686
|
node: Node;
|
|
2623
2687
|
format: string;
|
|
2624
2688
|
parents: Element[];
|
|
@@ -2663,7 +2727,7 @@ interface Model {
|
|
|
2663
2727
|
readonly clearSelectedCells: (container: Node) => void;
|
|
2664
2728
|
};
|
|
2665
2729
|
}
|
|
2666
|
-
|
|
2730
|
+
type ModelManager = AddOnManager<Model>;
|
|
2667
2731
|
interface Plugin {
|
|
2668
2732
|
getMetadata?: () => {
|
|
2669
2733
|
name: string;
|
|
@@ -2672,12 +2736,12 @@ interface Plugin {
|
|
|
2672
2736
|
init?: (editor: Editor, url: string) => void;
|
|
2673
2737
|
[key: string]: any;
|
|
2674
2738
|
}
|
|
2675
|
-
|
|
2739
|
+
type PluginManager = AddOnManager<void | Plugin>;
|
|
2676
2740
|
interface ShortcutsConstructor {
|
|
2677
2741
|
readonly prototype: Shortcuts;
|
|
2678
2742
|
new (editor: Editor): Shortcuts;
|
|
2679
2743
|
}
|
|
2680
|
-
|
|
2744
|
+
type CommandFunc = string | [
|
|
2681
2745
|
string,
|
|
2682
2746
|
boolean,
|
|
2683
2747
|
any
|
|
@@ -2711,7 +2775,7 @@ interface Theme {
|
|
|
2711
2775
|
getNotificationManagerImpl?: () => NotificationManagerImpl;
|
|
2712
2776
|
getWindowManagerImpl?: () => WindowManagerImpl;
|
|
2713
2777
|
}
|
|
2714
|
-
|
|
2778
|
+
type ThemeManager = AddOnManager<void | Theme>;
|
|
2715
2779
|
interface EditorConstructor {
|
|
2716
2780
|
readonly prototype: Editor;
|
|
2717
2781
|
new (id: string, options: RawEditorOptions, editorManager: EditorManager): Editor;
|
|
@@ -2780,6 +2844,7 @@ declare class Editor implements EditorObservable {
|
|
|
2780
2844
|
_pendingNativeEvents: string[];
|
|
2781
2845
|
_selectionOverrides: SelectionOverrides;
|
|
2782
2846
|
_skinLoaded: boolean;
|
|
2847
|
+
_editableRoot: boolean;
|
|
2783
2848
|
bindPendingEventDelegates: EditorObservable['bindPendingEventDelegates'];
|
|
2784
2849
|
toggleNativeEvent: EditorObservable['toggleNativeEvent'];
|
|
2785
2850
|
unbindAllNativeEvents: EditorObservable['unbindAllNativeEvents'];
|
|
@@ -2839,6 +2904,8 @@ declare class Editor implements EditorObservable {
|
|
|
2839
2904
|
getBody(): HTMLElement;
|
|
2840
2905
|
convertURL(url: string, name: string, elm?: string | Element): string;
|
|
2841
2906
|
addVisual(elm?: HTMLElement): void;
|
|
2907
|
+
setEditableRoot(state: boolean): void;
|
|
2908
|
+
hasEditableRoot(): boolean;
|
|
2842
2909
|
remove(): void;
|
|
2843
2910
|
destroy(automatic?: boolean): void;
|
|
2844
2911
|
uploadImages(): Promise<UploadResult$1[]>;
|
|
@@ -2849,8 +2916,8 @@ interface UrlObject {
|
|
|
2849
2916
|
resource: string;
|
|
2850
2917
|
suffix: string;
|
|
2851
2918
|
}
|
|
2852
|
-
|
|
2853
|
-
|
|
2919
|
+
type WaitState = 'added' | 'loaded';
|
|
2920
|
+
type AddOnConstructor<T> = (editor: Editor, url: string) => T;
|
|
2854
2921
|
interface AddOnManager<T> {
|
|
2855
2922
|
items: AddOnConstructor<T>[];
|
|
2856
2923
|
urls: Record<string, string>;
|
|
@@ -2900,7 +2967,7 @@ declare class ScriptLoader {
|
|
|
2900
2967
|
loadQueue(): Promise<void>;
|
|
2901
2968
|
loadScripts(scripts: string[]): Promise<void>;
|
|
2902
2969
|
}
|
|
2903
|
-
|
|
2970
|
+
type TextProcessCallback = (node: Text, offset: number, text: string) => number;
|
|
2904
2971
|
interface Spot {
|
|
2905
2972
|
container: Text;
|
|
2906
2973
|
offset: number;
|
|
@@ -3003,6 +3070,8 @@ interface IconManager {
|
|
|
3003
3070
|
interface Resource {
|
|
3004
3071
|
load: <T = any>(id: string, url: string) => Promise<T>;
|
|
3005
3072
|
add: (id: string, data: any) => void;
|
|
3073
|
+
has: (id: string) => boolean;
|
|
3074
|
+
get: (id: string) => any;
|
|
3006
3075
|
unload: (id: string) => void;
|
|
3007
3076
|
}
|
|
3008
3077
|
type TextPatterns_d_Pattern = Pattern;
|
|
@@ -3023,15 +3092,15 @@ interface Delay {
|
|
|
3023
3092
|
setEditorInterval: (editor: Editor, callback: () => void, time?: number) => number;
|
|
3024
3093
|
setEditorTimeout: (editor: Editor, callback: () => void, time?: number) => number;
|
|
3025
3094
|
}
|
|
3026
|
-
|
|
3095
|
+
type UploadResult = UploadResult$2;
|
|
3027
3096
|
interface ImageUploader {
|
|
3028
3097
|
upload: (blobInfos: BlobInfo[], showNotification?: boolean) => Promise<UploadResult[]>;
|
|
3029
3098
|
}
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3099
|
+
type ArrayCallback$1<T, R> = (this: any, x: T, i: number, xs: ArrayLike<T>) => R;
|
|
3100
|
+
type ObjCallback$1<T, R> = (this: any, value: T, key: string, obj: Record<string, T>) => R;
|
|
3101
|
+
type ArrayCallback<T, R> = ArrayCallback$1<T, R>;
|
|
3102
|
+
type ObjCallback<T, R> = ObjCallback$1<T, R>;
|
|
3103
|
+
type WalkCallback<T> = (this: any, o: T, i: string, n: keyof T | undefined) => boolean | void;
|
|
3035
3104
|
interface Tools {
|
|
3036
3105
|
is: (obj: any, type?: string) => boolean;
|
|
3037
3106
|
isArray: <T>(arr: any) => arr is Array<T>;
|