@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.
Files changed (42) hide show
  1. package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +4 -3
  2. package/@ones-editor/comments/src/block-hook/index.d.ts +3 -1
  3. package/@ones-editor/comments/src/comment-editor/index.d.ts +3 -5
  4. package/@ones-editor/comments/src/comment-input-handler/index.d.ts +2 -10
  5. package/@ones-editor/comments/src/comment-input-handler/input-handler.d.ts +11 -0
  6. package/@ones-editor/comments/src/comment-input-handler/quick-reply-input-handler.d.ts +7 -0
  7. package/@ones-editor/comments/src/comment-item/comment-item.d.ts +1 -0
  8. package/@ones-editor/comments/src/comment-item/index.d.ts +1 -0
  9. package/@ones-editor/comments/src/comment-item/mobile-comment-item/index.d.ts +1 -0
  10. package/@ones-editor/comments/src/comment-item/mobile-comment-item/mobile-comment-item.d.ts +18 -0
  11. package/@ones-editor/comments/src/comments/comments.d.ts +10 -7
  12. package/@ones-editor/comments/src/comments-button/index.d.ts +3 -1
  13. package/@ones-editor/comments/src/comments-helper/utils.d.ts +1 -1
  14. package/@ones-editor/comments/src/comments-list/comments-list.d.ts +1 -1
  15. package/@ones-editor/comments/src/comments-list/index.d.ts +1 -0
  16. package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -2
  17. package/@ones-editor/comments/src/comments-list/mobile-comments-list/children-list.d.ts +17 -0
  18. package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-item.d.ts +30 -0
  19. package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-list.d.ts +29 -0
  20. package/@ones-editor/comments/src/comments-list/mobile-comments-list/index.d.ts +1 -0
  21. package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +28 -0
  22. package/@ones-editor/comments/src/constant/index.d.ts +1 -1
  23. package/@ones-editor/comments/src/index.d.ts +0 -1
  24. package/@ones-editor/comments/src/locale/en-us.d.ts +1 -0
  25. package/@ones-editor/comments/src/locale/ja-jp.d.ts +1 -0
  26. package/@ones-editor/comments/src/locale/zh-cn.d.ts +1 -0
  27. package/@ones-editor/comments/src/text-comments/comments-command-provider.d.ts +3 -1
  28. package/@ones-editor/comments/src/types.d.ts +2 -14
  29. package/@ones-editor/drawio-embed/src/helper/default-style.d.ts +1 -0
  30. package/@ones-editor/heading-collapse/src/doc-event/index.d.ts +1 -1
  31. package/@ones-editor/list-block/src/lang/en-us.d.ts +3 -0
  32. package/@ones-editor/list-block/src/lang/zh-cn.d.ts +3 -0
  33. package/@ones-editor/mention/src/block-mention.d.ts +10 -0
  34. package/@ones-editor/mention/src/dom/mention-button.d.ts +2 -0
  35. package/@ones-editor/mention/src/index.d.ts +2 -1
  36. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  37. package/@ones-editor/ui-base/src/dialog/manual-close-dialog.d.ts +1 -0
  38. package/@ones-editor/ui-base/src/icons/index.d.ts +2 -1
  39. package/dist/comments/comments-provider.d.ts +2 -2
  40. package/dist/comments/create-comment-editor.d.ts +1 -4
  41. package/dist/index.js +257 -137
  42. 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
- 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, };
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 { CreateCommentEditorOption, OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../../@ones-editor/comments';
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, options: CreateCommentEditorOption): OnesEditor;
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, commentProvider, createOptions }: EditorOptions): OnesEditor;
13
+ export declare function createCommentEditor({ root, localDoc, rootEditorCreateOptions, shareDBDoc }: EditorOptions): OnesEditor;
17
14
  export {};