@ones-editor/editor 0.0.3 → 0.0.4
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 +2 -1
- 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 +3 -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 +3 -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 +2 -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/active-comment.d.ts +1 -1
- 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 +3 -11
- package/@ones-editor/comments/src/comments-list/group-item.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/group-list.d.ts +6 -4
- 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/text-comments/comments-command-provider.d.ts +1 -0
- package/@ones-editor/comments/src/types.d.ts +16 -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/editor-boxes.d.ts +1 -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 +3 -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 +4 -2
- package/@ones-editor/core/src/core/doc/doc.d.ts +18 -3
- package/@ones-editor/core/src/core/doc/rich-text/insert-text.d.ts +2 -1
- package/@ones-editor/core/src/core/doc/to-plain-text.d.ts +1 -0
- package/@ones-editor/core/src/core/editor/actions/add-text-attribute.d.ts +2 -2
- 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/actions/is-writable.d.ts +1 -1
- package/@ones-editor/core/src/core/editor/editor-dom/dom-events.d.ts +2 -2
- package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +10 -4
- 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 +69 -28
- package/@ones-editor/core/src/core/undo-manager/actions/action.d.ts +4 -1
- 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 +63 -1
- 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 +11 -3
- package/@ones-editor/core/src/utils/abbreviation.d.ts +27 -0
- package/@ones-editor/core/src/utils/client.d.ts +1 -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 +3 -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 +16 -10
- package/@ones-editor/drawio-embed/src/lang/en-us.d.ts +9 -4
- package/@ones-editor/drawio-embed/src/lang/index.d.ts +1 -1
- package/@ones-editor/drawio-embed/src/lang/ja-jp.d.ts +12 -0
- package/@ones-editor/drawio-embed/src/lang/zh-cn.d.ts +9 -4
- package/@ones-editor/drawio-embed/types/index.d.ts +4 -4
- 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 +3 -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/package.json +8 -0
- package/@ones-editor/file/src/file-box/index.d.ts +4 -0
- package/@ones-editor/file/src/file-embed/card/file-icon.d.ts +1 -0
- package/@ones-editor/file/src/file-embed/card/index.d.ts +6 -0
- package/@ones-editor/file/src/file-embed/download-file.d.ts +2 -0
- package/@ones-editor/file/src/file-embed/index.d.ts +4 -0
- package/@ones-editor/file/src/index.d.ts +5 -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 +24 -0
- package/@ones-editor/find-dialog/src/doc/doc-handler.d.ts +15 -0
- package/@ones-editor/find-dialog/src/find-dialog.d.ts +4 -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/assets/index.d.ts +2 -0
- package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +9 -3
- 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 +10 -5
- package/@ones-editor/graph-embed/src/lang/ja-jp.d.ts +13 -0
- package/@ones-editor/graph-embed/src/lang/zh-cn.d.ts +6 -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 +7 -0
- package/@ones-editor/heading-collapse/src/locale/index.d.ts +1 -0
- package/@ones-editor/heading-collapse/src/locale/ja-jp.d.ts +7 -0
- package/@ones-editor/heading-collapse/src/locale/zh-cn.d.ts +7 -0
- package/@ones-editor/html-to-doc/src/html-to-doc/normal-html/code.d.ts +1 -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 +5 -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/index.d.ts +2 -2
- package/@ones-editor/input-handlers/src/markdown-shortcuts/index.d.ts +2 -1
- package/@ones-editor/input-handlers/src/markdown-shortcuts/match-block-convert.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 +7 -3
- package/@ones-editor/list-block/src/keyboard/shortcut.d.ts +3 -0
- 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/list-block/src/utils/list-parent.d.ts +1 -0
- 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 +18 -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 +3 -1
- package/@ones-editor/scroll-container/src/utils.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 +14 -4
- 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-handler.d.ts +14 -1
- 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-border-bar.d.ts +2 -1
- 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-change-handler.d.ts +2 -0
- package/@ones-editor/table-block/src/table-block/doc-table-data.d.ts +2 -2
- 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 +2 -0
- package/@ones-editor/table-block/src/types.d.ts +5 -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 -1
- 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 +3 -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/toc/src/types.d.ts +3 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +7 -3
- 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 -12
- package/@ones-editor/ui/src/quick-menu/index.d.ts +7 -6
- package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +8 -14
- package/@ones-editor/ui/src/quick-menu/insert-empty-block.d.ts +4 -2
- package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +4 -1
- package/@ones-editor/ui/src/quick-menu/types.d.ts +24 -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/helper.d.ts +1 -1
- package/@ones-editor/ui/src/toolbar/object-commands.d.ts +5 -1
- package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +3 -1
- package/@ones-editor/ui/src/tooltips/index.d.ts +6 -1
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +24 -13
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +12 -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 +2 -1
- 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 +13 -2
- package/@ones-editor/ui-base/src/components/button.d.ts +1 -1
- package/@ones-editor/ui-base/src/components/checkbox.d.ts +3 -0
- package/@ones-editor/ui-base/src/components/index.d.ts +2 -0
- package/@ones-editor/ui-base/src/components/loading.d.ts +2 -0
- 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 +44 -0
- package/@ones-editor/ui-base/src/icons/index.d.ts +7 -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 +6 -5
- package/@ones-editor/versions/src/index.d.ts +1 -1
- package/@ones-editor/versions/src/locale/en-us.d.ts +29 -0
- package/@ones-editor/versions/src/locale/ja-jp.d.ts +44 -0
- package/@ones-editor/versions/src/locale/zh-cn.d.ts +29 -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 +26 -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 +23 -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 +24 -4
- package/dist/index.js +483 -374
- 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 +45 -5
- package/dist/versions/versions-provider.d.ts +1 -1
- package/package.json +7 -1
- package/@ones-editor/block-menu/src/icons/index.d.ts +0 -4
- 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,7 +1,8 @@
|
|
|
1
1
|
import { BlockCommands, BlockElement, BlockPath, CommandItem, ContainerElement, DocBlock, OnesEditor, OnesEditorBlockHook } from '../../../@ones-editor/core';
|
|
2
2
|
export default class BlockLockerHook implements OnesEditorBlockHook {
|
|
3
3
|
create(editor: OnesEditor, path: BlockPath, container: ContainerElement, blockElement: BlockElement, blockData: DocBlock): void;
|
|
4
|
-
|
|
4
|
+
update(editor: OnesEditor, path: BlockPath, container: ContainerElement, blockElement: BlockElement, blockData: DocBlock): void;
|
|
5
|
+
writable(editor: OnesEditor, blockElement: BlockElement | BlockElement[]): boolean | undefined;
|
|
5
6
|
commands(editor: OnesEditor, blockElement: BlockElement): BlockCommands;
|
|
6
7
|
executeCommand: (editor: OnesEditor, blockElement: BlockElement, item: CommandItem) => void;
|
|
7
8
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { BlockElement, OnesEditor, CommandItem } from '../../../../@ones-editor/core';
|
|
2
|
+
import type { ManualShowCommandBarOptions } from '../../../../@ones-editor/ui-base';
|
|
2
3
|
export default class BlockMenu {
|
|
3
4
|
private editor;
|
|
4
5
|
private menu;
|
|
5
6
|
currentBlock: BlockElement | null;
|
|
6
7
|
private commandBlock;
|
|
7
8
|
constructor(editor: OnesEditor);
|
|
8
|
-
show(target: HTMLElement): void;
|
|
9
|
+
show(target: HTMLElement, options?: ManualShowCommandBarOptions): void;
|
|
9
10
|
isInMenu(eventTarget: EventTarget | null): boolean;
|
|
10
11
|
handleShow: () => void;
|
|
12
|
+
handleClose: () => void;
|
|
11
13
|
handleItemClick: (bar: unknown, item: CommandItem) => void;
|
|
12
14
|
setBlock(block: BlockElement): void;
|
|
13
15
|
close: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
|
|
2
2
|
import { BlockMenuItem } from './types';
|
|
3
|
-
export declare function getBlockCommandItems(editor: OnesEditor, block: BlockElement): BlockMenuItem[];
|
|
3
|
+
export declare function getBlockCommandItems(editor: OnesEditor, block: BlockElement, excludes?: Set<string>): BlockMenuItem[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BlockElement, OnesEditor } from '../../../../../../@ones-editor/core';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import type { GetAllQuickMenuItemsOptions } from '../../../../../../@ones-editor/ui';
|
|
3
|
+
import type { BlockMenuItem } from '../types';
|
|
4
|
+
export declare function getAllInsertBlockItems(editor: OnesEditor, source: 'insert-block' | 'insert-block-before', options?: GetAllQuickMenuItemsOptions): BlockMenuItem[];
|
|
4
5
|
export declare function executeInsertBlockCommand(editor: OnesEditor, block: BlockElement, item: BlockMenuItem, insertAbove?: boolean): Promise<BlockElement | null> | undefined;
|
|
@@ -8,6 +8,7 @@ export interface ParagraphBlockAttribute extends DocBlock {
|
|
|
8
8
|
ordered?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export type TextStyleItemOptions = {
|
|
11
|
+
fromEmbed?: boolean;
|
|
11
12
|
onAfterStyleItemClick?: () => void;
|
|
12
13
|
};
|
|
13
14
|
export default class TextStyleItem implements BlockMenuItem {
|
|
@@ -18,10 +19,12 @@ export default class TextStyleItem implements BlockMenuItem {
|
|
|
18
19
|
id: string;
|
|
19
20
|
name: string;
|
|
20
21
|
element: HTMLElement;
|
|
22
|
+
private textStylesTooltips;
|
|
21
23
|
constructor(editor: OnesEditor, block: BlockElement, options: TextStyleItemOptions);
|
|
22
24
|
createItemElement(editor: OnesEditor, block: BlockElement): HTMLDivElement;
|
|
23
25
|
private createHeadingItemElement;
|
|
24
26
|
private createListItemElement;
|
|
25
27
|
createItem(id: string, icon: string, parent: HTMLElement, active?: boolean): void;
|
|
26
28
|
handleClick: (editor: OnesEditor, event: Event) => void;
|
|
29
|
+
private calcTextStyleItemTooltipsEnum;
|
|
27
30
|
}
|
|
@@ -5,16 +5,17 @@ export default class BlockMenuButtonDragHandler {
|
|
|
5
5
|
private editor;
|
|
6
6
|
private button;
|
|
7
7
|
dragPreview: DragPreviewImage;
|
|
8
|
-
autoScroll: AutoScroll;
|
|
8
|
+
autoScroll: AutoScroll | undefined;
|
|
9
9
|
oldPos: {
|
|
10
10
|
x: number;
|
|
11
11
|
y: number;
|
|
12
12
|
};
|
|
13
13
|
constructor(editor: OnesEditor, button: OnesEditorBlockMenuButton);
|
|
14
14
|
destroy(): void;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
handleMouseDown: (event: MouseEvent) => void;
|
|
16
|
+
handleDragStart: (event: MouseEvent) => void;
|
|
17
|
+
handleDrag: (event: MouseEvent) => void;
|
|
18
|
+
handleDragEnd: (event: MouseEvent) => void;
|
|
18
19
|
}
|
|
19
20
|
declare global {
|
|
20
21
|
interface Window {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BlockElement } from '../../../../../@ones-editor/core';
|
|
2
2
|
export declare function findPreviewElement(block: BlockElement): HTMLElement;
|
|
@@ -4,7 +4,7 @@ export declare class DragPreviewImage {
|
|
|
4
4
|
private startPosition;
|
|
5
5
|
constructor(editor: OnesEditor);
|
|
6
6
|
private dragContainer;
|
|
7
|
-
handleDragStart: (e:
|
|
8
|
-
handleDrag: (e:
|
|
7
|
+
handleDragStart: (e: MouseEvent, preview: HTMLElement) => Promise<void>;
|
|
8
|
+
handleDrag: (e: MouseEvent) => void;
|
|
9
9
|
handleDragEnd: () => void;
|
|
10
10
|
}
|
|
@@ -11,10 +11,14 @@ declare const _default: {
|
|
|
11
11
|
command: {
|
|
12
12
|
insertAbove: string;
|
|
13
13
|
insertAfter: string;
|
|
14
|
+
copy: string;
|
|
15
|
+
cut: string;
|
|
16
|
+
delete: string;
|
|
14
17
|
};
|
|
15
18
|
button: {
|
|
16
19
|
searchPlaceholder: string;
|
|
17
20
|
tips: string;
|
|
21
|
+
insertTips: string;
|
|
18
22
|
};
|
|
19
23
|
};
|
|
20
24
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
blockMenu: {
|
|
3
|
+
section: {
|
|
4
|
+
basics: string;
|
|
5
|
+
system: string;
|
|
6
|
+
styles: string;
|
|
7
|
+
common: string;
|
|
8
|
+
actions: string;
|
|
9
|
+
thirdParty: string;
|
|
10
|
+
};
|
|
11
|
+
command: {
|
|
12
|
+
insertAbove: string;
|
|
13
|
+
insertAfter: string;
|
|
14
|
+
copy: string;
|
|
15
|
+
cut: string;
|
|
16
|
+
delete: string;
|
|
17
|
+
};
|
|
18
|
+
button: {
|
|
19
|
+
searchPlaceholder: string;
|
|
20
|
+
tips: string;
|
|
21
|
+
insertTips: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -11,10 +11,14 @@ declare const _default: {
|
|
|
11
11
|
command: {
|
|
12
12
|
insertAbove: string;
|
|
13
13
|
insertAfter: string;
|
|
14
|
+
copy: string;
|
|
15
|
+
cut: string;
|
|
16
|
+
delete: string;
|
|
14
17
|
};
|
|
15
18
|
button: {
|
|
16
19
|
searchPlaceholder: string;
|
|
17
20
|
tips: string;
|
|
21
|
+
insertTips: string;
|
|
18
22
|
};
|
|
19
23
|
};
|
|
20
24
|
};
|
|
@@ -19,6 +19,7 @@ export declare class BlockResizer extends TypedEmitter<BlockResizerEvents> {
|
|
|
19
19
|
enableResize(block: BlockElement, resizableElement?: HTMLElement): void;
|
|
20
20
|
disableResize(): void;
|
|
21
21
|
update(block: BlockElement, resizableElement?: HTMLElement): void;
|
|
22
|
+
updateResizer(): void;
|
|
22
23
|
getBlock(): BlockElement | null;
|
|
23
24
|
destroy(): void;
|
|
24
25
|
private getResizableElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnesEditor, OnesEditorCustom, OnesEditorInputHandler } from '../../../../../@ones-editor/core';
|
|
1
|
+
import { OnesEditor, OnesEditorCustom, OnesEditorDocs, OnesEditorInputHandler } from '../../../../../@ones-editor/core';
|
|
2
2
|
export default class CodeBlockCaptionInputHandler implements OnesEditorInputHandler, OnesEditorCustom {
|
|
3
3
|
constructor(editor: OnesEditor);
|
|
4
4
|
destroy(): void;
|
|
5
5
|
handleBeforeKeyDown(editor: OnesEditor, event: KeyboardEvent): boolean;
|
|
6
|
-
handleBeforePaste(editor: OnesEditor, event: ClipboardEvent): Promise<boolean>;
|
|
6
|
+
handleBeforePaste(editor: OnesEditor, event: ClipboardEvent | null, docs: OnesEditorDocs): Promise<boolean>;
|
|
7
7
|
static init(editor: OnesEditor): void;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BlockElement, ContainerElement } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, ContainerElement, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
2
|
export declare function getTextContainer(codeBlock: BlockElement): ContainerElement;
|
|
3
3
|
export declare function getCaptionContainer(codeBlock: BlockElement): ContainerElement | null;
|
|
4
4
|
export declare function getCodeChildContainers(codeBlock: BlockElement): ContainerElement[];
|
|
5
|
-
export declare function isCodeTextBlock(block: BlockElement): boolean;
|
|
5
|
+
export declare function isCodeTextBlock(editor: OnesEditor, block: BlockElement): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DocObject, OnesEditor, OnesEditorInputHandler } from '../../../../@ones-editor/core';
|
|
2
|
+
export default class CopyCodeInputHandler implements OnesEditorInputHandler {
|
|
3
|
+
handleBeforeCopy(editor: OnesEditor, event: ClipboardEvent, doc: DocObject): boolean | DocObject | undefined;
|
|
4
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
2
|
import { DocCodeBlockData } from './code-block-data';
|
|
3
|
-
export declare function createEmptyCode(editor: OnesEditor): {
|
|
3
|
+
export declare function createEmptyCode(editor: OnesEditor): Promise<{
|
|
4
4
|
blockData: DocCodeBlockData;
|
|
5
5
|
focusBlockId: string;
|
|
6
|
-
}
|
|
6
|
+
}>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import CodeBlock, { CodeLineBlock } from './code-block';
|
|
2
|
+
import OnesEditorCodeCaret from './code-caret';
|
|
3
|
+
import CopyCodeInputHandler from './code-copy';
|
|
2
4
|
import CodeShortcuts from './code-shortcuts';
|
|
3
5
|
import CodeTextDecorator from './code-text-decorate';
|
|
4
|
-
export { CodeBlock, CodeLineBlock, CodeTextDecorator, CodeShortcuts };
|
|
6
|
+
export { CodeBlock, CodeLineBlock, CodeTextDecorator, CodeShortcuts, CopyCodeInputHandler, OnesEditorCodeCaret };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const CopyIcon = "\n<svg
|
|
1
|
+
declare const CopyIcon = "\n<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13.5361 20.4C14.2409 20.4 14.773 20.2179 15.1325 19.8537C15.492 19.4895 15.6718 18.9502 15.6718 18.236L15.6718 16.9949L16.8283 16.9943C17.5378 16.9943 18.0711 16.8122 18.4282 16.448C18.7854 16.0838 18.9639 15.5446 18.9639 14.8303V9.45929C18.9639 9.03358 18.9142 8.67173 18.8149 8.37373C18.7156 8.07573 18.5335 7.79193 18.2686 7.52231L14.9055 4.09535C14.6595 3.84465 14.3875 3.66609 14.0895 3.55967C13.7915 3.45324 13.4557 3.40002 13.082 3.40002H10.5349C9.83008 3.40002 9.29794 3.58213 8.93846 3.94635C8.57897 4.31057 8.39922 4.8498 8.39922 5.56405L8.39905 6.80672L7.23562 6.8057C6.53083 6.8057 5.9987 6.98781 5.63921 7.35203C5.27972 7.71625 5.09998 8.25548 5.09998 8.96972V18.236C5.09998 18.9502 5.27972 19.4895 5.63921 19.8537C5.9987 20.2179 6.53083 20.4 7.23562 20.4H13.5361ZM15.6718 13.0423C15.6718 12.5977 15.6316 12.2489 15.5512 11.9958C15.4708 11.7427 15.291 11.4743 15.0119 11.1905L11.3508 7.46554C11.0859 7.19593 10.8246 7.01855 10.5668 6.93341C10.3606 6.86529 10.1112 6.82443 9.8187 6.8108L9.61239 6.80672L9.61251 5.6279C9.61251 5.30152 9.69647 5.05319 9.86439 4.88291C10.0323 4.71262 10.2842 4.62748 10.62 4.62748H13.4936V7.92673C13.4936 8.33352 13.5964 8.63743 13.8022 8.83846C14.008 9.03949 14.3095 9.14 14.7068 9.14H17.7436V14.7736C17.7436 15.0952 17.6596 15.3424 17.4917 15.515C17.3238 15.6877 17.0719 15.774 16.7361 15.774L15.6718 15.7743L15.6718 13.0423ZM14.87 8.09704H17.4313L14.5436 5.16674V7.76357C14.5436 7.98589 14.6524 8.09704 14.87 8.09704ZM13.4439 19.1796H7.32078C6.98967 19.1796 6.74016 19.0933 6.57224 18.9207C6.40432 18.748 6.32036 18.5009 6.32036 18.1792V9.01937C6.32036 8.70245 6.4055 8.45885 6.57579 8.28857C6.74607 8.11829 6.99676 8.03314 7.32787 8.03314H9.44932V11.7865C9.44932 12.25 9.56285 12.593 9.78989 12.8153C10.0169 13.0376 10.3551 13.1488 10.8045 13.1488H14.4585V18.1792C14.4585 18.5009 14.3734 18.748 14.2031 18.9207C14.0328 19.0933 13.7797 19.1796 13.4439 19.1796ZM10.9322 12.0561H14.2598L10.5491 8.28144V11.6658C10.5491 11.803 10.5798 11.9023 10.6413 11.9638C10.7028 12.0253 10.7998 12.0561 10.9322 12.0561Z\"/>\n</svg>\n";
|
|
2
2
|
export default CopyIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const WrapIcon = "\n<svg
|
|
1
|
+
declare const WrapIcon = "\n<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18.4388 7.11504H5.55388C5.24779 7.11504 5 6.86726 5 6.55388C5 6.24779 5.24779 6 5.55388 6H18.4388C18.7522 6 19 6.24779 19 6.55388C19 6.86726 18.7449 7.11504 18.4388 7.11504ZM18.4388 10.7225H5.55388C5.24779 10.7225 5 10.4748 5 10.1687C5 9.86257 5.24779 9.61478 5.55388 9.61478H18.4388C18.7522 9.61478 19 9.85528 19 10.1687C19 10.4748 18.7449 10.7225 18.4388 10.7225ZM18.4388 14.3373H5.55388C5.24779 14.3373 5 14.0895 5 13.7834C5 13.4701 5.24779 13.2223 5.55388 13.2223H18.4388C18.7522 13.2223 19 13.4701 19 13.7834C19 14.0895 18.7449 14.3373 18.4388 14.3373ZM12.8855 17.9448H5.55388C5.24779 17.9448 5 17.697 5 17.3909C5 17.0849 5.24779 16.8371 5.55388 16.8371H12.8855C13.1989 16.8371 13.4466 17.0849 13.4466 17.3909C13.4466 17.7043 13.1989 17.9448 12.8855 17.9448ZM21 14.7344V16.3013C21 17.486 20.4268 18.0593 19.2357 18.0593L17.5159 18.0593V18.8555C17.5159 19.2631 17.1019 19.4351 16.7771 19.1803L15.2866 18.0211C14.9045 17.7217 14.9045 17.3459 15.2866 17.0465L16.7771 15.8809C17.1019 15.6262 17.5159 15.8045 17.5159 16.2121V17.0083H19.1847C19.6943 17.0083 19.9554 16.7535 19.9554 16.2121V14.7344C19.9554 14.365 20.1465 14.1548 20.4777 14.1484C20.8153 14.1421 21 14.365 21 14.7344Z\"/>\n</svg>\n";
|
|
2
2
|
export default WrapIcon;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BlockCommands, BlockElement, CommandItem, OnesEditor } from '../../../@ones-editor/core';
|
|
2
|
+
export declare class ColumnsBlockCommands implements BlockCommands {
|
|
3
|
+
protected editor: OnesEditor;
|
|
4
|
+
protected block: BlockElement;
|
|
5
|
+
group: string;
|
|
6
|
+
constructor(editor: OnesEditor, block: BlockElement);
|
|
7
|
+
_commands: CommandItem[];
|
|
8
|
+
get commands(): CommandItem[];
|
|
9
|
+
executeCommand(editor: OnesEditor, block: BlockElement, item: CommandItem): void;
|
|
10
|
+
}
|
|
11
|
+
export declare function getColumnsBlockProperties(editor: OnesEditor, block: BlockElement): {
|
|
12
|
+
blockCommands: {
|
|
13
|
+
'hovering-toolbar': ColumnsBlockCommands;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DocBlock } from '../../../@ones-editor/core';
|
|
2
|
+
export type ColumnData = {
|
|
3
|
+
type: string;
|
|
4
|
+
columns: 1 | 2 | 3 | 4;
|
|
5
|
+
};
|
|
6
|
+
export declare const COLUMNS: ColumnData[];
|
|
7
|
+
export interface DocColumnsBlock extends DocBlock {
|
|
8
|
+
columnType: string;
|
|
9
|
+
children: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare function getColumnData(type: string): ColumnData;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, OnesEditor, OnesEditorComment } from '../../../../@ones-editor/core';
|
|
2
2
|
import { OnesEditorCommentsProvider } from '../types';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function updateCommentToBlock(editor: OnesEditor, block: BlockElement, comment: OnesEditorComment): void;
|
|
4
|
+
export declare function addCommentToBlock(editor: OnesEditor, block: BlockElement, provider: OnesEditorCommentsProvider): OnesEditorComment;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { OnesEditor, OnesEditorComment, SelectionRange } from '../../../../@ones-editor/core';
|
|
1
|
+
import { OnesEditor, OnesEditorComment, SelectedBlock, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
import { OnesEditorCommentsProvider } from '../types';
|
|
3
|
+
export declare function addCommentToSelectedTextBlock(editor: OnesEditor, selectedBlock: SelectedBlock, comment: OnesEditorComment): void;
|
|
3
4
|
export declare function addCommentToTextBlocks(editor: OnesEditor, range: SelectionRange, provider: OnesEditorCommentsProvider): OnesEditorComment;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DocObject } from '../../../../@ones-editor/core';
|
|
2
|
+
import type { OnesEditor, OnesEditorInputHandler } from '../../../../@ones-editor/core';
|
|
3
|
+
export declare class CommentPasteHandler implements OnesEditorInputHandler {
|
|
4
|
+
handleBeforePasteDoc(editor: OnesEditor, doc: DocObject): Promise<boolean>;
|
|
5
|
+
}
|
|
@@ -23,6 +23,7 @@ export declare class CommentItem {
|
|
|
23
23
|
get doc(): import("@ones-editor/core").DocObject;
|
|
24
24
|
private createRoot;
|
|
25
25
|
private createMoreMenu;
|
|
26
|
+
private createAvatar;
|
|
26
27
|
private createItem;
|
|
27
28
|
private handleMore;
|
|
28
29
|
private handleMoreMenuItemShow;
|
|
@@ -34,6 +35,7 @@ export declare class CommentItem {
|
|
|
34
35
|
getCommentEditor: () => CommentEditor;
|
|
35
36
|
reloadDoc(): void;
|
|
36
37
|
edit(): void;
|
|
38
|
+
handleReadonlyChanged: (editor: OnesEditor) => void;
|
|
37
39
|
destroy(): void;
|
|
38
40
|
}
|
|
39
41
|
export {};
|
|
@@ -10,6 +10,7 @@ export declare class MobileCommentItem {
|
|
|
10
10
|
private components;
|
|
11
11
|
constructor(editor: OnesEditor, commentsProvider: OnesEditorCommentsProvider, comment: OnesEditorComment);
|
|
12
12
|
private get doc();
|
|
13
|
+
private createAvatar;
|
|
13
14
|
createItem(): {
|
|
14
15
|
mobileCommentEditor: CommentEditor;
|
|
15
16
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
-
import { OnesEditorCommentsProvider } from '../types';
|
|
2
|
+
import { CommentRoot, OnesEditorCommentsProvider } from '../types';
|
|
3
3
|
export default class OnesEditorComments {
|
|
4
4
|
private editor;
|
|
5
5
|
private provider;
|
|
6
|
-
private root;
|
|
7
6
|
private commentList;
|
|
8
7
|
private mobileCommentList;
|
|
9
8
|
private miniCommentList;
|
|
10
|
-
constructor(editor: OnesEditor, provider: OnesEditorCommentsProvider
|
|
9
|
+
constructor(editor: OnesEditor, provider: OnesEditorCommentsProvider);
|
|
10
|
+
get commentProvider(): OnesEditorCommentsProvider;
|
|
11
11
|
get isMobile(): boolean;
|
|
12
12
|
destroy(): void;
|
|
13
13
|
private showComment;
|
|
14
14
|
showCommentList: (groupId?: string) => void;
|
|
15
|
+
mount(containers: CommentRoot): void;
|
|
15
16
|
private handleCommentListClose;
|
|
16
17
|
private handleOnSelectComment;
|
|
17
|
-
private handleMiniCommentClose;
|
|
18
18
|
private handleMiniCommentItemClick;
|
|
19
19
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
-
export declare function activeComment(editor: OnesEditor, commentId: string): void;
|
|
2
|
+
export declare function activeComment(editor: OnesEditor, commentId: string, direction?: 'prev' | 'next'): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OnesEditorComment, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
2
|
export declare function isChildComment(comment: OnesEditorComment): boolean;
|
|
3
|
-
export declare function getCommentsRoot(): HTMLDivElement;
|
|
4
3
|
export declare function getCommentItemCountInGroupItem(groupItemRoot: HTMLElement, commentItemCls?: string): number;
|
|
5
4
|
export declare function getClosestCommentItemId(element: HTMLElement): string | null;
|
|
6
5
|
export declare function addGroupActionToElement(element: HTMLElement, action: string): void;
|
|
@@ -8,3 +7,4 @@ export declare function getClosestGroupItemActionElement(element: HTMLElement):
|
|
|
8
7
|
export declare function getActionFromActionElement(actionElement: HTMLElement): string;
|
|
9
8
|
export declare function isDisabledActionElement(actionElement: HTMLElement): boolean;
|
|
10
9
|
export declare function getBlockIdByGroupId(editor: OnesEditor, commentId: string): string | null;
|
|
10
|
+
export declare function getAllCommentInCommentElement(element: HTMLElement): string[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
2
|
import type { CommentGroupItem } from './group-item';
|
|
3
|
-
export declare function arrangeItems(editor: OnesEditor, items: CommentGroupItem[], activeItem: CommentGroupItem | null): void;
|
|
3
|
+
export declare function arrangeItems(editor: OnesEditor, items: CommentGroupItem[], activeItem: CommentGroupItem | null, fixTop?: number): void;
|
|
@@ -3,32 +3,24 @@ import { TypedEmitter } from 'tiny-typed-emitter';
|
|
|
3
3
|
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../types';
|
|
4
4
|
import CommentGroupList from './group-list';
|
|
5
5
|
interface CommentsListEvents {
|
|
6
|
-
onCommentListClose: () => void;
|
|
7
6
|
onSelectComment: () => void;
|
|
8
7
|
}
|
|
9
8
|
export default class CommentsList extends TypedEmitter<CommentsListEvents> implements OnesEditorCommentsEvents {
|
|
10
9
|
private editor;
|
|
11
10
|
private commentsProvider;
|
|
12
|
-
|
|
13
|
-
private header;
|
|
11
|
+
root: HTMLElement;
|
|
14
12
|
private groupsContainer;
|
|
15
13
|
private list;
|
|
16
|
-
constructor(editor: OnesEditor, commentsProvider: OnesEditorCommentsProvider
|
|
14
|
+
constructor(editor: OnesEditor, commentsProvider: OnesEditorCommentsProvider);
|
|
17
15
|
private get commentOptions();
|
|
18
16
|
destroy(): void;
|
|
19
17
|
onCreateComment(commentId: string, local: boolean): void;
|
|
20
18
|
onDeleteComment(commentId: string, local: boolean): void;
|
|
21
19
|
onUpdateComment(commentId: string, local: boolean): void;
|
|
22
|
-
createHeader(): {
|
|
23
|
-
header: HTMLDivElement;
|
|
24
|
-
count: HTMLSpanElement;
|
|
25
|
-
closeButton: HTMLButtonElement;
|
|
26
|
-
};
|
|
27
20
|
createList(): CommentGroupList;
|
|
28
|
-
handleCloseButtonClick: () => void;
|
|
29
21
|
handleSelectionOnComment: () => void;
|
|
30
22
|
updateCommentCount: () => void;
|
|
31
|
-
handleActiveItemChanged: () => void;
|
|
23
|
+
handleActiveItemChanged: (index: number, direction?: 'prev' | 'next') => void;
|
|
32
24
|
handleItemLayoutUpdated: () => void;
|
|
33
25
|
show(groupId?: string): void;
|
|
34
26
|
hide(): void;
|
|
@@ -33,6 +33,7 @@ export declare class CommentGroupItem extends TypedEmitter<CommentGroupItemEvent
|
|
|
33
33
|
handleUpdateChildComment(comment: OnesEditorComment): void;
|
|
34
34
|
handleUpdateMainComment(comment: OnesEditorComment): void;
|
|
35
35
|
deleteMainComment(commentId: OnesEditorComment['id']): void;
|
|
36
|
+
handleReadonlyChanged: (editor: OnesEditor) => void;
|
|
36
37
|
edit(): void;
|
|
37
38
|
destroy(): void;
|
|
38
39
|
private handleResize;
|
|
@@ -4,9 +4,8 @@ import { CommentGroupItem } from './group-item';
|
|
|
4
4
|
import ListBase from './list-base';
|
|
5
5
|
import { CommentGroupItemHandlers } from './handler';
|
|
6
6
|
export interface CommentGroupListEvents {
|
|
7
|
-
activeItemChanged: (index: number) => void;
|
|
7
|
+
activeItemChanged: (index: number, direction?: 'prev' | 'next') => void;
|
|
8
8
|
itemLayoutUpdated: () => void;
|
|
9
|
-
itemCountClicked: () => void;
|
|
10
9
|
selectionOnComment: () => void;
|
|
11
10
|
commentCountChanged: () => void;
|
|
12
11
|
}
|
|
@@ -19,8 +18,10 @@ export default class CommentGroupList extends ListBase<CommentWithChildren, Comm
|
|
|
19
18
|
private unbindEvents;
|
|
20
19
|
protected createItem(data: CommentWithChildren, reason: 'init' | 'insert'): CommentGroupItem;
|
|
21
20
|
protected findInsertPos(data: CommentWithChildren): number;
|
|
22
|
-
insertItem(data: CommentWithChildren
|
|
23
|
-
|
|
21
|
+
insertItem(data: CommentWithChildren, options?: {
|
|
22
|
+
active: boolean;
|
|
23
|
+
}): CommentGroupItem | null;
|
|
24
|
+
setActiveItem(index: number, direction?: 'prev' | 'next'): void;
|
|
24
25
|
get activeIndex(): number;
|
|
25
26
|
get activeItem(): CommentGroupItem | null;
|
|
26
27
|
findGroupItem: (groupId: string) => CommentGroupItem | undefined;
|
|
@@ -32,6 +33,7 @@ export default class CommentGroupList extends ListBase<CommentWithChildren, Comm
|
|
|
32
33
|
handleEditorResize: () => void;
|
|
33
34
|
handleDocChanged: () => void;
|
|
34
35
|
handleItemResize: () => void;
|
|
36
|
+
handleScroll: (event: WheelEvent) => void;
|
|
35
37
|
updateGroupItemSwitch: () => void;
|
|
36
38
|
private updateComments;
|
|
37
39
|
}
|
|
@@ -6,6 +6,7 @@ export declare class MiniGroupList extends ListBase<MiniCommentGroup, MiniGroupI
|
|
|
6
6
|
protected editor: OnesEditor;
|
|
7
7
|
protected commentsProvider: OnesEditorCommentsProvider;
|
|
8
8
|
constructor(editor: OnesEditor, commentsProvider: OnesEditorCommentsProvider, parent: HTMLElement);
|
|
9
|
+
private fixListOps;
|
|
9
10
|
protected createItem(data: MiniCommentGroup): MiniGroupItem;
|
|
10
11
|
protected findInsertPos(): number;
|
|
11
12
|
private handleDocChanged;
|