@ones-editor/editor 0.0.3-beta.17 → 0.0.3-beta.170
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/@ones-editor/auto-link/package.json +8 -0
- package/@ones-editor/auto-link/src/index.d.ts +3 -0
- package/@ones-editor/block-locker/src/hook.d.ts +1 -0
- package/@ones-editor/block-locker/src/i18n/en-US.d.ts +8 -0
- package/@ones-editor/block-locker/src/i18n/index.d.ts +1 -0
- package/@ones-editor/block-locker/src/i18n/ja-JP.d.ts +8 -0
- package/@ones-editor/block-locker/src/i18n/zh-CN.d.ts +8 -0
- package/@ones-editor/block-locker/src/index.d.ts +4 -1
- package/@ones-editor/block-locker/src/paste-handler.d.ts +4 -0
- package/@ones-editor/block-menu/src/block-menu/index.d.ts +2 -1
- package/@ones-editor/block-menu/src/block-menu/items/block-command-items.d.ts +1 -1
- package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +3 -2
- package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +1 -0
- package/@ones-editor/block-menu/src/block-menu-button/drag-drop/drag-handler.d.ts +5 -4
- package/@ones-editor/block-menu/src/block-menu-button/drag-drop/find-preview-element.d.ts +1 -1
- package/@ones-editor/block-menu/src/block-menu-button/drag-preview/index.d.ts +2 -2
- package/@ones-editor/block-menu/src/locale/en-us.d.ts +4 -0
- package/@ones-editor/block-menu/src/locale/ja-jp.d.ts +25 -0
- package/@ones-editor/block-menu/src/locale/zh-cn.d.ts +4 -0
- package/@ones-editor/block-resizer/src/index.d.ts +1 -0
- package/@ones-editor/code-block/src/code-block/caption/caption-input-handler.d.ts +2 -2
- package/@ones-editor/code-block/src/code-block/child-container.d.ts +2 -2
- package/@ones-editor/code-block/src/code-block/code-caret.d.ts +7 -0
- package/@ones-editor/code-block/src/code-block/code-copy.d.ts +4 -0
- package/@ones-editor/code-block/src/code-block/create-empty-code.d.ts +2 -2
- package/@ones-editor/code-block/src/code-block/index.d.ts +3 -1
- package/@ones-editor/code-block/src/code-block/settings/index.d.ts +3 -0
- package/@ones-editor/code-block/src/code-block/types.d.ts +3 -0
- package/@ones-editor/code-block/src/icons/copy.d.ts +1 -1
- package/@ones-editor/code-block/src/icons/wrap.d.ts +1 -1
- package/@ones-editor/code-block/src/index.d.ts +1 -0
- package/@ones-editor/code-block/src/locale/en-us.d.ts +5 -0
- package/@ones-editor/code-block/src/locale/ja-jp.d.ts +12 -0
- package/@ones-editor/code-block/src/locale/zh-cn.d.ts +5 -0
- package/@ones-editor/column-block/package.json +8 -0
- package/@ones-editor/column-block/src/child-containers.d.ts +2 -0
- package/@ones-editor/column-block/src/columns-options.d.ts +2 -0
- package/@ones-editor/column-block/src/columns-properties.d.ts +15 -0
- package/@ones-editor/column-block/src/index.d.ts +4 -0
- package/@ones-editor/column-block/src/types.d.ts +11 -0
- package/@ones-editor/comments/src/actions/add-comment-to-block.d.ts +3 -2
- package/@ones-editor/comments/src/actions/add-comment-to-text-block.d.ts +2 -1
- package/@ones-editor/comments/src/actions/editor-add-comment.d.ts +2 -0
- package/@ones-editor/comments/src/comment-input-handler/paste-handler.d.ts +5 -0
- package/@ones-editor/comments/src/comment-item/comment-item.d.ts +2 -0
- package/@ones-editor/comments/src/comment-item/mobile-comment-item/mobile-comment-item.d.ts +1 -0
- package/@ones-editor/comments/src/comments/comments.d.ts +4 -4
- package/@ones-editor/comments/src/comments-helper/utils.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/arrange-items.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +2 -10
- package/@ones-editor/comments/src/comments-list/group-item.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/group-list.d.ts +4 -2
- package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -4
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-list.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +5 -3
- package/@ones-editor/comments/src/index.d.ts +1 -0
- package/@ones-editor/comments/src/locale/en-us.d.ts +2 -0
- package/@ones-editor/comments/src/locale/ja-jp.d.ts +3 -0
- package/@ones-editor/comments/src/locale/zh-cn.d.ts +3 -0
- package/@ones-editor/comments/src/types.d.ts +13 -4
- package/@ones-editor/core/src/core/block-renderers/standard-block-render.d.ts +2 -0
- package/@ones-editor/core/src/core/blocks/block-anchor/create-block-anchor.d.ts +1 -0
- package/@ones-editor/core/src/core/blocks/common/block-dom.d.ts +2 -0
- package/@ones-editor/core/src/core/blocks/common/block-properties.d.ts +7 -1
- package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +4 -4
- package/@ones-editor/core/src/core/blocks/text-blocks/index.d.ts +1 -0
- package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-markdown.d.ts +3 -0
- package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-html.d.ts +3 -0
- package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-text.d.ts +3 -0
- package/@ones-editor/core/src/core/boxes/anchor-box/index.d.ts +3 -0
- package/@ones-editor/core/src/core/boxes/image-box/index.d.ts +3 -0
- package/@ones-editor/core/src/core/boxes/index.d.ts +3 -1
- package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +3 -2
- package/@ones-editor/core/src/core/composition/clipboard/cut.d.ts +1 -1
- package/@ones-editor/core/src/core/composition/clipboard/paste.d.ts +2 -2
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +6 -1
- package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
- package/@ones-editor/core/src/core/containers/root-container.d.ts +2 -1
- package/@ones-editor/core/src/core/converter/block-to-html.d.ts +2 -2
- package/@ones-editor/core/src/core/converter/block-to-markdown.d.ts +2 -2
- package/@ones-editor/core/src/core/converter/block-to-text.d.ts +2 -2
- package/@ones-editor/core/src/core/data-converter/editor-data-converter.d.ts +2 -2
- package/@ones-editor/core/src/core/doc/doc.d.ts +12 -2
- package/@ones-editor/core/src/core/doc/to-plain-text.d.ts +1 -0
- package/@ones-editor/core/src/core/editor/actions/auto-insert-block.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/break-text-block.d.ts +2 -0
- package/@ones-editor/core/src/core/editor/actions/delete-block-text.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/focus-to-end.d.ts +0 -1
- package/@ones-editor/core/src/core/editor/actions/insert-block.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/insert-text.d.ts +3 -2
- package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +5 -3
- package/@ones-editor/core/src/core/index.d.ts +1 -0
- package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +5 -1
- package/@ones-editor/core/src/core/input-handler/remove-quoted.d.ts +2 -0
- package/@ones-editor/core/src/core/selection/actions/index.d.ts +2 -2
- package/@ones-editor/core/src/core/selection/actions/select-all.d.ts +3 -1
- package/@ones-editor/core/src/core/selection/actions/select-block.d.ts +2 -0
- package/@ones-editor/core/src/core/selection/actions/word-offset.d.ts +1 -1
- package/@ones-editor/core/src/core/selection/editor-selection.d.ts +3 -2
- package/@ones-editor/core/src/core/selection/index.d.ts +1 -0
- package/@ones-editor/core/src/core/selection/range/simple-range.d.ts +2 -1
- package/@ones-editor/core/src/core/selection/select-handler.d.ts +5 -1
- package/@ones-editor/core/src/core/settings/index.d.ts +3 -3
- package/@ones-editor/core/src/core/types.d.ts +54 -26
- package/@ones-editor/core/src/helper/block-helper.d.ts +1 -1
- package/@ones-editor/core/src/helper/find-block.d.ts +3 -0
- package/@ones-editor/core/src/helper/index.d.ts +1 -0
- package/@ones-editor/core/src/i18n/en-us.d.ts +3 -0
- package/@ones-editor/core/src/i18n/i18n.d.ts +61 -0
- package/@ones-editor/core/src/i18n/ja-jp.d.ts +20 -0
- package/@ones-editor/core/src/i18n/zh-cn.d.ts +3 -0
- package/@ones-editor/core/src/local-doc/index.d.ts +6 -2
- package/@ones-editor/core/src/utils/abbreviation.d.ts +27 -0
- package/@ones-editor/core/src/utils/dom-scroll.d.ts +3 -1
- package/@ones-editor/core/src/utils/dom.d.ts +3 -0
- package/@ones-editor/core/src/utils/file.d.ts +1 -0
- package/@ones-editor/core/src/utils/index.d.ts +2 -0
- package/@ones-editor/core/src/utils/logger/index.d.ts +9 -0
- package/@ones-editor/core/src/utils/overflow-text.d.ts +1 -0
- package/@ones-editor/details-block/package.json +8 -0
- package/@ones-editor/details-block/src/auto-expand.d.ts +7 -0
- package/@ones-editor/details-block/src/create-empty-details.d.ts +8 -0
- package/@ones-editor/details-block/src/details-dom.d.ts +3 -0
- package/@ones-editor/details-block/src/details-object.d.ts +11 -0
- package/@ones-editor/details-block/src/details-options.d.ts +2 -0
- package/@ones-editor/details-block/src/index.d.ts +4 -0
- package/@ones-editor/details-block/src/types.d.ts +5 -0
- package/@ones-editor/details-block/src/update-expand.d.ts +3 -0
- package/@ones-editor/dividing-line-embed/src/i18n/en-us.d.ts +1 -0
- package/@ones-editor/dividing-line-embed/src/i18n/ja-jp.d.ts +7 -0
- package/@ones-editor/dividing-line-embed/src/i18n/zh-cn.d.ts +1 -0
- package/@ones-editor/drawio-embed/src/drawio-embed.d.ts +1 -0
- package/@ones-editor/drawio-embed/src/helper/index.d.ts +15 -10
- package/@ones-editor/drawio-embed/src/lang/en-us.d.ts +6 -4
- package/@ones-editor/drawio-embed/src/lang/index.d.ts +1 -1
- package/@ones-editor/drawio-embed/src/lang/ja-jp.d.ts +9 -0
- package/@ones-editor/drawio-embed/src/lang/zh-cn.d.ts +6 -4
- package/@ones-editor/drawio-embed/types/index.d.ts +3 -3
- package/@ones-editor/drop-target/src/drop-indicator.d.ts +1 -0
- package/@ones-editor/drop-target/src/drop-target.d.ts +3 -1
- package/@ones-editor/drop-target/src/handlers/drag-file.d.ts +7 -0
- package/@ones-editor/drop-target/src/handlers/patch-insert-file.d.ts +2 -0
- package/@ones-editor/drop-target/src/index.d.ts +2 -1
- package/@ones-editor/embed-block-helper/src/block-properties/embed-block-properties.d.ts +2 -1
- package/@ones-editor/embed-block-helper/src/block-resizer/index.d.ts +14 -0
- package/@ones-editor/embed-block-helper/src/index.d.ts +2 -0
- package/@ones-editor/embed-block-helper/src/locale/en-us.d.ts +7 -0
- package/@ones-editor/embed-block-helper/src/locale/index.d.ts +1 -0
- package/@ones-editor/embed-block-helper/src/locale/ja-jp.d.ts +7 -0
- package/@ones-editor/embed-block-helper/src/locale/zh-cn.d.ts +7 -0
- package/@ones-editor/excalidraw/package.json +11 -0
- package/@ones-editor/excalidraw/src/excalidraw/block-properties.d.ts +2 -0
- package/@ones-editor/excalidraw/src/excalidraw/editor.d.ts +2 -0
- package/@ones-editor/excalidraw/src/index.d.ts +4 -0
- package/@ones-editor/excalidraw/src/types.d.ts +9 -0
- package/@ones-editor/excalidraw/src/utils/excalidraw-data.d.ts +4 -0
- package/@ones-editor/exclusive-block/package.json +6 -0
- package/@ones-editor/exclusive-block/src/exclusive-block-hook.d.ts +6 -0
- package/@ones-editor/exclusive-block/src/exclusive-block.d.ts +22 -0
- package/@ones-editor/exclusive-block/src/exclusive-dom.d.ts +5 -0
- package/@ones-editor/exclusive-block/src/handle-remote-exclusive-message.d.ts +3 -0
- package/@ones-editor/exclusive-block/src/index.d.ts +7 -0
- package/@ones-editor/exclusive-block/src/locale/en-us.d.ts +7 -0
- package/@ones-editor/exclusive-block/src/locale/index.d.ts +1 -0
- package/@ones-editor/exclusive-block/src/locale/ja-jp.d.ts +7 -0
- package/@ones-editor/exclusive-block/src/locale/zh-cn.d.ts +7 -0
- package/@ones-editor/exclusive-block/src/types.d.ts +7 -0
- package/@ones-editor/file/src/file-embed/card/index.d.ts +3 -3
- package/@ones-editor/file/src/index.d.ts +2 -0
- package/@ones-editor/file/src/locale/en-us.d.ts +12 -0
- package/@ones-editor/file/src/locale/index.d.ts +1 -0
- package/@ones-editor/file/src/locale/ja-jp.d.ts +12 -0
- package/@ones-editor/file/src/locale/zh-cn.d.ts +12 -0
- package/@ones-editor/file/src/types.d.ts +2 -0
- package/@ones-editor/find-dialog/src/doc/doc-handler.d.ts +15 -0
- package/@ones-editor/find-dialog/src/find-dialog.d.ts +5 -1
- package/@ones-editor/find-dialog/src/highlights/highligh-text.d.ts +3 -0
- package/@ones-editor/find-dialog/src/highlights/highlight-dom.d.ts +1 -0
- package/@ones-editor/find-dialog/src/locale/ja-jp.d.ts +13 -0
- package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +3 -2
- package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +5 -3
- package/@ones-editor/graph-embed/src/lang/en-us.d.ts +7 -5
- package/@ones-editor/graph-embed/src/lang/ja-jp.d.ts +10 -0
- package/@ones-editor/graph-embed/src/lang/zh-cn.d.ts +3 -3
- package/@ones-editor/heading-collapse/src/heading-collapse-button/drop-handler.d.ts +1 -1
- package/@ones-editor/heading-collapse/src/index.d.ts +1 -0
- package/@ones-editor/heading-collapse/src/locale/en-us.d.ts +6 -0
- package/@ones-editor/heading-collapse/src/locale/index.d.ts +1 -0
- package/@ones-editor/heading-collapse/src/locale/ja-jp.d.ts +6 -0
- package/@ones-editor/heading-collapse/src/locale/zh-cn.d.ts +6 -0
- package/@ones-editor/image-embed/package.json +2 -1
- package/@ones-editor/image-embed/src/copy-handler.d.ts +8 -0
- package/@ones-editor/image-embed/src/drag-drop/drag-handler.d.ts +9 -2
- package/@ones-editor/image-embed/src/drag-drop/handle-drop-over.d.ts +5 -1
- package/@ones-editor/image-embed/src/drag-drop/handle-drop.d.ts +1 -1
- package/@ones-editor/image-embed/src/empty-image-converter.d.ts +5 -0
- package/@ones-editor/image-embed/src/image-data.d.ts +6 -4
- package/@ones-editor/image-embed/src/image-file.d.ts +4 -0
- package/@ones-editor/image-embed/src/image-object.d.ts +5 -1
- package/@ones-editor/image-embed/src/image-resizer.d.ts +3 -0
- package/@ones-editor/image-embed/src/index.d.ts +4 -2
- package/@ones-editor/image-embed/src/locale/en-us.d.ts +2 -1
- package/@ones-editor/image-embed/src/locale/ja-jp.d.ts +17 -0
- package/@ones-editor/image-embed/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/image-embed/src/paste-handler.d.ts +7 -0
- package/@ones-editor/image-embed/src/shortcuts/copy-image.d.ts +2 -0
- package/@ones-editor/image-embed/src/shortcuts/image-clipboard-data.d.ts +7 -0
- package/@ones-editor/image-embed/src/shortcuts/index.d.ts +3 -2
- package/@ones-editor/image-embed/src/types.d.ts +9 -2
- package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/ja-jp.d.ts +11 -0
- package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
- package/@ones-editor/input-handlers/src/markdown-shortcuts/table-converter.d.ts +2 -0
- package/@ones-editor/list-block/src/converter/convert-list-to.d.ts +2 -0
- package/@ones-editor/list-block/src/converter/convert-to-list.d.ts +14 -0
- package/@ones-editor/list-block/src/converter/index.d.ts +2 -14
- package/@ones-editor/list-block/src/drop/index.d.ts +1 -1
- package/@ones-editor/list-block/src/index.d.ts +6 -3
- package/@ones-editor/list-block/src/lang/ja-jp.d.ts +21 -0
- package/@ones-editor/list-block/src/level/change-multi-levels.d.ts +2 -0
- package/@ones-editor/list-block/src/level/decrease-level.d.ts +1 -0
- package/@ones-editor/list-block/src/marker/customize-start-dialog.d.ts +1 -0
- package/@ones-editor/list-block/src/mindmap/index.d.ts +1 -1
- package/@ones-editor/list-block/src/mindmap/to-mindmap/close-mindmap.d.ts +1 -0
- package/@ones-editor/list-block/src/mindmap/to-mindmap/index.d.ts +3 -1
- package/@ones-editor/list-block/src/start/fix-start-by-list.d.ts +9 -0
- package/@ones-editor/list-block/src/types.d.ts +2 -1
- package/@ones-editor/list-block/src/utils/list-brother.d.ts +5 -1
- package/@ones-editor/markdown-to-doc/src/markdown-to-doc.d.ts +1 -0
- package/@ones-editor/markdown-to-doc/src/tokens/block-tokens/latex.d.ts +4 -0
- package/@ones-editor/markdown-to-doc/src/tokens/block-tokens/paragraph.d.ts +1 -0
- package/@ones-editor/mathjax/package.json +3 -0
- package/@ones-editor/mathjax/src/index.d.ts +2 -1
- package/@ones-editor/mathjax/src/locale/ja-jp.d.ts +7 -0
- package/@ones-editor/mathjax/src/mathjax-box/convert-mathjax.d.ts +5 -0
- package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +2 -2
- package/@ones-editor/media-embed/src/core/media-embed.d.ts +4 -2
- package/@ones-editor/media-embed/src/core/media.d.ts +10 -4
- package/@ones-editor/media-embed/src/core/video-resizer.d.ts +1 -0
- package/@ones-editor/media-embed/src/locale/ja-jp.d.ts +19 -0
- package/@ones-editor/media-embed/src/utils/file.d.ts +1 -2
- package/@ones-editor/mention/src/block-mention.d.ts +1 -1
- package/@ones-editor/mention/src/dom/mention-button.d.ts +1 -1
- package/@ones-editor/mention/src/index.d.ts +1 -0
- package/@ones-editor/mention/src/locale/en-us.d.ts +6 -0
- package/@ones-editor/mention/src/locale/index.d.ts +1 -0
- package/@ones-editor/mention/src/locale/ja-jp.d.ts +6 -0
- package/@ones-editor/mention/src/locale/zh-cn.d.ts +6 -0
- package/@ones-editor/mention/src/mention.d.ts +2 -9
- package/@ones-editor/mention/src/types.d.ts +12 -1
- package/@ones-editor/misc/src/index.d.ts +2 -1
- package/@ones-editor/misc/src/is-secure-env.d.ts +1 -0
- package/@ones-editor/mobile-helper/package.json +9 -0
- package/@ones-editor/mobile-helper/src/index.d.ts +11 -0
- package/@ones-editor/paste-handler/src/paste-handler.d.ts +1 -1
- package/@ones-editor/paste-handler/src/text-data-converter.d.ts +2 -2
- package/@ones-editor/paste-special/src/index.d.ts +1 -0
- package/@ones-editor/paste-special/src/locale/en-us.d.ts +8 -0
- package/@ones-editor/paste-special/src/locale/index.d.ts +1 -0
- package/@ones-editor/paste-special/src/locale/ja-jp.d.ts +8 -0
- package/@ones-editor/paste-special/src/locale/zh-cn.d.ts +8 -0
- package/@ones-editor/paste-special/src/paste-special-handler.d.ts +2 -2
- package/@ones-editor/scroll-container/src/dom-utils.d.ts +8 -0
- package/@ones-editor/scroll-container/src/index.d.ts +8 -18
- package/@ones-editor/scroll-container/src/observer/container-resize-observer.d.ts +2 -1
- package/@ones-editor/scroll-container/src/observer/locating-resize-observer.d.ts +13 -0
- package/@ones-editor/scroll-container/src/scroll-listener.d.ts +3 -0
- package/@ones-editor/scroll-container/src/types.d.ts +1 -0
- package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +3 -3
- package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +0 -1
- package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +25 -0
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +5 -4
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +8 -2
- package/@ones-editor/sharedb-doc/src/index.d.ts +1 -0
- package/@ones-editor/sharedb-doc/src/types.d.ts +3 -2
- package/@ones-editor/table-block/src/constant/index.d.ts +1 -0
- package/@ones-editor/table-block/src/locale/en-us.d.ts +5 -0
- package/@ones-editor/table-block/src/locale/ja-jp.d.ts +27 -0
- package/@ones-editor/table-block/src/locale/zh-cn.d.ts +5 -0
- package/@ones-editor/table-block/src/table-block/border-bar/table-border-bar-scroll.d.ts +2 -0
- package/@ones-editor/table-block/src/table-block/border-bar/table-row-column-toolbar.d.ts +1 -0
- package/@ones-editor/table-block/src/table-block/convert-table-to.d.ts +2 -0
- package/@ones-editor/table-block/src/table-block/doc-table-data.d.ts +1 -1
- package/@ones-editor/table-block/src/table-block/selection-range.d.ts +2 -1
- package/@ones-editor/table-block/src/table-block/table-creator/index.d.ts +1 -1
- package/@ones-editor/table-block/src/table-block/table-dom.d.ts +1 -0
- package/@ones-editor/table-block/src/table-block/table-resize/resize-gripper.d.ts +1 -1
- package/@ones-editor/table-block/src/table-block/table-scroll-events.d.ts +1 -0
- package/@ones-editor/table-block/src/types.d.ts +2 -0
- package/@ones-editor/tabs-block/package.json +8 -0
- package/@ones-editor/tabs-block/src/active-tab.d.ts +2 -0
- package/@ones-editor/tabs-block/src/create-empty-tabs.d.ts +8 -0
- package/@ones-editor/tabs-block/src/index.d.ts +4 -0
- package/@ones-editor/tabs-block/src/tabs-dom.d.ts +4 -0
- package/@ones-editor/tabs-block/src/tabs-object.d.ts +14 -0
- package/@ones-editor/tabs-block/src/tabs-options.d.ts +2 -0
- package/@ones-editor/tabs-block/src/types.d.ts +8 -0
- package/@ones-editor/templates/package.json +9 -0
- package/@ones-editor/templates/src/index.d.ts +4 -0
- package/@ones-editor/templates/src/locale/en-us.d.ts +9 -0
- package/@ones-editor/templates/src/locale/index.d.ts +1 -0
- package/@ones-editor/templates/src/locale/ja-jp.d.ts +9 -0
- package/@ones-editor/templates/src/locale/zh-cn.d.ts +9 -0
- package/@ones-editor/templates/src/templates/select-template.d.ts +7 -0
- package/@ones-editor/templates/src/templates/types.d.ts +14 -0
- package/@ones-editor/text-commands/src/index.d.ts +2 -1
- package/@ones-editor/text-commands/src/locale/en-us.d.ts +1 -14
- package/@ones-editor/text-commands/src/locale/ja-jp.d.ts +13 -0
- package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +1 -14
- package/@ones-editor/text-commands/src/shortcut-handler.d.ts +2 -0
- package/@ones-editor/text-commands/src/text-command-provider.d.ts +1 -0
- package/@ones-editor/to-docx/src/doc2other/core.d.ts +1 -1
- package/@ones-editor/toc/src/build-toc.d.ts +4 -2
- package/@ones-editor/toc/src/heading-scroll/index.d.ts +22 -0
- package/@ones-editor/toc/src/heading-scroll/utils.d.ts +7 -0
- package/@ones-editor/toc/src/index.d.ts +2 -0
- package/@ones-editor/toc/src/locale/en-us.d.ts +6 -0
- package/@ones-editor/toc/src/locale/index.d.ts +1 -0
- package/@ones-editor/toc/src/locale/ja-jp.d.ts +6 -0
- package/@ones-editor/toc/src/locale/zh-cn.d.ts +6 -0
- package/@ones-editor/toc/src/toc-provider.d.ts +2 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +7 -5
- package/@ones-editor/ui/src/locale/en-us.d.ts +12 -20
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +43 -0
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +4 -12
- package/@ones-editor/ui/src/quick-menu/basic-commands.d.ts +5 -0
- package/@ones-editor/ui/src/quick-menu/basic-menu-items.d.ts +13 -10
- package/@ones-editor/ui/src/quick-menu/index.d.ts +6 -0
- package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +8 -14
- package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +4 -1
- package/@ones-editor/ui/src/toolbar/box-only.d.ts +2 -0
- package/@ones-editor/ui/src/toolbar/commands/paragraph.d.ts +1 -0
- package/@ones-editor/ui/src/toolbar/object-commands.d.ts +5 -1
- package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +4 -1
- package/@ones-editor/ui/src/tooltips/index.d.ts +5 -1
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +19 -12
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +9 -2
- package/@ones-editor/ui-base/src/auto-suggest/editor-auto-suggest-menu.d.ts +12 -0
- package/@ones-editor/ui-base/src/auto-suggest/index.d.ts +3 -2
- package/@ones-editor/ui-base/src/auto-suggest/should-focus-to-editor.d.ts +2 -0
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +9 -3
- package/@ones-editor/ui-base/src/command-bar/fixed-toolbar.d.ts +12 -0
- package/@ones-editor/ui-base/src/command-bar/index.d.ts +2 -1
- package/@ones-editor/ui-base/src/command-bar/init-toolbar-item.d.ts +6 -0
- package/@ones-editor/ui-base/src/command-bar/manual-command-bar.d.ts +2 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +11 -2
- package/@ones-editor/ui-base/src/dialog/index.d.ts +1 -0
- package/@ones-editor/ui-base/src/dialog/manual-close-dialog.d.ts +1 -1
- package/@ones-editor/ui-base/src/dialog/types.d.ts +4 -0
- package/@ones-editor/ui-base/src/dropdown/index.d.ts +43 -0
- package/@ones-editor/ui-base/src/icons/index.d.ts +5 -1
- package/@ones-editor/ui-base/src/index.d.ts +2 -0
- package/@ones-editor/ui-base/src/input/create-input.d.ts +1 -0
- package/@ones-editor/ui-base/src/item-shortcuts/index.d.ts +1 -0
- package/@ones-editor/ui-base/src/list/drop-down-filterable-list.d.ts +2 -2
- package/@ones-editor/ui-base/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/ui-base/src/locale/ja-jp.d.ts +12 -0
- package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/versions/src/history-doc/history-doc.d.ts +4 -4
- package/@ones-editor/versions/src/index.d.ts +1 -1
- package/@ones-editor/versions/src/locale/en-us.d.ts +28 -0
- package/@ones-editor/versions/src/locale/ja-jp.d.ts +43 -0
- package/@ones-editor/versions/src/locale/zh-cn.d.ts +28 -0
- package/@ones-editor/versions/src/types.d.ts +8 -8
- package/@ones-editor/versions/src/utils/index.d.ts +2 -2
- package/@ones-editor/versions/src/version-dialog/index.d.ts +24 -2
- package/@ones-editor/versions/src/version-dialog/play-history.d.ts +1 -2
- package/@ones-editor/versions/src/version-dialog/size-limit-textarea.d.ts +23 -0
- package/@ones-editor/versions/src/version-dialog/version-helper.d.ts +3 -0
- package/@ones-editor/versions/src/version-dialog/version-info-header.d.ts +13 -0
- package/@ones-editor/versions/src/version-dialog/version-list.d.ts +21 -9
- package/@ones-editor/versions/src/version-dialog/versions-dropdown.d.ts +27 -0
- package/@ones-editor/webpage-embed/src/locale/en-us.d.ts +6 -0
- package/@ones-editor/webpage-embed/src/locale/ja-jp.d.ts +27 -0
- package/@ones-editor/webpage-embed/src/locale/zh-cn.d.ts +6 -0
- package/@ones-editor/webpage-embed/src/types.d.ts +3 -0
- package/@ones-editor/webpage-embed/src/ui/dialog.d.ts +2 -2
- package/@ones-editor/webpage-embed/src/webpage-embed/webpage-items.d.ts +2 -14
- package/dist/comments/create-comment-editor.d.ts +4 -7
- package/dist/comments/local-doc-comments-provider.d.ts +19 -0
- package/dist/comments/{comments-provider.d.ts → sharedb-doc-comments-provider.d.ts} +4 -6
- package/dist/index.d.ts +23 -6
- package/dist/index.js +442 -436
- package/dist/lang/en-us.d.ts +19 -0
- package/dist/lang/index.d.ts +1 -0
- package/dist/lang/ja-jp.d.ts +19 -0
- package/dist/lang/zh-cn.d.ts +19 -0
- package/dist/standard-components.d.ts +3 -0
- package/dist/types.d.ts +38 -3
- package/dist/versions/versions-provider.d.ts +1 -1
- package/package.json +6 -4
- package/@ones-editor/block-menu/src/icons/index.d.ts +0 -4
- package/@ones-editor/e2e/cypress/support/commands.d.ts +0 -19
- package/@ones-editor/e2e/cypress/support/e2e.d.ts +0 -1
- package/@ones-editor/e2e/cypress.config.d.ts +0 -3
- package/@ones-editor/e2e/package.json +0 -13
- package/@ones-editor/e2e/src/block-menu/menu-list.cy.d.ts +0 -0
- package/@ones-editor/e2e/src/data.d.ts +0 -106
- package/@ones-editor/e2e/src/input-handlers/case.d.ts +0 -10
- package/@ones-editor/e2e/src/input-handlers/shortcut.cy.d.ts +0 -1
- package/@ones-editor/e2e/src/list-block/case.d.ts +0 -8
- package/@ones-editor/e2e/src/list-block/list.cy.d.ts +0 -1
- package/@ones-editor/e2e/src/toc/case.d.ts +0 -5
- package/@ones-editor/e2e/src/toc/toc.cy.d.ts +0 -1
- package/@ones-editor/graph-embed/src/lang/utils.d.ts +0 -3
- package/@ones-editor/list-block/src/command/covert-to-list.d.ts +0 -3
- package/@ones-editor/versions/src/version-dialog/actions-buttons.d.ts +0 -17
- /package/@ones-editor/block-menu/src/block-menu-button/{drag-drop → drag-preview}/element-to-data-url.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypedEmitter } from 'tiny-typed-emitter';
|
|
2
|
-
import { DocBlock, DocBlockAttributes, DocBlocks, DocBlockText, DocBlockTextAttributes, DocBox, DocEmbedBlock, DocEmbedData, DocInsertion, DocObject, OnesEditorDoc, OnesEditorDocRange } from './doc';
|
|
2
|
+
import { DocBlock, DocBlockAttributes, DocBlocks, DocBlockText, DocBlockTextAttributes, DocBox, DocEmbedBlock, DocEmbedData, DocInsertion, DocObject, InsertBlockOptions, OnesEditorDoc, OnesEditorDocRange } from './doc';
|
|
3
3
|
export type ContainerElement = HTMLDivElement & {
|
|
4
4
|
__neverUse: 'ContainerElement';
|
|
5
5
|
};
|
|
@@ -56,11 +56,13 @@ export interface BoxCommands {
|
|
|
56
56
|
}
|
|
57
57
|
export interface BoxProperties {
|
|
58
58
|
boxCommands?: Record<string, BoxCommands>;
|
|
59
|
+
abstract?: string;
|
|
59
60
|
}
|
|
60
61
|
export interface Box {
|
|
61
62
|
boxType: string;
|
|
62
63
|
updateBoxContent: (editor: OnesEditor, boxElement: BoxElement, boxContent: BoxContentElement, boxData: DocBox) => void;
|
|
63
64
|
convertFrom?: (editor: OnesEditor, text: string) => DocBox | null;
|
|
65
|
+
convertTo?: (editor: OnesEditor, boxData: DocBox, doc: DocObject, type: 'text' | 'html' | 'markdown') => string;
|
|
64
66
|
handleClickBox?: (editor: OnesEditor, box: BoxElement, event: MouseEvent) => void;
|
|
65
67
|
toStandardText?: (editor: OnesEditor, box: DocBox) => Promise<DocBlockText | undefined>;
|
|
66
68
|
getBoxProperties?: (editor: OnesEditor, boxElement: BoxElement) => BoxProperties;
|
|
@@ -88,12 +90,13 @@ export interface Embed {
|
|
|
88
90
|
getOptions?: (editor: OnesEditor) => EmbedOptions;
|
|
89
91
|
handleDeleteBlock?: (editor: OnesEditor, block: BlockElement, local: boolean, options: DeleteBlockEventOptions) => void;
|
|
90
92
|
handleUpdateBlock?: (editor: OnesEditor, block: BlockElement, blockData: DocEmbedBlock) => boolean;
|
|
91
|
-
handleDropOver?: (editor: OnesEditor, block: BlockElement,
|
|
92
|
-
handleDrop?: (editor: OnesEditor, block: BlockElement,
|
|
93
|
+
handleDropOver?: (editor: OnesEditor, block: BlockElement, dragData: DragObject | DataTransferItemList | null, x: number, y: number) => DropInsertPos | undefined;
|
|
94
|
+
handleDrop?: (editor: OnesEditor, block: BlockElement, dragData: DragObject | File[], insertPos: DropInsertPos, options: DropOptions) => boolean | undefined;
|
|
93
95
|
convertFrom?: (editor: OnesEditor, srcBlock: BlockElement, options: {
|
|
94
96
|
offset: number;
|
|
95
97
|
data?: DocBlockAttributes;
|
|
96
98
|
}) => ConvertBlockResult | null;
|
|
99
|
+
toStandardDoc?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject, path: BlockPath) => Promise<DocObject | undefined>;
|
|
97
100
|
}
|
|
98
101
|
export interface ConvertBlockResult {
|
|
99
102
|
blockData: DocBlock;
|
|
@@ -105,8 +108,9 @@ export interface DeleteBlockEventOptions {
|
|
|
105
108
|
}
|
|
106
109
|
export type CommandItemType = 'normal' | 'separator' | 'section';
|
|
107
110
|
export type CommandItemState = 'disabled' | 'checked' | 'selected';
|
|
111
|
+
export type CloseReason = 'selectionChange' | 'clickItem' | 'clickBackground' | 'cancelBar' | 'fromHover' | 'switchItem' | null;
|
|
108
112
|
export interface Closeable {
|
|
109
|
-
close: () => void;
|
|
113
|
+
close: (reason: CloseReason) => void;
|
|
110
114
|
click: (item: CommandItem, target: HTMLElement) => void;
|
|
111
115
|
}
|
|
112
116
|
export type CommandItemChildrenPlacement = 'auto' | 'top' | 'left' | 'right' | 'bottom' | 'auto-start' | 'auto-end' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
@@ -118,7 +122,7 @@ export interface CommandItem {
|
|
|
118
122
|
value?: string;
|
|
119
123
|
order?: number;
|
|
120
124
|
type?: CommandItemType;
|
|
121
|
-
element?: HTMLElement;
|
|
125
|
+
element?: HTMLElement | ((item: CommandItem) => HTMLElement);
|
|
122
126
|
icon?: string;
|
|
123
127
|
childrenType?: 'menu' | 'toolbar';
|
|
124
128
|
children?: CommandItem[];
|
|
@@ -130,7 +134,11 @@ export interface CommandItem {
|
|
|
130
134
|
manualShowChildren?: boolean;
|
|
131
135
|
childrenPlacement?: CommandItemChildrenPlacement;
|
|
132
136
|
childrenOffset?: [number, number];
|
|
133
|
-
|
|
137
|
+
subText?: string;
|
|
138
|
+
defaultCheckedChildren?: string[];
|
|
139
|
+
ellipsisTooltip?: string;
|
|
140
|
+
disableTooltip?: boolean;
|
|
141
|
+
disableReason?: string;
|
|
134
142
|
setCloseable?: (closeable: Closeable) => void;
|
|
135
143
|
beforePopup?: (parent: unknown) => void;
|
|
136
144
|
}
|
|
@@ -199,13 +207,13 @@ export interface Block {
|
|
|
199
207
|
clearSelection: (editor: OnesEditor) => void;
|
|
200
208
|
getBlockProperties?: (editor: OnesEditor, block: BlockElement) => BlockProperties;
|
|
201
209
|
getOptions?: (editor: OnesEditor) => BlockOptions;
|
|
202
|
-
notify?: (editor: OnesEditor, command: string, params?: unknown) =>
|
|
210
|
+
notify?: (editor: OnesEditor, command: string, params?: unknown) => unknown | undefined;
|
|
203
211
|
handleBlockElementUpdated?: (editor: OnesEditor, block: BlockElement, blockData: DocBlock) => void;
|
|
204
212
|
handleContainerResized?: (editor: OnesEditor, block: BlockElement) => void;
|
|
205
213
|
handleDeleteBlock?: (editor: OnesEditor, block: BlockElement, local: boolean, options: DeleteBlockEventOptions) => void;
|
|
206
214
|
handleUpdateBlock?: (editor: OnesEditor, block: BlockElement, blockData: DocBlock) => boolean;
|
|
207
|
-
handleDropOver?: (editor: OnesEditor, block: BlockElement,
|
|
208
|
-
handleDrop?: (editor: OnesEditor, block: BlockElement,
|
|
215
|
+
handleDropOver?: (editor: OnesEditor, block: BlockElement, dragData: DragObject | DataTransferItemList | null, x: number, y: number) => DropInsertPos | false | undefined;
|
|
216
|
+
handleDrop?: (editor: OnesEditor, block: BlockElement, dragData: DragObject | File[], insertPos: DropInsertPos, options: DropOptions) => boolean | undefined;
|
|
209
217
|
getClientRects?: (editor: OnesEditor, block: BlockElement, range: SelectionRange) => DOMRect[];
|
|
210
218
|
getMinWidth?: (editor: OnesEditor, block: BlockElement) => number | undefined;
|
|
211
219
|
convertFrom?: (editor: OnesEditor, srcBlock: BlockElement, options: {
|
|
@@ -213,7 +221,7 @@ export interface Block {
|
|
|
213
221
|
data?: DocBlockAttributes;
|
|
214
222
|
}) => ConvertBlockResult | null;
|
|
215
223
|
selectionToDoc?: (editor: OnesEditor, selectedBlock: SelectedBlock) => DocObject;
|
|
216
|
-
convertTo?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject, type: 'text' | 'html' | 'markdown') => string;
|
|
224
|
+
convertTo?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject, type: 'text' | 'html' | 'markdown', path: BlockPath) => string;
|
|
217
225
|
toStandardDoc?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject) => Promise<DocObject | undefined>;
|
|
218
226
|
getBlockStyles?: (editor: OnesEditor, block: BlockElement) => BlockStyles;
|
|
219
227
|
blockToDoc?: (srcDoc: DocObject, srcBlockData: DocBlock, childBlockConverter: (srcDoc: DocObject, srcBlockData: DocBlock) => DocObject) => DocObject;
|
|
@@ -229,9 +237,12 @@ export interface TextKindBlock extends Block {
|
|
|
229
237
|
export interface NextContainerOptions {
|
|
230
238
|
noWrap?: boolean;
|
|
231
239
|
}
|
|
240
|
+
export interface GetChildContainerOptions {
|
|
241
|
+
visibleOnly?: boolean;
|
|
242
|
+
}
|
|
232
243
|
export interface ComplexKindBlock extends Block {
|
|
233
244
|
enableKeyboardSelect?: boolean;
|
|
234
|
-
getChildContainers: (editor: OnesEditor, complexBlock: BlockElement) => ContainerElement[];
|
|
245
|
+
getChildContainers: (editor: OnesEditor, complexBlock: BlockElement, options?: GetChildContainerOptions) => ContainerElement[];
|
|
235
246
|
getNextContainer: (editor: OnesEditor, complexBlock: BlockElement, childContainer: ContainerElement, type: MoveDirection, options?: NextContainerOptions) => ContainerElement | null;
|
|
236
247
|
getSelectedContainers: (editor: OnesEditor, complexBlock: BlockElement, start: ComplexBlockPosition, end: ComplexBlockPosition) => ContainerElement[];
|
|
237
248
|
adjustSelectionPos?: (editor: OnesEditor, complexBlock: BlockElement, anchor: ComplexBlockPosition, focus: ComplexBlockPosition) => {
|
|
@@ -335,18 +346,19 @@ export interface OnesEditorBlockRenderers {
|
|
|
335
346
|
export type OnesEditorDocSource = 'text/html' | 'text/office-html' | 'text/plain' | 'text/markdown' | 'image/*' | 'text/x-ones-editor-doc' | '*';
|
|
336
347
|
export type OnesEditorDocs = Partial<Record<OnesEditorDocSource, DocObject>>;
|
|
337
348
|
export interface OnesEditorDataConverter {
|
|
338
|
-
fromData: (editor: OnesEditor, data: DataTransfer) => Promise<OnesEditorDocs | undefined>;
|
|
349
|
+
fromData: (editor: OnesEditor, data: DataTransfer, options?: PasteOptions) => Promise<OnesEditorDocs | undefined>;
|
|
339
350
|
}
|
|
340
351
|
export interface OnesEditorDataConverters {
|
|
341
|
-
fromData: (editor: OnesEditor, data: DataTransfer) => Promise<OnesEditorDocs | undefined>;
|
|
352
|
+
fromData: (editor: OnesEditor, data: DataTransfer, options?: PasteOptions) => Promise<OnesEditorDocs | undefined>;
|
|
342
353
|
addConverter: (converter: OnesEditorDataConverter) => void;
|
|
343
354
|
}
|
|
344
355
|
export interface BreakTextOptions {
|
|
345
356
|
forceInsertAfter?: boolean;
|
|
346
357
|
newBlockData?: DocBlock;
|
|
358
|
+
copyBlockAttributes?: boolean;
|
|
347
359
|
}
|
|
348
360
|
export interface OnesEditorEvents {
|
|
349
|
-
'docChanged': (editor: OnesEditor) => void;
|
|
361
|
+
'docChanged': (editor: OnesEditor, local: boolean) => void;
|
|
350
362
|
'readonlyChanged': (editor: OnesEditor) => void;
|
|
351
363
|
'selectionChanged': (editor: OnesEditor) => void;
|
|
352
364
|
'focusBlockChanged': (editor: OnesEditor, newBlock: BlockElement | null, oldBlock: BlockElement | null) => void;
|
|
@@ -355,15 +367,17 @@ export interface OnesEditorEvents {
|
|
|
355
367
|
'resize': (editor: OnesEditor) => void;
|
|
356
368
|
'load': (editor: OnesEditor, reload: boolean) => void;
|
|
357
369
|
'click': (editor: OnesEditor, event: MouseEvent) => void;
|
|
370
|
+
'clickLink': (editor: OnesEditor, event: MouseEvent, link: Element) => void;
|
|
358
371
|
'beforeClearSelection': (editor: OnesEditor) => void;
|
|
359
372
|
'afterClearSelection': (editor: OnesEditor) => void;
|
|
360
373
|
'blur': (editor: OnesEditor) => void;
|
|
361
374
|
'focus': (editor: OnesEditor) => void;
|
|
375
|
+
'containerRemount': (editor: OnesEditor, containerId: string) => void;
|
|
362
376
|
}
|
|
363
377
|
export interface OnesEditorSettingsProvider {
|
|
364
|
-
getItem: (key: string) =>
|
|
365
|
-
setItem: (key: string, value: string | null) =>
|
|
366
|
-
removeItem: (key: string) =>
|
|
378
|
+
getItem: (key: string) => string | null;
|
|
379
|
+
setItem: (key: string, value: string | null) => void;
|
|
380
|
+
removeItem: (key: string) => void;
|
|
367
381
|
}
|
|
368
382
|
export interface OnesEditorOptionalOptions {
|
|
369
383
|
shortcuts?: ShortcutRecords[];
|
|
@@ -371,6 +385,7 @@ export interface OnesEditorOptionalOptions {
|
|
|
371
385
|
components?: OnesEditorComponents;
|
|
372
386
|
colors?: string[];
|
|
373
387
|
scrollContainer?: HTMLElement;
|
|
388
|
+
enableComments?: boolean;
|
|
374
389
|
settingsProvider?: OnesEditorSettingsProvider;
|
|
375
390
|
}
|
|
376
391
|
export interface OnesEditorOptions {
|
|
@@ -378,6 +393,7 @@ export interface OnesEditorOptions {
|
|
|
378
393
|
componentsOptions: {
|
|
379
394
|
[index: string]: unknown;
|
|
380
395
|
};
|
|
396
|
+
enableComments?: boolean;
|
|
381
397
|
scrollContainer?: HTMLElement;
|
|
382
398
|
}
|
|
383
399
|
export interface OnesEditorComponents {
|
|
@@ -411,7 +427,7 @@ export declare class OnesEditorCustomDataWrapper<T> {
|
|
|
411
427
|
private editor;
|
|
412
428
|
private data;
|
|
413
429
|
constructor(editor: OnesEditor, data: T);
|
|
414
|
-
getData
|
|
430
|
+
getData(): T;
|
|
415
431
|
getEditor(): OnesEditor;
|
|
416
432
|
destroy(): void;
|
|
417
433
|
}
|
|
@@ -425,6 +441,7 @@ export interface OnesEditorDomEvents extends OnesEditorCustom {
|
|
|
425
441
|
removeEventListener: (element: Element | Document | Window | null, eventName: string | null, eventHandler: (editor: OnesEditor, event: Event) => void) => void;
|
|
426
442
|
removeAllListeners: (element: Element | Document | Window, eventName?: string) => void;
|
|
427
443
|
}
|
|
444
|
+
export type InsertTextOptions = InsertBlockOptions;
|
|
428
445
|
export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
|
|
429
446
|
readonly parent: HTMLElement;
|
|
430
447
|
readonly rootElement: HTMLDivElement;
|
|
@@ -489,7 +506,7 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
|
|
|
489
506
|
contains: (node: Node) => boolean;
|
|
490
507
|
getSelectedText: () => string;
|
|
491
508
|
clearSelectedContents: () => void;
|
|
492
|
-
insertBlock: (containerId: string, blockIndex: number, blockData: DocBlock, newRange?: OnesEditorDocRange) => BlockElement;
|
|
509
|
+
insertBlock: (containerId: string, blockIndex: number, blockData: DocBlock, newRange?: OnesEditorDocRange, options?: InsertBlockOptions) => BlockElement;
|
|
493
510
|
insertEmbed: (containerId: string, blockIndex: number, embedType: string, embedData: DocEmbedData, newRange?: OnesEditorDocRange) => BlockElement;
|
|
494
511
|
deleteBlock: (block: BlockElement, newRange?: OnesEditorDocRange) => void;
|
|
495
512
|
getTextPosition: () => BlockTextPosition;
|
|
@@ -500,8 +517,8 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
|
|
|
500
517
|
getBlockText: (block: BlockElement) => DocBlockText;
|
|
501
518
|
setBlockText: (block: BlockElement, text: DocBlockText) => void;
|
|
502
519
|
getBoxData: (box: BoxElement) => DocBox;
|
|
503
|
-
deleteTextFromBlock: (block: BlockElement, offset: number, count: number) => number;
|
|
504
|
-
insertTextToBlock: (block: BlockElement, offset: number, text: string | DocBlockText) => DocBlockText;
|
|
520
|
+
deleteTextFromBlock: (block: BlockElement, offset: number, count: number, options?: InsertTextOptions) => number;
|
|
521
|
+
insertTextToBlock: (block: BlockElement, offset: number, text: string | DocBlockText, options?: InsertTextOptions) => DocBlockText;
|
|
505
522
|
insertBoxToBlock: (block: BlockElement, offset: number, boxData: DocBox) => DocBlockText;
|
|
506
523
|
mergeTextBlock: (block1: BlockElement, block2: BlockElement, options?: {
|
|
507
524
|
focus?: boolean;
|
|
@@ -509,6 +526,7 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
|
|
|
509
526
|
breakTextBlock: (block: BlockElement, offset: number, options?: BreakTextOptions) => BlockElement;
|
|
510
527
|
insertTextBlock: (text?: string | DocBlockText, containerId?: string, blockIndex?: number, options?: {
|
|
511
528
|
newRange?: OnesEditorDocRange;
|
|
529
|
+
insertBlockOptions?: InsertBlockOptions;
|
|
512
530
|
}) => BlockElement;
|
|
513
531
|
insertDoc: (block: BlockElement, offset: number, doc: DocObject, cloneDocResult?: CloneBlockResultInfo) => void;
|
|
514
532
|
insertDocAt: (container: ContainerElement, blockIndex: number, doc: DocObject, cloneDocResult?: CloneBlockResultInfo) => BlockElement[];
|
|
@@ -530,7 +548,7 @@ export interface OnesEditorSelection {
|
|
|
530
548
|
readonly startBlock: BlockElement;
|
|
531
549
|
readonly endBlock: BlockElement;
|
|
532
550
|
setSelection: (anchor: BlockPosition, focus?: BlockPosition, options?: ChangeSelectionOptions) => SelectionRange;
|
|
533
|
-
setRange: (range: SelectionRange) => SelectionRange;
|
|
551
|
+
setRange: (range: SelectionRange, options?: ChangeSelectionOptions) => SelectionRange;
|
|
534
552
|
selectBlock: (block: BlockElement, start: number, end?: number) => void;
|
|
535
553
|
updateSelection: (old: SelectionRange | null) => void;
|
|
536
554
|
updateLastCaretRect: () => void;
|
|
@@ -538,8 +556,12 @@ export interface OnesEditorSelection {
|
|
|
538
556
|
getAnchorPos: () => BlockPosition;
|
|
539
557
|
getFocusedPos: () => BlockPosition;
|
|
540
558
|
scrollIntoView: () => void;
|
|
559
|
+
to: (type: 'text' | 'markdown' | 'html') => string;
|
|
541
560
|
}
|
|
542
561
|
export type RemoteChangeType = 'UpdateBlockText' | 'UpdateBlockData' | 'InsertBlock' | 'DeleteBlock' | 'InsertChildContainer' | 'DeleteChildContainer';
|
|
562
|
+
export type PasteOptions = {
|
|
563
|
+
toPlainText?: boolean;
|
|
564
|
+
};
|
|
543
565
|
export interface OnesEditorInput {
|
|
544
566
|
readonly inputElement: HTMLInputElement;
|
|
545
567
|
destroy: () => void;
|
|
@@ -551,6 +573,7 @@ export interface OnesEditorInput {
|
|
|
551
573
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
552
574
|
handleChanged: (action: OnesEditorUndoAction) => void;
|
|
553
575
|
handleRemoteChanged: (type: RemoteChangeType) => void;
|
|
576
|
+
handlePasteText: (text: string, options?: PasteOptions) => void;
|
|
554
577
|
addHandler: (handler: OnesEditorInputHandler) => void;
|
|
555
578
|
removeHandler: (handler: OnesEditorInputHandler) => void;
|
|
556
579
|
defaultInsertText: (editor: OnesEditor, containerId: string, blockIndex: number, offset: number, text: string) => void;
|
|
@@ -559,7 +582,9 @@ export interface OnesEditorInput {
|
|
|
559
582
|
export interface OnesEditorSelectionHandler {
|
|
560
583
|
isSelecting: () => boolean;
|
|
561
584
|
stopSelection: () => void;
|
|
562
|
-
handleMouseDown: (event: MouseEvent
|
|
585
|
+
handleMouseDown: (event: MouseEvent, options: {
|
|
586
|
+
autoScroll: boolean;
|
|
587
|
+
}) => void;
|
|
563
588
|
handleMouseMove: (event: MouseEvent) => void;
|
|
564
589
|
handleMouseUp: (event: MouseEvent) => void;
|
|
565
590
|
handleDblClick: (event: MouseEvent) => void;
|
|
@@ -574,10 +599,12 @@ export interface OnesEditorInputHandler {
|
|
|
574
599
|
handleAfterInsertText?: (editor: OnesEditor, containerId: string, blockIndex: number, offset: number, text: string) => boolean;
|
|
575
600
|
handleBeforeKeyDown?: (editor: OnesEditor, event: KeyboardEvent) => boolean;
|
|
576
601
|
handleAfterKeyDown?: (editor: OnesEditor, event: KeyboardEvent) => boolean;
|
|
577
|
-
|
|
578
|
-
|
|
602
|
+
handleBeforeCopy?: (editor: OnesEditor, event: ClipboardEvent, doc: DocObject) => DocObject | boolean | undefined;
|
|
603
|
+
handleBeforeCut?: (editor: OnesEditor, event: ClipboardEvent) => DocObject | boolean | undefined;
|
|
604
|
+
handleBeforePaste?: (editor: OnesEditor, event: ClipboardEvent | null, doc: OnesEditorDocs) => Promise<boolean>;
|
|
605
|
+
handleAfterPaste?: (editor: OnesEditor, event: ClipboardEvent | null, doc: OnesEditorDocs) => Promise<boolean>;
|
|
579
606
|
handleBeforePasteDoc?: (editor: OnesEditor, doc: DocObject) => Promise<boolean>;
|
|
580
|
-
handleAfterPasteDoc?: (editor: OnesEditor, doc: DocObject) => Promise<boolean>;
|
|
607
|
+
handleAfterPasteDoc?: (editor: OnesEditor, doc: DocObject, cloneDocResult: CloneBlockResultInfo) => Promise<boolean>;
|
|
581
608
|
handleChanged?: (editor: OnesEditor, action: OnesEditorUndoAction) => void;
|
|
582
609
|
handleRemoteChanged?: (editor: OnesEditor, type: RemoteChangeType) => void;
|
|
583
610
|
handleCompositionStart?: (editor: OnesEditor, containerId: string, blockIndex: number, offset: number) => void;
|
|
@@ -589,6 +616,7 @@ export interface OnesEditorBlocks {
|
|
|
589
616
|
getBlockClass: (type: string) => Block;
|
|
590
617
|
createBlock: (path: BlockPath, container: ContainerElement, block: DocBlock) => BlockElement;
|
|
591
618
|
forEach: (callback: (blockClass: Block) => void) => void;
|
|
619
|
+
hasBlock: (type: string) => boolean;
|
|
592
620
|
}
|
|
593
621
|
export interface OnesEditorEmbeds {
|
|
594
622
|
registerEmbedClass: (embedClass: Embed) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BlockElement } from '../core';
|
|
1
|
+
import { BlockElement } from '../core/types';
|
|
2
2
|
export declare function isRootBlock(block: BlockElement): boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BlockElement, OnesEditor } from '../core/types';
|
|
2
|
+
export declare function findPrevVisibleSimpleBlock(editor: OnesEditor, block: BlockElement): BlockElement | null;
|
|
3
|
+
export declare function findNextVisibleSimpleBlock(editor: OnesEditor, block: BlockElement): BlockElement | null;
|
|
@@ -3,3 +3,4 @@ import type { OnesEditorHoveringBlockFilter, OnesEditorHoveringBlockFinder } fro
|
|
|
3
3
|
export { OnesEditorHoveringBlock, OnesEditorHoveringBlockFilter, OnesEditorHoveringBlockFinder };
|
|
4
4
|
export * from './block-helper';
|
|
5
5
|
export * from './run-once';
|
|
6
|
+
export * from './find-block';
|
|
@@ -1,3 +1,64 @@
|
|
|
1
|
+
declare const langs: {
|
|
2
|
+
'en-US': {
|
|
3
|
+
name: string;
|
|
4
|
+
date: {
|
|
5
|
+
dateFromFuture: string;
|
|
6
|
+
dateJustNow: string;
|
|
7
|
+
dateYesterday: string;
|
|
8
|
+
dateMinutesAgo: string;
|
|
9
|
+
date1HourAgo: string;
|
|
10
|
+
dateHoursAgo: string;
|
|
11
|
+
dateDaysAgo: string;
|
|
12
|
+
dateWeeksAgo: string;
|
|
13
|
+
};
|
|
14
|
+
common: {
|
|
15
|
+
cancel: string;
|
|
16
|
+
};
|
|
17
|
+
docx: {
|
|
18
|
+
imageExportFailed: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
'zh-CN': {
|
|
22
|
+
name: string;
|
|
23
|
+
date: {
|
|
24
|
+
dateFromFuture: string;
|
|
25
|
+
dateJustNow: string;
|
|
26
|
+
dateYesterday: string;
|
|
27
|
+
dateMinutesAgo: string;
|
|
28
|
+
date1HourAgo: string;
|
|
29
|
+
dateHoursAgo: string;
|
|
30
|
+
dateDaysAgo: string;
|
|
31
|
+
dateWeeksAgo: string;
|
|
32
|
+
};
|
|
33
|
+
common: {
|
|
34
|
+
cancel: string;
|
|
35
|
+
};
|
|
36
|
+
docx: {
|
|
37
|
+
imageExportFailed: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
'ja-JP': {
|
|
41
|
+
name: string;
|
|
42
|
+
date: {
|
|
43
|
+
dateFromFuture: string;
|
|
44
|
+
dateJustNow: string;
|
|
45
|
+
dateYesterday: string;
|
|
46
|
+
dateMinutesAgo: string;
|
|
47
|
+
date1HourAgo: string;
|
|
48
|
+
dateHoursAgo: string;
|
|
49
|
+
dateDaysAgo: string;
|
|
50
|
+
dateWeeksAgo: string;
|
|
51
|
+
};
|
|
52
|
+
common: {
|
|
53
|
+
cancel: string;
|
|
54
|
+
};
|
|
55
|
+
docx: {
|
|
56
|
+
imageExportFailed: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
1
60
|
export declare function setLang(lang?: string | null | undefined): void;
|
|
2
61
|
export declare function mergeLang(l: any): void;
|
|
3
62
|
export declare function t(key: string, args?: Record<string, string>): string;
|
|
63
|
+
export type LANGS = keyof typeof langs;
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
date: {
|
|
4
|
+
dateFromFuture: string;
|
|
5
|
+
dateJustNow: string;
|
|
6
|
+
dateYesterday: string;
|
|
7
|
+
dateMinutesAgo: string;
|
|
8
|
+
date1HourAgo: string;
|
|
9
|
+
dateHoursAgo: string;
|
|
10
|
+
dateDaysAgo: string;
|
|
11
|
+
dateWeeksAgo: string;
|
|
12
|
+
};
|
|
13
|
+
common: {
|
|
14
|
+
cancel: string;
|
|
15
|
+
};
|
|
16
|
+
docx: {
|
|
17
|
+
imageExportFailed: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, OnesEditorDoc, OnesEditorDocCallbacks, OnesEditorUser, UploadResourceOptions, UploadResourceResult } from '../core/doc';
|
|
1
|
+
import { DocBlock, DocBlockDelta, DocBlockText, OnesEditorDocServerMeta, DocBlockTextActions, DocObject, OnesEditorDoc, OnesEditorDocCallbacks, OnesEditorUser, UploadResourceOptions, UploadResourceResult } from '../core/doc';
|
|
2
2
|
import { EventCallbacks } from '../utils';
|
|
3
3
|
import { RemoteUsers } from '../users';
|
|
4
4
|
export declare class LocalDoc extends EventCallbacks<OnesEditorDocCallbacks> implements OnesEditorDoc {
|
|
5
5
|
doc: DocObject;
|
|
6
|
-
|
|
6
|
+
serviceUrl: string;
|
|
7
|
+
constructor(doc: DocObject | null, options?: {
|
|
8
|
+
serverUrl?: string;
|
|
9
|
+
});
|
|
7
10
|
beginBatchUpdate(): number;
|
|
8
11
|
endBatchUpdate(): number;
|
|
9
12
|
toJSON(): DocObject;
|
|
@@ -20,6 +23,7 @@ export declare class LocalDoc extends EventCallbacks<OnesEditorDocCallbacks> imp
|
|
|
20
23
|
buildResourceUrl(src: string): string;
|
|
21
24
|
request<T>(url: string, opt?: any): Promise<T>;
|
|
22
25
|
broadcastMessage(data: unknown): void;
|
|
26
|
+
getServerMeta(): OnesEditorDocServerMeta;
|
|
23
27
|
getUser(): OnesEditorUser;
|
|
24
28
|
getRemoteUsers(): RemoteUsers;
|
|
25
29
|
setDoc(doc: DocObject): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare function hashCode(str: string): number;
|
|
2
|
+
/**
|
|
3
|
+
* 用户名缩写
|
|
4
|
+
* @param name 用户名
|
|
5
|
+
* @param maxLength 最大展示长度
|
|
6
|
+
* @returns 缩写
|
|
7
|
+
* 规则:
|
|
8
|
+
* 1. 中日韩字符,从后往前取
|
|
9
|
+
* 2. 英文字符、特殊字符、数字,从前往后取,如果有空格比如 `Mike Tracy` 取 MT
|
|
10
|
+
* 3. emoji,从后往前取
|
|
11
|
+
* 4. 默认处理从前取
|
|
12
|
+
*/
|
|
13
|
+
export declare function abbreviation(name: string, maxLength?: number): string;
|
|
14
|
+
declare enum EColor {
|
|
15
|
+
blue = "#338FE5",
|
|
16
|
+
cyan = "#34AFDE",
|
|
17
|
+
teal = "#2CB2AE",
|
|
18
|
+
green = "#24B47E",
|
|
19
|
+
kelly = "#8AAB3F",
|
|
20
|
+
yellow = "#F0A100",
|
|
21
|
+
orange = "#EB6414",
|
|
22
|
+
red = "#E52727",
|
|
23
|
+
fuchsia = "#BE507D",
|
|
24
|
+
purple = "#9678D3"
|
|
25
|
+
}
|
|
26
|
+
export declare function getColorFromContent(content: string): EColor;
|
|
27
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare function getScrollContainer(element: HTMLElement
|
|
1
|
+
export declare function getScrollContainer(element: HTMLElement, options?: {
|
|
2
|
+
horizontal?: boolean;
|
|
3
|
+
}): HTMLElement;
|
|
2
4
|
export declare function disablePageScroll(id: string): void;
|
|
3
5
|
export declare function enablePageScroll(id: string): void;
|
|
@@ -26,4 +26,7 @@ export declare function getElementOffset(el: Element): {
|
|
|
26
26
|
left: number;
|
|
27
27
|
};
|
|
28
28
|
export declare function findTarget(event: Event, cssSelector: string): Element | null;
|
|
29
|
+
export declare function findEventTargetBlock(event: Event): Element | null;
|
|
30
|
+
export declare function isElementVisible(element: Element | null): boolean;
|
|
31
|
+
export declare function getElementScale(element: Element): number;
|
|
29
32
|
export {};
|
|
@@ -4,6 +4,7 @@ interface SelectFileOptions {
|
|
|
4
4
|
export declare function selectFile<T extends SelectFileOptions = SelectFileOptions>(accept: string, options?: T): Promise<T extends {
|
|
5
5
|
multiple: true;
|
|
6
6
|
} ? File[] : File>;
|
|
7
|
+
export declare function isDraggingFiles(v: unknown): v is File[];
|
|
7
8
|
export declare function getFileExt(file: string): string;
|
|
8
9
|
export declare function requestDownload(downloadUrl: string, fileName?: string): void;
|
|
9
10
|
export {};
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
export declare enum LogLevel {
|
|
2
|
+
DEBUG = "DEBUG",
|
|
3
|
+
INFO = "INFO ",
|
|
4
|
+
WARN = "WARN ",
|
|
5
|
+
ERROR = "ERROR"
|
|
6
|
+
}
|
|
1
7
|
export declare class Logger {
|
|
2
8
|
private category;
|
|
3
9
|
private times;
|
|
10
|
+
static debugMode: boolean;
|
|
11
|
+
static level: LogLevel;
|
|
4
12
|
constructor(category: string);
|
|
13
|
+
shouldLog(level: LogLevel): boolean;
|
|
5
14
|
private _log;
|
|
6
15
|
log(msg: string | object, context?: string): void;
|
|
7
16
|
debug(msg: string | object, context?: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function overflowText(text: string, fontSize: number, maxwidth: number): string | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnesEditor } from '../../../@ones-editor/core';
|
|
2
|
+
import { DocDetailsBlock } from './types';
|
|
3
|
+
export declare function createEmptyDetailsData(editor: OnesEditor, options?: {
|
|
4
|
+
title?: string;
|
|
5
|
+
}): {
|
|
6
|
+
blockData: DocDetailsBlock;
|
|
7
|
+
focusBlockId: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BlockContentElement, BlockElement, BlockPath, ContainerElement, OnesEditor } from '../../../@ones-editor/core';
|
|
2
|
+
import { DocDetailsBlock } from './types';
|
|
3
|
+
export declare function createDetails(editor: OnesEditor, path: BlockPath, container: ContainerElement, blockElement: BlockElement, blockData: DocDetailsBlock): BlockContentElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BlockElement, OnesEditor, OnesEditorCustom } from '../../../@ones-editor/core';
|
|
2
|
+
export default class DetailsObject implements OnesEditorCustom {
|
|
3
|
+
private editor;
|
|
4
|
+
private blockId;
|
|
5
|
+
private _expanded;
|
|
6
|
+
constructor(editor: OnesEditor, blockId: string);
|
|
7
|
+
destroy(): void;
|
|
8
|
+
get expanded(): boolean;
|
|
9
|
+
set expanded(value: boolean);
|
|
10
|
+
static get(editor: OnesEditor, block: BlockElement | string): DetailsObject;
|
|
11
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BlockElement, ContainerElement, OnesEditor } from '../../../@ones-editor/core';
|
|
2
|
+
export declare function getDetailsContainer(block: BlockElement): ContainerElement;
|
|
3
|
+
export declare function updateExpanded(editor: OnesEditor, block: BlockElement, expanded: boolean): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OnesEditor,
|
|
2
|
-
import {
|
|
1
|
+
import type { OnesEditor, BlockElement } from '../../../../@ones-editor/core';
|
|
2
|
+
import { DrawIoData, GraphDataType, XmlData, XmlSvgData, SrcData, DrawIoOptions } from '../../types';
|
|
3
3
|
import '../../types/window.d';
|
|
4
4
|
export declare function getDrawioOptions(editor: OnesEditor): DrawIoOptions;
|
|
5
5
|
export declare function getDrawioLang(editor: OnesEditor): string;
|
|
@@ -11,12 +11,17 @@ export declare function initializeDrawioIframe(editor: OnesEditor): Promise<{
|
|
|
11
11
|
drawioIframe: HTMLIFrameElement;
|
|
12
12
|
exit: () => void;
|
|
13
13
|
}>;
|
|
14
|
-
export declare function contactWithIframe(editor: OnesEditor, block:
|
|
15
|
-
export declare function editGraph(editor: OnesEditor, block:
|
|
14
|
+
export declare function contactWithIframe(editor: OnesEditor, block: BlockElement, drawIoData: DrawIoData, iframe: HTMLIFrameElement, loaded: () => void, exit: () => void, isInitializationCompleted: boolean): void;
|
|
15
|
+
export declare function editGraph(editor: OnesEditor, block: BlockElement, data: DrawIoData, isInitializationCompleted: boolean): Promise<void>;
|
|
16
16
|
export declare function initDrawIo(editor: OnesEditor): Promise<void>;
|
|
17
|
-
export declare function removeDrawioEmptyStatus(
|
|
18
|
-
export declare function addDrawioEmptyStatus(
|
|
19
|
-
export declare function setGraph(embed:
|
|
20
|
-
export declare function
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
export declare function removeDrawioEmptyStatus(embed: HTMLElement): void;
|
|
18
|
+
export declare function addDrawioEmptyStatus(embed: HTMLElement): void;
|
|
19
|
+
export declare function setGraph(embed: HTMLElement, data: GraphDataType): void;
|
|
20
|
+
export declare function getPreGraphData(embed: HTMLElement): {
|
|
21
|
+
src: string;
|
|
22
|
+
xmlSvg: string;
|
|
23
|
+
xml: string;
|
|
24
|
+
};
|
|
25
|
+
export declare function updateGraphBySrc(src: SrcData['src'], embed: HTMLElement, editor: OnesEditor): void;
|
|
26
|
+
export declare function updateGraphByXml(mxFile: XmlData['xml'], embed: HTMLElement, editor: OnesEditor): void;
|
|
27
|
+
export declare function updateGraphByXmlSvg(xmlSvg: XmlSvgData['xmlSvg'], embed: HTMLElement): void;
|