jodit-pro 2.0.0-beta.12 → 2.0.0-beta.21
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/es2015/jodit.css +19 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2121 -105
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +2 -448
- package/es2015/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +24 -19
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +55 -46
- package/es2015/plugins/button-generator/button-generator.min.js +2 -2
- package/es2015/plugins/change-case/change-case.js +10 -7
- package/es2015/plugins/change-case/change-case.min.js +2 -2
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +10 -8
- package/es2015/plugins/color-picker/color-picker.min.js +2 -2
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +20 -15
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- package/es2015/plugins/export-docs/export-docs.js +9 -6
- package/es2015/plugins/export-docs/export-docs.min.js +2 -2
- package/es2015/plugins/finder/finder.css +6 -6
- package/es2015/plugins/finder/finder.js +215 -199
- package/es2015/plugins/finder/finder.min.css +1 -1
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +149 -116
- package/es2015/plugins/google-maps/google-maps.min.js +2 -2
- package/es2015/plugins/google-search/google-search.js +7 -4
- package/es2015/plugins/google-search/google-search.min.js +2 -2
- package/es2015/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +36 -19
- package/es2015/plugins/keyboard/keyboard.min.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.js +13 -10
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +9 -6
- package/es2015/plugins/page-break/page-break.min.js +2 -2
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +9 -6
- package/es2015/plugins/paste-code/paste-code.min.js +2 -2
- package/es2015/plugins/paste-from-word/paste-from-word.js +2 -1516
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2015/plugins/show-blocks/show-blocks.js +15 -10
- package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +7 -4
- package/es2015/plugins/todo-list/todo-list.min.js +2 -2
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +16 -10
- package/es2015/plugins/translate/translate.min.js +2 -2
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +3 -3
- package/es2015/plugins/tune-block/tune-block.min.js +2 -2
- package/es2018/jodit.css +19 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2119 -105
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +2 -446
- package/es2018/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +24 -19
- package/es2018/plugins/backup/backup.min.js +2 -2
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +55 -46
- package/es2018/plugins/button-generator/button-generator.min.js +2 -2
- package/es2018/plugins/change-case/change-case.js +10 -7
- package/es2018/plugins/change-case/change-case.min.js +2 -2
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +10 -8
- package/es2018/plugins/color-picker/color-picker.min.js +2 -2
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +20 -15
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- package/es2018/plugins/export-docs/export-docs.js +9 -6
- package/es2018/plugins/export-docs/export-docs.min.js +2 -2
- package/es2018/plugins/finder/finder.css +6 -6
- package/es2018/plugins/finder/finder.js +214 -198
- package/es2018/plugins/finder/finder.min.css +1 -1
- package/es2018/plugins/finder/finder.min.js +2 -2
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +131 -98
- package/es2018/plugins/google-maps/google-maps.min.js +2 -2
- package/es2018/plugins/google-search/google-search.js +7 -4
- package/es2018/plugins/google-search/google-search.min.js +2 -2
- package/es2018/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +36 -19
- package/es2018/plugins/keyboard/keyboard.min.js +2 -2
- package/es2018/plugins/mobile-view/mobile-view.js +13 -10
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.js +9 -6
- package/es2018/plugins/page-break/page-break.min.js +2 -2
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +9 -6
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- package/es2018/plugins/paste-from-word/paste-from-word.js +2 -1516
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2018/plugins/show-blocks/show-blocks.js +15 -10
- package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +7 -4
- package/es2018/plugins/todo-list/todo-list.min.js +2 -2
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +16 -10
- package/es2018/plugins/translate/translate.min.js +2 -2
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +3 -3
- package/es2018/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021/jodit.css +19 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2098 -104
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +2 -438
- package/es2021/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +24 -19
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +55 -46
- package/es2021/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021/plugins/change-case/change-case.js +10 -7
- package/es2021/plugins/change-case/change-case.min.js +2 -2
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +10 -8
- package/es2021/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +20 -15
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- package/es2021/plugins/export-docs/export-docs.js +9 -6
- package/es2021/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021/plugins/finder/finder.css +6 -6
- package/es2021/plugins/finder/finder.js +214 -198
- package/es2021/plugins/finder/finder.min.css +1 -1
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +131 -98
- package/es2021/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021/plugins/google-search/google-search.js +7 -4
- package/es2021/plugins/google-search/google-search.min.js +2 -2
- package/es2021/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +36 -19
- package/es2021/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021/plugins/mobile-view/mobile-view.js +13 -10
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +9 -6
- package/es2021/plugins/page-break/page-break.min.js +2 -2
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +9 -6
- package/es2021/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021/plugins/paste-from-word/paste-from-word.js +2 -1503
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021/plugins/show-blocks/show-blocks.js +15 -10
- package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +7 -4
- package/es2021/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +16 -10
- package/es2021/plugins/translate/translate.min.js +2 -2
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +3 -3
- package/es2021/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021.en/jodit.css +19 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2098 -104
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +2 -438
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +24 -19
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +55 -46
- package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021.en/plugins/change-case/change-case.js +10 -7
- package/es2021.en/plugins/change-case/change-case.min.js +2 -2
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +10 -8
- package/es2021.en/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +20 -15
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.js +9 -6
- package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021.en/plugins/finder/finder.css +6 -6
- package/es2021.en/plugins/finder/finder.js +214 -198
- package/es2021.en/plugins/finder/finder.min.css +1 -1
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +131 -98
- package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021.en/plugins/google-search/google-search.js +7 -4
- package/es2021.en/plugins/google-search/google-search.min.js +2 -2
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +36 -19
- package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021.en/plugins/mobile-view/mobile-view.js +13 -10
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +9 -6
- package/es2021.en/plugins/page-break/page-break.min.js +2 -2
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +9 -6
- package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +2 -1503
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021.en/plugins/show-blocks/show-blocks.js +15 -10
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +7 -4
- package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +16 -10
- package/es2021.en/plugins/translate/translate.min.js +2 -2
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +3 -3
- package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/jodit.css +30 -51
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2320 -108
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +2 -511
- package/es5/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +26 -21
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +59 -50
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +10 -7
- package/es5/plugins/change-case/change-case.min.js +2 -2
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +11 -9
- package/es5/plugins/color-picker/color-picker.min.js +2 -2
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +20 -15
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +9 -6
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +6 -6
- package/es5/plugins/finder/finder.js +238 -222
- package/es5/plugins/finder/finder.min.css +1 -1
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +164 -131
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +9 -6
- package/es5/plugins/google-search/google-search.min.js +2 -2
- package/es5/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +18 -15
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +37 -20
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +13 -10
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +9 -6
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +9 -6
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- package/es5/plugins/paste-from-word/paste-from-word.js +2 -1645
- package/es5/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es5/plugins/show-blocks/show-blocks.js +16 -11
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +7 -4
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +17 -11
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +3 -3
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/esm/config.d.ts +11 -0
- package/esm/config.js +6 -0
- package/esm/core/ui/form/range/range.d.ts +23 -0
- package/esm/core/ui/form/range/range.js +6 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +6 -0
- package/esm/jodit-pro.d.ts +14 -0
- package/esm/jodit-pro.js +6 -0
- package/esm/plugins/autocomplete/autocomplete.d.ts +40 -0
- package/esm/plugins/autocomplete/autocomplete.js +6 -0
- package/esm/plugins/autocomplete/helpers.d.ts +25 -0
- package/esm/plugins/autocomplete/helpers.js +6 -0
- package/esm/plugins/autocomplete/interface.d.ts +19 -0
- package/esm/plugins/autocomplete/interface.js +6 -0
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +20 -0
- package/esm/plugins/autocomplete/ui/autocomplete.js +6 -0
- package/esm/plugins/autocomplete/ui/item.d.ts +14 -0
- package/esm/plugins/autocomplete/ui/item.js +6 -0
- package/esm/plugins/backup/assets/restore.svg.js +1 -0
- package/esm/plugins/backup/backup.d.ts +29 -0
- package/esm/plugins/backup/backup.js +6 -0
- package/esm/plugins/backup/config.d.ts +18 -0
- package/esm/plugins/backup/config.js +6 -0
- package/esm/plugins/backup/interface.d.ts +14 -0
- package/esm/plugins/backup/interface.js +6 -0
- package/esm/plugins/backup/langs/index.d.ts +6 -0
- package/esm/plugins/backup/langs/index.js +6 -0
- package/esm/plugins/backup/modules/store.d.ts +15 -0
- package/esm/plugins/backup/modules/store.js +6 -0
- package/esm/plugins/backup/ui/box.d.ts +29 -0
- package/esm/plugins/backup/ui/box.js +6 -0
- package/esm/plugins/backup/ui/item.d.ts +17 -0
- package/esm/plugins/backup/ui/item.js +6 -0
- package/esm/plugins/backup/ui/list.d.ts +24 -0
- package/esm/plugins/backup/ui/list.js +6 -0
- package/esm/plugins/button-generator/assets/check.svg.js +1 -0
- package/esm/plugins/button-generator/assets/styles.json +1162 -0
- package/esm/plugins/button-generator/assets/styles.json.js +1 -0
- package/esm/plugins/button-generator/button-generator.d.ts +25 -0
- package/esm/plugins/button-generator/button-generator.js +1 -0
- package/esm/plugins/button-generator/config.d.ts +6 -0
- package/esm/plugins/button-generator/config.js +6 -0
- package/esm/plugins/button-generator/icon.svg.js +1 -0
- package/esm/plugins/button-generator/ui/button/button.d.ts +21 -0
- package/esm/plugins/button-generator/ui/button/button.js +7 -0
- package/esm/plugins/button-generator/ui/form/form.d.ts +20 -0
- package/esm/plugins/button-generator/ui/form/form.js +6 -0
- package/esm/plugins/button-generator/ui/generator/button-generator.d.ts +22 -0
- package/esm/plugins/button-generator/ui/generator/button-generator.js +6 -0
- package/esm/plugins/button-generator/ui/preview/preview.d.ts +22 -0
- package/esm/plugins/button-generator/ui/preview/preview.js +6 -0
- package/esm/plugins/change-case/change-case.d.ts +22 -0
- package/esm/plugins/change-case/change-case.js +6 -0
- package/esm/plugins/change-case/config.d.ts +6 -0
- package/esm/plugins/change-case/config.js +6 -0
- package/esm/plugins/change-case/icon.svg.js +1 -0
- package/esm/plugins/color-picker/color-picker.d.ts +18 -0
- package/esm/plugins/color-picker/color-picker.js +6 -0
- package/esm/plugins/color-picker/ui/input/color-input.d.ts +19 -0
- package/esm/plugins/color-picker/ui/input/color-input.js +6 -0
- package/esm/plugins/emoji/config.d.ts +10 -0
- package/esm/plugins/emoji/config.js +1 -0
- package/esm/plugins/emoji/emoji.d.ts +22 -0
- package/esm/plugins/emoji/emoji.js +6 -0
- package/esm/plugins/emoji/emoji.json +5667 -0
- package/esm/plugins/emoji/emoji.json.js +1 -0
- package/esm/plugins/emoji/emoji.svg.js +1 -0
- package/esm/plugins/emoji/interface.d.ts +24 -0
- package/esm/plugins/emoji/interface.js +6 -0
- package/esm/plugins/emoji/ui/emoji.d.ts +54 -0
- package/esm/plugins/emoji/ui/emoji.js +6 -0
- package/esm/plugins/export-docs/assets/export.svg.js +1 -0
- package/esm/plugins/export-docs/config.d.ts +21 -0
- package/esm/plugins/export-docs/config.js +6 -0
- package/esm/plugins/export-docs/export-docs.d.ts +18 -0
- package/esm/plugins/export-docs/export-docs.js +6 -0
- package/esm/plugins/finder/browser.d.ts +70 -0
- package/esm/plugins/finder/browser.js +6 -0
- package/esm/plugins/finder/config.d.ts +6 -0
- package/esm/plugins/finder/config.js +6 -0
- package/esm/plugins/finder/finder.d.ts +19 -0
- package/esm/plugins/finder/finder.js +6 -0
- package/esm/plugins/finder/helpers/context-menu.d.ts +19 -0
- package/esm/plugins/finder/helpers/context-menu.js +6 -0
- package/esm/plugins/finder/helpers/helpers.d.ts +6 -0
- package/esm/plugins/finder/helpers/helpers.js +6 -0
- package/esm/plugins/finder/helpers/history-manager.d.ts +24 -0
- package/esm/plugins/finder/helpers/history-manager.js +6 -0
- package/esm/plugins/finder/helpers/loading-manager.d.ts +25 -0
- package/esm/plugins/finder/helpers/loading-manager.js +6 -0
- package/esm/plugins/finder/helpers/persistent-store.d.ts +32 -0
- package/esm/plugins/finder/helpers/persistent-store.js +6 -0
- package/esm/plugins/finder/helpers/state-manager.d.ts +21 -0
- package/esm/plugins/finder/helpers/state-manager.js +6 -0
- package/esm/plugins/finder/langs/index.d.ts +7 -0
- package/esm/plugins/finder/langs/ru.d.ts +22 -0
- package/esm/plugins/finder/ui/assets/icons/heart.svg.js +1 -0
- package/esm/plugins/finder/ui/assets/icons/home.svg.js +1 -0
- package/esm/plugins/finder/ui/assets/icons/index.d.ts +1 -0
- package/esm/plugins/finder/ui/assets/icons/index.js +6 -0
- package/esm/plugins/finder/ui/assets/icons/new-folder.svg.js +1 -0
- package/esm/plugins/finder/ui/folder/folder.d.ts +18 -0
- package/esm/plugins/finder/ui/folder/folder.js +6 -0
- package/esm/plugins/finder/ui/header/header.d.ts +21 -0
- package/esm/plugins/finder/ui/header/header.js +6 -0
- package/esm/plugins/finder/ui/item/item.d.ts +24 -0
- package/esm/plugins/finder/ui/item/item.js +6 -0
- package/esm/plugins/finder/ui/lightboox/lightbox.d.ts +27 -0
- package/esm/plugins/finder/ui/lightboox/lightbox.js +6 -0
- package/esm/plugins/finder/ui/panel/panel.d.ts +60 -0
- package/esm/plugins/finder/ui/panel/panel.js +6 -0
- package/esm/plugins/finder/ui/preview/preview.d.ts +25 -0
- package/esm/plugins/finder/ui/preview/preview.js +6 -0
- package/esm/plugins/finder/ui/progress/progress.d.ts +19 -0
- package/esm/plugins/finder/ui/progress/progress.js +6 -0
- package/esm/plugins/finder/ui/settings/settings.d.ts +25 -0
- package/esm/plugins/finder/ui/settings/settings.js +6 -0
- package/esm/plugins/finder/ui/sidebar/sidebar.d.ts +27 -0
- package/esm/plugins/finder/ui/sidebar/sidebar.js +6 -0
- package/esm/plugins/finder/ui/source/source.d.ts +19 -0
- package/esm/plugins/finder/ui/source/source.js +6 -0
- package/esm/plugins/finder/ui/sources/sources.d.ts +15 -0
- package/esm/plugins/finder/ui/sources/sources.js +6 -0
- package/esm/plugins/finder/ui/statusbar/statusbar.d.ts +14 -0
- package/esm/plugins/finder/ui/statusbar/statusbar.js +6 -0
- package/esm/plugins/finder/ui/tree/tree.d.ts +16 -0
- package/esm/plugins/finder/ui/tree/tree.js +6 -0
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +32 -0
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +6 -0
- package/esm/plugins/google-maps/assets/circle.svg.js +1 -0
- package/esm/plugins/google-maps/assets/hand.svg.js +1 -0
- package/esm/plugins/google-maps/assets/icon.svg.js +1 -0
- package/esm/plugins/google-maps/assets/index.d.ts +6 -0
- package/esm/plugins/google-maps/assets/index.js +6 -0
- package/esm/plugins/google-maps/assets/marker.svg.js +1 -0
- package/esm/plugins/google-maps/assets/polygon.svg.js +1 -0
- package/esm/plugins/google-maps/assets/polyline.svg.js +1 -0
- package/esm/plugins/google-maps/assets/text.svg.js +1 -0
- package/esm/plugins/google-maps/config.d.ts +45 -0
- package/esm/plugins/google-maps/config.js +6 -0
- package/esm/plugins/google-maps/google-maps.d.ts +29 -0
- package/esm/plugins/google-maps/google-maps.js +6 -0
- package/esm/plugins/google-maps/helpers/const.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/const.js +6 -0
- package/esm/plugins/google-maps/helpers/generate-js-script.d.ts +8 -0
- package/esm/plugins/google-maps/helpers/generate-js-script.js +1 -0
- package/esm/plugins/google-maps/helpers/generate-static-elements.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +6 -0
- package/esm/plugins/google-maps/helpers/helpers.d.ts +14 -0
- package/esm/plugins/google-maps/helpers/helpers.js +6 -0
- package/esm/plugins/google-maps/helpers/static-url.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/static-url.js +6 -0
- package/esm/plugins/google-maps/ui/combo-box/combo-box.d.ts +12 -0
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +6 -0
- package/esm/plugins/google-maps/ui/editors/base.d.ts +15 -0
- package/esm/plugins/google-maps/ui/editors/base.js +6 -0
- package/esm/plugins/google-maps/ui/editors/index.d.ts +8 -0
- package/esm/plugins/google-maps/ui/editors/index.js +6 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +6 -0
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +6 -0
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +6 -0
- package/esm/plugins/google-maps/ui/index.d.ts +10 -0
- package/esm/plugins/google-maps/ui/index.js +6 -0
- package/esm/plugins/google-maps/ui/map/map.d.ts +39 -0
- package/esm/plugins/google-maps/ui/map/map.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/index.d.ts +10 -0
- package/esm/plugins/google-maps/ui/map/modules/index.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/remove-element.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +6 -0
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +14 -0
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +6 -0
- package/esm/plugins/google-maps/ui/maps-props/maps-props.d.ts +19 -0
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +6 -0
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +13 -0
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +6 -0
- package/esm/plugins/google-search/google-search.d.ts +17 -0
- package/esm/plugins/google-search/google-search.js +6 -0
- package/esm/plugins/google-search/icon.svg.js +1 -0
- package/esm/plugins/highlight-signature/highlight-signature.d.ts +54 -0
- package/esm/plugins/highlight-signature/highlight-signature.js +6 -0
- package/esm/plugins/iframe-editor/config.d.ts +6 -0
- package/esm/plugins/iframe-editor/config.js +6 -0
- package/esm/plugins/iframe-editor/icon.svg.js +1 -0
- package/esm/plugins/iframe-editor/iframe-editor.d.ts +22 -0
- package/esm/plugins/iframe-editor/iframe-editor.js +6 -0
- package/esm/plugins/iframe-editor/interface.d.ts +15 -0
- package/esm/plugins/iframe-editor/interface.js +6 -0
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +14 -0
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +6 -0
- package/esm/plugins/index.d.ts +8 -0
- package/esm/plugins/index.js +6 -0
- package/esm/plugins/keyboard/config.d.ts +23 -0
- package/esm/plugins/keyboard/config.js +1 -0
- package/esm/plugins/keyboard/icon.svg.js +1 -0
- package/esm/plugins/keyboard/interface.d.ts +13 -0
- package/esm/plugins/keyboard/interface.js +6 -0
- package/esm/plugins/keyboard/keyboard.d.ts +27 -0
- package/esm/plugins/keyboard/keyboard.js +1 -0
- package/esm/plugins/keyboard/ui/assets/backspace.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/caps.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/dots.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/shift.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/tab.svg.js +1 -0
- package/esm/plugins/keyboard/ui/keyboard/keyboard.d.ts +32 -0
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +6 -0
- package/esm/plugins/license/helpers/helpers.d.ts +14 -0
- package/esm/plugins/license/helpers/helpers.js +7 -0
- package/esm/plugins/license/license.d.ts +16 -0
- package/esm/plugins/license/license.js +6 -0
- package/esm/plugins/mobile-view/config.d.ts +14 -0
- package/esm/plugins/mobile-view/config.js +6 -0
- package/esm/plugins/mobile-view/icon.svg.js +1 -0
- package/esm/plugins/mobile-view/mobile-view.d.ts +6 -0
- package/esm/plugins/mobile-view/mobile-view.js +6 -0
- package/esm/plugins/page-break/assets/page-break.svg.js +1 -0
- package/esm/plugins/page-break/config.d.ts +13 -0
- package/esm/plugins/page-break/config.js +6 -0
- package/esm/plugins/page-break/page-break.css.d.ts +2 -0
- package/esm/plugins/page-break/page-break.css.js +6 -0
- package/esm/plugins/page-break/page-break.d.ts +23 -0
- package/esm/plugins/page-break/page-break.js +6 -0
- package/esm/plugins/paste-code/config.d.ts +36 -0
- package/esm/plugins/paste-code/config.js +6 -0
- package/esm/plugins/paste-code/icon.svg.js +1 -0
- package/esm/plugins/paste-code/paste-code.d.ts +30 -0
- package/esm/plugins/paste-code/paste-code.js +6 -0
- package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clean-styles.js +6 -0
- package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clear-attributes.js +6 -0
- package/esm/plugins/paste-from-word/cases/clear-class-name.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clear-class-name.js +6 -0
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +6 -0
- package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +11 -0
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +6 -0
- package/esm/plugins/paste-from-word/cases/index.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/index.js +6 -0
- package/esm/plugins/paste-from-word/cases/mark-page-break.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/mark-page-break.js +6 -0
- package/esm/plugins/paste-from-word/cases/normalize-image-props.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/normalize-image-props.js +6 -0
- package/esm/plugins/paste-from-word/cases/process-image.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/process-image.js +6 -0
- package/esm/plugins/paste-from-word/cases/process-links.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/process-links.js +6 -0
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.js +6 -0
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +6 -0
- package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/replace-old-tags.js +6 -0
- package/esm/plugins/paste-from-word/cases/table.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/table.js +6 -0
- package/esm/plugins/paste-from-word/config.d.ts +24 -0
- package/esm/plugins/paste-from-word/config.js +6 -0
- package/esm/plugins/paste-from-word/constants.d.ts +20 -0
- package/esm/plugins/paste-from-word/constants.js +6 -0
- package/esm/plugins/paste-from-word/element/checkers.d.ts +14 -0
- package/esm/plugins/paste-from-word/element/checkers.js +6 -0
- package/esm/plugins/paste-from-word/element/element.d.ts +34 -0
- package/esm/plugins/paste-from-word/element/element.js +6 -0
- package/esm/plugins/paste-from-word/element/index.d.ts +8 -0
- package/esm/plugins/paste-from-word/element/index.js +6 -0
- package/esm/plugins/paste-from-word/element/render.d.ts +9 -0
- package/esm/plugins/paste-from-word/element/render.js +6 -0
- package/esm/plugins/paste-from-word/element/style.d.ts +20 -0
- package/esm/plugins/paste-from-word/element/style.js +6 -0
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +7 -0
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +6 -0
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +7 -0
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +6 -0
- package/esm/plugins/paste-from-word/helpers/helpers.d.ts +19 -0
- package/esm/plugins/paste-from-word/helpers/helpers.js +6 -0
- package/esm/plugins/paste-from-word/helpers/index.d.ts +9 -0
- package/esm/plugins/paste-from-word/helpers/index.js +6 -0
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +8 -0
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +6 -0
- package/esm/plugins/paste-from-word/interface.d.ts +17 -0
- package/esm/plugins/paste-from-word/interface.js +6 -0
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +14 -0
- package/esm/plugins/paste-from-word/paste-from-word.js +6 -0
- package/esm/plugins/show-blocks/config.d.ts +15 -0
- package/esm/plugins/show-blocks/config.js +6 -0
- package/esm/plugins/show-blocks/langs/ar.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/cs_cz.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/de.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/es.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/fa.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/fr.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/he.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/hu.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/id.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/index.d.ts +25 -0
- package/esm/plugins/show-blocks/langs/index.js +6 -0
- package/esm/plugins/show-blocks/langs/it.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ja.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ko.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/nl.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/pl.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/pt_br.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ru.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/tr.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/zh_cn.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/zh_tw.d.ts +4 -0
- package/esm/plugins/show-blocks/show-blocks.d.ts +39 -0
- package/esm/plugins/show-blocks/show-blocks.js +6 -0
- package/esm/plugins/show-blocks/show-blocks.svg.js +1 -0
- package/esm/plugins/todo-list/assets/todo-list.svg.js +1 -0
- package/esm/plugins/todo-list/config.d.ts +15 -0
- package/esm/plugins/todo-list/config.js +6 -0
- package/esm/plugins/todo-list/todo-list.d.ts +41 -0
- package/esm/plugins/todo-list/todo-list.js +6 -0
- package/esm/plugins/translate/assets/swap.svg.js +1 -0
- package/esm/plugins/translate/assets/translate.svg.js +1 -0
- package/esm/plugins/translate/config.d.ts +20 -0
- package/esm/plugins/translate/config.js +6 -0
- package/esm/plugins/translate/interface.d.ts +50 -0
- package/esm/plugins/translate/interface.js +6 -0
- package/esm/plugins/translate/providers/google/google.d.ts +14 -0
- package/esm/plugins/translate/providers/google/google.js +6 -0
- package/esm/plugins/translate/providers/languages.d.ts +140 -0
- package/esm/plugins/translate/providers/languages.js +6 -0
- package/esm/plugins/translate/translate.d.ts +20 -0
- package/esm/plugins/translate/translate.js +6 -0
- package/esm/plugins/translate/ui/list/list.d.ts +34 -0
- package/esm/plugins/translate/ui/list/list.js +6 -0
- package/esm/plugins/translate/ui/settings/settings.d.ts +35 -0
- package/esm/plugins/translate/ui/settings/settings.js +6 -0
- package/esm/plugins/tune-block/config.d.ts +13 -0
- package/esm/plugins/tune-block/config.js +6 -0
- package/esm/plugins/tune-block/tune-block.d.ts +30 -0
- package/esm/plugins/tune-block/tune-block.js +6 -0
- package/esm/plugins/tune-block/ui/tuner/icon.svg.js +1 -0
- package/esm/plugins/tune-block/ui/tuner/tuner.d.ts +53 -0
- package/esm/plugins/tune-block/ui/tuner/tuner.js +6 -0
- package/esm/traits/resize/resize.d.ts +17 -0
- package/esm/traits/resize/resize.js +6 -0
- package/esm/traits/select-items/select-items.d.ts +16 -0
- package/esm/traits/select-items/select-items.js +6 -0
- package/esm/tsconfig.json +19 -0
- package/esm/types/view.d.ts +9 -0
- package/esm/typings.d.ts +5 -0
- package/package.json +3 -2
- package/types/config.d.ts +11 -0
- package/types/core/ui/form/range/range.d.ts +23 -0
- package/types/index.d.ts +7 -0
- package/types/jodit-pro.d.ts +14 -0
- package/types/plugins/autocomplete/autocomplete.d.ts +40 -0
- package/types/plugins/autocomplete/helpers.d.ts +25 -0
- package/types/plugins/autocomplete/interface.d.ts +19 -0
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +20 -0
- package/types/plugins/autocomplete/ui/item.d.ts +14 -0
- package/types/plugins/backup/backup.d.ts +29 -0
- package/types/plugins/backup/config.d.ts +18 -0
- package/types/plugins/backup/interface.d.ts +14 -0
- package/types/plugins/backup/langs/index.d.ts +6 -0
- package/types/plugins/backup/modules/store.d.ts +15 -0
- package/types/plugins/backup/ui/box.d.ts +29 -0
- package/types/plugins/backup/ui/item.d.ts +17 -0
- package/types/plugins/backup/ui/list.d.ts +24 -0
- package/types/plugins/button-generator/button-generator.d.ts +25 -0
- package/types/plugins/button-generator/config.d.ts +6 -0
- package/types/plugins/button-generator/ui/button/button.d.ts +21 -0
- package/types/plugins/button-generator/ui/form/form.d.ts +20 -0
- package/types/plugins/button-generator/ui/generator/button-generator.d.ts +22 -0
- package/types/plugins/button-generator/ui/preview/preview.d.ts +22 -0
- package/types/plugins/change-case/change-case.d.ts +22 -0
- package/types/plugins/change-case/config.d.ts +6 -0
- package/types/plugins/color-picker/color-picker.d.ts +18 -0
- package/types/plugins/color-picker/ui/input/color-input.d.ts +19 -0
- package/types/plugins/emoji/config.d.ts +10 -0
- package/types/plugins/emoji/emoji.d.ts +22 -0
- package/types/plugins/emoji/interface.d.ts +24 -0
- package/types/plugins/emoji/ui/emoji.d.ts +54 -0
- package/types/plugins/export-docs/config.d.ts +21 -0
- package/types/plugins/export-docs/export-docs.d.ts +18 -0
- package/types/plugins/finder/browser.d.ts +70 -0
- package/types/plugins/finder/config.d.ts +6 -0
- package/types/plugins/finder/finder.d.ts +19 -0
- package/types/plugins/finder/helpers/context-menu.d.ts +19 -0
- package/types/plugins/finder/helpers/helpers.d.ts +6 -0
- package/types/plugins/finder/helpers/history-manager.d.ts +24 -0
- package/types/plugins/finder/helpers/loading-manager.d.ts +25 -0
- package/types/plugins/finder/helpers/persistent-store.d.ts +32 -0
- package/types/plugins/finder/helpers/state-manager.d.ts +21 -0
- package/types/plugins/finder/langs/index.d.ts +7 -0
- package/types/plugins/finder/langs/ru.d.ts +22 -0
- package/types/plugins/finder/ui/assets/icons/index.d.ts +1 -0
- package/types/plugins/finder/ui/folder/folder.d.ts +18 -0
- package/types/plugins/finder/ui/header/header.d.ts +21 -0
- package/types/plugins/finder/ui/item/item.d.ts +24 -0
- package/types/plugins/finder/ui/lightboox/lightbox.d.ts +27 -0
- package/types/plugins/finder/ui/panel/panel.d.ts +60 -0
- package/types/plugins/finder/ui/preview/preview.d.ts +25 -0
- package/types/plugins/finder/ui/progress/progress.d.ts +19 -0
- package/types/plugins/finder/ui/settings/settings.d.ts +25 -0
- package/types/plugins/finder/ui/sidebar/sidebar.d.ts +27 -0
- package/types/plugins/finder/ui/source/source.d.ts +19 -0
- package/types/plugins/finder/ui/sources/sources.d.ts +15 -0
- package/types/plugins/finder/ui/statusbar/statusbar.d.ts +14 -0
- package/types/plugins/finder/ui/tree/tree.d.ts +16 -0
- package/types/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +32 -0
- package/types/plugins/google-maps/assets/index.d.ts +6 -0
- package/types/plugins/google-maps/config.d.ts +45 -0
- package/types/plugins/google-maps/google-maps.d.ts +29 -0
- package/types/plugins/google-maps/helpers/const.d.ts +7 -0
- package/types/plugins/google-maps/helpers/generate-js-script.d.ts +8 -0
- package/types/plugins/google-maps/helpers/generate-static-elements.d.ts +7 -0
- package/types/plugins/google-maps/helpers/helpers.d.ts +14 -0
- package/types/plugins/google-maps/helpers/static-url.d.ts +7 -0
- package/types/plugins/google-maps/ui/combo-box/combo-box.d.ts +12 -0
- package/types/plugins/google-maps/ui/editors/base.d.ts +15 -0
- package/types/plugins/google-maps/ui/editors/index.d.ts +8 -0
- package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +10 -0
- package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +10 -0
- package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +10 -0
- package/types/plugins/google-maps/ui/index.d.ts +10 -0
- package/types/plugins/google-maps/ui/map/map.d.ts +39 -0
- package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/index.d.ts +10 -0
- package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +8 -0
- package/types/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +14 -0
- package/types/plugins/google-maps/ui/maps-props/maps-props.d.ts +19 -0
- package/types/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +13 -0
- package/types/plugins/google-search/google-search.d.ts +17 -0
- package/types/plugins/highlight-signature/highlight-signature.d.ts +54 -0
- package/types/plugins/iframe-editor/config.d.ts +6 -0
- package/types/plugins/iframe-editor/iframe-editor.d.ts +22 -0
- package/types/plugins/iframe-editor/interface.d.ts +15 -0
- package/types/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +14 -0
- package/types/plugins/index.d.ts +8 -0
- package/types/plugins/keyboard/config.d.ts +23 -0
- package/types/plugins/keyboard/interface.d.ts +13 -0
- package/types/plugins/keyboard/keyboard.d.ts +27 -0
- package/types/plugins/keyboard/ui/keyboard/keyboard.d.ts +32 -0
- package/types/plugins/license/helpers/helpers.d.ts +14 -0
- package/types/plugins/license/license.d.ts +16 -0
- package/types/plugins/mobile-view/config.d.ts +14 -0
- package/types/plugins/mobile-view/mobile-view.d.ts +6 -0
- package/types/plugins/page-break/config.d.ts +13 -0
- package/types/plugins/page-break/page-break.css.d.ts +2 -0
- package/types/plugins/page-break/page-break.d.ts +23 -0
- package/types/plugins/paste-code/config.d.ts +36 -0
- package/types/plugins/paste-code/paste-code.d.ts +30 -0
- package/types/plugins/paste-from-word/cases/clean-styles.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/clear-class-name.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +11 -0
- package/types/plugins/paste-from-word/cases/index.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/mark-page-break.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/normalize-image-props.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/process-image.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/process-links.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/table.d.ts +7 -0
- package/types/plugins/paste-from-word/config.d.ts +24 -0
- package/types/plugins/paste-from-word/constants.d.ts +20 -0
- package/types/plugins/paste-from-word/element/checkers.d.ts +14 -0
- package/types/plugins/paste-from-word/element/element.d.ts +34 -0
- package/types/plugins/paste-from-word/element/index.d.ts +8 -0
- package/types/plugins/paste-from-word/element/render.d.ts +9 -0
- package/types/plugins/paste-from-word/element/style.d.ts +20 -0
- package/types/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +7 -0
- package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +7 -0
- package/types/plugins/paste-from-word/helpers/helpers.d.ts +19 -0
- package/types/plugins/paste-from-word/helpers/index.d.ts +9 -0
- package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +8 -0
- package/types/plugins/paste-from-word/interface.d.ts +17 -0
- package/types/plugins/paste-from-word/paste-from-word.d.ts +14 -0
- package/types/plugins/show-blocks/config.d.ts +15 -0
- package/types/plugins/show-blocks/langs/ar.d.ts +4 -0
- package/types/plugins/show-blocks/langs/cs_cz.d.ts +4 -0
- package/types/plugins/show-blocks/langs/de.d.ts +4 -0
- package/types/plugins/show-blocks/langs/es.d.ts +4 -0
- package/types/plugins/show-blocks/langs/fa.d.ts +4 -0
- package/types/plugins/show-blocks/langs/fr.d.ts +4 -0
- package/types/plugins/show-blocks/langs/he.d.ts +4 -0
- package/types/plugins/show-blocks/langs/hu.d.ts +4 -0
- package/types/plugins/show-blocks/langs/id.d.ts +4 -0
- package/types/plugins/show-blocks/langs/index.d.ts +25 -0
- package/types/plugins/show-blocks/langs/it.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ja.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ko.d.ts +4 -0
- package/types/plugins/show-blocks/langs/nl.d.ts +4 -0
- package/types/plugins/show-blocks/langs/pl.d.ts +4 -0
- package/types/plugins/show-blocks/langs/pt_br.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ru.d.ts +4 -0
- package/types/plugins/show-blocks/langs/tr.d.ts +4 -0
- package/types/plugins/show-blocks/langs/zh_cn.d.ts +4 -0
- package/types/plugins/show-blocks/langs/zh_tw.d.ts +4 -0
- package/types/plugins/show-blocks/show-blocks.d.ts +39 -0
- package/types/plugins/todo-list/config.d.ts +15 -0
- package/types/plugins/todo-list/todo-list.d.ts +41 -0
- package/types/plugins/translate/config.d.ts +20 -0
- package/types/plugins/translate/interface.d.ts +50 -0
- package/types/plugins/translate/providers/google/google.d.ts +14 -0
- package/types/plugins/translate/providers/languages.d.ts +140 -0
- package/types/plugins/translate/translate.d.ts +20 -0
- package/types/plugins/translate/ui/list/list.d.ts +34 -0
- package/types/plugins/translate/ui/settings/settings.d.ts +35 -0
- package/types/plugins/tune-block/config.d.ts +13 -0
- package/types/plugins/tune-block/tune-block.d.ts +30 -0
- package/types/plugins/tune-block/ui/tuner/tuner.d.ts +53 -0
- package/types/traits/resize/resize.d.ts +17 -0
- package/types/traits/select-items/select-items.d.ts +16 -0
- package/types/tsconfig.json +19 -0
- package/types/types/view.d.ts +9 -0
- package/types/typings.d.ts +5 -0
- package/es2015/plugins/autocomplete/autocomplete.css +0 -26
- package/es2015/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2018/plugins/autocomplete/autocomplete.css +0 -26
- package/es2018/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2021/plugins/autocomplete/autocomplete.css +0 -26
- package/es2021/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +0 -26
- package/es2021.en/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es5/plugins/autocomplete/autocomplete.css +0 -26
- package/es5/plugins/autocomplete/autocomplete.min.css +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { ICaseFn } from "jodit-pro/esm/plugins/paste-from-word/interface";
|
|
7
|
+
export declare const clearClassName: ICaseFn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{trim as s}from"jodit/esm/core/helpers/string/trim.js";export const clearClassName=t=>(t.attributes.class&&(t.attributes.class=t.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),s(t.attributes.class)||(t.attributes.class=null)),t);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { ICaseFn } from "jodit-pro/esm/plugins/paste-from-word/interface";
|
|
7
|
+
export declare const convertStyleUnitToPixels: ICaseFn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{convertUnitToPx as t}from"jodit-pro/esm/plugins/paste-from-word/helpers/index.js";export const convertStyleUnitToPixels=(o,{jodit:e})=>{if(!e.o.pasteFromWord.convertUnitsToPixel)return o;const{style:r}=o;return r.forEach((o=>{const e=r.get(o);e&&r.set(o,e.toString().replace(/\d+(\.\d+)?(pt|cm)/g,(o=>t(o)+"px")))})),o};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { JElement } from "jodit-pro/esm/plugins/paste-from-word/element/element";
|
|
7
|
+
export declare function convertToList(elm: JElement): JElement | null;
|
|
8
|
+
/**
|
|
9
|
+
* Remove redundancy default list styles.
|
|
10
|
+
*/
|
|
11
|
+
export declare function removeRedundancyStyle(newList: JElement): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{SPACE_REG_EXP as t}from"jodit/esm/core/constants.js";import{calcListLevels as e,calcStartBySymbol as r}from"jodit-pro/esm/plugins/paste-from-word/helpers/index.js";import{isLeaf as s,isList as n,isPseudoLeaf as i,isSameType as o,html as a}from"jodit-pro/esm/plugins/paste-from-word/element/index.js";import{LEVEL_KEY as u,listStyleMap as p,STYLE_CSS_KEY as m,STYLE_KEY as l,STYLE_VALID_KEY as c,TYPE_KEY as d}from"jodit-pro/esm/plugins/paste-from-word/constants.js";export function convertToList(t){if(i(t)){t.name="li",t.style.set("text-indent",null);const i=getSymbol(t),a=/[\da-np-zA-NP-Z].?/.test(i)?"ol":"ul",f=function defineOrderedListStyle(t,e){for(const e in p)if(RegExp(e).test(t))return p[e];return"ol"===e?"decimal":"disc"}(i,a);t.attributes[d]=a,t.attributes[l]=f,e(t),function moveUp(t){for(;t;){const e=t.previousElement;if(!s(e)&&!n(e))break;if(s(e)){if(t.attributes[u]<e.attributes[u])break;if(t.attributes[u]===e.attributes[u]&&t.parent&&o(t,t.parent))break;e.append(t);continue}const r=e;if(t.attributes[u]<r.attributes[u])break;if(t.attributes[u]===r.attributes[u]&&!o(t,r))break;r.append(t)}}(t);const{parent:b}=t;if(!n(b)||!o(t,b)){const e=function wrapInNewList(t,e,s,n){const i=t.wrap(e);return i.attributes.start=r(s),i.attributes[u]=t.attributes[u],i.attributes[l]=t.attributes[l],i.attributes[c]=t.attributes[l],i.style.set(m,n),removeRedundancyStyle(i),i}(t,a,i,f);return n(b)&&(e.remove(),b.lastElement?.append(e)),t}}return t}export function removeRedundancyStyle(t){!n(t)||"li"===t.parent?.name||"disc"!==t.style.get(m)&&"decimal"!==t.style.get(m)||t.style.set(m,null)}const getSymbol=e=>e.textBetween((t=>t.isComment&&/\[if.*supportLists.*]/.test(a(t))),(t=>t.isComment&&/\[endif]/.test(a(t)))).replace(/ /g,"").replace(t(),"");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { ICaseFn } from "jodit-pro/esm/plugins/paste-from-word/interface";
|
|
7
|
+
export declare const cases: ICaseFn[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{convertToList as r}from"./convert-to-list";import{clearAttributes as o}from"./clear-attributes";import{removeExtraTags as m}from"./remove-extra-tags";import{replaceOldTags as t}from"./replace-old-tags";import{removeInsideComment as e}from"./remove-inside-comment";import{convertStyleUnitToPixels as i}from"./convert-style-unit-to-pixels";import{clearClassName as p}from"./clear-class-name";import{processLinks as s}from"./process-links";import{normalizeImageProps as a}from"./normalize-image-props";import{removeWidthFromTableCell as f}from"./table";import{markPageBreakElements as l}from"./mark-page-break";import{processImage as c}from"./process-image";import{cleanStyles as n}from"./clean-styles";export const cases=[c,l,m,t,o,r,s,e,i,p,a,f,n];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { ICaseFn } from "jodit-pro/esm/plugins/paste-from-word/interface";
|
|
7
|
+
export declare const markPageBreakElements: ICaseFn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export const markPageBreakElements=e=>((e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { ICaseFn } from "jodit-pro/esm/plugins/paste-from-word/interface";
|
|
7
|
+
export declare const normalizeImageProps: ICaseFn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export const normalizeImageProps=t=>t.isElement?("img"===t.name&&(t.attributes.align&&(t.style.add("float",t.attributes.align),t.attributes.align=null),t.attributes.hspace&&(t.style.add("marginLeft",t.attributes.hspace+"px"),t.style.add("marginRight",t.attributes.hspace+"px"),t.attributes.hspace=null)),t):t;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { ICaseFn } from "jodit-pro/esm/plugins/paste-from-word/interface";
|
|
7
|
+
export declare const processImage: ICaseFn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{toArray as e}from"jodit/esm/core/helpers/index.js";export const processImage=(t,s)=>{if(s.rtf&&"#comment"===t.name&&t.attributes.nodeValue&&-1!==t.attributes.nodeValue.indexOf("<v:shape")){s.shapes||(s.shapes={});const i=s.jodit.create.fromHTML(t.attributes.nodeValue);return e(i.getElementsByTagName("v:shape")).forEach((e=>{s.shapes[e.id]=e.getAttribute("o:spid")})),t}if("img"!==t.name)return t;if(s.rtf&&t.attributes["v:shapes"]){const e=s.shapes?.[t.attributes["v:shapes"]];if(e){const i=s.imageMap??{};s.imageMap||(s.imageMap=i,parseImages(s.rtf,"i","\\shppict",s.imageMap),parseImages(s.rtf,"s","\\shp{",s.imageMap));const n=i[e.substring(7)];if(n){const e=[],s=n.hex.match(/[0-9a-f]{2}/gi);if(s){for(let t=0;t<s.length;t++){const i=parseInt(s[t],16);e.push(String.fromCharCode(i))}t.attributes.src="data:"+n.type+";base64,"+btoa(e.join(""))}}}}return t};function parseImages(e,t,s,i){const n=e.split(s);for(const e of n){const s=e.split("shplid");if(1<s.length){const e=s[1];let n="";for(let t=0;t<e.length&&!/[{ \r\n\\]/.test(e[t]);t++)n+=e[t];const a=e.split("bliptag");if(a&&a.length<2)continue;let p=null;if(a[0].indexOf("pngblip")?p="image/png":-1!==a[0].indexOf("jpegblip")&&(p="image/jpeg"),!p)continue;const o=a[1].split("}");if(o&&o.length<2)continue;let r;if(2<o.length&&o[0].includes("blipuid"))r=o[1].split(" ");else{if(r=o[0].split(" "),r&&r.length<2)continue;r.shift()}i[t+n]={hex:r.join(""),type:p}}}}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { ICaseFn } from "jodit-pro/esm/plugins/paste-from-word/interface";
|
|
7
|
+
export declare const processLinks: ICaseFn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export const processLinks=(t,e)=>{const r=e.links??{};if(t.attributes.href&&t.attributes.href.match(/#.+$/)&&(r[t.attributes.href.match(/#(.+)$/)[1]]=t),t.attributes.name&&r[t.attributes.name]){const e=r[t.attributes.name];e.attributes.href=e.attributes.href.replace(/.*#(.*)$/,"#$1")}return e.links=r,t};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { JElement } from "jodit-pro/esm/plugins/paste-from-word/element/element";
|
|
7
|
+
export declare function removeExtraTags(elm: JElement): JElement | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
const e=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);export function removeExtraTags(n){return"none"===n.style.get("display")||0===n.length&&"span"===n.name||e.has(n.name)?(n.remove(),null):n}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { JElement } from "jodit-pro/esm/plugins/paste-from-word/element/element";
|
|
7
|
+
export declare function removeInsideComment(elm: JElement): JElement | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{html as e}from"jodit-pro/esm/plugins/paste-from-word/element/render.js";let t=0;export function removeInsideComment(r){return r.isComment&&/\[if.*(supportLists|gte vml).*]/.test(e(r))&&(t++,r.remove()),r.isComment&&t>0&&e(r).includes("[endif]")&&(t=t>0?t-1:0,r.remove()),t&&(r.isText||"img"===r.name&&(!r.attributes.src||/^file:/.test(r.attributes.src)))?(r.remove(),null):r}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { JElement } from "jodit-pro/esm/plugins/paste-from-word/element/element";
|
|
7
|
+
export declare function replaceOldTags(elm: JElement): JElement;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
const n={i:"em",b:"strong"};export function replaceOldTags(e){const{name:t}=e;return t in n&&(e.name=n[t]),e}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { ICaseFn } from "jodit-pro/esm/plugins/paste-from-word/interface";
|
|
7
|
+
export declare const removeWidthFromTableCell: ICaseFn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export const removeWidthFromTableCell=t=>(!t.attributes.width||"th"!==t.name&&"td"!==t.name||(t.attributes.width=null),t);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
declare module 'jodit/config' {
|
|
7
|
+
interface Config {
|
|
8
|
+
pasteFromWord: {
|
|
9
|
+
/**
|
|
10
|
+
* Turn off heuristic analysis when pasting from word
|
|
11
|
+
*/
|
|
12
|
+
enable: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Convert units to px
|
|
15
|
+
*/
|
|
16
|
+
convertUnitsToPixel: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* List of attributes which should not be removed when pasting from word
|
|
19
|
+
*/
|
|
20
|
+
allowedStyleProps?: string[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{Config as t}from"jodit/esm/config.js";t.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export declare const LEVEL_KEY = "jd-list-level";
|
|
7
|
+
export declare const TYPE_KEY = "jd-list-type";
|
|
8
|
+
export declare const STYLE_KEY = "jd-list-style-type";
|
|
9
|
+
export declare const STYLE_VALID_KEY = "data-list-style-type";
|
|
10
|
+
export declare const STYLE_CSS_KEY = "list-style-type";
|
|
11
|
+
export declare const listStyleMap: {
|
|
12
|
+
readonly '\u00B7': "disc";
|
|
13
|
+
readonly o: "circle";
|
|
14
|
+
readonly '\u00A7': "square";
|
|
15
|
+
readonly '[ivx]': "lower-roman";
|
|
16
|
+
readonly '[IVX]': "upper-roman";
|
|
17
|
+
readonly '[a-z]': "lower-alpha";
|
|
18
|
+
readonly '[A-Z]': "upper-alpha";
|
|
19
|
+
readonly '\\d': "decimal";
|
|
20
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export const LEVEL_KEY="jd-list-level";export const TYPE_KEY="jd-list-type";export const STYLE_KEY="jd-list-style-type";export const STYLE_VALID_KEY="data-list-style-type";export const STYLE_CSS_KEY="list-style-type";export const listStyleMap={"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { JElement } from "./element";
|
|
7
|
+
export declare function isList(elm: JElement | null): elm is JElement & {
|
|
8
|
+
name: 'ul' | 'ol';
|
|
9
|
+
};
|
|
10
|
+
export declare function isLeaf(elm: JElement | null): elm is JElement & {
|
|
11
|
+
name: 'li';
|
|
12
|
+
};
|
|
13
|
+
export declare function isPseudoLeaf(elm: JElement): boolean;
|
|
14
|
+
export declare function isSameType(leaf: JElement, list: JElement): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{LEVEL_KEY as t,STYLE_KEY as e,TYPE_KEY as s}from"jodit-pro/esm/plugins/paste-from-word/constants.js";import{html as o}from"./render";export function isList(t){return Boolean(t&&("ol"===t.name||"ul"===t.name))}export function isLeaf(t){return Boolean(t&&"li"===t.name)}export function isPseudoLeaf(t){return"li"!==t.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(t.attributes.style)||/msolistparagraph/i.test(t.attributes.class)&&Boolean(t.find((t=>t.isComment&&o(t).includes("supportLists"))).length)}export function isSameType(o,r){const i=o.attributes[s],n=o.attributes[e];return!(r.name!==i||r.attributes[e]!==n||o.attributes[t]!==r.attributes[t])}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IDictionary } from "jodit/esm/types";
|
|
7
|
+
import { Style } from "./style";
|
|
8
|
+
export declare class JElement {
|
|
9
|
+
parent: JElement | null;
|
|
10
|
+
name: string;
|
|
11
|
+
readonly type: number;
|
|
12
|
+
get isText(): boolean;
|
|
13
|
+
get isElement(): boolean;
|
|
14
|
+
get isComment(): boolean;
|
|
15
|
+
get isSingle(): boolean;
|
|
16
|
+
get length(): number;
|
|
17
|
+
attributes: IDictionary;
|
|
18
|
+
style: Style;
|
|
19
|
+
private readonly children;
|
|
20
|
+
protected constructor(node: Node, parent: JElement | null);
|
|
21
|
+
static make(node: Node, parent?: JElement | null): JElement;
|
|
22
|
+
wrap(tag: string): JElement;
|
|
23
|
+
append(child: JElement): this;
|
|
24
|
+
get previousElement(): JElement | null;
|
|
25
|
+
get lastElement(): JElement | null;
|
|
26
|
+
get previous(): JElement | null;
|
|
27
|
+
get next(): JElement | null;
|
|
28
|
+
private sibling;
|
|
29
|
+
forEach(callbackFn: (node: JElement) => void | false, recursion?: boolean): void | false;
|
|
30
|
+
find(predicate: (child: JElement) => boolean, recursion?: boolean): JElement[];
|
|
31
|
+
map<T>(callbackFn: (node: JElement) => T): T[];
|
|
32
|
+
remove(): this;
|
|
33
|
+
textBetween(start: (n: JElement) => boolean, end: (n: JElement) => boolean): string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{Dom as t}from"jodit/esm/core/dom/index.js";import{INSEPARABLE_TAGS as e}from"jodit/esm/core/constants.js";import{assert as n}from"jodit/esm/core/helpers/utils/assert.js";import{html as r}from"./render";import{Style as i}from"./style";const s=new Set(e);export class JElement{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return s.has(this.name)}get length(){return this.children.length}constructor(e,n){this.parent=n,this.name=e.nodeName.toLowerCase(),this.type=e.nodeType,this.attributes=function readAttributes(e){const n={};if(t.isElement(e))for(let t=0,r=e.attributes;t<r.length;t+=1)n[r[t].name]=r[t].value;else n.nodeValue=e.nodeValue;return n}(e),this.style=new i(this.attributes.style),this.children=[],e.childNodes.forEach((t=>this.children.push(JElement.make(t,this))))}static make(t,e=null){return new JElement(t,e)}wrap(t){n(null!=this.parent,"You can't wrap the root element");const e=JElement.make(document.createElement(t),this.parent),r=this.parent.children.indexOf(this)??-1;return-1===r?this.parent.append(e):this.parent.children[r]=e,e.append(this),e}append(t){return n(t!==this,"Forbidden to add to yourself"),t.remove(),this.children.push(t),t.parent=this,this}get previousElement(){if(!this.parent)return null;const{children:t}=this.parent,e=t.indexOf(this);if(-1!==e)for(let n=e-1;n>=0;n-=1)if(t[n].isElement)return t[n];return null}get lastElement(){const{children:t}=this;for(let e=t.length-1;e>=0;e-=1)if(t[e].isElement)return t[e];return null}get previous(){return this.sibling(!1)??this.parent?.previous??null}get next(){return this.sibling(!0)??this.parent?.next??null}sibling(t){if(!this.parent)return null;const{children:e}=this.parent,n=e.indexOf(this);return-1!==n&&e[n+(t?1:-1)]?e[n+(t?1:-1)]:null}forEach(t,e=!1){const n=[...this.children];for(const r of n){if(!1===t(r))return!1;if(e&&!1===r.forEach(t,!0))return!1}}find(t,e=!0){const n=[];return this.forEach((e=>{t(e)&&n.push(e)}),e),n}map(t){return this.children.map(t)}remove(){const t=this.parent?.children.indexOf(this);return null!=t&&-1!==t&&this.parent?.children.splice(t,1),this}textBetween(t,e){let n=!1;const i=[];return this.forEach((s=>{if(!n&&t(s)&&(n=!0),n&&s.isText&&i.push(r(s)),n&&e(s))return!1}),!0),i.join("")}}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export * from "./checkers";
|
|
7
|
+
export * from "./element";
|
|
8
|
+
export * from "./render";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export*from"./checkers";export*from"./element";export*from"./render";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { RenderFilter } from "jodit-pro/esm/plugins/paste-from-word/interface";
|
|
7
|
+
import type { JElement } from "./element";
|
|
8
|
+
export declare function html(elm: JElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
|
|
9
|
+
export declare function innerHTML(elm: JElement, filter?: RenderFilter, removeEmpty?: boolean, allowedStyleProps?: string[]): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{IS_PROD as e}from"jodit/esm/core/constants.js";import{isBoolean as t}from"jodit/esm/core/helpers/checker/is-boolean.js";import{trim as n}from"jodit/esm/core/helpers/string/trim.js";export function html(t,n=(()=>!0),s=!0,r){switch(!0){case t.isComment:case t.isText:{if(!n(t))return"";const{nodeValue:e}=t.attributes;return t.isComment?`\x3c!--${e}--\x3e`:e}case t.isElement:{const{attributes:e}=t,i=innerHTML(t,n,s,r);if(!t.attributes["jd-safe"]&&s&&0===i.replace(/[\n\t]/g,"").length&&!t.isSingle)return"";const o=Object.keys(e).map((t=>"style"===t||null==e[t]||/^jd-/.test(t)?"":`${t}="${htmlEntity(e[t])}"`)).filter(Boolean),{str:c}=t.style,a=htmlEntity(c((e=>keyInList(e,r))));if(a&&o.push(`style="${a}"`),s&&0===o.length&&["span","a"].includes(t.name))return i;const m=o.length?" "+o.join(" "):"";return n(t)?t.isSingle?`<${t.name}${m}/>`:`<${t.name}${m}>${i}</${t.name}>`:i}default:if(!e)throw Error("Need implementation for this type")}return""}function keyInList(e,n){if(!n)return!0;if(keyInList.cache.has(n)){const s=keyInList.cache.get(n)?.get(e);if(t(s))return s}const s=n.some((t=>new RegExp(t).test(e))),r=keyInList.cache.get(n)||new Map;return r.set(e,s),keyInList.cache.set(n,r),s}keyInList.cache=new WeakMap;export function innerHTML(e,t=(()=>!0),s=!0,r){let i=e.map((e=>html(e,t,s,r))).join("");return"p"===e.name&&0===n(i).length&&(i=" "),i}function htmlEntity(e){return e.toString().replace(/"/g,""")}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { Nullable } from "jodit/esm/types";
|
|
7
|
+
type V = Nullable<number | string>;
|
|
8
|
+
export declare class Style {
|
|
9
|
+
private _data;
|
|
10
|
+
constructor(str: string);
|
|
11
|
+
get keys(): string[];
|
|
12
|
+
forEach(f: (key: string) => void): void;
|
|
13
|
+
clear(): void;
|
|
14
|
+
set(key: string, value: V): void;
|
|
15
|
+
get(key: string): V;
|
|
16
|
+
has(key: string): boolean;
|
|
17
|
+
add(key: string, value: string): this;
|
|
18
|
+
str(filter?: (key: string) => boolean): string;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
var t=this&&this.__decorate||function(t,e,r,s){var i,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,s);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a};import{isString as e,kebabCase as r,trim as s}from"jodit/esm/core/helpers/index.js";import{autobind as i}from"jodit/esm/core/decorators/index.js";import{calcMarginParts as o}from"jodit-pro/esm/plugins/paste-from-word/helpers/index.js";export let Style=class Style{constructor(t){this._data=readStyles(t)}get keys(){return Object.keys(this._data)}forEach(t){this.keys.forEach((e=>t(e)))}clear(){this._data={}}set(t,e){this._data[t]=e}get(t){return this._data[t]??null}has(t){return void 0!==this._data[t]}add(t,e){return this._data=readStyles(this.str()+";"+`${t}:${e}`),this}str(t=(t=>!0)){const s=Object.keys(this._data).filter((e=>e&&!/^mso-/.test(e)&&t(e)&&null!=this.get(e))),n=t=>e(t)?/^0[a-z]+$/i.test(t)?"0":t:t.toString();return["padding","margin"].forEach((t=>{if(this._data[t]){const e=s.indexOf(t),r=o(this._data[t]);["top","right","bottom","left"].forEach(((i,o)=>{const a=`${t}-${i}`,l=this._data[a];null!=l&&(s.indexOf(a)<e||n(r[o])===n(l))&&-1!==s.indexOf(a)&&s.splice(s.indexOf(a),1)}))}})),s.length?s.map((t=>`${r(t)}:${this.get(t)}`)).join(";"):""}};function readStyles(t){return function uniqueMax(t){const e={},r=[];for(let s=t.length-1;s>=0;s-=1){const i=t[s][0];e[i]||(e[i]=!0,r.unshift(t[s]))}return r}((t??"").replace(/"/g,'"').split(";").filter(Boolean).map((t=>s(t).split(":").map(s)))).reduce(((t,[e,r])=>(e&&r&&(t[e]=r),t)),{})}Style=t([i],Style);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IJodit } from "jodit/esm/types";
|
|
7
|
+
export declare function applyStylesPro(jodit: IJodit, html: string, removeStyles: boolean, rtf?: string): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{$$ as e,attr as t}from"jodit/esm/core/helpers/utils/index.js";import{Dom as o}from"jodit/esm/core/dom/dom.js";import{JElement as s}from"jodit-pro/esm/plugins/paste-from-word/element/index.js";import{transformWordToHtml as r}from"./transform-word-to-html";export function applyStylesPro(l,n,m,c=""){const d=document.createElement("iframe");d.style.display="none",document.body.appendChild(d);try{const o=d.contentDocument??d.contentWindow?.document;if(!o)return n;o.open(),o.write(n),o.close();const y="jd-style";for(let s=0;s<o.styleSheets.length;s+=1)try{const r=o.styleSheets[s].cssRules;for(let s=0;s<r.length;s+=1)r[s].selectorText&&e(r[s].selectorText,o.body).forEach((e=>{t(e,y)||(t(e,y,t(e,"style")||""),t(e,"style","")),t(e,"style",`${t(e,"style")};${r[s].style.cssText}`)}))}catch(e){}return e(`[${y}]`,o.body).forEach((e=>{t(e,"style",`${t(e,"style")};${t(e,y)}`)})),r(l,s.make(o.body),m,c)}finally{o.safeRemove(d)}return n}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import { JElement } from "jodit-pro/esm/plugins/paste-from-word/element";
|
|
7
|
+
export declare function calcListLevels(item: JElement): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{isPseudoLeaf as t,JElement as e}from"jodit-pro/esm/plugins/paste-from-word/element/index.js";import{LEVEL_KEY as o}from"jodit-pro/esm/plugins/paste-from-word/constants.js";import{realPixelIndent as r}from"./helpers";export function calcListLevels(e){if(void 0!==e.attributes[o])return;const s=[r(e)],i=[e];let n=e.next;for(;n;){if(n.isElement&&!n.attributes[o]&&t(n)){const t=r(n);t&&(s.push(t),i.push(n))}n=n.next}const m=Math.min(...s.filter((t=>t>0)));let a=s.map((t=>Math.ceil(t/10)));-1!==a.indexOf(0)&&(a=a.map((t=>t+1))),i.forEach(((t,e)=>{t.attributes[o]=a[e],t.style.add("margin-left",`${Math.max(r(t)-10*a[e]/m*40,0)}px`)}))}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { Nullable } from "jodit/esm/types";
|
|
7
|
+
import type { JElement } from "jodit-pro/esm/plugins/paste-from-word/element";
|
|
8
|
+
export declare function calcMarginParts(margin: string): number[] | string[];
|
|
9
|
+
/**
|
|
10
|
+
* Convert css units to pixels, excluding percentages
|
|
11
|
+
* @example
|
|
12
|
+
* ```js
|
|
13
|
+
* convertUnitToPx('55pt')
|
|
14
|
+
* convertUnitToPx('55cm')
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function convertUnitToPx(unit: string | number): number;
|
|
18
|
+
export declare function realPixelIndent(element: JElement): number;
|
|
19
|
+
export declare function calcStartBySymbol(symbol: string): Nullable<string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export function calcMarginParts(t){if(!t)return[0,0,0,0];const e=t.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(e.length){case 2:return[0,1,0,1].map((t=>e[t]));case 3:return[0,1,2,1].map((t=>e[t]));case 4:return[0,1,2,3].map((t=>e[t]));default:return[0,0,0,0].map((t=>e[t]))}}let t;export function convertUnitToPx(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;t||(t=document.createElement("div"),Object.assign(t.style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(t),setTimeout((()=>{t?.remove(),t=null})));const n=parseFloat(e)<0;n&&(e=e.replace("-","")),t.style.width=e;const r=t.clientWidth;return n?-r:r}export function realPixelIndent(t){const{style:e}=t;let n=[0,0,0,0];const r=e.keys.filter((t=>/margin/.test(t))),a=Math.max(r.indexOf("margin-left"),r.indexOf("margin")),i=a>0?r[a]:"margin-left";let o;return"margin"===i?(n=calcMarginParts(e.get("margin")),o=n[3]||0):o=e.get(i)||0,convertUnitToPx(o)}export function calcStartBySymbol(t){return/\d.\d/.test(t)?t.split(".").pop()||null:/^\d/.test(t)?(parseInt(t,10)||1).toString():null}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export * from "./helpers";
|
|
7
|
+
export * from "./apply-styles-pro";
|
|
8
|
+
export * from "./transform-word-to-html";
|
|
9
|
+
export * from "./calc-list-levels";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export*from"./helpers";export*from"./apply-styles-pro";export*from"./transform-word-to-html";export*from"./calc-list-levels";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IJodit } from "jodit/esm/types";
|
|
7
|
+
import type { JElement } from "jodit-pro/esm/plugins/paste-from-word/element";
|
|
8
|
+
export declare function transformWordToHtml(jodit: IJodit, body: JElement, removeStyles: boolean, rtf: string): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{trim as o}from"jodit/esm/core/helpers/string/trim.js";import{cases as r}from"jodit-pro/esm/plugins/paste-from-word/cases/index.js";import{innerHTML as e}from"jodit-pro/esm/plugins/paste-from-word/element/index.js";export function transformWordToHtml(t,s,m,i){const f={jodit:t,rtf:i};return s.forEach((function eachElm(o){if(o){for(const e of r)if(null==(o=e(o,f)))break;o?.forEach(eachElm)}})),m&&s.forEach((o=>{o.style.clear()}),!0),o(e(s,(o=>!o.isComment),!0,t.o.pasteFromWord.allowedStyleProps))}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IDictionary, IJodit } from "jodit/esm/types";
|
|
7
|
+
import type { JElement } from "./element";
|
|
8
|
+
export type ICaseContext = IDictionary & {
|
|
9
|
+
jodit: IJodit;
|
|
10
|
+
rtf: string;
|
|
11
|
+
};
|
|
12
|
+
export interface ICaseFn {
|
|
13
|
+
(elm: JElement, context: ICaseContext): null | JElement;
|
|
14
|
+
}
|
|
15
|
+
export interface RenderFilter {
|
|
16
|
+
(elm: JElement): boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { InsertMode } from "jodit/esm/types";
|
|
7
|
+
import type { PastedData, PasteEvent } from "jodit/esm/plugins/paste/interface";
|
|
8
|
+
import { pasteFromWord } from "jodit/esm/plugins/paste-from-word/paste-from-word";
|
|
9
|
+
import "./config";
|
|
10
|
+
export declare class PasteFromWordPro extends pasteFromWord {
|
|
11
|
+
/** @override */
|
|
12
|
+
static requires: string[];
|
|
13
|
+
protected insertFromWordByType(e: PasteEvent, html: string, insertType: InsertMode, texts: PastedData): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{INSERT_AS_HTML as r,INSERT_AS_TEXT as o}from"jodit/esm/core/constants.js";import{isString as e}from"jodit/esm/core/helpers/checker/is-string.js";import{pasteInsertHtml as s}from"jodit/esm/plugins/paste/helpers.js";import{pasteFromWord as t}from"jodit/esm/plugins/paste-from-word/paste-from-word.js";import{JoditPro as i}from"jodit-pro/esm/jodit-pro.js";import{applyStylesPro as m}from"./helpers";import"./config";export class PasteFromWordPro extends t{insertFromWordByType(t,i,p,d){if(!this.j.o.pasteFromWord.enable||p!==r&&p!==o)return super.insertFromWordByType(t,i,p,d);if(i=m(this.j,i,p===o,d.rtf),this.j.o.beautifyHTML){const r=this.j.events?.fire("beautifyHTML",i);e(r)&&(i=r)}s(t,this.j,i)}}PasteFromWordPro.requires=["license"],i.plugins.remove("pasteFromWord"),i.plugins.add("pasteFromWordPro",PasteFromWordPro);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
declare module 'jodit/config' {
|
|
7
|
+
interface Config {
|
|
8
|
+
showBlocks: {
|
|
9
|
+
enable: boolean;
|
|
10
|
+
color: string;
|
|
11
|
+
tagList: string[];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export {};
|