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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jodit - Jodit is awesome and
|
|
2
|
+
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.1.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -17,32 +17,32 @@
|
|
|
17
17
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
18
18
|
}
|
|
19
19
|
})(self, function() {
|
|
20
|
-
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[
|
|
20
|
+
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[486],{
|
|
21
21
|
|
|
22
|
-
/***/
|
|
22
|
+
/***/ 40773:
|
|
23
23
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
24
24
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
/* harmony export */ Debug: function() { return /* binding */ Debug; }
|
|
28
28
|
/* harmony export */ });
|
|
29
|
-
/* harmony import */ var
|
|
30
|
-
/* harmony import */ var
|
|
31
|
-
/* harmony import */ var
|
|
32
|
-
/* harmony import */ var jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
33
|
-
/* harmony import */ var
|
|
29
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
30
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
|
|
31
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56298);
|
|
32
|
+
/* harmony import */ var jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61793);
|
|
33
|
+
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29866);
|
|
34
34
|
/*!
|
|
35
35
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36
36
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
37
37
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
|
-
// @ts-ignore
|
|
41
40
|
|
|
41
|
+
// @ts-ignore
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
class Debug extends
|
|
45
|
+
class Debug extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .k {
|
|
46
46
|
afterInit(jodit) {
|
|
47
47
|
const mirror = jodit.create.div();
|
|
48
48
|
const tree = jodit.create.div();
|
|
@@ -73,11 +73,11 @@ function renderText(elm) {
|
|
|
73
73
|
if (!elm.nodeValue) {
|
|
74
74
|
return "<span style='color:red'>empty</span>";
|
|
75
75
|
}
|
|
76
|
-
return (0,jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_3__/* .stripTags */ .
|
|
76
|
+
return (0,jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_3__/* .stripTags */ .K)(elm.nodeValue.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), 'INV'));
|
|
77
77
|
}
|
|
78
78
|
function render(elm, level = 0) {
|
|
79
79
|
return `<div style='padding-left: ${level * 5}px'>
|
|
80
|
-
${elm.nodeName} ${
|
|
80
|
+
${elm.nodeName} ${jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(elm) ? `- ${renderText(elm)}` : ''}
|
|
81
81
|
${Array.from(elm.childNodes)
|
|
82
82
|
.map(ch => render(ch, level + 1))
|
|
83
83
|
.join('')}
|
|
@@ -91,7 +91,7 @@ function render(elm, level = 0) {
|
|
|
91
91
|
},
|
|
92
92
|
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
93
93
|
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
94
|
-
/******/ var __webpack_exports__ = (__webpack_exec__(
|
|
94
|
+
/******/ var __webpack_exports__ = (__webpack_exec__(40773));
|
|
95
95
|
/******/ return __webpack_exports__;
|
|
96
96
|
/******/ }
|
|
97
97
|
]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jodit - Jodit is awesome and
|
|
2
|
+
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.1.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
"use strict";((e,n)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}})(self,(()=>(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[
|
|
10
|
+
"use strict";((e,n)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}})(self,(()=>(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[486],{40773(e,n,t){t.r(n),t.d(n,{Debug(){return s}});var o=t(17352),d=t(55186),r=(t(56298),t(61793)),a=t(29866);class s extends a.k{afterInit(e){const n=e.create.div(),t=e.create.div(),o=e.create.div();n.appendChild(t),n.appendChild(o),e.workplace.appendChild(n),Object.assign(n.style,{padding:"16px",backgroundColor:"#fcfcfc"}),Object.assign(o.style,{paddingTop:"16px"}),e.e.on("keydown keyup keypress change afterInit updateDebug",(()=>{t.innerHTML=i(e.editor)})).on(e.od,"selectionchange",(()=>{const n=e.selection.range;t.innerHTML=i(e.editor),o.innerHTML=`start ${n.startContainer.nodeName} ${n.startOffset}<br>end ${n.endContainer.nodeName} ${n.endOffset}`}))}beforeDestruct(e){}}function i(e,n=0){return`<div style='padding-left: ${5*n}px'>\n\t\t${e.nodeName} ${d.J.isText(e)?"- "+(e=>e.nodeValue?(0,r.K)(e.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"INV")):"<span style='color:red'>empty</span>")(e):""}\n\t${Array.from(e.childNodes).map((e=>i(e,n+1))).join("")}\n</div>`}}},e=>e(e.s=40773)])));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jodit - Jodit is awesome and
|
|
2
|
+
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.1.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jodit - Jodit is awesome and
|
|
2
|
+
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.1.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
17
|
}
|
|
18
18
|
})(self, function() {
|
|
19
|
-
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[
|
|
19
|
+
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[882],{
|
|
20
20
|
|
|
21
|
-
/***/
|
|
21
|
+
/***/ 71096:
|
|
22
22
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
23
23
|
|
|
24
24
|
"use strict";
|
|
25
|
-
/* harmony import */ var
|
|
26
|
-
/* harmony import */ var
|
|
27
|
-
/* harmony import */ var
|
|
28
|
-
/* harmony import */ var
|
|
29
|
-
/* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
30
|
-
/* harmony import */ var
|
|
31
|
-
/* harmony import */ var
|
|
32
|
-
/* harmony import */ var
|
|
25
|
+
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9810);
|
|
26
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72197);
|
|
27
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
28
|
+
/* harmony import */ var _helpers_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71722);
|
|
29
|
+
/* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(93676);
|
|
30
|
+
/* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22227);
|
|
31
|
+
/* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
32
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
|
|
33
33
|
/*!
|
|
34
34
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35
35
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42,8 +42,8 @@ return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[781]
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
api:
|
|
45
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.speechRecognize = {
|
|
46
|
+
api: _helpers_api__WEBPACK_IMPORTED_MODULE_2__/* .SpeechRecognition */ .o,
|
|
47
47
|
sound: true,
|
|
48
48
|
continuous: true,
|
|
49
49
|
interimResults: true,
|
|
@@ -61,10 +61,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.speechRecogn
|
|
|
61
61
|
'select all': 'selectall'
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
65
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.speechRecognize = {
|
|
66
66
|
isActive(jodit, _) {
|
|
67
|
-
const api = (0,
|
|
67
|
+
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, 'speech');
|
|
68
68
|
return Boolean(api?.isEnabled);
|
|
69
69
|
},
|
|
70
70
|
isDisabled(jodit) {
|
|
@@ -76,15 +76,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.spe
|
|
|
76
76
|
jodit.alert('Speech recognize API unsupported in your browser');
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
let api = (0,
|
|
79
|
+
let api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, 'speech');
|
|
80
80
|
if (!api) {
|
|
81
81
|
const nativeApi = new Api();
|
|
82
|
-
api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_3__/* .RecognizeManager */ .
|
|
82
|
+
api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_3__/* .RecognizeManager */ .g(jodit.async, nativeApi);
|
|
83
83
|
api.lang = lang;
|
|
84
84
|
api.continuous = continuous;
|
|
85
85
|
api.interimResults = interimResults;
|
|
86
86
|
api.sound = sound;
|
|
87
|
-
(0,
|
|
87
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, 'speech', api);
|
|
88
88
|
api.on('pulse', (enable) => {
|
|
89
89
|
button.setMod('pulse', enable);
|
|
90
90
|
});
|
|
@@ -96,7 +96,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.spe
|
|
|
96
96
|
}
|
|
97
97
|
if (control.args) {
|
|
98
98
|
const key = control.args[0];
|
|
99
|
-
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__/* .isBoolean */ .
|
|
99
|
+
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_6__/* .isBoolean */ .L)(api[key])) {
|
|
100
100
|
api[key] = !api[key];
|
|
101
101
|
if (api.isEnabled) {
|
|
102
102
|
api.restart();
|
|
@@ -115,7 +115,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.spe
|
|
|
115
115
|
interimResults: 'Interim Results'
|
|
116
116
|
},
|
|
117
117
|
childTemplate(jodit, key, value) {
|
|
118
|
-
const api = (0,
|
|
118
|
+
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, 'speech'), checked = api?.[key] ?? jodit.o.speechRecognize[key];
|
|
119
119
|
return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'> ${value}</span>`;
|
|
120
120
|
},
|
|
121
121
|
mods: {
|
|
@@ -126,13 +126,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.spe
|
|
|
126
126
|
|
|
127
127
|
/***/ }),
|
|
128
128
|
|
|
129
|
-
/***/
|
|
129
|
+
/***/ 81629:
|
|
130
130
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
131
131
|
|
|
132
132
|
"use strict";
|
|
133
133
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
134
|
-
/* harmony export */
|
|
135
|
-
/* harmony export */
|
|
134
|
+
/* harmony export */ N: function() { return /* binding */ PII; },
|
|
135
|
+
/* harmony export */ Z: function() { return /* binding */ WARN; }
|
|
136
136
|
/* harmony export */ });
|
|
137
137
|
/*!
|
|
138
138
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -149,12 +149,12 @@ const WARN = 940;
|
|
|
149
149
|
|
|
150
150
|
/***/ }),
|
|
151
151
|
|
|
152
|
-
/***/
|
|
152
|
+
/***/ 71722:
|
|
153
153
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
154
154
|
|
|
155
155
|
"use strict";
|
|
156
156
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
157
|
-
/* harmony export */
|
|
157
|
+
/* harmony export */ o: function() { return /* binding */ SpeechRecognition; }
|
|
158
158
|
/* harmony export */ });
|
|
159
159
|
/*!
|
|
160
160
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -167,12 +167,12 @@ const SpeechRecognition = window.SpeechRecognition ||
|
|
|
167
167
|
|
|
168
168
|
/***/ }),
|
|
169
169
|
|
|
170
|
-
/***/
|
|
170
|
+
/***/ 50834:
|
|
171
171
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
172
172
|
|
|
173
173
|
"use strict";
|
|
174
174
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
175
|
-
/* harmony export */
|
|
175
|
+
/* harmony export */ F: function() { return /* binding */ execSpellCommand; }
|
|
176
176
|
/* harmony export */ });
|
|
177
177
|
/*!
|
|
178
178
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -187,18 +187,18 @@ function execSpellCommand(jodit, commandSentence) {
|
|
|
187
187
|
|
|
188
188
|
/***/ }),
|
|
189
189
|
|
|
190
|
-
/***/
|
|
190
|
+
/***/ 93676:
|
|
191
191
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
192
192
|
|
|
193
193
|
"use strict";
|
|
194
194
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
195
|
-
/* harmony export */
|
|
195
|
+
/* harmony export */ g: function() { return /* binding */ RecognizeManager; }
|
|
196
196
|
/* harmony export */ });
|
|
197
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
198
|
-
/* harmony import */ var
|
|
199
|
-
/* harmony import */ var
|
|
200
|
-
/* harmony import */ var
|
|
201
|
-
/* harmony import */ var
|
|
197
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
|
|
198
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22664);
|
|
199
|
+
/* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43431);
|
|
200
|
+
/* harmony import */ var _sound__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95473);
|
|
201
|
+
/* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81629);
|
|
202
202
|
/*!
|
|
203
203
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
204
204
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -210,7 +210,7 @@ var RecognizeManager_1;
|
|
|
210
210
|
|
|
211
211
|
|
|
212
212
|
|
|
213
|
-
let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_1__/* .Eventify */ .
|
|
213
|
+
let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_1__/* .Eventify */ .h {
|
|
214
214
|
set lang(v) {
|
|
215
215
|
this._lang = v;
|
|
216
216
|
this._api.lang = v;
|
|
@@ -248,7 +248,7 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
|
|
|
248
248
|
this._restartTimeout = this.async.setTimeout(() => {
|
|
249
249
|
this.restart();
|
|
250
250
|
this.emit('pulse', false);
|
|
251
|
-
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .WARN */ .
|
|
251
|
+
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .WARN */ .Z);
|
|
252
252
|
}, 5000);
|
|
253
253
|
this.emit('pulse', true);
|
|
254
254
|
};
|
|
@@ -330,7 +330,7 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
|
|
|
330
330
|
catch { }
|
|
331
331
|
this.restart();
|
|
332
332
|
this.emit('pulse', false);
|
|
333
|
-
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .PII */ .
|
|
333
|
+
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .PII */ .N);
|
|
334
334
|
};
|
|
335
335
|
if (resultItem.isFinal === false) {
|
|
336
336
|
this.emit('progress', transcript);
|
|
@@ -343,18 +343,18 @@ let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends jodit
|
|
|
343
343
|
if (!this._isEnabled) {
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
|
-
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .WARN */ .
|
|
346
|
+
this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_2__/* .WARN */ .Z);
|
|
347
347
|
this.emit('pulse', false);
|
|
348
348
|
this.restart();
|
|
349
349
|
}
|
|
350
350
|
_makeSound(frequency) {
|
|
351
351
|
if (this.sound) {
|
|
352
|
-
(0,_sound__WEBPACK_IMPORTED_MODULE_3__/* .sound */ .
|
|
352
|
+
(0,_sound__WEBPACK_IMPORTED_MODULE_3__/* .sound */ .s)({ frequency });
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
356
|
RecognizeManager._instances = new Set();
|
|
357
|
-
RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .
|
|
357
|
+
RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
358
358
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
359
359
|
], RecognizeManager);
|
|
360
360
|
|
|
@@ -362,14 +362,14 @@ RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/*
|
|
|
362
362
|
|
|
363
363
|
/***/ }),
|
|
364
364
|
|
|
365
|
-
/***/
|
|
365
|
+
/***/ 95473:
|
|
366
366
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
367
367
|
|
|
368
368
|
"use strict";
|
|
369
369
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
370
|
-
/* harmony export */
|
|
370
|
+
/* harmony export */ s: function() { return /* binding */ sound; }
|
|
371
371
|
/* harmony export */ });
|
|
372
|
-
/* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
372
|
+
/* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81629);
|
|
373
373
|
/*!
|
|
374
374
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
375
375
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -382,7 +382,7 @@ RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/*
|
|
|
382
382
|
/**
|
|
383
383
|
* @internal
|
|
384
384
|
*/
|
|
385
|
-
function sound({ sec = 0.1, frequency = jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_0__/* .PII */ .
|
|
385
|
+
function sound({ sec = 0.1, frequency = jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_0__/* .PII */ .N, gain = 0.1, type = 'sine' } = {}) {
|
|
386
386
|
if (typeof window.AudioContext === 'undefined' &&
|
|
387
387
|
typeof window.webkitAudioContext === 'undefined') {
|
|
388
388
|
return;
|
|
@@ -404,7 +404,7 @@ function sound({ sec = 0.1, frequency = jodit_plugins_speech_recognize_constants
|
|
|
404
404
|
|
|
405
405
|
/***/ }),
|
|
406
406
|
|
|
407
|
-
/***/
|
|
407
|
+
/***/ 25202:
|
|
408
408
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
409
409
|
|
|
410
410
|
"use strict";
|
|
@@ -432,7 +432,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
432
432
|
/* harmony export */ zh_cn: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
|
|
433
433
|
/* harmony export */ zh_tw: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; }
|
|
434
434
|
/* harmony export */ });
|
|
435
|
-
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
435
|
+
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41324);
|
|
436
436
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
437
437
|
/*!
|
|
438
438
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -466,7 +466,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
466
466
|
|
|
467
467
|
/***/ }),
|
|
468
468
|
|
|
469
|
-
/***/
|
|
469
|
+
/***/ 37873:
|
|
470
470
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
471
471
|
|
|
472
472
|
"use strict";
|
|
@@ -474,28 +474,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
474
474
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
475
475
|
/* harmony export */ SpeechRecognizeNative: function() { return /* binding */ SpeechRecognizeNative; }
|
|
476
476
|
/* harmony export */ });
|
|
477
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
478
|
-
/* harmony import */ var
|
|
479
|
-
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
480
|
-
/* harmony import */ var
|
|
481
|
-
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
482
|
-
/* harmony import */ var
|
|
483
|
-
/* harmony import */ var
|
|
484
|
-
/* harmony import */ var
|
|
485
|
-
/* harmony import */ var
|
|
486
|
-
/* harmony import */ var
|
|
487
|
-
/* harmony import */ var
|
|
477
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
|
|
478
|
+
/* harmony import */ var jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37075);
|
|
479
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66927);
|
|
480
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
|
|
481
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56298);
|
|
482
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84976);
|
|
483
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71005);
|
|
484
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71096);
|
|
485
|
+
/* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46173);
|
|
486
|
+
/* harmony import */ var _helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50834);
|
|
487
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(25202);
|
|
488
488
|
/*!
|
|
489
489
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
490
490
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
491
491
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
492
492
|
*/
|
|
493
493
|
|
|
494
|
-
/**
|
|
495
|
-
* [[include:plugins/speech-recognize/README.md]]
|
|
496
|
-
* @packageDocumentation
|
|
497
|
-
* @module plugins/speech-recognize
|
|
498
|
-
*/
|
|
499
494
|
|
|
500
495
|
|
|
501
496
|
|
|
@@ -507,7 +502,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
507
502
|
|
|
508
503
|
|
|
509
504
|
|
|
510
|
-
class SpeechRecognizeNative extends
|
|
505
|
+
class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */ .k {
|
|
511
506
|
constructor(j) {
|
|
512
507
|
super(j);
|
|
513
508
|
this._commandToWord = {};
|
|
@@ -521,8 +516,8 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0
|
|
|
521
516
|
afterInit(jodit) {
|
|
522
517
|
const { commands } = jodit.o.speechRecognize;
|
|
523
518
|
if (commands) {
|
|
524
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .extendLang */ .
|
|
525
|
-
(0,
|
|
519
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_8__);
|
|
520
|
+
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__/* .keys */ .HP)(commands, false).forEach(words => {
|
|
526
521
|
const keys = words.split('|');
|
|
527
522
|
keys.forEach(key => {
|
|
528
523
|
key = key.trim().toLowerCase();
|
|
@@ -544,7 +539,7 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0
|
|
|
544
539
|
}
|
|
545
540
|
this.j.workplace.appendChild(this.messagePopup);
|
|
546
541
|
this.j.async.setTimeout(() => {
|
|
547
|
-
|
|
542
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
|
|
548
543
|
}, {
|
|
549
544
|
label: 'onSpeechRecognizeProgressResult',
|
|
550
545
|
timeout: 1000
|
|
@@ -553,12 +548,12 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0
|
|
|
553
548
|
}
|
|
554
549
|
onSpeechRecognizeResult(text) {
|
|
555
550
|
const { j } = this, { s } = j;
|
|
556
|
-
|
|
551
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
|
|
557
552
|
if (!this._checkCommand(text)) {
|
|
558
553
|
const { range } = s, node = s.current();
|
|
559
554
|
if (s.isCollapsed() &&
|
|
560
|
-
|
|
561
|
-
|
|
555
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node) &&
|
|
556
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(j.editor, node) &&
|
|
562
557
|
node.nodeValue) {
|
|
563
558
|
const sentence = node.nodeValue;
|
|
564
559
|
node.nodeValue =
|
|
@@ -577,25 +572,25 @@ class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0
|
|
|
577
572
|
_checkCommand(command) {
|
|
578
573
|
command = command.toLowerCase().replace(/\./g, '');
|
|
579
574
|
if (this._commandToWord[command]) {
|
|
580
|
-
(0,_helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__/* .execSpellCommand */ .
|
|
575
|
+
(0,_helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__/* .execSpellCommand */ .F)(this.j, this._commandToWord[command]);
|
|
581
576
|
return true;
|
|
582
577
|
}
|
|
583
578
|
return false;
|
|
584
579
|
}
|
|
585
580
|
}
|
|
586
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .
|
|
587
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .
|
|
588
|
-
(0,
|
|
581
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
582
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .wB)(':speechRecognizeProgressResult'),
|
|
583
|
+
(0,jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_0__/* .debounce */ .s)()
|
|
589
584
|
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
590
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .
|
|
591
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .
|
|
585
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
|
|
586
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .wB)(':speechRecognizeResult')
|
|
592
587
|
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
593
|
-
|
|
588
|
+
_jodit__WEBPACK_IMPORTED_MODULE_7__/* .Jodit */ .x.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
594
589
|
|
|
595
590
|
|
|
596
591
|
/***/ }),
|
|
597
592
|
|
|
598
|
-
/***/
|
|
593
|
+
/***/ 22227:
|
|
599
594
|
/***/ (function(module) {
|
|
600
595
|
|
|
601
596
|
module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z\"/> <path d=\"M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z\"/> </svg>"
|
|
@@ -605,7 +600,7 @@ module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http
|
|
|
605
600
|
},
|
|
606
601
|
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
607
602
|
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
608
|
-
/******/ var __webpack_exports__ = (__webpack_exec__(
|
|
603
|
+
/******/ var __webpack_exports__ = (__webpack_exec__(37873));
|
|
609
604
|
/******/ return __webpack_exports__;
|
|
610
605
|
/******/ }
|
|
611
606
|
]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jodit - Jodit is awesome and
|
|
2
|
+
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.1.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var s=t();for(var i in s)("object"==typeof exports?exports:e)[i]=s[i]}})(self,(function(){return(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[
|
|
10
|
+
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var s=t();for(var i in s)("object"==typeof exports?exports:e)[i]=s[i]}})(self,(function(){return(self.webpackChunkjodit=self.webpackChunkjodit||[]).push([[882],{71096(e,t,s){"use strict";var i=s(9810),n=s(72197),r=s(931),o=s(71722),c=s(93676),u=s(22227),a=s.n(u),h=s(36115);h.T.prototype.speechRecognize={api:o.o,sound:!0,continuous:!0,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},r.I.set("speech-recognize",a()),h.T.prototype.controls.speechRecognize={isActive(e,t){const s=(0,n.m)(e,"speech");return!!s?.isEnabled},isDisabled:e=>!e.o.speechRecognize.api,exec(e,t,{button:s,control:r}){const{api:o,lang:u,continuous:a,interimResults:h,sound:p}=e.o.speechRecognize;if(!o)return void e.alert("Speech recognize API unsupported in your browser");let l=(0,n.m)(e,"speech");if(!l){const t=new o;l=new c.g(e.async,t),l.lang=u,l.continuous=a,l.interimResults=h,l.sound=p,(0,n.m)(e,"speech",l),l.on("pulse",(e=>{s.setMod("pulse",e)})),l.on("result",(t=>e.e.fire("speechRecognizeResult",t))),l.on("progress",(t=>e.e.fire("speechRecognizeProgressResult",t))),s.hookStatus("beforeDestruct",(()=>{l.destruct()}))}if(r.args){const e=r.args[0];if((0,i.L)(l[e]))return l[e]=!l[e],void(l.isEnabled&&l.restart())}l.toggle(),s.state.activated=l.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,s){const i=(0,n.m)(e,"speech");return`<span class='jodit-speech-recognize__list-item'><input ${i?.[t]??e.o.speechRecognize[t]?"checked":""} class='jodit-checkbox' type='checkbox'> ${s}</span>`},mods:{stroke:!1}}},81629(e,t,s){"use strict";s.d(t,{N(){return i},Z(){return n}});const i=440,n=940},71722(e,t,s){"use strict";s.d(t,{o(){return i}});const i=window.SpeechRecognition||window.webkitSpeechRecognition},50834(e,t,s){"use strict";function i(e,t){const[s,i]=t.split("::");e.execCommand(s,null,i)}s.d(t,{F(){return i}})},93676(e,t,s){"use strict";s.d(t,{g(){return a}});var i,n=s(31635),r=s(22664),o=s(43431),c=s(95473),u=s(81629);let a=i=class e extends o.h{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout((()=>{this.restart(),this.emit("pulse",!1),this._makeSound(u.Z)}),5e3),this.emit("pulse",!0))},this._progressTimeout=0,this._api=t,i._instances.add(this)}destruct(){this.stop(),i._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){this._isEnabled||(this._isEnabled=!0,i._instances.forEach((e=>{e!==this&&e.stop()})),this._api.start(),this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onResult))}stop(){if(this._isEnabled){try{this._api.abort(),this._api.stop()}catch{}this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onResult),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1)}}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResult(e){if(!this._isEnabled)return;this.async.clearTimeout(this._progressTimeout);const t=e.results.item(e.resultIndex),{transcript:s}=t.item(0),i=()=>{try{this.async.clearTimeout(this._restartTimeout),this.emit("result",s)}catch{}this.restart(),this.emit("pulse",!1),this._makeSound(u.N)};if(!1===t.isFinal)return this.emit("progress",s),void(this._progressTimeout=this.async.setTimeout(i,500));i()}_onError(){this._isEnabled&&(this._makeSound(u.Z),this.emit("pulse",!1),this.restart())}_makeSound(e){this.sound&&(0,c.s)({frequency:e})}};a._instances=new Set,a=i=(0,n.Cg)([r.autobind],a)},95473(e,t,s){"use strict";s.d(t,{s(){return n}});var i=s(81629);function n({sec:e=.1,frequency:t=i.N,gain:s=.1,type:n="sine"}={}){if(void 0===window.AudioContext&&void 0===window.webkitAudioContext)return;const r=new(window.AudioContext||window.webkitAudioContext),o=r.createGain(),c=r.createOscillator();c.type=n,c.frequency.value=t,c.connect(o),o.connect(r.destination),c.start(),c.stop(r.currentTime+e),o.gain.value=s}},25202(e,t,s){"use strict";s.r(t),s.d(t,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(41324)},37873(e,t,s){"use strict";s.r(t),s.d(t,{SpeechRecognizeNative(){return d}});var i=s(31635),n=s(37075),r=s(66927),o=s(55186),c=s(56298),u=s(84976),a=s(71005),h=(s(71096),s(46173)),p=s(50834),l=s(25202);class d extends a.k{constructor(e){super(e),this._commandToWord={},e.o.speechRecognize.api&&e.registerButton({group:"state",name:"speechRecognize"})}afterInit(e){const{commands:t}=e.o.speechRecognize;t&&((0,c.JW)(l),(0,u.HP)(t,!1).forEach((s=>{s.split("|").forEach((i=>{i=i.trim().toLowerCase(),this._commandToWord[i]=t[s];const n=e.i18n(i);n!==i&&n.split("|").forEach((e=>{this._commandToWord[e.trim().toLowerCase()]=t[s].trim()}))}))})))}beforeDestruct(e){}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.setTimeout((()=>{o.J.safeRemove(this.messagePopup)}),{label:"onSpeechRecognizeProgressResult",timeout:1e3}),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){const{j:t}=this,{s}=t;if(o.J.safeRemove(this.messagePopup),!this._checkCommand(e)){const{range:i}=s,n=s.current();if(s.isCollapsed()&&o.J.isText(n)&&o.J.isOrContains(t.editor,n)&&n.nodeValue){const r=n.nodeValue;n.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,i.setStartAfter(n),s.selectRange(i),t.synchronizeValues()}else s.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,p.F)(this.j,this._commandToWord[e]),!0)}}(0,i.Cg)([(0,r.wB)(":speechRecognizeProgressResult"),(0,n.s)()],d.prototype,"onSpeechRecognizeProgressResult",null),(0,i.Cg)([(0,r.wB)(":speechRecognizeResult")],d.prototype,"onSpeechRecognizeResult",null),h.x.plugins.add("speech-recognize",d)},22227(e){e.exports='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg>'}},e=>e(e.s=37873)])}));
|