@ones-editor/editor 2.1.7-beta.25 → 2.1.7-beta.27
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/block-menu/src/block-menu-button/menu-button/index.d.ts +1 -1
- package/@ones-editor/block-padding/src/index.d.ts +1 -1
- package/@ones-editor/block-resizer/src/index.d.ts +2 -1
- package/@ones-editor/callout-block/src/callout-block/callout-quick-menu-item-filter.d.ts +3 -4
- package/@ones-editor/callout-block/src/index.d.ts +1 -0
- package/@ones-editor/comments/src/block-hook/block-comment-hook.d.ts +10 -0
- package/@ones-editor/comments/src/comment-quick-reply/index.d.ts +1 -0
- package/@ones-editor/comments/src/comments-helper/get-comment-abstract.d.ts +2 -1
- package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +16 -0
- package/@ones-editor/comments/src/index.d.ts +5 -1
- package/@ones-editor/comments/src/text-comments/comments-command-provider.d.ts +4 -3
- package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +1 -0
- package/@ones-editor/core/src/core/blocks/common/block-properties.d.ts +9 -9
- package/@ones-editor/core/src/core/blocks/common/execute-block-command.d.ts +2 -2
- package/@ones-editor/core/src/core/blocks/complex-blocks/child-blocks.d.ts +2 -1
- package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +3 -5
- package/@ones-editor/core/src/core/blocks/text-blocks/base/child.d.ts +1 -7
- package/@ones-editor/core/src/core/blocks/text-blocks/base/line-breaks.d.ts +1 -2
- package/@ones-editor/core/src/core/blocks/text-blocks/base/range.d.ts +1 -2
- package/@ones-editor/core/src/core/blocks/text-blocks/base/text-offset.d.ts +1 -2
- package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-html.d.ts +2 -2
- package/@ones-editor/core/src/core/command-providers/abstract-providers.d.ts +25 -0
- package/@ones-editor/core/src/core/command-providers/block-attributes.d.ts +16 -0
- package/@ones-editor/core/src/core/command-providers/commands/index.d.ts +2 -0
- package/@ones-editor/core/src/core/command-providers/commands/inject-source.d.ts +3 -0
- package/@ones-editor/core/src/core/command-providers/commands/merge-commands.d.ts +4 -0
- package/@ones-editor/core/src/core/command-providers/commands/range-commands.d.ts +2 -5
- package/@ones-editor/core/src/core/command-providers/editor-command-providers.d.ts +5 -14
- package/@ones-editor/core/src/core/command-providers/index.d.ts +3 -1
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +2 -2
- package/@ones-editor/core/src/core/composition/index.d.ts +1 -0
- package/@ones-editor/core/src/core/containers/root-container.d.ts +3 -2
- package/@ones-editor/core/src/core/doc/doc.d.ts +4 -1
- package/@ones-editor/core/src/core/doc/rich-text/text-style.d.ts +2 -0
- package/@ones-editor/core/src/core/editor/actions/clear-selected-contents.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/editor-dom/dom-events.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/editor-dom/editor-dom.d.ts +1 -0
- package/@ones-editor/core/src/core/editor/index.d.ts +1 -1
- package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +2 -1
- package/@ones-editor/core/src/core/insertions/editor-insertions.d.ts +1 -0
- package/@ones-editor/core/src/core/selection/actions/index.d.ts +2 -1
- package/@ones-editor/core/src/core/selection/adjust-selection-pos.d.ts +5 -1
- package/@ones-editor/core/src/core/selection/index.d.ts +1 -0
- package/@ones-editor/core/src/core/selection/select-handler.d.ts +3 -3
- package/@ones-editor/core/src/core/types.d.ts +54 -30
- package/@ones-editor/core/src/core/undo-manager/actions/action.d.ts +5 -1
- package/@ones-editor/core/src/core/undo-manager/actions/block-action.d.ts +1 -0
- package/@ones-editor/core/src/core/undo-manager/actions/update-block-data-action.d.ts +1 -0
- package/@ones-editor/core/src/helper/hovering-block.d.ts +3 -4
- package/@ones-editor/core/src/utils/animate-scroll.d.ts +2 -0
- package/@ones-editor/core/src/utils/dom.d.ts +4 -1
- package/@ones-editor/core/src/utils/drag-drop.d.ts +8 -3
- package/@ones-editor/embed-block-helper/src/block-properties/embed-block-properties.d.ts +6 -5
- package/@ones-editor/embed-block-helper/src/block-resizer/index.d.ts +1 -0
- package/@ones-editor/excalidraw/package.json +4 -0
- package/@ones-editor/file/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/file/src/locale/ja-jp.d.ts +1 -0
- package/@ones-editor/file/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +5 -19
- package/@ones-editor/image-embed/src/hovering-toolbar/index.d.ts +1 -1
- package/@ones-editor/image-embed/src/image-data.d.ts +1 -4
- package/@ones-editor/image-embed/src/image-object.d.ts +2 -2
- package/@ones-editor/image-embed/src/splitter-resizer/index.d.ts +3 -3
- package/@ones-editor/image-embed/src/types.d.ts +1 -2
- package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/ja-jp.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
- package/@ones-editor/layout-block/src/command-filter.d.ts +6 -0
- package/@ones-editor/layout-block/src/index.d.ts +1 -0
- package/@ones-editor/list-block/src/index.d.ts +2 -1
- package/@ones-editor/list-block/src/list-data/index.d.ts +2 -0
- package/@ones-editor/main-toolbar/package.json +7 -0
- package/@ones-editor/main-toolbar/src/index.d.ts +18 -0
- package/@ones-editor/main-toolbar/src/items/comment.d.ts +8 -0
- package/@ones-editor/main-toolbar/src/items/find.d.ts +8 -0
- package/@ones-editor/main-toolbar/src/items/font-style.d.ts +40 -0
- package/@ones-editor/main-toolbar/src/items/image.d.ts +8 -0
- package/@ones-editor/main-toolbar/src/items/index.d.ts +16 -0
- package/@ones-editor/main-toolbar/src/items/insert.d.ts +12 -0
- package/@ones-editor/main-toolbar/src/items/link.d.ts +11 -0
- package/@ones-editor/main-toolbar/src/items/list.d.ts +29 -0
- package/@ones-editor/main-toolbar/src/items/paragraph.d.ts +14 -0
- package/@ones-editor/main-toolbar/src/items/quote.d.ts +11 -0
- package/@ones-editor/main-toolbar/src/items/separator.d.ts +7 -0
- package/@ones-editor/main-toolbar/src/items/text-align.d.ts +21 -0
- package/@ones-editor/main-toolbar/src/items/text-color.d.ts +48 -0
- package/@ones-editor/main-toolbar/src/items/undo.d.ts +18 -0
- package/@ones-editor/main-toolbar/src/locale/en-us.d.ts +9 -0
- package/@ones-editor/main-toolbar/src/locale/ja-jp.d.ts +9 -0
- package/@ones-editor/main-toolbar/src/locale/zh-cn.d.ts +9 -0
- package/@ones-editor/main-toolbar/src/types.d.ts +5 -0
- package/@ones-editor/markdown-to-doc/src/custom/tag.d.ts +8 -0
- package/@ones-editor/markdown-to-doc/src/tokens/inline-tokens/custom-tag.d.ts +4 -0
- package/@ones-editor/mathjax/package.json +2 -1
- package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +1 -0
- package/@ones-editor/mathjax/src/mathjax-state/index.d.ts +2 -0
- package/@ones-editor/media-embed/src/core/hovering-toolbar/index.d.ts +3 -10
- package/@ones-editor/media-embed/src/utils/dom.d.ts +2 -0
- package/@ones-editor/mention/src/locale/en-us.d.ts +3 -0
- package/@ones-editor/mention/src/locale/ja-jp.d.ts +3 -0
- package/@ones-editor/mention/src/locale/zh-cn.d.ts +3 -0
- package/@ones-editor/mention/src/mention.d.ts +24 -1
- package/@ones-editor/mobile-helper/src/cursor-toolbar.d.ts +15 -0
- package/@ones-editor/mobile-helper/src/embed-mask.d.ts +10 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/active-observer.d.ts +11 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/fixed-providers.d.ts +6 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/index.d.ts +18 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/align-dropdown.d.ts +9 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/group.d.ts +7 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +13 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert.d.ts +8 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/paragraph.d.ts +9 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/tab-provider.d.ts +10 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/text-dropdown.d.ts +9 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/turn-into.d.ts +8 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/toolbar-handler.d.ts +15 -0
- package/@ones-editor/mobile-helper/src/index.d.ts +14 -2
- package/@ones-editor/mobile-helper/src/locale/en-us.d.ts +9 -0
- package/@ones-editor/mobile-helper/src/locale/index.d.ts +1 -0
- package/@ones-editor/mobile-helper/src/locale/ja-jp.d.ts +9 -0
- package/@ones-editor/mobile-helper/src/locale/zh-cn.d.ts +9 -0
- package/@ones-editor/mobile-helper/src/selection-gripper/index.d.ts +19 -0
- package/@ones-editor/mobile-helper/src/selection-gripper/select-handle.d.ts +3 -0
- package/@ones-editor/scroll-container/src/utils.d.ts +1 -1
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client-base.d.ts +24 -0
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +4 -1
- package/@ones-editor/sharedb-doc/src/doc/sharedb-local-doc.d.ts +17 -0
- package/@ones-editor/sharedb-doc/src/index.d.ts +8 -1
- package/@ones-editor/sharedb-doc/src/types.d.ts +3 -3
- package/@ones-editor/sharedb-doc/src/versions/sharedb-server.d.ts +1 -1
- package/@ones-editor/sharedb-doc/src/versions/simple-client.d.ts +1 -1
- package/@ones-editor/table-block/src/commands/index.d.ts +2 -0
- package/@ones-editor/table-block/src/commands/mobile-command-provider.d.ts +12 -0
- package/@ones-editor/table-block/src/commands/table-block-commands.d.ts +4 -3
- package/@ones-editor/table-block/src/index.d.ts +2 -1
- package/@ones-editor/table-block/src/locale/en-us.d.ts +5 -0
- package/@ones-editor/table-block/src/locale/ja-jp.d.ts +5 -0
- package/@ones-editor/table-block/src/locale/zh-cn.d.ts +5 -0
- package/@ones-editor/table-block/src/table-block/cell-menu/table-cell-dom.d.ts +6 -0
- package/@ones-editor/table-block/src/table-block/table-resize/resize-drag-drop.d.ts +4 -4
- package/@ones-editor/text-commands/src/index.d.ts +1 -3
- package/@ones-editor/to-docx/src/doc2other/core.d.ts +1 -1
- package/@ones-editor/to-docx/src/doc2other/table.d.ts +1 -0
- package/@ones-editor/to-docx/src/errors.d.ts +3 -0
- package/@ones-editor/to-docx/src/index.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/block-menu/block-command-providers.d.ts +8 -0
- package/@ones-editor/{block-menu → ui}/src/block-menu/index.d.ts +3 -1
- package/@ones-editor/ui/src/box-helper/standard-box-commands.d.ts +10 -0
- package/@ones-editor/ui/src/box-helper/standard-box-provider.d.ts +9 -0
- package/@ones-editor/ui/src/index.d.ts +33 -8
- package/@ones-editor/ui/src/link-popup/mobile-link-popup.d.ts +22 -0
- package/@ones-editor/ui/src/link-popup/types.d.ts +34 -0
- package/@ones-editor/ui/src/link-popup/web-link-popup.d.ts +19 -0
- package/@ones-editor/ui/src/locale/en-us.d.ts +14 -0
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +14 -0
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +14 -0
- package/@ones-editor/ui/src/providers/align-dropdown.d.ts +10 -0
- package/@ones-editor/ui/src/providers/align.d.ts +11 -0
- package/@ones-editor/ui/src/providers/block-hook-provider.d.ts +16 -0
- package/@ones-editor/ui/src/providers/clipboard-provider.d.ts +20 -0
- package/@ones-editor/ui/src/providers/color-provider.d.ts +18 -0
- package/@ones-editor/ui/src/providers/edit-link-provider.d.ts +6 -0
- package/@ones-editor/ui/src/providers/heading.d.ts +13 -0
- package/@ones-editor/ui/src/providers/inline-code-provider.d.ts +10 -0
- package/@ones-editor/ui/src/providers/inline-style-provider.d.ts +10 -0
- package/@ones-editor/ui/src/providers/insert-above.d.ts +9 -0
- package/@ones-editor/ui/src/providers/insert-after.d.ts +9 -0
- package/@ones-editor/ui/src/providers/insert-box-provider.d.ts +12 -0
- package/@ones-editor/ui/src/providers/insert-group.d.ts +7 -0
- package/@ones-editor/ui/src/providers/insert-menu.d.ts +16 -0
- package/@ones-editor/ui/src/providers/link.d.ts +12 -0
- package/@ones-editor/ui/src/providers/list.d.ts +13 -0
- package/@ones-editor/ui/src/providers/mobile-link-provider.d.ts +13 -0
- package/@ones-editor/ui/src/providers/paragraph.d.ts +9 -0
- package/@ones-editor/ui/src/providers/proxy-provider.d.ts +9 -0
- package/@ones-editor/ui/src/providers/quoted.d.ts +10 -0
- package/@ones-editor/ui/src/providers/script-with-dropdown.d.ts +9 -0
- package/@ones-editor/ui/src/providers/selection-provider.d.ts +9 -0
- package/@ones-editor/ui/src/providers/text-command-provider.d.ts +16 -0
- package/@ones-editor/ui/src/providers/text-fixed-provider.d.ts +16 -0
- package/@ones-editor/ui/src/providers/text-script-provider.d.ts +10 -0
- package/@ones-editor/ui/src/providers/text-styles.d.ts +9 -0
- package/@ones-editor/ui/src/providers/turn-into.d.ts +9 -0
- package/@ones-editor/ui/src/providers/utils/add-section.d.ts +2 -0
- package/@ones-editor/ui/src/{quick-menu → providers/utils}/basic-commands.d.ts +1 -2
- package/@ones-editor/ui/src/providers/utils/clipboard.d.ts +6 -0
- package/@ones-editor/ui/src/providers/utils/index.d.ts +2 -0
- package/@ones-editor/ui/src/providers/utils/inject-block-options.d.ts +8 -0
- package/@ones-editor/ui/src/providers/utils/text-styles.d.ts +6 -0
- package/@ones-editor/ui/src/quick-menu/index.d.ts +7 -19
- package/@ones-editor/ui/src/quick-menu/quick-command-providers.d.ts +8 -0
- package/@ones-editor/ui/src/quick-menu/types.d.ts +2 -5
- package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +25 -0
- package/@ones-editor/ui/src/readonly-toolbar/helper.d.ts +2 -0
- package/@ones-editor/ui/src/readonly-toolbar/index.d.ts +31 -0
- package/@ones-editor/ui/src/readonly-toolbar/types.d.ts +12 -0
- package/@ones-editor/ui/src/toolbar/link-commands.d.ts +11 -0
- package/@ones-editor/ui/src/toolbar/text-commands.d.ts +2 -2
- package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +4 -1
- package/@ones-editor/ui/src/tooltips/index.d.ts +21 -9
- package/@ones-editor/ui/src/utils/hide-toolbar.d.ts +2 -0
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +4 -1
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +3 -1
- package/@ones-editor/ui-base/src/color-button/color-button.d.ts +1 -0
- package/@ones-editor/ui-base/src/color-button/text-color-item.d.ts +19 -8
- package/@ones-editor/ui-base/src/color-palette/color-palette.d.ts +7 -1
- package/@ones-editor/ui-base/src/color-palette/index.d.ts +3 -3
- package/@ones-editor/ui-base/src/command-bar/active-observer.d.ts +11 -0
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +5 -2
- package/@ones-editor/ui-base/src/command-bar/fixed-toolbar.d.ts +3 -1
- package/@ones-editor/ui-base/src/command-bar/init-toolbar-item.d.ts +1 -0
- package/@ones-editor/ui-base/src/command-bar/manual-command-bar.d.ts +1 -0
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +7 -2
- package/@ones-editor/ui-base/src/dialog/manual-close-dialog.d.ts +1 -1
- package/@ones-editor/ui-base/src/dropdown/index.d.ts +1 -0
- package/@ones-editor/ui-base/src/icons/index.d.ts +5 -1
- package/@ones-editor/ui-base/src/index.d.ts +3 -0
- package/@ones-editor/ui-base/src/input/create-input.d.ts +24 -3
- package/@ones-editor/ui-base/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/ui-base/src/locale/ja-jp.d.ts +1 -0
- package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/ui-base/src/mobile-command-bar/init-menu-item.d.ts +3 -0
- package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +21 -0
- package/@ones-editor/ui-base/src/mobile-command-bar/scroll-into-view.d.ts +3 -0
- package/@ones-editor/ui-base/src/popup/popup.d.ts +1 -1
- package/@ones-editor/{ui → ui-base}/src/text-button/index.d.ts +1 -1
- package/@ones-editor/versions/package.json +3 -0
- package/@ones-editor/versions/src/constant/index.d.ts +2 -0
- package/@ones-editor/versions/src/history-doc/history-doc.d.ts +2 -2
- package/@ones-editor/versions/src/history-render/index.d.ts +15 -1
- package/@ones-editor/versions/src/history-tooltip/index.d.ts +14 -0
- package/@ones-editor/versions/src/index.d.ts +1 -0
- package/@ones-editor/versions/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/versions/src/locale/ja-jp.d.ts +1 -0
- package/@ones-editor/versions/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/versions/src/types.d.ts +5 -0
- package/@ones-editor/versions/src/utils/block-text.d.ts +3 -1
- package/@ones-editor/versions/src/version-dialog/versions-dropdown.d.ts +2 -0
- package/dist/auto-new-line.d.ts +7 -0
- package/dist/comments/local-doc-comments-provider.d.ts +2 -1
- package/dist/index.d.ts +67 -4
- package/dist/index.js +31453 -25404
- package/dist/lang/en-us.d.ts +1 -1
- package/dist/lang/ja-jp.d.ts +1 -1
- package/dist/lang/zh-cn.d.ts +1 -1
- package/dist/types.d.ts +15 -4
- package/package.json +3 -1
- package/@ones-editor/block-menu/src/block-menu/items/block-command-items.d.ts +0 -3
- package/@ones-editor/block-menu/src/block-menu/items/index.d.ts +0 -5
- package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +0 -5
- package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +0 -30
- package/@ones-editor/block-menu/src/block-menu/items/types.d.ts +0 -5
- package/@ones-editor/text-commands/src/locale/en-us.d.ts +0 -13
- package/@ones-editor/text-commands/src/locale/ja-jp.d.ts +0 -13
- package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +0 -13
- package/@ones-editor/text-commands/src/text-command-provider.d.ts +0 -24
- package/@ones-editor/text-commands/src/text-commands.d.ts +0 -4
- package/@ones-editor/text-commands/src/text-styles.d.ts +0 -4
- package/@ones-editor/ui/src/quick-menu/basic-menu-items.d.ts +0 -16
- package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +0 -8
- package/@ones-editor/ui/src/quick-menu/insert-empty-block.d.ts +0 -4
- package/@ones-editor/ui/src/quick-menu/order.d.ts +0 -1
- package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +0 -9
- package/@ones-editor/ui/src/toolbar/commands/align.d.ts +0 -10
- package/@ones-editor/ui/src/toolbar/commands/paragraph.d.ts +0 -11
- package/@ones-editor/ui/src/toolbar/commands/turn-into.d.ts +0 -10
- package/@ones-editor/ui/src/toolbar/merge-commands.d.ts +0 -2
- /package/@ones-editor/{text-commands → main-toolbar}/src/locale/index.d.ts +0 -0
- /package/@ones-editor/{block-menu → ui}/src/block-menu/standard-block-actions/hook.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Closeable, CloseReason, CommandItem } from '../../../../@ones-editor/core';
|
|
2
|
+
import { Instance } from 'tippy.js';
|
|
3
|
+
import './mobile-bottom-menu.scss';
|
|
4
|
+
import { AbstractManualCommandBar, CommandBar, CommandBarContentElement, CommandBarOptions, CommandItemElement, ManualShowCommandBarOptions } from '../command-bar';
|
|
5
|
+
declare class MobileBottomMenu extends CommandBar implements AbstractManualCommandBar {
|
|
6
|
+
tippyInstance: Instance | null;
|
|
7
|
+
constructor(items: CommandItem[], closeable?: Closeable, options?: CommandBarOptions);
|
|
8
|
+
createContentWithHeader: () => HTMLDivElement;
|
|
9
|
+
handleClose: () => void;
|
|
10
|
+
oldActiveElement: HTMLElement | null;
|
|
11
|
+
manualShow: (target: HTMLElement, options?: ManualShowCommandBarOptions) => void;
|
|
12
|
+
close(reason: CloseReason): void;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
get isVisible(): boolean;
|
|
15
|
+
get popper(): Element | null;
|
|
16
|
+
protected initCommandBarElement(elem: CommandBarContentElement): void;
|
|
17
|
+
protected getCommandBarRoot(): HTMLElement | null;
|
|
18
|
+
protected initItemElement(item: CommandItem, elem: CommandItemElement): void;
|
|
19
|
+
}
|
|
20
|
+
declare function createMobileBottomMenu(): void;
|
|
21
|
+
export { createMobileBottomMenu, MobileBottomMenu, };
|
|
@@ -3,7 +3,7 @@ import ManualCommandBar from '../command-bar/manual-command-bar';
|
|
|
3
3
|
import { CommandBarContentElement, CommandItemElement } from '../command-bar/types';
|
|
4
4
|
export type PopupOptions = {
|
|
5
5
|
id?: string;
|
|
6
|
-
beforeClose?: (event?: MouseEvent) => boolean;
|
|
6
|
+
beforeClose?: (event?: MouseEvent | TouchEvent) => boolean;
|
|
7
7
|
};
|
|
8
8
|
export default class Popup extends ManualCommandBar {
|
|
9
9
|
constructor(content: HTMLElement, options?: PopupOptions);
|
|
@@ -7,3 +7,5 @@ export declare enum HistoryClass {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const OpColor = "--op-color";
|
|
9
9
|
export declare const OpSelectedColor = "--op-selected-color";
|
|
10
|
+
export declare const HISTORY_TOOLTIP_IDENTIFIER = "data-history-editor-tooltip";
|
|
11
|
+
export declare const HISTORY_MASK_IDENTIFIER = "history-mask-identifier";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, EventCallbacks, OnesEditorDoc, OnesEditorDocCallbacks, OnesEditorUser,
|
|
1
|
+
import { DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, EventCallbacks, OnesEditorDoc, OnesEditorDocCallbacks, OnesEditorUser, UploadResourceResult, OnesEditorDocServerMeta, OnesEditorDocServer } from '../../../../@ones-editor/core';
|
|
2
2
|
import { HistoryUser } from '../types';
|
|
3
3
|
export default class HistoryDoc extends EventCallbacks<OnesEditorDocCallbacks> implements OnesEditorDoc {
|
|
4
4
|
private server;
|
|
@@ -23,7 +23,7 @@ export default class HistoryDoc extends EventCallbacks<OnesEditorDocCallbacks> i
|
|
|
23
23
|
request<T>(): Promise<T>;
|
|
24
24
|
broadcastMessage(): void;
|
|
25
25
|
getUser(): OnesEditorUser;
|
|
26
|
-
getRemoteUsers():
|
|
26
|
+
getRemoteUsers(): import("@ones-editor/core").OnesEditorRemoteUsers;
|
|
27
27
|
destroy(): void;
|
|
28
28
|
private transformBlockIndex;
|
|
29
29
|
onDeleteBlock(containerId: string, blockIndex: number, user: HistoryUser): void;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
import { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult } from '../../../../@ones-editor/core';
|
|
1
|
+
import type { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult } from '../../../../@ones-editor/core';
|
|
2
2
|
export default class OnesEditorHistoryRender implements OnesEditorBlockRenderer {
|
|
3
3
|
renderBox(editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
|
|
4
4
|
renderText(editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
|
|
5
5
|
renderBlock(editor: OnesEditor, path: BlockPath, blockData: DocBlock): OnesEditorBlockRenderResult;
|
|
6
6
|
updateBlock(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock): void;
|
|
7
|
+
renderChildContainer(editor: OnesEditor, path: BlockPath, containerId: string): {
|
|
8
|
+
classes: string[];
|
|
9
|
+
attributes: {
|
|
10
|
+
"data-history-editor-tooltip": string;
|
|
11
|
+
};
|
|
12
|
+
styles: {
|
|
13
|
+
"--op-color": string;
|
|
14
|
+
"--op-selected-color": string;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
classes?: undefined;
|
|
18
|
+
attributes?: undefined;
|
|
19
|
+
styles?: undefined;
|
|
20
|
+
};
|
|
7
21
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
+
import { OnesEditorTooltipCallbacks, EditorTooltipTippyInstance } from '../../../../@ones-editor/ui';
|
|
3
|
+
import './index.scss';
|
|
4
|
+
export declare class OnesEditorHistoryTooltip implements OnesEditorTooltipCallbacks {
|
|
5
|
+
private editor;
|
|
6
|
+
static register(editor: OnesEditor): void;
|
|
7
|
+
private gap;
|
|
8
|
+
private constructor();
|
|
9
|
+
private applyGapToRect;
|
|
10
|
+
private getPseudoMaskRect;
|
|
11
|
+
private getReferenceClientRect;
|
|
12
|
+
private createContent;
|
|
13
|
+
onBeforeShow: (instance: EditorTooltipTippyInstance) => void;
|
|
14
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { OnesEditor, DocVersion, OnesEditorDocHistoryData, OnesEditorDoc, OnesEditorBlockRenderer } from '../../../@ones-editor/core';
|
|
2
2
|
export interface VersionDialogOptions {
|
|
3
3
|
container: HTMLElement;
|
|
4
|
+
showPublishedVersions?: boolean;
|
|
4
5
|
initSelectedVersion?: VersionNum;
|
|
5
6
|
useCreatedBy?: boolean;
|
|
6
7
|
enableEdit?: boolean;
|
|
7
8
|
textRenders?: OnesEditorBlockRenderer[];
|
|
9
|
+
autoCompareWithLastVersion?: boolean;
|
|
8
10
|
getDisabledTip?: () => string | undefined;
|
|
9
11
|
onMemoChanged?: (version: DocVersion) => void;
|
|
10
12
|
onBeforeEditMemo?: () => Promise<boolean>;
|
|
@@ -26,3 +28,6 @@ export interface OnesEditorVersionsProvider {
|
|
|
26
28
|
export type HistoryUser = OnesEditorDocHistoryData['user'];
|
|
27
29
|
export type UserColorTypes = 'flag' | 'selection';
|
|
28
30
|
export type UserColors = Record<UserColorTypes, string>;
|
|
31
|
+
export type HistoryDocMeta = {
|
|
32
|
+
'createBy'?: HistoryUser;
|
|
33
|
+
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { HistoryUser } from '../types';
|
|
2
|
-
|
|
2
|
+
type OpType = 'insert' | 'delete' | 'update';
|
|
3
|
+
export declare function getOpDescription(user: HistoryUser, type: OpType): string;
|
|
4
|
+
export {};
|
|
@@ -18,8 +18,10 @@ export default class VersionsDropdown {
|
|
|
18
18
|
createFilterMemoedFilterItem: (hasLastVersion: boolean) => HTMLDivElement;
|
|
19
19
|
setVersions(versions: DocVersion[]): void;
|
|
20
20
|
setCurrentVersion(ver: DocVersion, compareWithVersion?: DocVersion): void;
|
|
21
|
+
setCompareWithVersion(compareWithVersion: DocVersion | null): void;
|
|
21
22
|
resetItems(): void;
|
|
22
23
|
filterItems: (item: CommandItem, keywords: string) => boolean;
|
|
24
|
+
getLastVersion(): DocVersion | null;
|
|
23
25
|
handleClose: () => void;
|
|
24
26
|
handleClear: () => void;
|
|
25
27
|
handleClickItem: (item: CommandItem) => void;
|
|
@@ -3,7 +3,8 @@ import { DocObject, LocalDoc, OnesEditor, OnesEditorComment, OnesEditorDoc } fro
|
|
|
3
3
|
export default class LocalDocCommentsProvider implements OnesEditorCommentsProvider {
|
|
4
4
|
private editor;
|
|
5
5
|
private localDoc;
|
|
6
|
-
private
|
|
6
|
+
private _listeners;
|
|
7
|
+
private _doc;
|
|
7
8
|
constructor(editor: OnesEditor, localDoc: OnesEditorDoc);
|
|
8
9
|
get doc(): DocObject;
|
|
9
10
|
getComments(): OnesEditorComment[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { OnesEditor, DocObject, OnesEditorDoc } from '../@ones-editor/core';
|
|
1
|
+
import { OnesEditor, DocObject, OnesEditorDoc, OnesEditorBlockRenderer } from '../@ones-editor/core';
|
|
2
|
+
import { RemoteCaretsDecorator } from '../@ones-editor/sharedb-doc';
|
|
3
|
+
import { TableBlockCommandProvider } from '../@ones-editor/table-block';
|
|
4
|
+
import { CodeTextDecorator } from '../@ones-editor/code-block';
|
|
2
5
|
import * as OnesEditorIcons from '../@ones-editor/ui-base/src/icons';
|
|
6
|
+
import { BlockExclusiveHook } from '../@ones-editor/exclusive-block';
|
|
3
7
|
import { OnesEditorVersionsDialog, VersionDialogOptions } from '../@ones-editor/versions';
|
|
8
|
+
import { CalloutQuickMenuItemFilter } from '../@ones-editor/callout-block';
|
|
9
|
+
import { MobileCommandHandler } from '../@ones-editor/mobile-helper';
|
|
10
|
+
import { LayoutQuickMenuItemFilter, isLayoutBlock } from '../@ones-editor/layout-block';
|
|
4
11
|
import ShareDBDocVersionsProvider from './versions/versions-provider';
|
|
5
12
|
import { CreateLocalEditorOptions, CreateOnesEditorOptions } from './types';
|
|
6
13
|
import './lang';
|
|
14
|
+
import './style.scss';
|
|
15
|
+
export * from '../@ones-editor/scroll-container';
|
|
7
16
|
export * from '../@ones-editor/to-docx';
|
|
8
17
|
export * from '../@ones-editor/core';
|
|
9
18
|
export * from '../@ones-editor/sharedb-doc';
|
|
@@ -18,10 +27,11 @@ export * from '../@ones-editor/block-locker';
|
|
|
18
27
|
export * from '../@ones-editor/layout-block';
|
|
19
28
|
export * from '../@ones-editor/markdown-to-doc';
|
|
20
29
|
export * from '../@ones-editor/html-to-doc';
|
|
21
|
-
export
|
|
30
|
+
export * from '../@ones-editor/main-toolbar';
|
|
31
|
+
export { Popup, ManualMenu, OnesEditorAutoSuggest, tippy, ManualToolbar, ManualCloseDialog, TextColorItem, shouldFocusToEditor, FixedToolbar, } from '../@ones-editor/ui-base';
|
|
22
32
|
export * from '../@ones-editor/drawio-embed';
|
|
23
33
|
export * from '../@ones-editor/block-resizer';
|
|
24
|
-
export { editorAddComment } from '../@ones-editor/comments';
|
|
34
|
+
export { editorAddComment, CommentsCommandProvider } from '../@ones-editor/comments';
|
|
25
35
|
export { editorShowFindDialog } from '../@ones-editor/find-dialog';
|
|
26
36
|
export * from '../@ones-editor/toc';
|
|
27
37
|
export * from '../@ones-editor/embed-block-helper';
|
|
@@ -30,9 +40,62 @@ export { resetListStart, getListAllNextBrothers, toMindmap, Mindmap } from '../@
|
|
|
30
40
|
export * from '../@ones-editor/exclusive-block';
|
|
31
41
|
export * from '../@ones-editor/templates';
|
|
32
42
|
export * from 'tiny-typed-emitter';
|
|
33
|
-
export { ShareDBDocVersionsProvider, OnesEditorIcons };
|
|
43
|
+
export { ShareDBDocVersionsProvider, OnesEditorIcons, isLayoutBlock, LayoutQuickMenuItemFilter, CalloutQuickMenuItemFilter, MobileCommandHandler };
|
|
34
44
|
export type { FileBoxData, FileEmbedData } from '../@ones-editor/file';
|
|
35
45
|
export { type DocListBlock } from '../@ones-editor/list-block';
|
|
46
|
+
export declare function getDefaultOnesEditorOptions(options: CreateOnesEditorOptions): {
|
|
47
|
+
id: string | undefined;
|
|
48
|
+
scrollContainer: HTMLElement | undefined;
|
|
49
|
+
enableComments: boolean | undefined;
|
|
50
|
+
enableContextMenu: boolean | undefined;
|
|
51
|
+
components: {
|
|
52
|
+
blocks: import("@ones-editor/core").Block[];
|
|
53
|
+
embeds: import("@ones-editor/core").Embed[];
|
|
54
|
+
boxes: import("@ones-editor/core").Box[];
|
|
55
|
+
commandProviders: (import("@ones-editor/core").OnesEditorCommandProvider | TableBlockCommandProvider)[];
|
|
56
|
+
decorators: (RemoteCaretsDecorator | CodeTextDecorator)[];
|
|
57
|
+
insertions: import("@ones-editor/core").Insertion[];
|
|
58
|
+
blockHooks: (import("@ones-editor/core").OnesEditorBlockHook | BlockExclusiveHook)[];
|
|
59
|
+
textRenders: OnesEditorBlockRenderer[];
|
|
60
|
+
options: {
|
|
61
|
+
drawIO?: import("@ones-editor/drawio-embed").DrawIoOptions | undefined;
|
|
62
|
+
media?: import("@ones-editor/media-embed").MediaEmbedOptions | undefined;
|
|
63
|
+
mermaid?: import("@ones-editor/graph-embed").MermaidEmbedOptions | undefined;
|
|
64
|
+
flowchart?: import("@ones-editor/graph-embed").FlowCharEmbedOptions | undefined;
|
|
65
|
+
plantuml?: import("@ones-editor/graph-embed").PlantumlEmbedOptions | undefined;
|
|
66
|
+
remoteCarets?: import("./types").RemoteCaretsOptions | undefined;
|
|
67
|
+
table?: import("@ones-editor/table-block").TableOptions | undefined;
|
|
68
|
+
image?: import("@ones-editor/image-embed").ImageOptions | undefined;
|
|
69
|
+
webpage?: import("@ones-editor/webpage-embed").WebpageOptions | undefined;
|
|
70
|
+
mention?: import("@ones-editor/mention").MentionOptions | undefined;
|
|
71
|
+
comment?: import("@ones-editor/comments").OnesEditorCommentOptions | undefined;
|
|
72
|
+
list?: import("@ones-editor/list-block").ListOptions | undefined;
|
|
73
|
+
quickMenu?: import("@ones-editor/ui").QuickMenuOptions | undefined;
|
|
74
|
+
templates?: import("@ones-editor/templates").TemplateOptions | undefined;
|
|
75
|
+
custom?: Record<string, unknown> | undefined;
|
|
76
|
+
popover?: import("@ones-editor/ui-base").PopoverOptions | undefined;
|
|
77
|
+
findDialog?: import("@ones-editor/ui-base").FindDialogOptions | undefined;
|
|
78
|
+
file?: import("@ones-editor/file").FileOptions | undefined;
|
|
79
|
+
code?: import("@ones-editor/code-block").CodeBlockExternalOptions | undefined;
|
|
80
|
+
mathjax?: import("@ones-editor/mathjax").MathjaxOptions | undefined;
|
|
81
|
+
link?: import("@ones-editor/ui/src/link-popup").LinkOptions | undefined;
|
|
82
|
+
columns?: import("@ones-editor/layout-block/src/types").EditorConfigLayoutOptions | undefined;
|
|
83
|
+
mobile?: import("@ones-editor/core").MobileClient | undefined;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
shortcuts: import("@ones-editor/core").ShortcutRecords[];
|
|
87
|
+
colors: string[];
|
|
88
|
+
};
|
|
36
89
|
export declare function createOnesEditor(root: HTMLElement, options: CreateOnesEditorOptions): Promise<OnesEditor>;
|
|
37
90
|
export declare function createLocalEditor(root: HTMLElement, docData: DocObject | OnesEditorDoc, options: CreateLocalEditorOptions): Promise<OnesEditor>;
|
|
38
91
|
export declare function showDocVersions(editor: OnesEditor, options: VersionDialogOptions, serverUrl: string): Promise<OnesEditorVersionsDialog>;
|
|
92
|
+
export interface ShowDocVersionsOptions2 {
|
|
93
|
+
serverUrl: string;
|
|
94
|
+
appId: string;
|
|
95
|
+
docId: string;
|
|
96
|
+
token: string;
|
|
97
|
+
userId: string;
|
|
98
|
+
displayName: string;
|
|
99
|
+
options?: VersionDialogOptions;
|
|
100
|
+
}
|
|
101
|
+
export declare function showDocVersions2(parent: HTMLElement, options: ShowDocVersionsOptions2): Promise<OnesEditorVersionsDialog>;
|