jodit 4.0.18 → 4.1.3
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/.nvmrc +1 -1
- package/CHANGELOG.md +72 -9
- package/es2015/jodit.css +3504 -3426
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +12107 -6610
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/debug/debug.js +14 -14
- package/es2015/plugins/debug/debug.min.js +3 -3
- package/es2015/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.js +117 -122
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es2018/jodit.css +3504 -3426
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.js +12078 -6581
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/debug/debug.js +14 -14
- package/es2018/plugins/debug/debug.min.js +3 -3
- package/es2018/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2018/plugins/speech-recognize/speech-recognize.js +117 -122
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es2021/jodit.css +3504 -3426
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +12078 -6581
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/debug/debug.js +14 -14
- package/es2021/plugins/debug/debug.min.js +3 -3
- package/es2021/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.js +117 -122
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es2021.en/jodit.css +3504 -3426
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +11825 -6381
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/debug/debug.js +14 -14
- package/es2021.en/plugins/debug/debug.min.js +3 -3
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +76 -81
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es5/jodit.css +4207 -4114
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +3 -3
- package/es5/jodit.js +7620 -7279
- package/es5/jodit.min.css +5 -5
- package/es5/jodit.min.js +3 -3
- package/es5/plugins/debug/debug.js +16 -16
- package/es5/plugins/debug/debug.min.js +3 -3
- package/es5/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.js +122 -127
- package/es5/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/esm/config.d.ts +6 -19
- package/esm/config.js +18 -5
- package/esm/core/async/async.js +4 -4
- package/esm/core/component/component.d.ts +2 -2
- package/esm/core/component/component.js +4 -4
- package/esm/core/component/index.d.ts +1 -1
- package/esm/core/component/index.js +1 -1
- package/esm/core/constants.d.ts +1 -0
- package/esm/core/constants.js +2 -1
- package/esm/core/create/create.d.ts +3 -2
- package/esm/core/create/create.js +5 -4
- package/esm/core/decorators/autobind/autobind.d.ts +6 -0
- package/esm/core/decorators/autobind/autobind.js +6 -0
- package/esm/core/decorators/cache/cache.d.ts +2 -2
- package/esm/core/decorators/cache/cache.js +4 -4
- package/esm/core/decorators/debounce/debounce.d.ts +1 -1
- package/esm/core/decorators/debounce/debounce.js +2 -2
- package/esm/core/decorators/index.d.ts +3 -3
- package/esm/core/decorators/index.js +3 -3
- package/esm/core/decorators/wait/wait.js +1 -1
- package/esm/core/decorators/watch/watch.js +3 -3
- package/esm/core/dom/dom.js +2 -2
- package/esm/core/dom/lazy-walker.js +1 -1
- package/esm/core/event-emitter/event-emitter.js +4 -4
- package/esm/core/event-emitter/observable.d.ts +1 -1
- package/esm/core/event-emitter/observable.js +1 -1
- package/esm/core/event-emitter/store.js +1 -1
- package/esm/core/global.d.ts +1 -1
- package/esm/core/global.js +7 -7
- package/esm/core/helpers/array/as-array.d.ts +1 -1
- package/esm/core/helpers/array/to-array.js +1 -1
- package/esm/core/helpers/checker/index.d.ts +3 -3
- package/esm/core/helpers/checker/index.js +3 -3
- package/esm/core/helpers/checker/is-imp-interface.js +1 -1
- package/esm/core/helpers/checker/is-marker.js +1 -1
- package/esm/core/helpers/checker/is-url.d.ts +1 -1
- package/esm/core/helpers/checker/is-url.js +1 -1
- package/esm/core/helpers/checker/is-view-object.d.ts +1 -1
- package/esm/core/helpers/checker/is-view-object.js +1 -1
- package/esm/core/helpers/html/apply-styles.js +2 -2
- package/esm/core/helpers/html/clean-from-word.js +1 -1
- package/esm/core/helpers/html/index.d.ts +2 -2
- package/esm/core/helpers/html/index.js +2 -2
- package/esm/core/helpers/html/safe-html.js +1 -1
- package/esm/core/helpers/html/strip-tags.d.ts +1 -1
- package/esm/core/helpers/html/strip-tags.js +2 -2
- package/esm/core/helpers/index.d.ts +1 -1
- package/esm/core/helpers/index.js +1 -1
- package/esm/core/helpers/normalize/index.d.ts +2 -2
- package/esm/core/helpers/normalize/index.js +2 -2
- package/esm/core/helpers/normalize/normalize-css-value.js +2 -2
- package/esm/core/helpers/normalize/normalize-key-aliases.js +1 -1
- package/esm/core/helpers/size/get-scroll-parent.js +1 -1
- package/esm/core/helpers/size/index.d.ts +1 -1
- package/esm/core/helpers/size/index.js +1 -1
- package/esm/core/helpers/string/i18n.js +3 -3
- package/esm/core/helpers/string/trim.js +1 -1
- package/esm/core/helpers/utils/append-script.js +1 -1
- package/esm/core/helpers/utils/attr.js +1 -1
- package/esm/core/helpers/utils/config-proto.js +3 -3
- package/esm/core/helpers/utils/css.js +2 -2
- package/esm/core/helpers/utils/data-bind.d.ts +1 -1
- package/esm/core/helpers/utils/index.d.ts +1 -1
- package/esm/core/helpers/utils/index.js +1 -1
- package/esm/core/helpers/utils/print.js +2 -2
- package/esm/core/helpers/utils/reset.js +2 -2
- package/esm/core/helpers/utils/selector.d.ts +7 -6
- package/esm/core/helpers/utils/selector.js +6 -8
- package/esm/core/helpers/utils/set.js +2 -2
- package/esm/core/helpers/utils/utils.d.ts +4 -4
- package/esm/core/helpers/utils/utils.js +2 -2
- package/esm/core/plugin/helpers/init-instance.d.ts +1 -1
- package/esm/core/plugin/helpers/init-instance.js +3 -3
- package/esm/core/plugin/helpers/load.js +2 -2
- package/esm/core/plugin/helpers/make-instance.js +1 -1
- package/esm/core/plugin/index.d.ts +1 -1
- package/esm/core/plugin/index.js +1 -1
- package/esm/core/plugin/plugin-system.js +5 -5
- package/esm/core/plugin/plugin.js +1 -1
- package/esm/core/request/ajax.d.ts +1 -1
- package/esm/core/request/ajax.js +5 -5
- package/esm/core/selection/helpers/move-node-inside-start.js +1 -1
- package/esm/core/selection/index.d.ts +1 -1
- package/esm/core/selection/index.js +1 -1
- package/esm/core/selection/selection.js +5 -5
- package/esm/core/selection/style/api/extract.js +2 -2
- package/esm/core/selection/style/api/finite-state-machine.js +3 -2
- package/esm/core/selection/style/api/get-suit-child.d.ts +1 -1
- package/esm/core/selection/style/api/get-suit-parent.d.ts +1 -1
- package/esm/core/selection/style/api/has-same-style.js +2 -2
- package/esm/core/selection/style/api/index.d.ts +5 -5
- package/esm/core/selection/style/api/index.js +5 -5
- package/esm/core/selection/style/api/is-same-attributes.js +1 -1
- package/esm/core/selection/style/api/is-suit-element.d.ts +1 -1
- package/esm/core/selection/style/api/is-suit-element.js +1 -1
- package/esm/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
- package/esm/core/selection/style/api/list/toggle-ordered-list.js +1 -1
- package/esm/core/selection/style/api/list/wrap-list.d.ts +1 -1
- package/esm/core/selection/style/api/list/wrap-list.js +1 -1
- package/esm/core/selection/style/api/toggle-attributes.d.ts +1 -1
- package/esm/core/selection/style/api/toggle-attributes.js +6 -6
- package/esm/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
- package/esm/core/selection/style/api/wrap.d.ts +1 -1
- package/esm/core/selection/style/api/wrap.js +1 -1
- package/esm/core/selection/style/apply-style.d.ts +1 -1
- package/esm/core/selection/style/apply-style.js +1 -1
- package/esm/core/selection/style/commit-style.d.ts +2 -2
- package/esm/core/selection/style/commit-style.js +1 -1
- package/esm/core/selection/style/transactions.d.ts +1 -1
- package/esm/core/selection/style/transactions.js +3 -4
- package/esm/core/storage/index.d.ts +1 -1
- package/esm/core/storage/index.js +1 -1
- package/esm/core/traits/dlgs.d.ts +1 -1
- package/esm/core/traits/dlgs.js +1 -1
- package/esm/core/traits/mods.d.ts +1 -1
- package/esm/core/ui/button/button/button.d.ts +4 -4
- package/esm/core/ui/button/button/button.js +8 -11
- package/esm/core/ui/button/group/group.d.ts +1 -1
- package/esm/core/ui/button/group/group.js +2 -5
- package/esm/core/ui/button/tooltip/tooltip.d.ts +1 -1
- package/esm/core/ui/button/tooltip/tooltip.js +4 -9
- package/esm/core/ui/element.d.ts +1 -1
- package/esm/core/ui/element.js +4 -4
- package/esm/core/ui/form/block/block.d.ts +1 -1
- package/esm/core/ui/form/block/block.js +2 -5
- package/esm/core/ui/form/form.d.ts +1 -1
- package/esm/core/ui/form/form.js +5 -4
- package/esm/core/ui/form/index.d.ts +1 -1
- package/esm/core/ui/form/index.js +1 -1
- package/esm/core/ui/form/inputs/area/area.d.ts +2 -2
- package/esm/core/ui/form/inputs/area/area.js +2 -5
- package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
- package/esm/core/ui/form/inputs/checkbox/checkbox.js +2 -5
- package/esm/core/ui/form/inputs/file/file.d.ts +1 -1
- package/esm/core/ui/form/inputs/file/file.js +1 -4
- package/esm/core/ui/form/inputs/index.d.ts +2 -2
- package/esm/core/ui/form/inputs/index.js +2 -2
- package/esm/core/ui/form/inputs/input/input.d.ts +1 -1
- package/esm/core/ui/form/inputs/input/input.js +5 -8
- package/esm/core/ui/form/inputs/select/select.d.ts +1 -1
- package/esm/core/ui/form/inputs/select/select.js +1 -4
- package/esm/core/ui/group/group.d.ts +2 -3
- package/esm/core/ui/group/group.js +3 -8
- package/esm/core/ui/group/list.d.ts +2 -2
- package/esm/core/ui/group/list.js +4 -7
- package/esm/core/ui/group/separator.d.ts +0 -3
- package/esm/core/ui/group/separator.js +1 -1
- package/esm/core/ui/group/spacer.d.ts +0 -3
- package/esm/core/ui/group/spacer.js +1 -1
- package/esm/core/ui/helpers/get-strong-control-types.js +2 -2
- package/esm/core/ui/icon.js +3 -3
- package/esm/core/ui/index.d.ts +3 -3
- package/esm/core/ui/index.js +3 -3
- package/esm/core/ui/popup/popup.d.ts +1 -1
- package/esm/core/ui/popup/popup.js +4 -9
- package/esm/core/ui/progress-bar/progress-bar.d.ts +1 -1
- package/esm/core/ui/progress-bar/progress-bar.js +0 -5
- package/esm/core/view/view-with-toolbar.d.ts +5 -5
- package/esm/core/view/view-with-toolbar.js +11 -13
- package/esm/core/view/view.d.ts +6 -6
- package/esm/core/view/view.js +15 -8
- package/esm/index.d.ts +2 -7
- package/esm/index.js +11 -4
- package/esm/jodit.d.ts +7 -7
- package/esm/jodit.js +16 -17
- package/esm/languages.js +2 -2
- package/esm/modules/context-menu/context-menu.d.ts +3 -3
- package/esm/modules/context-menu/context-menu.js +4 -9
- package/esm/modules/dialog/alert.js +2 -2
- package/esm/modules/dialog/confirm.js +1 -1
- package/esm/modules/dialog/dialog.d.ts +2 -2
- package/esm/modules/dialog/dialog.js +9 -12
- package/esm/modules/dialog/index.d.ts +2 -2
- package/esm/modules/dialog/index.js +2 -2
- package/esm/modules/dialog/prompt.js +1 -1
- package/esm/modules/file-browser/builders/context-menu.d.ts +1 -1
- package/esm/modules/file-browser/builders/context-menu.js +3 -3
- package/esm/modules/file-browser/config.d.ts +3 -0
- package/esm/modules/file-browser/config.js +2 -5
- package/esm/modules/file-browser/data-provider.d.ts +1 -1
- package/esm/modules/file-browser/data-provider.js +2 -2
- package/esm/modules/file-browser/file-browser.d.ts +3 -3
- package/esm/modules/file-browser/file-browser.js +13 -16
- package/esm/modules/file-browser/listeners/native-listeners.d.ts +1 -1
- package/esm/modules/file-browser/listeners/native-listeners.js +1 -1
- package/esm/modules/file-browser/listeners/self-listeners.js +4 -4
- package/esm/modules/file-browser/ui/files/files.d.ts +1 -1
- package/esm/modules/file-browser/ui/tree/tree.d.ts +1 -1
- package/esm/modules/history/history.d.ts +1 -1
- package/esm/modules/history/history.js +3 -3
- package/esm/modules/history/snapshot.js +1 -1
- package/esm/modules/image-editor/config.js +1 -1
- package/esm/modules/image-editor/image-editor.d.ts +2 -2
- package/esm/modules/image-editor/image-editor.js +4 -9
- package/esm/modules/index.d.ts +13 -12
- package/esm/modules/index.js +13 -12
- package/esm/modules/messages/message.js +1 -1
- package/esm/modules/messages/messages.d.ts +1 -1
- package/esm/modules/messages/messages.js +1 -6
- package/esm/modules/status-bar/status-bar.d.ts +3 -3
- package/esm/modules/status-bar/status-bar.js +3 -8
- package/esm/modules/table/table.js +3 -3
- package/esm/modules/toolbar/button/button.d.ts +2 -2
- package/esm/modules/toolbar/button/button.js +9 -14
- package/esm/modules/toolbar/button/content.d.ts +1 -1
- package/esm/modules/toolbar/button/content.js +3 -6
- package/esm/modules/toolbar/button/select/select.d.ts +1 -1
- package/esm/modules/toolbar/button/select/select.js +0 -3
- package/esm/modules/toolbar/collection/collection.d.ts +4 -4
- package/esm/modules/toolbar/collection/collection.js +3 -8
- package/esm/modules/toolbar/collection/editor-collection.d.ts +1 -1
- package/esm/modules/toolbar/collection/editor-collection.js +2 -5
- package/esm/modules/toolbar/factory.js +2 -2
- package/esm/modules/uploader/config.js +1 -1
- package/esm/modules/uploader/helpers/index.d.ts +2 -2
- package/esm/modules/uploader/helpers/index.js +2 -2
- package/esm/modules/uploader/helpers/process-old-browser-drag.js +1 -1
- package/esm/modules/uploader/helpers/send.js +1 -2
- package/esm/modules/uploader/uploader.d.ts +1 -1
- package/esm/modules/uploader/uploader.js +3 -8
- package/esm/modules/widget/color-picker/color-picker.d.ts +3 -3
- package/esm/modules/widget/color-picker/color-picker.js +4 -9
- package/esm/modules/widget/file-selector/file-selector.js +2 -2
- package/esm/modules/widget/index.d.ts +1 -1
- package/esm/modules/widget/index.js +1 -1
- package/esm/modules/widget/tabs/tabs.d.ts +1 -1
- package/esm/modules/widget/tabs/tabs.js +2 -7
- package/esm/plugins/about/about.d.ts +0 -5
- package/esm/plugins/about/about.js +3 -8
- package/esm/plugins/add-new-line/add-new-line.d.ts +1 -1
- package/esm/plugins/add-new-line/add-new-line.js +2 -7
- package/esm/plugins/add-new-line/config.js +1 -1
- package/esm/plugins/ai-assistant/ai-assistant.d.ts +27 -0
- package/esm/plugins/ai-assistant/ai-assistant.js +104 -0
- package/esm/plugins/ai-assistant/ai-assistant.svg.js +1 -0
- package/esm/plugins/ai-assistant/chat-bot.svg.js +1 -0
- package/esm/plugins/ai-assistant/config.d.ts +72 -0
- package/esm/plugins/ai-assistant/config.js +94 -0
- package/esm/plugins/ai-assistant/langs/en.d.ts +9 -0
- package/esm/plugins/ai-assistant/langs/en.js +14 -0
- package/esm/plugins/ai-assistant/langs/es.d.ts +40 -0
- package/esm/plugins/ai-assistant/langs/es.js +45 -0
- package/esm/plugins/ai-assistant/langs/index.d.ts +8 -0
- package/esm/plugins/ai-assistant/langs/index.js +8 -0
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +141 -0
- package/esm/plugins/backspace/backspace.js +5 -5
- package/esm/plugins/backspace/cases/check-join-neighbors.js +2 -2
- package/esm/plugins/backspace/cases/check-remove-char.js +2 -2
- package/esm/plugins/backspace/cases/check-remove-empty-parent.js +1 -1
- package/esm/plugins/backspace/cases/check-remove-unbreakable-element.js +1 -1
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.js +1 -1
- package/esm/plugins/backspace/cases/index.d.ts +1 -1
- package/esm/plugins/backspace/cases/index.js +6 -6
- package/esm/plugins/bold/bold.js +4 -4
- package/esm/plugins/class-span/class-span.js +3 -3
- package/esm/plugins/clean-html/clean-html.js +5 -5
- package/esm/plugins/clean-html/config.js +1 -1
- package/esm/plugins/clean-html/helpers/get-hash.js +1 -1
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/index.js +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.js +1 -1
- package/esm/plugins/clipboard/clipboard.js +1 -1
- package/esm/plugins/clipboard/config.js +1 -1
- package/esm/plugins/color/color.js +1 -1
- package/esm/plugins/color/config.js +3 -3
- package/esm/plugins/copy-format/copy-format.js +2 -2
- package/esm/plugins/delete/delete.js +2 -2
- package/esm/plugins/drag-and-drop/drag-and-drop.js +2 -2
- package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +3 -3
- package/esm/plugins/dtd/dtd.js +3 -3
- package/esm/plugins/enter/enter.js +5 -5
- package/esm/plugins/enter/helpers/check-br.js +2 -2
- package/esm/plugins/enter/helpers/index.d.ts +2 -2
- package/esm/plugins/enter/helpers/index.js +2 -2
- package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
- package/esm/plugins/enter/helpers/split-fragment.js +1 -1
- package/esm/plugins/file/file.js +2 -2
- package/esm/plugins/focus/focus.js +1 -1
- package/esm/plugins/font/config.js +4 -4
- package/esm/plugins/font/font.js +1 -1
- package/esm/plugins/format-block/config.js +2 -2
- package/esm/plugins/fullsize/config.d.ts +0 -3
- package/esm/plugins/fullsize/config.js +1 -4
- package/esm/plugins/fullsize/fullsize.d.ts +1 -1
- package/esm/plugins/fullsize/fullsize.js +2 -7
- package/esm/plugins/hotkeys/hotkeys.js +2 -2
- package/esm/plugins/hr/hr.js +1 -1
- package/esm/plugins/iframe/iframe.js +2 -2
- package/esm/plugins/image/image.js +3 -3
- package/esm/plugins/image-processor/image-processor.js +3 -3
- package/esm/plugins/image-properties/image-properties.d.ts +1 -1
- package/esm/plugins/image-properties/image-properties.js +6 -11
- package/esm/plugins/indent/config.js +2 -2
- package/esm/plugins/indent/indent.js +1 -1
- package/esm/plugins/index.d.ts +1 -0
- package/esm/plugins/inline-popup/config/config.js +9 -11
- package/esm/plugins/inline-popup/config/items/img.js +1 -1
- package/esm/plugins/inline-popup/inline-popup.d.ts +1 -1
- package/esm/plugins/inline-popup/inline-popup.js +6 -11
- package/esm/plugins/justify/justify.js +3 -3
- package/esm/plugins/key-arrow-outside/key-arrow-outside.js +2 -2
- package/esm/plugins/limit/limit.js +1 -1
- package/esm/plugins/line-height/config.js +1 -1
- package/esm/plugins/line-height/line-height.js +3 -3
- package/esm/plugins/link/config.d.ts +1 -1
- package/esm/plugins/link/config.js +2 -2
- package/esm/plugins/link/link.js +2 -2
- package/esm/plugins/link/template.js +1 -1
- package/esm/plugins/media/media.js +1 -1
- package/esm/plugins/mobile/config.d.ts +3 -0
- package/esm/plugins/mobile/config.js +2 -5
- package/esm/plugins/mobile/mobile.js +1 -1
- package/esm/plugins/ordered-list/config.js +1 -1
- package/esm/plugins/ordered-list/ordered-list.js +1 -1
- package/esm/plugins/paste/config.js +3 -1
- package/esm/plugins/paste/helpers.js +2 -2
- package/esm/plugins/paste/paste.js +4 -4
- package/esm/plugins/paste-from-word/config.js +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.js +3 -3
- package/esm/plugins/paste-storage/paste-storage.d.ts +1 -6
- package/esm/plugins/paste-storage/paste-storage.js +2 -7
- package/esm/plugins/placeholder/placeholder.d.ts +1 -1
- package/esm/plugins/placeholder/placeholder.js +5 -10
- package/esm/plugins/preview/preview.d.ts +1 -1
- package/esm/plugins/preview/preview.js +1 -6
- package/esm/plugins/print/print.js +4 -5
- package/esm/plugins/redo-undo/redo-undo.js +2 -2
- package/esm/plugins/resize-cells/resize-cells.d.ts +1 -1
- package/esm/plugins/resize-cells/resize-cells.js +2 -7
- package/esm/plugins/resize-handler/resize-handler.js +3 -3
- package/esm/plugins/resizer/resizer.d.ts +1 -1
- package/esm/plugins/resizer/resizer.js +3 -9
- package/esm/plugins/search/config.js +2 -2
- package/esm/plugins/search/helpers/index.d.ts +1 -1
- package/esm/plugins/search/helpers/index.js +1 -1
- package/esm/plugins/search/search.d.ts +1 -1
- package/esm/plugins/search/search.js +6 -6
- package/esm/plugins/search/ui/search.d.ts +1 -1
- package/esm/plugins/search/ui/search.js +2 -5
- package/esm/plugins/select/select.js +3 -3
- package/esm/plugins/select-cells/select-cells.js +4 -4
- package/esm/plugins/size/config.js +1 -1
- package/esm/plugins/size/size.d.ts +1 -1
- package/esm/plugins/size/size.js +2 -7
- package/esm/plugins/source/config.js +1 -1
- package/esm/plugins/source/editor/engines/area.js +1 -1
- package/esm/plugins/source/editor/engines/index.d.ts +1 -1
- package/esm/plugins/source/editor/engines/index.js +1 -1
- package/esm/plugins/source/source.d.ts +1 -1
- package/esm/plugins/source/source.js +4 -9
- package/esm/plugins/speech-recognize/config.js +3 -3
- package/esm/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
- package/esm/plugins/speech-recognize/helpers/recognize-manager.js +2 -2
- package/esm/plugins/speech-recognize/speech-recognize.d.ts +1 -1
- package/esm/plugins/speech-recognize/speech-recognize.js +5 -10
- package/esm/plugins/spellcheck/config.js +1 -1
- package/esm/plugins/spellcheck/spellcheck.js +3 -3
- package/esm/plugins/stat/stat.js +1 -1
- package/esm/plugins/sticky/sticky.d.ts +1 -1
- package/esm/plugins/sticky/sticky.js +3 -8
- package/esm/plugins/symbols/config.js +1 -1
- package/esm/plugins/symbols/symbols.d.ts +1 -1
- package/esm/plugins/symbols/symbols.js +3 -8
- package/esm/plugins/tab/tab.js +3 -3
- package/esm/plugins/table/config.js +2 -2
- package/esm/plugins/table/table.d.ts +1 -1
- package/esm/plugins/table/table.js +0 -5
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +1 -1
- package/esm/plugins/video/config.js +3 -3
- package/esm/plugins/wrap-nodes/config.d.ts +1 -1
- package/esm/plugins/wrap-nodes/wrap-nodes.js +3 -3
- package/esm/plugins/xpath/xpath.d.ts +1 -6
- package/esm/plugins/xpath/xpath.js +4 -9
- package/esm/polyfills.d.ts +10 -0
- package/esm/types/view.d.ts +1 -1
- package/package.json +2 -2
- package/types/config.d.ts +6 -19
- package/types/core/component/component.d.ts +2 -2
- package/types/core/component/index.d.ts +1 -1
- package/types/core/constants.d.ts +1 -0
- package/types/core/create/create.d.ts +3 -2
- package/types/core/decorators/autobind/autobind.d.ts +6 -0
- package/types/core/decorators/cache/cache.d.ts +2 -2
- package/types/core/decorators/debounce/debounce.d.ts +1 -1
- package/types/core/decorators/index.d.ts +3 -3
- package/types/core/event-emitter/observable.d.ts +1 -1
- package/types/core/global.d.ts +1 -1
- package/types/core/helpers/array/as-array.d.ts +1 -1
- package/types/core/helpers/checker/index.d.ts +3 -3
- package/types/core/helpers/checker/is-url.d.ts +1 -1
- package/types/core/helpers/checker/is-view-object.d.ts +1 -1
- package/types/core/helpers/html/index.d.ts +2 -2
- package/types/core/helpers/html/strip-tags.d.ts +1 -1
- package/types/core/helpers/index.d.ts +1 -1
- package/types/core/helpers/normalize/index.d.ts +2 -2
- package/types/core/helpers/size/index.d.ts +1 -1
- package/types/core/helpers/utils/data-bind.d.ts +1 -1
- package/types/core/helpers/utils/index.d.ts +1 -1
- package/types/core/helpers/utils/selector.d.ts +7 -6
- package/types/core/helpers/utils/utils.d.ts +4 -4
- package/types/core/plugin/helpers/init-instance.d.ts +1 -1
- package/types/core/plugin/index.d.ts +1 -1
- package/types/core/request/ajax.d.ts +1 -1
- package/types/core/selection/index.d.ts +1 -1
- package/types/core/selection/style/api/get-suit-child.d.ts +1 -1
- package/types/core/selection/style/api/get-suit-parent.d.ts +1 -1
- package/types/core/selection/style/api/index.d.ts +5 -5
- package/types/core/selection/style/api/is-suit-element.d.ts +1 -1
- package/types/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
- package/types/core/selection/style/api/list/wrap-list.d.ts +1 -1
- package/types/core/selection/style/api/toggle-attributes.d.ts +1 -1
- package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
- package/types/core/selection/style/api/wrap.d.ts +1 -1
- package/types/core/selection/style/apply-style.d.ts +1 -1
- package/types/core/selection/style/commit-style.d.ts +2 -2
- package/types/core/selection/style/transactions.d.ts +1 -1
- package/types/core/storage/index.d.ts +1 -1
- package/types/core/traits/dlgs.d.ts +1 -1
- package/types/core/traits/mods.d.ts +1 -1
- package/types/core/ui/button/button/button.d.ts +4 -4
- package/types/core/ui/button/group/group.d.ts +1 -1
- package/types/core/ui/button/tooltip/tooltip.d.ts +1 -1
- package/types/core/ui/element.d.ts +1 -1
- package/types/core/ui/form/block/block.d.ts +1 -1
- package/types/core/ui/form/form.d.ts +1 -1
- package/types/core/ui/form/index.d.ts +1 -1
- package/types/core/ui/form/inputs/area/area.d.ts +2 -2
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
- package/types/core/ui/form/inputs/file/file.d.ts +1 -1
- package/types/core/ui/form/inputs/index.d.ts +2 -2
- package/types/core/ui/form/inputs/input/input.d.ts +1 -1
- package/types/core/ui/form/inputs/select/select.d.ts +1 -1
- package/types/core/ui/group/group.d.ts +2 -3
- package/types/core/ui/group/list.d.ts +2 -2
- package/types/core/ui/group/separator.d.ts +0 -3
- package/types/core/ui/group/spacer.d.ts +0 -3
- package/types/core/ui/index.d.ts +3 -3
- package/types/core/ui/popup/popup.d.ts +1 -1
- package/types/core/ui/progress-bar/progress-bar.d.ts +1 -1
- package/types/core/view/view-with-toolbar.d.ts +5 -5
- package/types/core/view/view.d.ts +6 -6
- package/types/index.d.ts +2 -7
- package/types/jodit.d.ts +7 -7
- package/types/modules/context-menu/context-menu.d.ts +3 -3
- package/types/modules/dialog/dialog.d.ts +2 -2
- package/types/modules/dialog/index.d.ts +2 -2
- package/types/modules/file-browser/builders/context-menu.d.ts +1 -1
- package/types/modules/file-browser/config.d.ts +3 -0
- package/types/modules/file-browser/data-provider.d.ts +1 -1
- package/types/modules/file-browser/file-browser.d.ts +3 -3
- package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -1
- package/types/modules/file-browser/ui/files/files.d.ts +1 -1
- package/types/modules/file-browser/ui/tree/tree.d.ts +1 -1
- package/types/modules/history/history.d.ts +1 -1
- package/types/modules/image-editor/image-editor.d.ts +2 -2
- package/types/modules/index.d.ts +13 -12
- package/types/modules/messages/messages.d.ts +1 -1
- package/types/modules/status-bar/status-bar.d.ts +3 -3
- package/types/modules/toolbar/button/button.d.ts +2 -2
- package/types/modules/toolbar/button/content.d.ts +1 -1
- package/types/modules/toolbar/button/select/select.d.ts +1 -1
- package/types/modules/toolbar/collection/collection.d.ts +4 -4
- package/types/modules/toolbar/collection/editor-collection.d.ts +1 -1
- package/types/modules/uploader/helpers/index.d.ts +2 -2
- package/types/modules/uploader/uploader.d.ts +1 -1
- package/types/modules/widget/color-picker/color-picker.d.ts +3 -3
- package/types/modules/widget/index.d.ts +1 -1
- package/types/modules/widget/tabs/tabs.d.ts +1 -1
- package/types/plugins/about/about.d.ts +0 -5
- package/types/plugins/add-new-line/add-new-line.d.ts +1 -1
- package/types/plugins/ai-assistant/ai-assistant.d.ts +27 -0
- package/types/plugins/ai-assistant/config.d.ts +72 -0
- package/types/plugins/ai-assistant/langs/en.d.ts +9 -0
- package/types/plugins/ai-assistant/langs/es.d.ts +40 -0
- package/types/plugins/ai-assistant/langs/index.d.ts +8 -0
- package/types/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
- package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
- package/types/plugins/backspace/cases/index.d.ts +1 -1
- package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
- package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
- package/types/plugins/enter/helpers/index.d.ts +2 -2
- package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
- package/types/plugins/fullsize/config.d.ts +0 -3
- package/types/plugins/fullsize/fullsize.d.ts +1 -1
- package/types/plugins/image-properties/image-properties.d.ts +1 -1
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/inline-popup/inline-popup.d.ts +1 -1
- package/types/plugins/link/config.d.ts +1 -1
- package/types/plugins/mobile/config.d.ts +3 -0
- package/types/plugins/paste-from-word/paste-from-word.d.ts +1 -1
- package/types/plugins/paste-storage/paste-storage.d.ts +1 -6
- package/types/plugins/placeholder/placeholder.d.ts +1 -1
- package/types/plugins/preview/preview.d.ts +1 -1
- package/types/plugins/resize-cells/resize-cells.d.ts +1 -1
- package/types/plugins/resizer/resizer.d.ts +1 -1
- package/types/plugins/search/helpers/index.d.ts +1 -1
- package/types/plugins/search/search.d.ts +1 -1
- package/types/plugins/search/ui/search.d.ts +1 -1
- package/types/plugins/size/size.d.ts +1 -1
- package/types/plugins/source/editor/engines/index.d.ts +1 -1
- package/types/plugins/source/source.d.ts +1 -1
- package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
- package/types/plugins/speech-recognize/speech-recognize.d.ts +1 -1
- package/types/plugins/sticky/sticky.d.ts +1 -1
- package/types/plugins/symbols/symbols.d.ts +1 -1
- package/types/plugins/table/table.d.ts +1 -1
- package/types/plugins/wrap-nodes/config.d.ts +1 -1
- package/types/plugins/xpath/xpath.d.ts +1 -6
- package/types/polyfills.d.ts +10 -0
- package/types/types/view.d.ts +1 -1
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module helpers/array
|
|
8
8
|
*/
|
|
9
|
-
import { reset } from "jodit/esm/core/helpers/utils/reset.js";
|
|
10
9
|
import { isNativeFunction } from "jodit/esm/core/helpers/checker/is-native-function.js";
|
|
10
|
+
import { reset } from "jodit/esm/core/helpers/utils/reset.js";
|
|
11
11
|
/**
|
|
12
12
|
* Always return Array. It's a safe polyfill for [Array.from](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from) method
|
|
13
13
|
* In certain scenarios (such as with Joomla Mootools), Array.from may be substituted with a less optimal implementation
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export * from "./has-browser-color-picker";
|
|
10
10
|
export * from "./is-array";
|
|
11
|
-
export * from "./is-set";
|
|
12
11
|
export * from "./is-boolean";
|
|
13
12
|
export * from "./is-equal";
|
|
14
13
|
export * from "./is-function";
|
|
@@ -17,16 +16,17 @@ export * from "./is-html-from-word";
|
|
|
17
16
|
export * from "./is-imp-interface";
|
|
18
17
|
export * from "./is-int";
|
|
19
18
|
export * from "./is-jodit-object";
|
|
20
|
-
export * from "./is-view-object";
|
|
21
19
|
export * from "./is-license";
|
|
20
|
+
export * from "./is-marker";
|
|
22
21
|
export * from "./is-native-function";
|
|
23
22
|
export * from "./is-number";
|
|
24
23
|
export * from "./is-numeric";
|
|
25
24
|
export * from "./is-plain-object";
|
|
26
25
|
export * from "./is-promise";
|
|
26
|
+
export * from "./is-set";
|
|
27
27
|
export * from "./is-string";
|
|
28
28
|
export * from "./is-url";
|
|
29
29
|
export * from "./is-valid-name";
|
|
30
|
+
export * from "./is-view-object";
|
|
30
31
|
export * from "./is-void";
|
|
31
32
|
export * from "./is-window";
|
|
32
|
-
export * from "./is-marker";
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export * from "./has-browser-color-picker";
|
|
10
10
|
export * from "./is-array";
|
|
11
|
-
export * from "./is-set";
|
|
12
11
|
export * from "./is-boolean";
|
|
13
12
|
export * from "./is-equal";
|
|
14
13
|
export * from "./is-function";
|
|
@@ -17,16 +16,17 @@ export * from "./is-html-from-word";
|
|
|
17
16
|
export * from "./is-imp-interface";
|
|
18
17
|
export * from "./is-int";
|
|
19
18
|
export * from "./is-jodit-object";
|
|
20
|
-
export * from "./is-view-object";
|
|
21
19
|
export * from "./is-license";
|
|
20
|
+
export * from "./is-marker";
|
|
22
21
|
export * from "./is-native-function";
|
|
23
22
|
export * from "./is-number";
|
|
24
23
|
export * from "./is-numeric";
|
|
25
24
|
export * from "./is-plain-object";
|
|
26
25
|
export * from "./is-promise";
|
|
26
|
+
export * from "./is-set";
|
|
27
27
|
export * from "./is-string";
|
|
28
28
|
export * from "./is-url";
|
|
29
29
|
export * from "./is-valid-name";
|
|
30
|
+
export * from "./is-view-object";
|
|
30
31
|
export * from "./is-void";
|
|
31
32
|
export * from "./is-window";
|
|
32
|
-
export * from "./is-marker";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isFunction } from "./is-function";
|
|
7
6
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
7
|
+
import { isFunction } from "./is-function";
|
|
8
8
|
import { isVoid } from "./is-void";
|
|
9
9
|
/**
|
|
10
10
|
* Check value has method init
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
7
6
|
import { MARKER_CLASS } from "jodit/esm/core/constants.js";
|
|
7
|
+
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
8
8
|
/**
|
|
9
9
|
* Define element is selection helper
|
|
10
10
|
*/
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module helpers/html
|
|
8
8
|
*/
|
|
9
|
+
import { IS_PROD } from "jodit/esm/core/constants.js";
|
|
9
10
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
10
|
-
import { $$ } from "jodit/esm/core/helpers/utils/selector.js";
|
|
11
11
|
import { trim } from "jodit/esm/core/helpers/string/trim.js";
|
|
12
|
-
import {
|
|
12
|
+
import { $$ } from "jodit/esm/core/helpers/utils/selector.js";
|
|
13
13
|
function normalizeCSS(s) {
|
|
14
14
|
return s
|
|
15
15
|
.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi, '')
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* @module helpers/html
|
|
8
8
|
*/
|
|
9
9
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
10
|
-
import { trim } from "jodit/esm/core/helpers/string/trim.js";
|
|
11
10
|
import { toArray } from "jodit/esm/core/helpers/array/to-array.js";
|
|
11
|
+
import { trim } from "jodit/esm/core/helpers/string/trim.js";
|
|
12
12
|
/**
|
|
13
13
|
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
14
14
|
* content that matches the look and feel of the site.
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
export * from "./apply-styles";
|
|
10
10
|
export * from "./clean-from-word";
|
|
11
11
|
export * from "./htmlspecialchars";
|
|
12
|
-
export * from "./strip-tags";
|
|
13
|
-
export * from "./safe-html";
|
|
14
12
|
export * from "./nl2br";
|
|
13
|
+
export * from "./safe-html";
|
|
14
|
+
export * from "./strip-tags";
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
export * from "./apply-styles";
|
|
10
10
|
export * from "./clean-from-word";
|
|
11
11
|
export * from "./htmlspecialchars";
|
|
12
|
-
export * from "./strip-tags";
|
|
13
|
-
export * from "./safe-html";
|
|
14
12
|
export * from "./nl2br";
|
|
13
|
+
export * from "./safe-html";
|
|
14
|
+
export * from "./strip-tags";
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module helpers/html
|
|
8
8
|
*/
|
|
9
|
-
import { $$, attr } from "jodit/esm/core/helpers/utils/index.js";
|
|
10
9
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
10
|
+
import { $$, attr } from "jodit/esm/core/helpers/utils/index.js";
|
|
11
11
|
/**
|
|
12
12
|
* Removes dangerous constructs from HTML
|
|
13
13
|
*/
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
+
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
6
7
|
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
7
|
-
import { $$ } from "jodit/esm/core/helpers/utils/index.js";
|
|
8
8
|
import { trim } from "jodit/esm/core/helpers/string/trim.js";
|
|
9
|
-
import {
|
|
9
|
+
import { $$ } from "jodit/esm/core/helpers/utils/index.js";
|
|
10
10
|
const NEW_LINE_TAGS = new Set([
|
|
11
11
|
'div',
|
|
12
12
|
'p',
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module helpers
|
|
10
10
|
*/
|
|
11
|
-
export * from "./utils";
|
|
12
11
|
export * from "./array";
|
|
13
12
|
export * from "./async";
|
|
14
13
|
export * from "./checker";
|
|
@@ -17,3 +16,4 @@ export * from "./html";
|
|
|
17
16
|
export * from "./normalize";
|
|
18
17
|
export * from "./size";
|
|
19
18
|
export * from "./string";
|
|
19
|
+
export * from "./utils";
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module helpers
|
|
10
10
|
*/
|
|
11
|
-
export * from "./utils";
|
|
12
11
|
export * from "./array";
|
|
13
12
|
export * from "./async";
|
|
14
13
|
export * from "./checker";
|
|
@@ -17,3 +16,4 @@ export * from "./html";
|
|
|
17
16
|
export * from "./normalize";
|
|
18
17
|
export * from "./size";
|
|
19
18
|
export * from "./string";
|
|
19
|
+
export * from "./utils";
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module helpers/normalize
|
|
8
8
|
*/
|
|
9
|
+
export * from "./normalize-color";
|
|
10
|
+
export * from "./normalize-css-value";
|
|
9
11
|
export * from "./normalize-key-aliases";
|
|
10
12
|
export * from "./normalize-license";
|
|
11
13
|
export * from "./normalize-path";
|
|
12
14
|
export * from "./normalize-relative-path";
|
|
13
15
|
export * from "./normalize-size";
|
|
14
16
|
export * from "./normalize-url";
|
|
15
|
-
export * from "./normalize-css-value";
|
|
16
|
-
export * from "./normalize-color";
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module helpers/normalize
|
|
8
8
|
*/
|
|
9
|
+
export * from "./normalize-color";
|
|
10
|
+
export * from "./normalize-css-value";
|
|
9
11
|
export * from "./normalize-key-aliases";
|
|
10
12
|
export * from "./normalize-license";
|
|
11
13
|
export * from "./normalize-path";
|
|
12
14
|
export * from "./normalize-relative-path";
|
|
13
15
|
export * from "./normalize-size";
|
|
14
16
|
export * from "./normalize-url";
|
|
15
|
-
export * from "./normalize-css-value";
|
|
16
|
-
export * from "./normalize-color";
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* @module helpers/normalize
|
|
8
8
|
*/
|
|
9
9
|
import { isNumeric } from "jodit/esm/core/helpers/checker/is-numeric.js";
|
|
10
|
-
import { kebabCase } from "jodit/esm/core/helpers/string/kebab-case.js";
|
|
11
|
-
import { colorToHex } from "jodit/esm/core/helpers/color/color-to-hex.js";
|
|
12
10
|
import { isVoid } from "jodit/esm/core/helpers/checker/is-void.js";
|
|
11
|
+
import { colorToHex } from "jodit/esm/core/helpers/color/color-to-hex.js";
|
|
12
|
+
import { kebabCase } from "jodit/esm/core/helpers/string/kebab-case.js";
|
|
13
13
|
export const NUMBER_FIELDS_REG = /^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;
|
|
14
14
|
export function normalizeCssNumericValue(key, value) {
|
|
15
15
|
if (!isVoid(value) &&
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { trim } from "jodit/esm/core/helpers/string/trim.js";
|
|
7
6
|
import { KEY_ALIASES } from "jodit/esm/core/constants.js";
|
|
7
|
+
import { trim } from "jodit/esm/core/helpers/string/trim.js";
|
|
8
8
|
/**
|
|
9
9
|
* Normalize keys to some standard name
|
|
10
10
|
*/
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { css } from "jodit/esm/core/helpers/utils/index.js";
|
|
7
6
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
7
|
+
import { css } from "jodit/esm/core/helpers/utils/index.js";
|
|
8
8
|
export function getScrollParent(node) {
|
|
9
9
|
if (!node) {
|
|
10
10
|
return null;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import { defaultLanguage as defineLanguage, error } from "jodit/esm/core/helpers/utils/index.js";
|
|
6
|
+
import { IS_PROD, lang } from "jodit/esm/core/constants.js";
|
|
8
7
|
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
9
8
|
import { ucfirst } from "jodit/esm/core/helpers/string/ucfirst.js";
|
|
10
|
-
import {
|
|
9
|
+
import { defaultLanguage as defineLanguage, error } from "jodit/esm/core/helpers/utils/index.js";
|
|
10
|
+
import { Config } from "jodit/esm/config.js";
|
|
11
11
|
/**
|
|
12
12
|
* Simple variant sprintf function
|
|
13
13
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module helpers/string
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { INVISIBLE_SPACE_REG_EXP_END, INVISIBLE_SPACE_REG_EXP_START, SPACE_REG_EXP_END, SPACE_REG_EXP_START } from "jodit/esm/core/constants.js";
|
|
10
10
|
/**
|
|
11
11
|
* It clears the line of all auxiliary invisible characters , from the spaces and line breaks , tabs
|
|
12
12
|
* from the beginning and end of the line
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { completeUrl } from "./complete-url";
|
|
7
6
|
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
7
|
+
import { completeUrl } from "./complete-url";
|
|
8
8
|
const alreadyLoadedList = new Map();
|
|
9
9
|
const cacheLoaders = (loader) => {
|
|
10
10
|
return async (jodit, url) => {
|
|
@@ -9,7 +9,7 @@ import { css } from "./css";
|
|
|
9
9
|
/**
|
|
10
10
|
* Alias for `elm.getAttribute` but if set second argument `-{key}`
|
|
11
11
|
* it will also check `data-{key}` attribute
|
|
12
|
-
* if set `value` it is alias for setAttribute with same logic
|
|
12
|
+
* if set `value` it is alias for setAttribute with the same logic
|
|
13
13
|
*/
|
|
14
14
|
export function attr(elm, keyOrAttributes, value) {
|
|
15
15
|
if (!elm || !isFunction(elm.getAttribute)) {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isAtom } from "./extend";
|
|
7
6
|
import { isArray } from "jodit/esm/core/helpers/checker/is-array.js";
|
|
8
7
|
import { isPlainObject } from "jodit/esm/core/helpers/checker/is-plain-object.js";
|
|
9
8
|
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
10
9
|
import { isVoid } from "jodit/esm/core/helpers/checker/is-void.js";
|
|
11
|
-
import {
|
|
10
|
+
import { isAtom } from "./extend";
|
|
12
11
|
import { keys } from "./utils";
|
|
12
|
+
import { Config } from "jodit/esm/config.js";
|
|
13
13
|
/**
|
|
14
14
|
* @example
|
|
15
15
|
* ```js
|
|
@@ -64,7 +64,7 @@ export function ConfigProto(options, proto, deep = 0) {
|
|
|
64
64
|
newOpt[key] = ConfigProto(opt, protoKey, deep + 1);
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
-
// On the first level all
|
|
67
|
+
// On the first level all arrays are atomic
|
|
68
68
|
if (deep !== 0 && isArray(opt) && !isAtom(opt) && isArray(protoKey)) {
|
|
69
69
|
newOpt[key] = [...opt, ...protoKey.slice(opt.length)];
|
|
70
70
|
return;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isPlainObject } from "jodit/esm/core/helpers/checker/is-plain-object.js";
|
|
7
6
|
import { isBoolean } from "jodit/esm/core/helpers/checker/is-boolean.js";
|
|
8
|
-
import {
|
|
7
|
+
import { isPlainObject } from "jodit/esm/core/helpers/checker/is-plain-object.js";
|
|
8
|
+
import { normalizeCssNumericValue, normalizeCssValue, NUMBER_FIELDS_REG } from "jodit/esm/core/helpers/normalize/normalize-css-value.js";
|
|
9
9
|
import { camelCase } from "jodit/esm/core/helpers/string/camel-case.js";
|
|
10
10
|
import { kebabCase } from "jodit/esm/core/helpers/string/kebab-case.js";
|
|
11
11
|
/**
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* @module helpers/utils
|
|
8
8
|
*/
|
|
9
9
|
import type { IViewComponent } from "jodit/esm/types";
|
|
10
|
-
export declare const dataBind: <T = any>(elm: IViewComponent | Node | object, key: string, value?: T
|
|
10
|
+
export declare const dataBind: <T = any>(elm: IViewComponent | Node | object, key: string, value?: T) => T;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* @module helpers/utils
|
|
8
8
|
*/
|
|
9
9
|
export * from "./align";
|
|
10
|
-
export * from "./attr";
|
|
11
10
|
export * from "./append-script";
|
|
12
11
|
export * from "./assert";
|
|
12
|
+
export * from "./attr";
|
|
13
13
|
export * from "./browser";
|
|
14
14
|
export * from "./build-query";
|
|
15
15
|
export * from "./complete-url";
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* @module helpers/utils
|
|
8
8
|
*/
|
|
9
9
|
export * from "./align";
|
|
10
|
-
export * from "./attr";
|
|
11
10
|
export * from "./append-script";
|
|
12
11
|
export * from "./assert";
|
|
12
|
+
export * from "./attr";
|
|
13
13
|
export * from "./browser";
|
|
14
14
|
export * from "./build-query";
|
|
15
15
|
export * from "./complete-url";
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
7
6
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
8
|
-
import {
|
|
7
|
+
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
9
8
|
import { attr } from "./attr";
|
|
9
|
+
import { css } from "./css";
|
|
10
10
|
import { $$ } from "./selector";
|
|
11
11
|
/**
|
|
12
12
|
* Fixes image sizes and sets absolute paths to images
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { get } from "./get";
|
|
7
|
-
import { isFunction } from "jodit/esm/core/helpers/checker/is-function.js";
|
|
8
6
|
import { IS_PROD } from "jodit/esm/core/constants.js";
|
|
7
|
+
import { isFunction } from "jodit/esm/core/helpers/checker/is-function.js";
|
|
8
|
+
import { get } from "./get";
|
|
9
9
|
const map = {};
|
|
10
10
|
/**
|
|
11
11
|
* Reset Vanilla JS native function
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module helpers/utils
|
|
8
8
|
*/
|
|
9
|
-
import type { HTMLTagNames, IDictionary,
|
|
9
|
+
import type { HTMLTagNames, IDictionary, Nullable } from "jodit/esm/types/";
|
|
10
10
|
/**
|
|
11
|
-
* Find all elements by selector and return Array. If it did not find any element it return empty array
|
|
11
|
+
* Find all elements by selector and return Array. If it did not find any element, it is return empty array
|
|
12
|
+
* @internal
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
* ```javascript
|
|
@@ -19,10 +20,10 @@ import type { HTMLTagNames, IDictionary, IUIElement, Nullable } from "jodit/esm/
|
|
|
19
20
|
* })
|
|
20
21
|
* ```
|
|
21
22
|
* @param selector - CSS like selector
|
|
22
|
-
*
|
|
23
|
+
* @param root - where to search
|
|
23
24
|
*/
|
|
24
|
-
export declare function $$<K extends HTMLTagNames>(selector: K, root: HTMLElement |
|
|
25
|
-
export declare function $$<T extends HTMLElement>(selector: string, root: HTMLElement |
|
|
25
|
+
export declare function $$<K extends HTMLTagNames>(selector: K, root: HTMLElement | DocumentFragment): Array<HTMLElementTagNameMap[K]>;
|
|
26
|
+
export declare function $$<T extends HTMLElement>(selector: string, root: HTMLElement | DocumentFragment): T[];
|
|
26
27
|
/**
|
|
27
28
|
* Calculate XPath selector
|
|
28
29
|
*/
|
|
@@ -30,7 +31,7 @@ export declare const getXPathByElement: (element: HTMLElement, root: HTMLElement
|
|
|
30
31
|
/**
|
|
31
32
|
* Find all `ref` or `data-ref` elements inside HTMLElement
|
|
32
33
|
*/
|
|
33
|
-
export declare const refs: <T extends HTMLElement>(root: HTMLElement
|
|
34
|
+
export declare const refs: <T extends HTMLElement>(root: HTMLElement) => IDictionary<T>;
|
|
34
35
|
/**
|
|
35
36
|
* Calculate full CSS selector
|
|
36
37
|
*/
|
|
@@ -4,13 +4,11 @@
|
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
import { IS_ES_NEXT, IS_IE } from "jodit/esm/core/constants.js";
|
|
7
|
-
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
8
|
-
import { attr, error } from "jodit/esm/core/helpers/utils/index.js";
|
|
9
7
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
10
|
-
import { camelCase } from "jodit/esm/core/helpers/string/camel-case.js";
|
|
11
8
|
import { toArray } from "jodit/esm/core/helpers/array/to-array.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
10
|
+
import { camelCase } from "jodit/esm/core/helpers/string/camel-case.js";
|
|
11
|
+
import { attr, error } from "jodit/esm/core/helpers/utils/index.js";
|
|
14
12
|
let temp = 1;
|
|
15
13
|
const $$temp = () => {
|
|
16
14
|
temp++;
|
|
@@ -61,9 +59,9 @@ export const getXPathByElement = (element, root) => {
|
|
|
61
59
|
* Find all `ref` or `data-ref` elements inside HTMLElement
|
|
62
60
|
*/
|
|
63
61
|
export const refs = (root) => {
|
|
64
|
-
if (Component.isInstanceOf(root, UIElement)) {
|
|
65
|
-
|
|
66
|
-
}
|
|
62
|
+
// if (Component.isInstanceOf<UIElement>(root, UIElement)) {
|
|
63
|
+
// root = root.container;
|
|
64
|
+
// }
|
|
67
65
|
return $$('[ref],[data-ref]', root).reduce((def, child) => {
|
|
68
66
|
const key = attr(child, '-ref');
|
|
69
67
|
if (key && isString(key)) {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
7
|
-
import { isNumeric } from "jodit/esm/core/helpers/checker/is-numeric.js";
|
|
8
6
|
import { isArray } from "jodit/esm/core/helpers/checker/is-array.js";
|
|
7
|
+
import { isNumeric } from "jodit/esm/core/helpers/checker/is-numeric.js";
|
|
9
8
|
import { isPlainObject } from "jodit/esm/core/helpers/checker/is-plain-object.js";
|
|
9
|
+
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
10
10
|
/**
|
|
11
11
|
* Safe access in tree object
|
|
12
12
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module helpers/utils
|
|
8
8
|
*/
|
|
9
|
-
import type { CanPromise, IControlType, IViewBased,
|
|
9
|
+
import type { CanPromise, IControlType, IJodit, IViewBased, Nullable, RejectablePromise } from "jodit/esm/types";
|
|
10
10
|
/**
|
|
11
11
|
* Call function with parameters
|
|
12
12
|
*
|
|
@@ -21,7 +21,7 @@ export declare function call<T extends any[], R>(func: (...args: T) => R, ...arg
|
|
|
21
21
|
* Mark element for debugging
|
|
22
22
|
*/
|
|
23
23
|
export declare function markOwner(jodit: IViewBased, elm: HTMLElement): void;
|
|
24
|
-
export declare function callPromise(condition: CanPromise<unknown>, callback
|
|
24
|
+
export declare function callPromise(condition: CanPromise<unknown>, callback?: () => CanPromise<any>): CanPromise<void>;
|
|
25
25
|
/**
|
|
26
26
|
* Allow load image in promise
|
|
27
27
|
*/
|
|
@@ -31,8 +31,8 @@ export declare const keys: (obj: object, own?: boolean) => string[];
|
|
|
31
31
|
* Memorize last user chose
|
|
32
32
|
*/
|
|
33
33
|
export declare const memorizeExec: <T extends IJodit = IJodit>(editor: T, _: unknown, { control }: {
|
|
34
|
-
control: IControlType<T
|
|
35
|
-
}, preProcessValue?: (
|
|
34
|
+
control: IControlType<T>;
|
|
35
|
+
}, preProcessValue?: (value: string) => string) => void | false;
|
|
36
36
|
/**
|
|
37
37
|
* Get DataTransfer from different event types
|
|
38
38
|
*/
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { isPromise } from "jodit/esm/core/helpers/checker/is-promise.js";
|
|
7
7
|
import { isVoid } from "jodit/esm/core/helpers/checker/is-void.js";
|
|
8
|
-
import { dataBind } from "./data-bind";
|
|
9
8
|
import { attr } from "./attr";
|
|
9
|
+
import { dataBind } from "./data-bind";
|
|
10
10
|
/**
|
|
11
11
|
* Call function with parameters
|
|
12
12
|
*
|
|
@@ -35,7 +35,7 @@ export function callPromise(condition, callback) {
|
|
|
35
35
|
.then(resp => resp, () => null)
|
|
36
36
|
.finally(callback);
|
|
37
37
|
}
|
|
38
|
-
return callback();
|
|
38
|
+
return callback?.();
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Allow load image in promise
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { IJodit, Nullable, PluginInstance, PluginType } from "jodit/esm/types";
|
|
10
10
|
/**
|
|
11
|
-
* Init plugin if it has
|
|
11
|
+
* Init plugin if it has no dependencies, in another case wait requires plugins will be init
|
|
12
12
|
* @private
|
|
13
13
|
*/
|
|
14
14
|
export declare function init(jodit: IJodit, pluginName: string, plugin: PluginType, instance: PluginInstance, doneList: Map<string, Nullable<PluginInstance>>, waitingList: Set<string>): void;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isInitable } from "jodit/esm/core/helpers/checker/index.js";
|
|
7
|
-
import { loadStyle } from "./load";
|
|
8
6
|
import { IS_PROD } from "jodit/esm/core/constants.js";
|
|
9
7
|
import { getContainer } from "jodit/esm/core/global.js";
|
|
8
|
+
import { isInitable } from "jodit/esm/core/helpers/checker/index.js";
|
|
9
|
+
import { loadStyle } from "./load";
|
|
10
10
|
/**
|
|
11
|
-
* Init plugin if it has
|
|
11
|
+
* Init plugin if it has no dependencies, in another case wait requires plugins will be init
|
|
12
12
|
* @private
|
|
13
13
|
*/
|
|
14
14
|
export function init(jodit, pluginName, plugin, instance, doneList, waitingList) {
|