@ones-editor/editor 0.0.3-beta.24 → 0.0.3-beta.241
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/ja-JP.d.ts +8 -0
- package/@ones-editor/block-locker/src/index.d.ts +2 -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 +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/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 +2 -3
- package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +1 -1
- package/@ones-editor/comments/src/comments-helper/utils.d.ts +0 -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 -3
- 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 -3
- 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 -1
- 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/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 +9 -5
- 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-doc.d.ts +1 -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/converter/selected-block-to-doc.d.ts +1 -3
- 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/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/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 +1 -1
- 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/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 -25
- 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 +5 -1
- 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/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-target.d.ts +2 -0
- package/@ones-editor/drop-target/src/handlers/drag-file.d.ts +0 -1
- 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 +3 -1
- 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/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/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 +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/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/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 +2 -1
- package/@ones-editor/scroll-container/src/scroll-listener.d.ts +2 -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 +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-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/src/locale/ja-jp.d.ts +9 -0
- package/@ones-editor/templates/src/templates/select-template.d.ts +0 -1
- 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 +2 -2
- 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/toc/src/types.d.ts +3 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +6 -4
- 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/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 +4 -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 +23 -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 +8 -2
- 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/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 +19 -4
- package/dist/index.js +464 -437
- 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 +35 -3
- package/dist/versions/versions-provider.d.ts +1 -1
- package/package.json +7 -4
- package/@ones-editor/block-menu/src/icons/index.d.ts +0 -4
- package/@ones-editor/e2e/cypress/support/commands.d.ts +0 -25
- 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/case.d.ts +0 -17
- package/@ones-editor/e2e/src/block-menu/menu.cy.d.ts +0 -1
- package/@ones-editor/e2e/src/data.d.ts +0 -131
- 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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
placeholder: {
|
|
3
|
+
common: {
|
|
4
|
+
title: string;
|
|
5
|
+
readonlyTitle: string;
|
|
6
|
+
content: string;
|
|
7
|
+
contentInTable: string;
|
|
8
|
+
};
|
|
9
|
+
local: {
|
|
10
|
+
readonlyTitle: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
copyCutProperty: {
|
|
14
|
+
copy: string;
|
|
15
|
+
cut: string;
|
|
16
|
+
unsafeEnvTips: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
placeholder: {
|
|
3
|
+
common: {
|
|
4
|
+
title: string;
|
|
5
|
+
readonlyTitle: string;
|
|
6
|
+
content: string;
|
|
7
|
+
contentInTable: string;
|
|
8
|
+
};
|
|
9
|
+
local: {
|
|
10
|
+
readonlyTitle: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
copyCutProperty: {
|
|
14
|
+
copy: string;
|
|
15
|
+
cut: string;
|
|
16
|
+
unsafeEnvTips: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
placeholder: {
|
|
3
|
+
common: {
|
|
4
|
+
title: string;
|
|
5
|
+
readonlyTitle: string;
|
|
6
|
+
content: string;
|
|
7
|
+
contentInTable: string;
|
|
8
|
+
};
|
|
9
|
+
local: {
|
|
10
|
+
readonlyTitle: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
copyCutProperty: {
|
|
14
|
+
copy: string;
|
|
15
|
+
cut: string;
|
|
16
|
+
unsafeEnvTips: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const StandardBlocks: (import("@ones-editor/core").TextKindBlock | import("@ones-editor/core").ComplexKindBlock)[];
|
|
2
|
+
export declare const StandardEmbeds: import("@ones-editor/core").Embed[];
|
|
3
|
+
export declare const StandardBoxes: import("@ones-editor/core").Box[];
|
package/dist/types.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { Embed, OnesEditor, OnesEditorUser, OnesEditorUserPermission } from '../@ones-editor/core';
|
|
1
|
+
import { Embed, Box, i18n, OnesEditor, OnesEditorUser, OnesEditorUserPermission, OnesEditorBlockHook, OnesEditorCommandProvider, LogLevel, Block, ShortcutRecords, OnesEditorBlockRenderer } from '../@ones-editor/core';
|
|
2
2
|
import { DrawIoOptions } from '../@ones-editor/drawio-embed';
|
|
3
3
|
import { MermaidEmbedOptions } from '../@ones-editor/graph-embed';
|
|
4
4
|
import { ImageOptions } from '../@ones-editor/image-embed';
|
|
5
5
|
import { MediaEmbedOptions } from '../@ones-editor/media-embed';
|
|
6
|
-
import { MentionOptions } from '../@ones-editor/mention/src/mention';
|
|
7
6
|
import { TableOptions } from '../@ones-editor/table-block';
|
|
8
7
|
import { WebpageOptions } from '../@ones-editor/webpage-embed';
|
|
9
8
|
import { OnesEditorCommentOptions } from '../@ones-editor/comments';
|
|
9
|
+
import { FileOptions } from '../@ones-editor/file';
|
|
10
10
|
import { ListOptions } from '../@ones-editor/list-block';
|
|
11
11
|
import { QuickMenuOptions } from '../@ones-editor/ui/src/quick-menu';
|
|
12
12
|
import { TemplateOptions } from '../@ones-editor/templates';
|
|
13
|
+
import { FindDialogOptions, PopoverOptions } from '../@ones-editor/ui-base';
|
|
14
|
+
import { CodeBlockExternalOptions } from '../@ones-editor/code-block';
|
|
15
|
+
import { MentionOptions } from '../@ones-editor/mention';
|
|
16
|
+
import { TocOptions } from '../@ones-editor/toc';
|
|
13
17
|
export interface RemoteCaretsOptions {
|
|
14
18
|
onUserChanged?: (editor: OnesEditor, users: OnesEditorUser[]) => void;
|
|
15
19
|
}
|
|
@@ -27,6 +31,14 @@ export type EditorComponentOptions = {
|
|
|
27
31
|
quickMenu?: QuickMenuOptions;
|
|
28
32
|
templates?: TemplateOptions;
|
|
29
33
|
custom?: Record<string, unknown>;
|
|
34
|
+
popover?: PopoverOptions;
|
|
35
|
+
findDialog?: FindDialogOptions;
|
|
36
|
+
file?: FileOptions;
|
|
37
|
+
code?: CodeBlockExternalOptions;
|
|
38
|
+
toc?: TocOptions;
|
|
39
|
+
};
|
|
40
|
+
export type EditorEvents = {
|
|
41
|
+
onClickLink?: (editor: OnesEditor, event: MouseEvent, link: Element) => void;
|
|
30
42
|
};
|
|
31
43
|
export interface CreateOnesEditorOptions {
|
|
32
44
|
id?: string;
|
|
@@ -35,21 +47,41 @@ export interface CreateOnesEditorOptions {
|
|
|
35
47
|
docId: string;
|
|
36
48
|
permission: OnesEditorUserPermission;
|
|
37
49
|
token: string;
|
|
50
|
+
disableLogout?: boolean;
|
|
51
|
+
enableComments?: boolean;
|
|
52
|
+
scrollContainer?: HTMLElement;
|
|
53
|
+
lang?: i18n.LANGS;
|
|
54
|
+
logLevel?: LogLevel;
|
|
55
|
+
onReauth?: (userId: string, docId: string, permission: OnesEditorUserPermission) => Promise<string>;
|
|
38
56
|
user: {
|
|
39
57
|
userId: string;
|
|
40
58
|
displayName: string;
|
|
41
59
|
avatarUrl: string;
|
|
42
|
-
rainbowIndex
|
|
60
|
+
rainbowIndex?: number;
|
|
43
61
|
};
|
|
44
62
|
components?: {
|
|
63
|
+
blocks?: Block[];
|
|
45
64
|
embeds?: Embed[];
|
|
65
|
+
boxes?: Box[];
|
|
66
|
+
blockHooks?: OnesEditorBlockHook[];
|
|
67
|
+
commandProviders?: OnesEditorCommandProvider[];
|
|
46
68
|
};
|
|
69
|
+
events?: EditorEvents;
|
|
70
|
+
shortcuts?: ShortcutRecords[];
|
|
47
71
|
componentsOptions?: EditorComponentOptions;
|
|
48
72
|
}
|
|
49
73
|
export interface CreateLocalEditorOptions {
|
|
50
74
|
id?: string;
|
|
75
|
+
lang?: i18n.LANGS;
|
|
76
|
+
scrollContainer?: HTMLElement;
|
|
51
77
|
components?: {
|
|
52
78
|
embeds?: Embed[];
|
|
79
|
+
boxes?: Box[];
|
|
80
|
+
blockHooks?: OnesEditorBlockHook[];
|
|
81
|
+
textRenders?: OnesEditorBlockRenderer[];
|
|
53
82
|
};
|
|
83
|
+
serverUrl?: string;
|
|
84
|
+
enableComments?: boolean;
|
|
85
|
+
events?: EditorEvents;
|
|
54
86
|
componentsOptions?: EditorComponentOptions;
|
|
55
87
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { OnesEditor, OnesEditorDoc } from '../../@ones-editor/core';
|
|
2
2
|
import { OnesEditorVersionsProvider } from '../../@ones-editor/versions';
|
|
3
3
|
import { CreateOnesEditorOptions } from '../types';
|
|
4
4
|
export default class ShareDBDocVersionsProvider implements OnesEditorVersionsProvider {
|
package/package.json
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ones-editor/editor",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.241",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@better-scroll/core": "^2.5.0",
|
|
9
|
+
"@excalidraw/excalidraw": "^0.14.2",
|
|
9
10
|
"@guyplusplus/turndown-plugin-gfm": "^1.0.7",
|
|
10
11
|
"@types/lodash.findlastindex": "^4.6.7",
|
|
11
12
|
"axios": "^1.2.6",
|
|
12
13
|
"blueimp-md5": "^2.19.0",
|
|
13
14
|
"buffer": "^6.0.3",
|
|
14
15
|
"css-color-converter": "^2.0.0",
|
|
15
|
-
"cypress": "^12.3.0",
|
|
16
|
-
"cypress-real-events": "^1.7.6",
|
|
17
16
|
"docx": "^7.2.0",
|
|
18
17
|
"dom-to-image": "^2.6.0",
|
|
19
18
|
"events": "^3.3.0",
|
|
@@ -23,6 +22,7 @@
|
|
|
23
22
|
"image-size": "^1.0.0",
|
|
24
23
|
"js-base64": "*",
|
|
25
24
|
"kiwi-intl": "^1.2.6-beta.0",
|
|
25
|
+
"lodash": "^4.0.8",
|
|
26
26
|
"lodash.camelcase": "^4.3.0",
|
|
27
27
|
"lodash.clonedeep": "^4.5.0",
|
|
28
28
|
"lodash.debounce": "^4.0.8",
|
|
@@ -33,17 +33,20 @@
|
|
|
33
33
|
"lodash.throttle": "^4.1.1",
|
|
34
34
|
"lodash.upperfirst": "^4.3.1",
|
|
35
35
|
"marked": "^4.2.1",
|
|
36
|
+
"marked-extended-latex": "^1.1.0",
|
|
36
37
|
"markmap-view": "0.2.2",
|
|
37
38
|
"mermaid": "^9.1.0",
|
|
38
39
|
"mime-db": "^1.52.0",
|
|
39
|
-
"minimist": "^1.2.7",
|
|
40
40
|
"nanoid": "^3.2.0",
|
|
41
41
|
"ot-json1": "^1.0.2",
|
|
42
42
|
"plantuml-encoder": "^1.4.0",
|
|
43
43
|
"prismjs": "1.28.0",
|
|
44
44
|
"query-string": "^7.1.1",
|
|
45
45
|
"quill-delta": "^4.2.2",
|
|
46
|
+
"react": "^18.2.0",
|
|
47
|
+
"react-dom": "^18.2.0",
|
|
46
48
|
"reconnecting-websocket": "^4.4.0",
|
|
49
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
47
50
|
"sharedb": "^3.2.1",
|
|
48
51
|
"snabbdom": "3.3.1",
|
|
49
52
|
"string-character-is-astral-surrogate": "^2.0.12",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
/// <reference types="cypress" />
|
|
3
|
-
declare namespace Cypress {
|
|
4
|
-
interface Chainable {
|
|
5
|
-
getBlocksByType: (blockType: string) => Chainable<Element>;
|
|
6
|
-
clearAllNoteByKeyboard: () => void;
|
|
7
|
-
getBlockContent: () => Chainable<Element>;
|
|
8
|
-
getBlockContentByBlockId: (blockId: string) => Chainable<Element>;
|
|
9
|
-
cacheBlock: (blockType: string, block: BlockCache) => Chainable<JQuery>;
|
|
10
|
-
createHeadingByShortcut: (blockId: string, level: number, title: string) => Chainable<Element>;
|
|
11
|
-
getMenuItemByDataId: (dataId: string) => Chainable<Element>;
|
|
12
|
-
clickBlockMenuButton: (dataId: string) => Chainable<JQuery>;
|
|
13
|
-
getBlockMenuButton: (dataId: string) => Chainable<JQuery>;
|
|
14
|
-
checkTextStyle: (blockId: string, checkSpanIndex: number, expectedClassValue: string, expectedTextValue: string) => Chainable<JQuery>;
|
|
15
|
-
checkTextColer: (blockId: string, checkSpanIndex: number, expectedClassValue: string, expectBlockAttr: string, expectBlockAttrValue: string, expectedTextValue: string) => Chainable<JQuery>;
|
|
16
|
-
checkHeadingStyle: (blockId: string, expectBlockAttr: string, expectBlockAttrValue: string) => Chainable<JQuery>;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
interface BlockCache {
|
|
20
|
-
TitleBlockId: string;
|
|
21
|
-
BlockCacheMap: Map<string, string[]>;
|
|
22
|
-
setBlock(blockType: string, blockId: string): void;
|
|
23
|
-
getLastBlockId(blockType: string): string;
|
|
24
|
-
setTitleBlockId(blockId: string): void;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './commands';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ones-editor/e2e",
|
|
3
|
-
"private": "true",
|
|
4
|
-
"version": "1.0.0",
|
|
5
|
-
"main": "index.ts",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "cypress open",
|
|
9
|
-
"e2e-headless": "node ./scripts/e2e-run-tests.js",
|
|
10
|
-
"test-mobile": "cypress open --config viewportWidth=390,viewportHeight=844"
|
|
11
|
-
},
|
|
12
|
-
"types": "src/index.d.ts"
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseAssertion } from '../data';
|
|
2
|
-
declare class Item {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
shortcut: string;
|
|
6
|
-
constructor(id: string, name: string, shortcut: string);
|
|
7
|
-
}
|
|
8
|
-
export declare const items: Map<string, Item>;
|
|
9
|
-
export declare class BlockMenuCase {
|
|
10
|
-
/**
|
|
11
|
-
* howToOpen : clickToOpen | shortcutToOpen:default
|
|
12
|
-
* @returns null
|
|
13
|
-
*/
|
|
14
|
-
checkBlockMenuItem: (howToOpen: string, block: string) => () => void;
|
|
15
|
-
checkBlockMenuButton: (button: string, assertData: BaseAssertion) => () => void;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'cypress-real-events';
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
export declare class BlockCache {
|
|
2
|
-
TitleBlockId: string;
|
|
3
|
-
BlockCacheMap: Map<string, string[]>;
|
|
4
|
-
constructor();
|
|
5
|
-
setBlock(blockType: string, blockId: string): Map<string, string[]>;
|
|
6
|
-
getLastBlockId(blockType: string): string;
|
|
7
|
-
setTitleBlockId(blockId: string): void;
|
|
8
|
-
}
|
|
9
|
-
export declare class BaseAssertion {
|
|
10
|
-
}
|
|
11
|
-
export declare class TestHeadingStyleData extends BaseAssertion {
|
|
12
|
-
key: string;
|
|
13
|
-
inputStr: string;
|
|
14
|
-
expected: string;
|
|
15
|
-
expectedPlaceholder: string;
|
|
16
|
-
constructor(key: string, inputStr: string, expected: string, expectedPlaceholder: string);
|
|
17
|
-
}
|
|
18
|
-
export declare class CheckBlockData extends BaseAssertion {
|
|
19
|
-
expectBlockAttr: string;
|
|
20
|
-
expectBlockAttrValue: string;
|
|
21
|
-
constructor(expectBlockAttr: string, expectBlockAttrValue: string);
|
|
22
|
-
}
|
|
23
|
-
export declare class CheckTextStyleData extends BaseAssertion {
|
|
24
|
-
checkSpanIndex: number;
|
|
25
|
-
expectedClassValue: string;
|
|
26
|
-
expectedTextValue: string;
|
|
27
|
-
constructor(checkSpanIndex: number, expectedClassValue: string, expectedTextValue: string);
|
|
28
|
-
}
|
|
29
|
-
export declare class TestTextStyleData extends CheckTextStyleData {
|
|
30
|
-
inputStr: string;
|
|
31
|
-
constructor(inputStr: string, checkSpanIndex: number, expectedClassValue: string, expectedTextValue: string);
|
|
32
|
-
}
|
|
33
|
-
export declare class CheckTextColerData extends CheckTextStyleData {
|
|
34
|
-
attr: string;
|
|
35
|
-
attrValue: string;
|
|
36
|
-
constructor(attr: string, attrValue: string, checkSpanIndex: number, expectedClassValue: string, expectedTextValue: string);
|
|
37
|
-
}
|
|
38
|
-
export declare const docTestBlockStyle = "block-style";
|
|
39
|
-
export declare const blockCache: BlockCache;
|
|
40
|
-
export declare const TEXT_BLOCK_ATTRIBUTE: {
|
|
41
|
-
PLACE_HOLDER: {
|
|
42
|
-
KEY: string;
|
|
43
|
-
DEFAULT: string;
|
|
44
|
-
HEADING1: string;
|
|
45
|
-
HEADING2: string;
|
|
46
|
-
HEADING3: string;
|
|
47
|
-
HEADING4: string;
|
|
48
|
-
HEADING5: string;
|
|
49
|
-
HEADING6: string;
|
|
50
|
-
HEADING7: string;
|
|
51
|
-
HEADING8: string;
|
|
52
|
-
};
|
|
53
|
-
STYLE_HEADING: {
|
|
54
|
-
KEY: string;
|
|
55
|
-
};
|
|
56
|
-
STYLE_QUOTE: {
|
|
57
|
-
QUOTECLASSNAME: string;
|
|
58
|
-
};
|
|
59
|
-
STYLE_ALIGN: {
|
|
60
|
-
ALIGN: string;
|
|
61
|
-
};
|
|
62
|
-
STYLE_COLER: {
|
|
63
|
-
TC_COLER: string;
|
|
64
|
-
BC_CLOER: string;
|
|
65
|
-
};
|
|
66
|
-
STYLE_TEXT: {
|
|
67
|
-
BoldStyleClass: string;
|
|
68
|
-
BoldAndItalicStyleClass: string;
|
|
69
|
-
ItalicStyleClass: string;
|
|
70
|
-
CodeStyleClass: string;
|
|
71
|
-
StrikeThrough: string;
|
|
72
|
-
SubscriptCLass: string;
|
|
73
|
-
SuperscriptClass: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
export declare const LIST_BLOCK_ATTRIBUTE: {
|
|
77
|
-
PLACE_HOLDER: {
|
|
78
|
-
KEY: string;
|
|
79
|
-
LIST: string;
|
|
80
|
-
};
|
|
81
|
-
LEVEL: string;
|
|
82
|
-
START: string;
|
|
83
|
-
GROUP_ID: string;
|
|
84
|
-
LISTTYPE: string;
|
|
85
|
-
VALUE: {
|
|
86
|
-
LISTTYPE_ORDERED: string;
|
|
87
|
-
LISTTYPE_UNORDERED: string;
|
|
88
|
-
LISTTYPE_CHECKED: string;
|
|
89
|
-
LISTTYPE_UNCHECKED: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
export declare const CODE_BLOCK_ATTRIBUTE: {
|
|
93
|
-
DATA_LANGUAGE: string;
|
|
94
|
-
LANGUAGE_PLAIN: string;
|
|
95
|
-
LANGUAGE_GOLANG: string;
|
|
96
|
-
LANGUAGE_JAVA: string;
|
|
97
|
-
LANGUAGE_JAVASCRIPT: string;
|
|
98
|
-
LANGUAGE_HTML_XML: string;
|
|
99
|
-
};
|
|
100
|
-
export declare const EMBED_BLOCK_ATTRIBUTE: {
|
|
101
|
-
HR: {
|
|
102
|
-
TYPE: string;
|
|
103
|
-
CLASS: string;
|
|
104
|
-
};
|
|
105
|
-
MERMAID: {
|
|
106
|
-
TYPE: string;
|
|
107
|
-
EMPTY_TIPS: string;
|
|
108
|
-
EMPTY_REPLACE: string;
|
|
109
|
-
ARIA_EXPANDED: string;
|
|
110
|
-
IMAGE_CLASS: string;
|
|
111
|
-
};
|
|
112
|
-
PLANTUML: {
|
|
113
|
-
TYPE: string;
|
|
114
|
-
EMPTY_TIPS: string;
|
|
115
|
-
EMPTY_REPLACE: string;
|
|
116
|
-
ARIA_EXPANDED: string;
|
|
117
|
-
IMAGE_CLASS: string;
|
|
118
|
-
};
|
|
119
|
-
TOC: {
|
|
120
|
-
TYPE: string;
|
|
121
|
-
CONTAINER_CLASS: string;
|
|
122
|
-
EMPTY_REPLACE: string;
|
|
123
|
-
EMPTY_CLASS: string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
export declare class TocNode {
|
|
127
|
-
children: TocNode[];
|
|
128
|
-
title: string;
|
|
129
|
-
level: number;
|
|
130
|
-
block: string;
|
|
131
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TestHeadingStyleData, TestTextStyleData } from '../data';
|
|
2
|
-
export declare class ShortcutCase {
|
|
3
|
-
testHeadingStyleShortcut: (data: TestHeadingStyleData) => () => void;
|
|
4
|
-
testShortcutMethod: (data: TestTextStyleData) => () => void;
|
|
5
|
-
testQuoteBlockStyleShortcut: () => () => void;
|
|
6
|
-
testEmberStyleBrShortcut: () => () => void;
|
|
7
|
-
testEmberStyleMermaidPlantumlShortcut: (input: string, embedType: string, emptyReplace: string) => () => void;
|
|
8
|
-
testListBlockStyleShortcut: (input: string, expected: string, start: number, level: number) => () => void;
|
|
9
|
-
testCodeBlockShortcut: (input: string, expected: string) => () => void;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'cypress-real-events';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import 'cypress-real-events';
|
|
2
|
-
export declare class ListCase {
|
|
3
|
-
OrderListCreate: () => () => void;
|
|
4
|
-
OrderListAddLevel: () => () => void;
|
|
5
|
-
OrderListFirstNodeAddLevel: () => () => void;
|
|
6
|
-
OrderListSoluction4: () => () => void;
|
|
7
|
-
OrderListPalceholder: () => () => void;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'cypress-real-events';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'cypress-real-events';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface ActionsButtonsOptions {
|
|
2
|
-
onPlay: () => void;
|
|
3
|
-
onRevert: () => void;
|
|
4
|
-
onBack: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare class ActionButtons {
|
|
7
|
-
private options;
|
|
8
|
-
goBackButton: HTMLButtonElement;
|
|
9
|
-
playButton: HTMLButtonElement;
|
|
10
|
-
revertButton: HTMLButtonElement;
|
|
11
|
-
constructor(options: ActionsButtonsOptions);
|
|
12
|
-
private bindEvent;
|
|
13
|
-
disabledButton(): void;
|
|
14
|
-
render(container: HTMLElement, hideActions?: boolean): void;
|
|
15
|
-
destroy(): void;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
File without changes
|