@ones-editor/editor 0.0.3-beta.4 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +4 -3
- package/@ones-editor/comments/src/block-hook/index.d.ts +3 -1
- package/@ones-editor/comments/src/comment-editor/index.d.ts +3 -5
- package/@ones-editor/comments/src/comment-input-handler/index.d.ts +2 -10
- package/@ones-editor/comments/src/comment-input-handler/input-handler.d.ts +11 -0
- package/@ones-editor/comments/src/comment-input-handler/quick-reply-input-handler.d.ts +7 -0
- package/@ones-editor/comments/src/comment-item/comment-item.d.ts +1 -0
- package/@ones-editor/comments/src/comment-item/index.d.ts +1 -0
- package/@ones-editor/comments/src/comment-item/mobile-comment-item/index.d.ts +1 -0
- package/@ones-editor/comments/src/comment-item/mobile-comment-item/mobile-comment-item.d.ts +18 -0
- package/@ones-editor/comments/src/comments/comments.d.ts +10 -7
- package/@ones-editor/comments/src/comments-button/index.d.ts +3 -1
- package/@ones-editor/comments/src/comments-helper/utils.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/index.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -2
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/children-list.d.ts +17 -0
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-item.d.ts +30 -0
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-list.d.ts +29 -0
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/index.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +28 -0
- package/@ones-editor/comments/src/constant/index.d.ts +1 -1
- package/@ones-editor/comments/src/index.d.ts +0 -1
- package/@ones-editor/comments/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/comments/src/locale/ja-jp.d.ts +1 -0
- package/@ones-editor/comments/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/comments/src/text-comments/comments-command-provider.d.ts +3 -1
- package/@ones-editor/comments/src/types.d.ts +2 -14
- package/@ones-editor/drawio-embed/src/helper/default-style.d.ts +1 -0
- package/@ones-editor/heading-collapse/src/doc-event/index.d.ts +1 -1
- package/@ones-editor/list-block/src/lang/en-us.d.ts +3 -0
- package/@ones-editor/list-block/src/lang/zh-cn.d.ts +3 -0
- package/@ones-editor/mention/src/block-mention.d.ts +10 -0
- package/@ones-editor/mention/src/dom/mention-button.d.ts +2 -0
- package/@ones-editor/mention/src/index.d.ts +2 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/dialog/manual-close-dialog.d.ts +1 -0
- package/@ones-editor/ui-base/src/icons/index.d.ts +2 -1
- package/dist/comments/comments-provider.d.ts +2 -2
- package/dist/comments/create-comment-editor.d.ts +1 -4
- package/dist/index.js +257 -137
- package/package.json +2 -1
|
@@ -5,6 +5,7 @@ import { CommandBarContentElement, CommandItemElement } from '../command-bar/typ
|
|
|
5
5
|
import 'tippy.js/themes/light.css';
|
|
6
6
|
export type ManualCloseDialogOptions = {
|
|
7
7
|
id?: string;
|
|
8
|
+
disablePageScroll?: boolean;
|
|
8
9
|
};
|
|
9
10
|
export default class ManualCloseDialog extends ManualCommandBar {
|
|
10
11
|
constructor(content: HTMLElement, options?: ManualCloseDialogOptions);
|
|
@@ -83,4 +83,5 @@ import LockBlockIcon from './lock-block.svg?raw';
|
|
|
83
83
|
import UnLockBlockIcon from './unlocked-block.svg?raw';
|
|
84
84
|
import CollapseUpIcon from './collapse-up.svg?raw';
|
|
85
85
|
import CollapseDownIcon from './collapse-down.svg?raw';
|
|
86
|
-
|
|
86
|
+
import MentionIcon from './mention-icon.svg?raw';
|
|
87
|
+
export { CloseIcon, PrevIcon, NextIcon, MoreIcon, TextColorIcon, ArrowDownIcon, ArrowUpIcon, ArrowLeftIcon, ArrowRightIcon, DeleteRowIcon, DeleteColIcon, MergeCellIcon, SplitCellIcon, DeleteTableIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, Heading7Icon, Heading8Icon, HeadingNIcon, OrderedListIcon, UnorderedListIcon, CheckListIcon, BlockquoteIcon, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ImageIcon, ImageMenuIcon, ImageErrorIcon, ImageEmptyIcon, LinkIcon, LinkOffIcon, WarningIcon, PasteSpecialIcon, LaunchIcon, CodeIcon, AudioIcon, GraphIcon, VideoIcon, FileIcon, MathIcon, MathMenuIcon, TableIcon, TableMenuIcon, LineIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, WebIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon, TextIcon, RightArrowIcon, TencentVideoIcon, WebPageIcon, UmlIcon, DividingLineIcon, HeadingH1Icon, HeadingH2Icon, HeadingH3Icon, HeadingH4Icon, HeadingH5Icon, HeadingH6Icon, HeadingH7Icon, HeadingH8Icon, CheckboxIcon, QuoteIcon, LinkHrefIcon, OrderedIcon, UnorderedIcon, CopyIcon, CutIcon, DeleteIcon, LockBlockIcon, UnLockBlockIcon, CollapseUpIcon, CollapseDownIcon, MentionIcon, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../../@ones-editor/comments';
|
|
2
2
|
import { DocObject, LocalDoc, OnesEditor, OnesEditorComment } from '../../@ones-editor/core';
|
|
3
3
|
import { AuthMessage, ShareDBDocCallbacks } from '../../@ones-editor/sharedb-doc';
|
|
4
4
|
import { CreateOnesEditorOptions } from '../types';
|
|
@@ -20,5 +20,5 @@ export default class ShareDBDocCommentsProvider implements OnesEditorCommentsPro
|
|
|
20
20
|
onUpdateComment(commentId: string, local: boolean): void;
|
|
21
21
|
addListener(callback: OnesEditorCommentsEvents): void;
|
|
22
22
|
removeListener(callback: OnesEditorCommentsEvents): void;
|
|
23
|
-
createCommentEditor(parent: HTMLElement, localDoc: LocalDoc
|
|
23
|
+
createCommentEditor(parent: HTMLElement, localDoc: LocalDoc): OnesEditor;
|
|
24
24
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ShareDBDoc } from '../../@ones-editor/sharedb-doc';
|
|
2
2
|
import { LocalDoc, OnesEditor, OnesEditorUser } from '../../@ones-editor/core';
|
|
3
|
-
import { OnesEditorCommentsProvider, CreateCommentEditorOption } from '../../@ones-editor/comments';
|
|
4
3
|
import { CreateOnesEditorOptions } from '../types';
|
|
5
4
|
export interface RemoteCaretsOptions {
|
|
6
5
|
onUserChanged?: (editor: OnesEditor, users: OnesEditorUser[]) => void;
|
|
@@ -10,8 +9,6 @@ interface EditorOptions {
|
|
|
10
9
|
localDoc: LocalDoc;
|
|
11
10
|
rootEditorCreateOptions: CreateOnesEditorOptions;
|
|
12
11
|
shareDBDoc: ShareDBDoc;
|
|
13
|
-
commentProvider: OnesEditorCommentsProvider;
|
|
14
|
-
createOptions: CreateCommentEditorOption;
|
|
15
12
|
}
|
|
16
|
-
export declare function createCommentEditor({ root, localDoc, rootEditorCreateOptions, shareDBDoc
|
|
13
|
+
export declare function createCommentEditor({ root, localDoc, rootEditorCreateOptions, shareDBDoc }: EditorOptions): OnesEditor;
|
|
17
14
|
export {};
|