jodit 3.20.2 → 3.20.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/build/jodit.css +2 -2
- package/build/jodit.es2018.css +1 -1
- package/build/jodit.es2018.en.css +1 -1
- package/build/jodit.es2018.en.js +14 -12
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +23 -12
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +21 -10
- package/build/jodit.min.css +1 -1
- package/build/jodit.min.js +1 -1
- package/build/plugins/debug/debug.es2018.en.js +1 -1
- package/build/plugins/debug/debug.es2018.js +1 -1
- package/build/plugins/debug/debug.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.en.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.en.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.js +1 -1
- package/build/vdom.css +1 -1
- package/build/vdom.js +1 -1
- package/package.json +28 -24
- package/src/README.md +2 -0
- package/src/core/async/README.md +2 -0
- package/src/core/component/README.md +2 -0
- package/src/core/create/README.md +2 -0
- package/src/core/decorators/cache/README.md +2 -0
- package/src/core/decorators/component/README.md +2 -0
- package/src/core/decorators/debounce/README.md +2 -0
- package/src/core/decorators/hook/README.md +2 -0
- package/src/core/decorators/idle/README.md +2 -0
- package/src/core/decorators/nonenumerable/README.md +2 -0
- package/src/core/decorators/persistent/README.md +2 -0
- package/src/core/decorators/wait/README.md +2 -0
- package/src/core/decorators/watch/README.md +2 -0
- package/src/core/dom/README.md +2 -0
- package/src/core/event-emitter/README.md +2 -0
- package/src/core/helpers/README.md +2 -0
- package/src/core/plugin/README.md +2 -0
- package/src/core/request/README.md +2 -0
- package/src/core/selection/README.md +2 -0
- package/src/core/storage/README.md +2 -0
- package/src/core/vdom/README.md +2 -0
- package/src/core/view/README.md +2 -0
- package/src/index.ts +7 -4
- package/src/jodit.ts +4 -2
- package/src/langs/index.ts +7 -4
- package/src/langs/keys.js +7 -0
- package/src/modules/README.md +1 -1
- package/src/modules/dialog/README.md +2 -0
- package/src/modules/file-browser/README.md +12 -4
- package/src/modules/file-browser/file-browser.test.screenshot.js +1 -1
- package/src/modules/image-editor/README.md +1 -1
- package/src/modules/image-editor/image-editor.test.screenshot.js +1 -1
- package/src/modules/uploader/README.md +2 -0
- package/src/plugins/color/color.test.screenshot.js +26 -0
- package/src/plugins/image-properties/image-properties.test.screenshot.js +27 -0
- package/src/plugins/limit/limit.test.js +27 -0
- package/src/plugins/limit/limit.ts +1 -1
- package/src/plugins/link/link.test.screenshot.js +26 -0
- package/src/plugins/search/search.test.screenshot.js +38 -0
- package/src/plugins/symbols/symbols.test.screenshot.js +25 -0
- package/src/styles/icons/README.md +2 -0
- package/src/types/file-browser.d.ts +15 -0
- package/tsconfig.json +3 -0
- package/types/config.d.ts +0 -506
- package/types/core/async/async.d.ts +0 -32
- package/types/core/async/index.d.ts +0 -3
- package/types/core/component/component.d.ts +0 -81
- package/types/core/component/index.d.ts +0 -3
- package/types/core/component/statuses.d.ts +0 -3
- package/types/core/component/view-component.d.ts +0 -13
- package/types/core/constants.d.ts +0 -60
- package/types/core/create/create.d.ts +0 -32
- package/types/core/create/index.d.ts +0 -3
- package/types/core/decorators/component/component.d.ts +0 -9
- package/types/core/decorators/debounce/debounce.d.ts +0 -8
- package/types/core/decorators/hook/hook.d.ts +0 -8
- package/types/core/decorators/idle/idle.d.ts +0 -5
- package/types/core/decorators/index.d.ts +0 -5
- package/types/core/decorators/nonenumerable/nonenumerable.d.ts +0 -5
- package/types/core/decorators/persistent/persistent.d.ts +0 -5
- package/types/core/decorators/wait/wait.d.ts +0 -5
- package/types/core/decorators/watch/watch.d.ts +0 -8
- package/types/core/dom/dom.d.ts +0 -171
- package/types/core/dom/index.d.ts +0 -3
- package/types/core/dom/lazy-walker.d.ts +0 -3
- package/types/core/event-emitter/event-emitter.d.ts +0 -99
- package/types/core/event-emitter/eventify.d.ts +0 -25
- package/types/core/event-emitter/index.d.ts +0 -3
- package/types/core/event-emitter/observable.d.ts +0 -38
- package/types/core/event-emitter/store.d.ts +0 -3
- package/types/core/global.d.ts +0 -12
- package/types/core/helpers/array/as-array.d.ts +0 -3
- package/types/core/helpers/array/index.d.ts +0 -3
- package/types/core/helpers/array/split-array.d.ts +0 -6
- package/types/core/helpers/array/to-array.d.ts +0 -4
- package/types/core/helpers/async/index.d.ts +0 -3
- package/types/core/helpers/async/set-timeout.d.ts +0 -9
- package/types/core/helpers/checker/has-browser-color-picker.d.ts +0 -6
- package/types/core/helpers/checker/index.d.ts +0 -3
- package/types/core/helpers/checker/is-array.d.ts +0 -6
- package/types/core/helpers/checker/is-boolean.d.ts +0 -3
- package/types/core/helpers/checker/is-equal.d.ts +0 -3
- package/types/core/helpers/checker/is-function.d.ts +0 -6
- package/types/core/helpers/checker/is-html-from-word.d.ts +0 -6
- package/types/core/helpers/checker/is-html.d.ts +0 -3
- package/types/core/helpers/checker/is-imp-interface.d.ts +0 -12
- package/types/core/helpers/checker/is-int.d.ts +0 -3
- package/types/core/helpers/checker/is-jodit-object.d.ts +0 -6
- package/types/core/helpers/checker/is-native-function.d.ts +0 -6
- package/types/core/helpers/checker/is-number.d.ts +0 -6
- package/types/core/helpers/checker/is-numeric.d.ts +0 -3
- package/types/core/helpers/checker/is-plain-object.d.ts +0 -6
- package/types/core/helpers/checker/is-promise.d.ts +0 -3
- package/types/core/helpers/checker/is-string.d.ts +0 -6
- package/types/core/helpers/checker/is-url.d.ts +0 -6
- package/types/core/helpers/checker/is-valid-name.d.ts +0 -6
- package/types/core/helpers/checker/is-view-object.d.ts +0 -6
- package/types/core/helpers/checker/is-void.d.ts +0 -6
- package/types/core/helpers/checker/is-window.d.ts +0 -3
- package/types/core/helpers/color/color-to-hex.d.ts +0 -16
- package/types/core/helpers/color/index.d.ts +0 -3
- package/types/core/helpers/html/apply-styles.d.ts +0 -5
- package/types/core/helpers/html/clean-from-word.d.ts +0 -4
- package/types/core/helpers/html/htmlspecialchars.d.ts +0 -6
- package/types/core/helpers/html/index.d.ts +0 -3
- package/types/core/helpers/html/nl2br.d.ts +0 -6
- package/types/core/helpers/html/safe-html.d.ts +0 -3
- package/types/core/helpers/html/strip-tags.d.ts +0 -3
- package/types/core/helpers/index.d.ts +0 -5
- package/types/core/helpers/normalize/index.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-color.d.ts +0 -6
- package/types/core/helpers/normalize/normalize-key-aliases.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-license.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-path.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-relative-path.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-size.d.ts +0 -6
- package/types/core/helpers/normalize/normalize-url.d.ts +0 -3
- package/types/core/helpers/size/get-content-width.d.ts +0 -3
- package/types/core/helpers/size/get-scroll-parent.d.ts +0 -3
- package/types/core/helpers/size/index.d.ts +0 -3
- package/types/core/helpers/size/inner-width.d.ts +0 -3
- package/types/core/helpers/size/offset.d.ts +0 -7
- package/types/core/helpers/size/position.d.ts +0 -3
- package/types/core/helpers/string/camel-case.d.ts +0 -6
- package/types/core/helpers/string/fuzzy-search-index.d.ts +0 -4
- package/types/core/helpers/string/i18n.d.ts +0 -31
- package/types/core/helpers/string/index.d.ts +0 -3
- package/types/core/helpers/string/kebab-case.d.ts +0 -3
- package/types/core/helpers/string/stringify.d.ts +0 -3
- package/types/core/helpers/string/trim.d.ts +0 -7
- package/types/core/helpers/string/ucfirst.d.ts +0 -6
- package/types/core/helpers/utils/align.d.ts +0 -12
- package/types/core/helpers/utils/append-script.d.ts +0 -12
- package/types/core/helpers/utils/assert.d.ts +0 -1
- package/types/core/helpers/utils/browser.d.ts +0 -14
- package/types/core/helpers/utils/build-query.d.ts +0 -6
- package/types/core/helpers/utils/complete-url.d.ts +0 -3
- package/types/core/helpers/utils/config-proto.d.ts +0 -33
- package/types/core/helpers/utils/convert-media-url-to-video-embed.d.ts +0 -3
- package/types/core/helpers/utils/css.d.ts +0 -6
- package/types/core/helpers/utils/ctrl-key.d.ts +0 -7
- package/types/core/helpers/utils/data-bind.d.ts +0 -3
- package/types/core/helpers/utils/default-language.d.ts +0 -3
- package/types/core/helpers/utils/error/error.d.ts +0 -3
- package/types/core/helpers/utils/error/errors/abort-error.d.ts +0 -3
- package/types/core/helpers/utils/error/errors/connection-error.d.ts +0 -3
- package/types/core/helpers/utils/error/errors/index.d.ts +0 -3
- package/types/core/helpers/utils/error/errors/options-error.d.ts +0 -3
- package/types/core/helpers/utils/error/index.d.ts +0 -3
- package/types/core/helpers/utils/get-class-name.d.ts +0 -3
- package/types/core/helpers/utils/get.d.ts +0 -22
- package/types/core/helpers/utils/human-size-to-bytes.d.ts +0 -7
- package/types/core/helpers/utils/index.d.ts +0 -3
- package/types/core/helpers/utils/mark-deprecated.d.ts +0 -10
- package/types/core/helpers/utils/parse-query.d.ts +0 -6
- package/types/core/helpers/utils/print.d.ts +0 -9
- package/types/core/helpers/utils/reset.d.ts +0 -10
- package/types/core/helpers/utils/scroll-into-view.d.ts +0 -3
- package/types/core/helpers/utils/selector.d.ts +0 -29
- package/types/core/helpers/utils/set.d.ts +0 -16
- package/types/core/helpers/utils/stack.d.ts +0 -3
- package/types/core/helpers/utils/utils.d.ts +0 -36
- package/types/core/helpers/utils/val.d.ts +0 -3
- package/types/core/plugin/index.d.ts +0 -3
- package/types/core/plugin/plugin-system.d.ts +0 -48
- package/types/core/plugin/plugin.d.ts +0 -10
- package/types/core/request/ajax.d.ts +0 -8
- package/types/core/request/config.d.ts +0 -6
- package/types/core/request/index.d.ts +0 -3
- package/types/core/request/response.d.ts +0 -3
- package/types/core/selection/helpers/index.d.ts +0 -3
- package/types/core/selection/helpers/move-node-inside-start.d.ts +0 -7
- package/types/core/selection/index.d.ts +0 -3
- package/types/core/selection/select.d.ts +0 -180
- package/types/core/selection/style/api/element-has-same-style.d.ts +0 -7
- package/types/core/selection/style/api/extract.d.ts +0 -16
- package/types/core/selection/style/api/finite-state-machine.d.ts +0 -3
- package/types/core/selection/style/api/get-suit-child.d.ts +0 -8
- package/types/core/selection/style/api/get-suit-parent.d.ts +0 -8
- package/types/core/selection/style/api/is-inside-invisible-element.d.ts +0 -4
- package/types/core/selection/style/api/is-normal-node.d.ts +0 -4
- package/types/core/selection/style/api/is-suit-element.d.ts +0 -24
- package/types/core/selection/style/api/toggle/toggle-css.d.ts +0 -4
- package/types/core/selection/style/api/toggle/toggle-ordered-list.d.ts +0 -4
- package/types/core/selection/style/api/toggle-commit-styles.d.ts +0 -5
- package/types/core/selection/style/api/unwrap-children.d.ts +0 -4
- package/types/core/selection/style/api/wrap-and-commit-style.d.ts +0 -4
- package/types/core/selection/style/api/wrap-ordered-list.d.ts +0 -5
- package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +0 -4
- package/types/core/selection/style/apply-style.d.ts +0 -3
- package/types/core/selection/style/commit-style.d.ts +0 -9
- package/types/core/storage/engines/local-storage-provider.d.ts +0 -9
- package/types/core/storage/engines/memory-storage-provider.d.ts +0 -3
- package/types/core/storage/index.d.ts +0 -3
- package/types/core/storage/storage.d.ts +0 -5
- package/types/core/traits/dlgs.d.ts +0 -3
- package/types/core/traits/elms.d.ts +0 -9
- package/types/core/traits/index.d.ts +0 -3
- package/types/core/traits/mods.d.ts +0 -11
- package/types/core/ui/button/button/button.d.ts +0 -32
- package/types/core/ui/button/group/group.d.ts +0 -6
- package/types/core/ui/button/index.d.ts +0 -5
- package/types/core/ui/button/tooltip/tooltip.d.ts +0 -8
- package/types/core/ui/element.d.ts +0 -27
- package/types/core/ui/form/block/block.d.ts +0 -4
- package/types/core/ui/form/form.d.ts +0 -7
- package/types/core/ui/form/index.d.ts +0 -3
- package/types/core/ui/form/inputs/area/area.d.ts +0 -7
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +0 -8
- package/types/core/ui/form/inputs/file/file.d.ts +0 -4
- package/types/core/ui/form/inputs/index.d.ts +0 -3
- package/types/core/ui/form/inputs/input/input.d.ts +0 -18
- package/types/core/ui/form/inputs/select/select.d.ts +0 -10
- package/types/core/ui/form/validators/index.d.ts +0 -3
- package/types/core/ui/form/validators/input.d.ts +0 -9
- package/types/core/ui/form/validators/select.d.ts +0 -6
- package/types/core/ui/group/group.d.ts +0 -32
- package/types/core/ui/group/index.d.ts +0 -3
- package/types/core/ui/group/list.d.ts +0 -16
- package/types/core/ui/group/separator.d.ts +0 -3
- package/types/core/ui/group/spacer.d.ts +0 -3
- package/types/core/ui/helpers/buttons.d.ts +0 -3
- package/types/core/ui/helpers/get-control-type.d.ts +0 -6
- package/types/core/ui/helpers/get-strong-control-types.d.ts +0 -3
- package/types/core/ui/icon.d.ts +0 -15
- package/types/core/ui/index.d.ts +0 -5
- package/types/core/ui/popup/index.d.ts +0 -3
- package/types/core/ui/popup/popup.d.ts +0 -35
- package/types/core/ui/progress-bar/progress-bar.d.ts +0 -10
- package/types/core/vdom/helpers/index.d.ts +9 -0
- package/types/core/vdom/index.d.ts +8 -0
- package/types/core/vdom/interface.d.ts +48 -0
- package/types/core/vdom/render/index.d.ts +23 -0
- package/types/core/vdom/v-dom-jodit.d.ts +15 -0
- package/types/core/view/view-with-toolbar.d.ts +0 -22
- package/types/core/view/view.d.ts +0 -64
- package/types/index.d.ts +1 -6
- package/types/jodit.d.ts +5 -257
- package/types/langs/index.d.ts +0 -5
- package/types/modules/context-menu/context-menu.d.ts +0 -20
- package/types/modules/dialog/alert.d.ts +0 -17
- package/types/modules/dialog/confirm.d.ts +0 -17
- package/types/modules/dialog/dialog.d.ts +0 -115
- package/types/modules/dialog/index.d.ts +0 -5
- package/types/modules/dialog/prompt.d.ts +0 -20
- package/types/modules/file-browser/builders/context-menu.d.ts +0 -3
- package/types/modules/file-browser/builders/elements-map.d.ts +0 -6
- package/types/modules/file-browser/builders/item.d.ts +0 -3
- package/types/modules/file-browser/data-provider.d.ts +0 -69
- package/types/modules/file-browser/factories.d.ts +0 -3
- package/types/modules/file-browser/fetch/delete-file.d.ts +0 -6
- package/types/modules/file-browser/fetch/load-items.d.ts +0 -6
- package/types/modules/file-browser/fetch/load-tree.d.ts +0 -6
- package/types/modules/file-browser/file-browser.d.ts +0 -36
- package/types/modules/file-browser/index.d.ts +0 -5
- package/types/modules/file-browser/listeners/native-listeners.d.ts +0 -3
- package/types/modules/file-browser/listeners/self-listeners.d.ts +0 -3
- package/types/modules/file-browser/listeners/state-listeners.d.ts +0 -6
- package/types/modules/file-browser/ui/index.d.ts +0 -3
- package/types/modules/history/command.d.ts +0 -3
- package/types/modules/history/history.d.ts +0 -30
- package/types/modules/history/snapshot.d.ts +0 -40
- package/types/modules/history/stack.d.ts +0 -3
- package/types/modules/image-editor/image-editor.d.ts +1 -54
- package/types/modules/image-editor/templates/form.d.ts +0 -3
- package/types/modules/index.d.ts +0 -5
- package/types/modules/status-bar/status-bar.d.ts +0 -20
- package/types/modules/table/table.d.ts +0 -57
- package/types/modules/toolbar/button/button.d.ts +1 -41
- package/types/modules/toolbar/button/content.d.ts +0 -6
- package/types/modules/toolbar/button/index.d.ts +0 -3
- package/types/modules/toolbar/collection/collection.d.ts +0 -23
- package/types/modules/toolbar/collection/editor-collection.d.ts +0 -19
- package/types/modules/toolbar/factory.d.ts +0 -11
- package/types/modules/uploader/config.d.ts +0 -6
- package/types/modules/uploader/helpers/build-data.d.ts +0 -3
- package/types/modules/uploader/helpers/data-uri-to-blob.d.ts +0 -6
- package/types/modules/uploader/helpers/index.d.ts +0 -3
- package/types/modules/uploader/helpers/process-old-browser-drag.d.ts +0 -3
- package/types/modules/uploader/helpers/send-files.d.ts +0 -6
- package/types/modules/uploader/helpers/send.d.ts +0 -3
- package/types/modules/uploader/uploader.d.ts +0 -35
- package/types/modules/widget/color-picker/color-picker.d.ts +0 -22
- package/types/modules/widget/file-selector/file-selector.d.ts +0 -41
- package/types/modules/widget/index.d.ts +0 -5
- package/types/modules/widget/tabs/tabs.d.ts +0 -22
- package/types/plugins/about/about.d.ts +0 -5
- package/types/plugins/add-new-line/add-new-line.d.ts +0 -9
- package/types/plugins/add-new-line/config.d.ts +0 -22
- package/types/plugins/backspace/backspace.d.ts +0 -14
- package/types/plugins/backspace/cases/check-join-neighbors.d.ts +0 -6
- package/types/plugins/backspace/cases/check-join-two-lists.d.ts +0 -16
- package/types/plugins/backspace/cases/check-not-collapsed.d.ts +0 -16
- package/types/plugins/backspace/cases/check-remove-char.d.ts +0 -16
- package/types/plugins/backspace/cases/check-remove-content-not-editable.d.ts +0 -7
- package/types/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +0 -16
- package/types/plugins/backspace/cases/check-remove-empty-parent.d.ts +0 -17
- package/types/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +0 -17
- package/types/plugins/backspace/cases/check-table-cell.d.ts +0 -17
- package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +0 -17
- package/types/plugins/backspace/cases/index.d.ts +1 -1
- package/types/plugins/backspace/helpers.d.ts +0 -7
- package/types/plugins/bold/bold.d.ts +0 -8
- package/types/plugins/class-span/class-span.d.ts +0 -27
- package/types/plugins/clean-html/clean-html.d.ts +0 -17
- package/types/plugins/clean-html/config.d.ts +0 -73
- package/types/plugins/clean-html/helpers/get-hash.d.ts +0 -6
- package/types/plugins/clean-html/helpers/index.d.ts +0 -3
- package/types/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +0 -10
- package/types/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +0 -7
- package/types/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +0 -6
- package/types/plugins/clipboard/clipboard.d.ts +0 -10
- package/types/plugins/color/color.d.ts +0 -8
- package/types/plugins/copy-format/copy-format.d.ts +0 -5
- package/types/plugins/copy-format/langs/index.d.ts +25 -0
- package/types/plugins/debug/debug.d.ts +11 -0
- package/types/plugins/drag-and-drop/drag-and-drop.d.ts +0 -5
- package/types/plugins/drag-and-drop-element/config.d.ts +0 -3
- package/types/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +0 -26
- package/types/plugins/dtd/after-insert/index.d.ts +0 -4
- package/types/plugins/dtd/after-insert/remove-extra-br.d.ts +0 -9
- package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +0 -9
- package/types/plugins/dtd/before-insert/index.d.ts +0 -4
- package/types/plugins/dtd/config.d.ts +0 -12
- package/types/plugins/enter/enter.d.ts +0 -11
- package/types/plugins/enter/helpers/check-br.d.ts +0 -7
- package/types/plugins/enter/helpers/check-unsplittable-box.d.ts +0 -7
- package/types/plugins/enter/helpers/get-block-wrapper.d.ts +0 -7
- package/types/plugins/enter/helpers/has-previous-block.d.ts +0 -6
- package/types/plugins/enter/helpers/index.d.ts +0 -3
- package/types/plugins/enter/helpers/insert-paragraph.d.ts +0 -7
- package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +0 -6
- package/types/plugins/enter/helpers/process-empty-li-leaf.d.ts +0 -7
- package/types/plugins/enter/helpers/split-fragment.d.ts +0 -8
- package/types/plugins/enter/helpers/wrap-text.d.ts +0 -8
- package/types/plugins/error-messages/error-messages.d.ts +0 -14
- package/types/plugins/file/file.d.ts +0 -5
- package/types/plugins/focus/focus.d.ts +0 -5
- package/types/plugins/font/font.d.ts +0 -8
- package/types/plugins/format-block/format-block.d.ts +0 -8
- package/types/plugins/fullsize/config.d.ts +0 -22
- package/types/plugins/fullsize/fullsize.d.ts +0 -8
- package/types/plugins/hotkeys/config.d.ts +0 -3
- package/types/plugins/hotkeys/hotkeys.d.ts +0 -10
- package/types/plugins/hr/hr.d.ts +0 -5
- package/types/plugins/iframe/config.d.ts +0 -49
- package/types/plugins/iframe/iframe.d.ts +0 -9
- package/types/plugins/image/image.d.ts +0 -5
- package/types/plugins/image-processor/config.d.ts +0 -3
- package/types/plugins/image-processor/image-processor.d.ts +0 -8
- package/types/plugins/image-properties/config.d.ts +0 -42
- package/types/plugins/image-properties/image-properties.d.ts +0 -42
- package/types/plugins/image-properties/templates/form.d.ts +0 -3
- package/types/plugins/image-properties/templates/main-tab.d.ts +0 -3
- package/types/plugins/image-properties/templates/position-tab.d.ts +0 -3
- package/types/plugins/indent/config.d.ts +0 -3
- package/types/plugins/indent/helpers.d.ts +0 -4
- package/types/plugins/indent/indent.d.ts +0 -8
- package/types/plugins/index.d.ts +0 -5
- package/types/plugins/inline-popup/config/config.d.ts +0 -3
- package/types/plugins/inline-popup/config/items/a.d.ts +8 -0
- package/types/plugins/inline-popup/config/items/cells.d.ts +8 -0
- package/types/plugins/inline-popup/config/items/iframe.d.ts +8 -0
- package/types/plugins/inline-popup/config/items/img.d.ts +9 -0
- package/types/plugins/inline-popup/config/items/toolbar.d.ts +7 -0
- package/types/plugins/inline-popup/inline-popup.d.ts +0 -36
- package/types/plugins/justify/justify.d.ts +0 -8
- package/types/plugins/key-arrow-outside/key-arrow-outside.d.ts +0 -8
- package/types/plugins/limit/config.d.ts +0 -9
- package/types/plugins/limit/limit.d.ts +0 -22
- package/types/plugins/line-height/config.d.ts +0 -9
- package/types/plugins/line-height/langs/index.d.ts +25 -0
- package/types/plugins/line-height/line-height.d.ts +0 -5
- package/types/plugins/link/config.d.ts +0 -33
- package/types/plugins/link/link.d.ts +0 -11
- package/types/plugins/link/template.d.ts +0 -3
- package/types/plugins/media/config.d.ts +0 -9
- package/types/plugins/media/media.d.ts +0 -8
- package/types/plugins/mobile/config.d.ts +0 -6
- package/types/plugins/mobile/mobile.d.ts +0 -8
- package/types/plugins/ordered-list/ordered-list.d.ts +0 -8
- package/types/plugins/paste/config.d.ts +0 -19
- package/types/plugins/paste/helpers.d.ts +0 -12
- package/types/plugins/paste/interface.d.ts +0 -3
- package/types/plugins/paste/paste.d.ts +0 -31
- package/types/plugins/paste-from-word/config.d.ts +0 -21
- package/types/plugins/paste-from-word/paste-from-word.d.ts +0 -11
- package/types/plugins/paste-storage/paste-storage.d.ts +0 -8
- package/types/plugins/placeholder/config.d.ts +0 -31
- package/types/plugins/placeholder/placeholder.d.ts +0 -11
- package/types/plugins/powered-by-jodit/powered-by-jodit.d.ts +0 -8
- package/types/plugins/preview/preview.d.ts +0 -5
- package/types/plugins/print/lib/generate-critical-css.d.ts +0 -6
- package/types/plugins/print/print.d.ts +0 -5
- package/types/plugins/redo-undo/redo-undo.d.ts +0 -9
- package/types/plugins/resize-cells/resize-cells.d.ts +0 -42
- package/types/plugins/resize-handler/resize-handler.d.ts +0 -26
- package/types/plugins/resizer/config.d.ts +0 -31
- package/types/plugins/resizer/resizer.d.ts +0 -22
- package/types/plugins/search/config.d.ts +0 -21
- package/types/plugins/search/helpers/index.d.ts +0 -3
- package/types/plugins/search/helpers/sentence-finder.d.ts +0 -3
- package/types/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.d.ts +0 -3
- package/types/plugins/search/search.d.ts +0 -22
- package/types/plugins/search/ui/search.d.ts +0 -6
- package/types/plugins/select/config.d.ts +0 -8
- package/types/plugins/select/select.d.ts +0 -19
- package/types/plugins/select-cells/select-cells.d.ts +0 -34
- package/types/plugins/size/size.d.ts +0 -27
- package/types/plugins/source/config.d.ts +0 -25
- package/types/plugins/source/editor/engines/ace.d.ts +0 -6
- package/types/plugins/source/editor/engines/area.d.ts +0 -3
- package/types/plugins/source/editor/engines/index.d.ts +0 -3
- package/types/plugins/source/editor/factory.d.ts +0 -3
- package/types/plugins/source/editor/sourceEditor.d.ts +0 -6
- package/types/plugins/source/source.d.ts +0 -17
- package/types/plugins/speech-recognize/config.d.ts +19 -0
- package/types/plugins/speech-recognize/constants.d.ts +7 -0
- package/types/plugins/speech-recognize/helpers/api.d.ts +7 -0
- package/types/plugins/speech-recognize/helpers/exec-spell-command.d.ts +7 -0
- package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +45 -0
- package/types/plugins/speech-recognize/helpers/sound.d.ts +11 -0
- package/types/plugins/speech-recognize/interface.d.ts +30 -0
- package/types/plugins/speech-recognize/langs/index.d.ts +25 -0
- package/types/plugins/speech-recognize/speech-recognize.d.ts +19 -0
- package/types/plugins/spellcheck/config.d.ts +0 -4
- package/types/plugins/spellcheck/langs/index.d.ts +25 -0
- package/types/plugins/spellcheck/spellcheck.d.ts +0 -5
- package/types/plugins/stat/stat.d.ts +0 -5
- package/types/plugins/sticky/config.d.ts +0 -19
- package/types/plugins/sticky/sticky.d.ts +0 -18
- package/types/plugins/symbols/langs/index.d.ts +25 -0
- package/types/plugins/symbols/symbols.d.ts +0 -11
- package/types/plugins/tab/cases/index.d.ts +0 -3
- package/types/plugins/tab/cases/on-tab-inside-li.d.ts +0 -8
- package/types/plugins/tab/config.d.ts +0 -3
- package/types/plugins/table/table.d.ts +0 -5
- package/types/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +0 -8
- package/types/plugins/wrap-nodes/config.d.ts +0 -3
- package/types/plugins/xpath/xpath.d.ts +0 -5
- package/types/polyfills.d.ts +10 -0
- package/types/styles/icons/index.d.ts +0 -5
- package/types/types/core.d.ts +0 -3
- package/types/types/file-browser.d.ts +15 -0
- package/types/types/jodit.d.ts +1 -1
- package/types/types/storage.d.ts +0 -3
- package/types/types/traits.d.ts +2 -2
- package/types/types/types.d.ts +2 -2
- package/types/types/uploader.d.ts +1 -1
- package/src/modules/file-browser/__image_snapshots__/file-browser-test-screenshot-js-filebrowser-screenshot-testing-open-filebrowser-works-1-snap.png +0 -0
- package/src/modules/image-editor/__image_snapshots__/image-editor-test-screenshot-js-image-editor-screenshot-testing-open-image-editor-works-1-snap.png +0 -0
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module dom
|
|
8
|
-
*/
|
|
9
6
|
import type { IAsync, IDestructible } from 'jodit/types';
|
|
10
7
|
import { Eventify } from 'jodit/core/event-emitter/eventify';
|
|
11
8
|
export declare class LazyWalker extends Eventify<{
|
|
@@ -3,15 +3,7 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* [[include:core/event-emitter/README.md]]
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
* @module event-emitter
|
|
10
|
-
*/
|
|
11
6
|
import type { CallbackFunction, CanArray, IEventEmitter, IEventEmitterOnOptions } from 'jodit/types';
|
|
12
|
-
/**
|
|
13
|
-
* The module editor's event manager
|
|
14
|
-
*/
|
|
15
7
|
export declare class EventEmitter implements IEventEmitter {
|
|
16
8
|
private __mutedEvents;
|
|
17
9
|
mute(event?: string): this;
|
|
@@ -24,109 +16,18 @@ export declare class EventEmitter implements IEventEmitter {
|
|
|
24
16
|
private __removeStoreFromSubject;
|
|
25
17
|
private __prepareEvent;
|
|
26
18
|
private __triggerNativeEvent;
|
|
27
|
-
/**
|
|
28
|
-
* Get current event name
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```javascript
|
|
32
|
-
* parent.e.on('openDialog closeDialog', function () {
|
|
33
|
-
* if (parent.e.current === 'closeDialog') {
|
|
34
|
-
* alert('Dialog was closed');
|
|
35
|
-
* } else {
|
|
36
|
-
* alert('Dialog was opened');
|
|
37
|
-
* }
|
|
38
|
-
* });
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
19
|
get current(): string;
|
|
42
20
|
currents: string[];
|
|
43
|
-
/**
|
|
44
|
-
* Sets the handler for the specified event ( Event List ) for a given element
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```javascript
|
|
48
|
-
* // set global handler
|
|
49
|
-
* editor.events.on('beforeCommand', function (command) {
|
|
50
|
-
* alert('command');
|
|
51
|
-
* });
|
|
52
|
-
* ```
|
|
53
|
-
* * @example
|
|
54
|
-
* ```javascript
|
|
55
|
-
* // set global handler
|
|
56
|
-
* editor.events.on(document.body, 'click', function (e) {
|
|
57
|
-
* alert(this.href);
|
|
58
|
-
* });
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
21
|
on(events: CanArray<string>, callback: CallbackFunction, options?: IEventEmitterOnOptions): this;
|
|
62
22
|
on(subjects: CanArray<HTMLElement | Window | object>, events: CanArray<string>, callback: CallbackFunction, options?: IEventEmitterOnOptions): this;
|
|
63
23
|
one(eventsOrSubjects: CanArray<string> | CanArray<HTMLElement | Window | object>, callbackOrEvents: CallbackFunction | CanArray<string>, optionsOrCallback: IEventEmitterOnOptions | CallbackFunction | void, opts?: IEventEmitterOnOptions): this;
|
|
64
|
-
/**
|
|
65
|
-
* Disable all handlers specified event ( Event List ) for a given element. Either a specific event handler.
|
|
66
|
-
*
|
|
67
|
-
* @param subjectOrEvents - The object which is disabled handlers
|
|
68
|
-
* @param eventsOrCallback - List of events, separated by a space or comma , which is necessary
|
|
69
|
-
* to disable the handlers for a given object
|
|
70
|
-
* @param handler - Specific event handler to be removed
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```javascript
|
|
74
|
-
* var a = {name: "Anton"};
|
|
75
|
-
* parent.e.on(a, 'open', function () {
|
|
76
|
-
* alert(this.name);
|
|
77
|
-
* });
|
|
78
|
-
*
|
|
79
|
-
* parent.e.fire(a, 'open');
|
|
80
|
-
* parent.e.off(a, 'open');
|
|
81
|
-
* var b = {name: "Ivan"}, hndlr = function () {
|
|
82
|
-
* alert(this.name);
|
|
83
|
-
* };
|
|
84
|
-
* parent.e.on(b, 'open close', hndlr);
|
|
85
|
-
* parent.e.fire(a, 'open');
|
|
86
|
-
* parent.e.off(a, 'open', hndlr);
|
|
87
|
-
* parent.e.fire(a, 'close');
|
|
88
|
-
* parent.e.on('someGlobalEvents', function () {
|
|
89
|
-
* console.log(this); // parent
|
|
90
|
-
* });
|
|
91
|
-
* parent.e.fire('someGlobalEvents');
|
|
92
|
-
* parent.e.off('someGlobalEvents');
|
|
93
|
-
* ```
|
|
94
|
-
*/
|
|
95
24
|
off(events: CanArray<string>, callback?: CallbackFunction): this;
|
|
96
25
|
off(subjects: CanArray<Window | HTMLElement | object>, events?: CanArray<string>, callback?: CallbackFunction): this;
|
|
97
|
-
/**
|
|
98
|
-
* Stop execute all another listeners for this event
|
|
99
|
-
*/
|
|
100
26
|
stopPropagation(events: string): void;
|
|
101
27
|
stopPropagation(subject: object, eventsList: string): void;
|
|
102
28
|
private __stopped;
|
|
103
29
|
private __removeStop;
|
|
104
30
|
private __isStopped;
|
|
105
|
-
/**
|
|
106
|
-
* Emits an event to all handlers and calls them
|
|
107
|
-
*
|
|
108
|
-
* @param subjectOrEvents - The object which is caused by certain events
|
|
109
|
-
* @param eventsList - List of events , separated by a space or comma
|
|
110
|
-
* @param args - Options for the event handler
|
|
111
|
-
* @returns `false` if one of the handlers return `false`
|
|
112
|
-
* @example
|
|
113
|
-
* ```javascript
|
|
114
|
-
* var dialog = new Jodit.modules.Dialog();
|
|
115
|
-
* parent.e.on('afterClose', function () {
|
|
116
|
-
* dialog.destruct(); // will be removed from DOM
|
|
117
|
-
* });
|
|
118
|
-
* dialog.open('Hello world!!!');
|
|
119
|
-
* ```
|
|
120
|
-
* or you can trigger native browser listener
|
|
121
|
-
* ```javascript
|
|
122
|
-
* var events = new Jodit.modules.EventEmitter();
|
|
123
|
-
* events.on(document.body, 'click',function (event) {
|
|
124
|
-
* alert('click on ' + event.target.id );
|
|
125
|
-
* });
|
|
126
|
-
* events.fire(document.body.querySelector('div'), 'click');
|
|
127
|
-
* ```
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
31
|
fire(subjectOrEvents: string, ...args: any[]): any;
|
|
131
32
|
fire(subjectOrEvents: object, eventsList: string | Event, ...args: any[]): any;
|
|
132
33
|
private __isDestructed;
|
|
@@ -3,32 +3,7 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module event-emitter
|
|
8
|
-
*/
|
|
9
6
|
import type { CanUndef, IDestructible } from 'jodit/types';
|
|
10
|
-
/**
|
|
11
|
-
* Class for adding event handling capability
|
|
12
|
-
*
|
|
13
|
-
* ```ts
|
|
14
|
-
* class SomeClass extends Eventify<{ start: (node: Node) => boolean; }> {
|
|
15
|
-
* constructor() {
|
|
16
|
-
* super();
|
|
17
|
-
* setTimeout(() => {
|
|
18
|
-
* if (this.emit('start', document.body)) {
|
|
19
|
-
* console.log('yes');
|
|
20
|
-
* };
|
|
21
|
-
* }, 100);
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
*
|
|
25
|
-
* const sm = new SomeClass();
|
|
26
|
-
* sm.on('start', (node) => {
|
|
27
|
-
* console.log(node);
|
|
28
|
-
* return true;
|
|
29
|
-
* })
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
7
|
export declare abstract class Eventify<MAP extends {
|
|
33
8
|
[key: string]: (...args: any[]) => any;
|
|
34
9
|
}, EVENT extends keyof MAP = keyof MAP> implements IDestructible {
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module event-emitter
|
|
8
|
-
*/
|
|
9
6
|
export * from './event-emitter';
|
|
10
7
|
export * from './eventify';
|
|
11
8
|
export * from './observable';
|
|
@@ -3,43 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module event-emitter
|
|
8
|
-
*/
|
|
9
6
|
import type { IObservable, IDictionary } from 'jodit/types';
|
|
10
|
-
/**
|
|
11
|
-
* Makes any object an observable object
|
|
12
|
-
* @example
|
|
13
|
-
* ```js
|
|
14
|
-
* const obj = {
|
|
15
|
-
* a: 1,
|
|
16
|
-
* b: {
|
|
17
|
-
* c: 5
|
|
18
|
-
* }
|
|
19
|
-
* }
|
|
20
|
-
*
|
|
21
|
-
* const obsObj = Jodit.modules.observable(obj);
|
|
22
|
-
* console.log(obj === obsObj); // true
|
|
23
|
-
* obsObj.on('change', () => {
|
|
24
|
-
* console.log('Object changed');
|
|
25
|
-
* });
|
|
26
|
-
* obsObj.on('change.a', () => {
|
|
27
|
-
* console.log('Key a changed');
|
|
28
|
-
* });
|
|
29
|
-
* obsObj.on('change.b.c', () => {
|
|
30
|
-
* console.log('Key b.c changed');
|
|
31
|
-
* });
|
|
32
|
-
*
|
|
33
|
-
* obj.a = 6;
|
|
34
|
-
* // Object changed
|
|
35
|
-
* // Key a changed
|
|
36
|
-
*
|
|
37
|
-
* obj.b = {c: 6}
|
|
38
|
-
* // Object changed
|
|
39
|
-
*
|
|
40
|
-
* obj.b.c = 8
|
|
41
|
-
* // Object changed
|
|
42
|
-
* // Key b.c changed
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
7
|
export declare function observable<T extends IDictionary, O extends T & IObservable>(obj: T): O;
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module event-emitter
|
|
8
|
-
*/
|
|
9
6
|
import type { CallbackFunction, EventHandlerBlock } from 'jodit/types';
|
|
10
7
|
export declare const defaultNameSpace = "JoditEventDefaultNamespace";
|
|
11
8
|
export declare class EventHandlersStore {
|
package/types/core/global.d.ts
CHANGED
|
@@ -3,25 +3,13 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module global
|
|
8
|
-
*/
|
|
9
6
|
import type { HTMLTagNames, IDictionary, IJodit, IViewBased, IViewComponent } from 'jodit/types';
|
|
10
7
|
import { PluginSystem } from './plugin/plugin-system';
|
|
11
8
|
import { EventEmitter } from './event-emitter';
|
|
12
9
|
export declare const instances: IDictionary<IJodit>;
|
|
13
|
-
/**
|
|
14
|
-
* Generate global unique uid
|
|
15
|
-
*/
|
|
16
10
|
export declare function uniqueUid(): string;
|
|
17
11
|
export declare const pluginSystem: PluginSystem;
|
|
18
12
|
export declare const modules: IDictionary<Function>;
|
|
19
13
|
export declare const extendLang: (langs: IDictionary) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Create unique box(HTMLCotainer) and remove it after destroy
|
|
22
|
-
*/
|
|
23
14
|
export declare function getContainer<T extends HTMLTagNames = HTMLTagNames>(jodit: IViewBased | IViewComponent, classFunc?: Function, tag?: T, createInsideEditor?: boolean): HTMLElementTagNameMap[T];
|
|
24
|
-
/**
|
|
25
|
-
* Global event emitter
|
|
26
|
-
*/
|
|
27
15
|
export declare const eventEmitter: EventEmitter;
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/array
|
|
8
|
-
*/
|
|
9
6
|
export { asArray } from './as-array';
|
|
10
7
|
export { splitArray } from './split-array';
|
|
11
8
|
export { toArray } from './to-array';
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/array
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Split separated elements
|
|
11
|
-
*/
|
|
12
6
|
export declare function splitArray(a: string): string[];
|
|
13
7
|
export declare function splitArray<T extends any[]>(a: T): T;
|
|
14
8
|
export declare function splitArray<T extends any[]>(a: T | string): T | string[];
|
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Always return Array. In some cases(Joomla Mootools)
|
|
8
|
-
* Array.from can be replaced to some bad implementation.
|
|
9
|
-
*/
|
|
10
6
|
export declare const toArray: {
|
|
11
7
|
<T>(arrayLike: ArrayLike<T>): T[];
|
|
12
8
|
<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
@@ -3,14 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/async
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Create async callback if set timeout value - else call function immediately
|
|
11
|
-
*/
|
|
12
6
|
export declare function setTimeout<T = any>(callback: (...args: T[]) => void, timeout: number, ...args: T[]): number;
|
|
13
|
-
/**
|
|
14
|
-
* Clear timeout
|
|
15
|
-
*/
|
|
16
7
|
export declare function clearTimeout(timer: number): void;
|
|
@@ -3,10 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Check if browser has a color picker (a new HTML5 attribute for input tag)
|
|
11
|
-
*/
|
|
12
6
|
export declare function hasBrowserColorPicker(): boolean;
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
6
|
export * from './has-browser-color-picker';
|
|
10
7
|
export * from './is-array';
|
|
11
8
|
export * from './is-boolean';
|
|
@@ -3,10 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Check if element is array
|
|
11
|
-
*/
|
|
12
6
|
export declare function isArray<T = any>(elm: unknown): elm is T[];
|
|
@@ -3,7 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
6
|
export declare function isBoolean(elm: unknown): elm is Boolean;
|
|
@@ -3,8 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Check two element are equal
|
|
8
|
-
*/
|
|
9
6
|
export declare function isEqual(a: unknown, b: unknown): boolean;
|
|
10
7
|
export declare function isFastEqual(a: unknown, b: unknown): boolean;
|
|
@@ -3,10 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Check value is Function
|
|
11
|
-
*/
|
|
12
6
|
export declare function isFunction(value: unknown): value is Function;
|
|
@@ -3,10 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Detect if string is HTML from MS Word or Excel
|
|
11
|
-
*/
|
|
12
6
|
export declare function isHtmlFromWord(data: string): boolean;
|
|
@@ -3,7 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Check if a string is html or not
|
|
8
|
-
*/
|
|
9
6
|
export declare const isHTML: (str: unknown) => str is string;
|
|
@@ -3,19 +3,7 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
6
|
import type { IContainer, IDestructible, IInitable } from 'jodit/types';
|
|
10
|
-
/**
|
|
11
|
-
* Check value has method init
|
|
12
|
-
*/
|
|
13
7
|
export declare function isInitable(value: unknown): value is IInitable;
|
|
14
|
-
/**
|
|
15
|
-
* Check value has method destruct
|
|
16
|
-
*/
|
|
17
8
|
export declare function isDestructable(value: unknown): value is IDestructible;
|
|
18
|
-
/**
|
|
19
|
-
* Check value is instant that implements IContainer
|
|
20
|
-
*/
|
|
21
9
|
export declare function hasContainer(value: unknown): value is IContainer;
|
|
@@ -3,7 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Check value is Int
|
|
8
|
-
*/
|
|
9
6
|
export declare function isInt(value: number | string): boolean;
|
|
@@ -3,11 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
6
|
import type { IJodit } from 'jodit/types';
|
|
10
|
-
/**
|
|
11
|
-
* Check if element is instance of Jodit
|
|
12
|
-
*/
|
|
13
7
|
export declare function isJoditObject(jodit: unknown): jodit is IJodit;
|
|
@@ -3,10 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Check if function or method was not replaced on some custom implementation
|
|
11
|
-
*/
|
|
12
6
|
export declare function isNativeFunction(f: Function): boolean;
|
|
@@ -3,10 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Check value is a number
|
|
11
|
-
*/
|
|
12
6
|
export declare function isNumber(value: unknown): value is number;
|
|
@@ -3,7 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Check value has numeric format
|
|
8
|
-
*/
|
|
9
6
|
export declare function isNumeric(value: number | string): boolean;
|
|
@@ -3,11 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
6
|
import type { IDictionary } from 'jodit/types';
|
|
10
|
-
/**
|
|
11
|
-
* Check if element is simple plaint object
|
|
12
|
-
*/
|
|
13
7
|
export declare function isPlainObject<T>(obj: any | IDictionary<T>): obj is IDictionary<T>;
|
|
@@ -3,7 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
6
|
export declare function isPromise(val: any | Promise<any>): val is Promise<any>;
|
|
@@ -3,11 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Check value is String
|
|
8
|
-
*/
|
|
9
6
|
export declare function isString(value: unknown): value is string;
|
|
10
|
-
/**
|
|
11
|
-
* Check value is Array of String
|
|
12
|
-
*/
|
|
13
7
|
export declare function isStringArray(value: unknown): value is string[];
|
|
@@ -3,10 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Check if a string is a url
|
|
11
|
-
*/
|
|
12
6
|
export declare function isURL(str: string): boolean;
|
|
@@ -3,10 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Check if name has normal format
|
|
11
|
-
*/
|
|
12
6
|
export declare function isValidName(name: string): boolean;
|
|
@@ -3,11 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
6
|
import type { IViewBased } from 'jodit/types';
|
|
10
|
-
/**
|
|
11
|
-
* Check if element is instance of View
|
|
12
|
-
*/
|
|
13
7
|
export declare function isViewObject(jodit: unknown): jodit is IViewBased;
|
|
@@ -3,10 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Check value is undefined or null
|
|
11
|
-
*/
|
|
12
6
|
export declare function isVoid(value: unknown): value is undefined | null;
|
|
@@ -3,7 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/checker
|
|
8
|
-
*/
|
|
9
6
|
export declare function isWindow(obj: object): boolean;
|
|
@@ -3,20 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/color
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Converts rgba text representation of color in hex
|
|
11
|
-
*
|
|
12
|
-
* @param color - string like rgba(red, green, blue, alpha) or rgb(red, green, blue)
|
|
13
|
-
* @returns hex color view, NaN - for transparent color
|
|
14
|
-
* @example
|
|
15
|
-
* ```javascript
|
|
16
|
-
* var p = document.createElement('p');
|
|
17
|
-
* p.style.color = '#ffffff';
|
|
18
|
-
* console.log(p.getAttribute('style')); // color: rgb(255, 255, 255);
|
|
19
|
-
* console.log(colorTohex(p.style.color)); // #ffffff
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
6
|
export declare const colorToHex: (color: string) => string | false;
|
|
@@ -3,9 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* If the HTML has CSS rules with selectors,
|
|
8
|
-
* it applies them to the selectors in the HTML itself
|
|
9
|
-
* and then removes the selector styles, leaving only the inline ones.
|
|
10
|
-
*/
|
|
11
6
|
export declare function applyStyles(html: string): string;
|
|
@@ -3,8 +3,4 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
8
|
-
* content that matches the look and feel of the site.
|
|
9
|
-
*/
|
|
10
6
|
export declare function cleanFromWord(html: string): string;
|