@ones-editor/editor 0.0.3-beta.1 → 0.0.3-beta.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/index.d.ts +1 -1
  2. package/@ones-editor/block-menu/src/block-menu/items/index.d.ts +2 -1
  3. package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +1 -1
  4. package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +16 -3
  5. package/@ones-editor/block-menu/src/locale/en-us.d.ts +5 -0
  6. package/@ones-editor/block-menu/src/locale/zh-cn.d.ts +5 -0
  7. package/@ones-editor/comments/src/comment-item/index.d.ts +1 -0
  8. package/@ones-editor/comments/src/comment-item/mini-comment-item/index.d.ts +1 -0
  9. package/@ones-editor/comments/src/comment-item/mini-comment-item/mini-comment-item.d.ts +7 -0
  10. package/@ones-editor/comments/src/comments/comments.d.ts +6 -1
  11. package/@ones-editor/comments/src/comments-helper/get-comments-from-doc.d.ts +3 -1
  12. package/@ones-editor/comments/src/comments-helper/get-mini-comment-from-doc.d.ts +7 -0
  13. package/@ones-editor/comments/src/comments-helper/utils.d.ts +2 -1
  14. package/@ones-editor/comments/src/comments-list/comments-list.d.ts +11 -5
  15. package/@ones-editor/comments/src/comments-list/group-item.d.ts +0 -3
  16. package/@ones-editor/comments/src/comments-list/group-list.d.ts +1 -1
  17. package/@ones-editor/comments/src/comments-list/handler.d.ts +0 -1
  18. package/@ones-editor/comments/src/comments-list/index.d.ts +1 -0
  19. package/@ones-editor/comments/src/comments-list/list-base.d.ts +3 -2
  20. package/@ones-editor/comments/src/comments-list/mini-comment/group-item.d.ts +16 -0
  21. package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +16 -0
  22. package/@ones-editor/comments/src/comments-list/mini-comment/index.d.ts +1 -0
  23. package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +28 -0
  24. package/@ones-editor/comments/src/constant/index.d.ts +0 -1
  25. package/@ones-editor/comments/src/types.d.ts +12 -0
  26. package/@ones-editor/core/src/core/types.d.ts +3 -0
  27. package/@ones-editor/list-block/src/list-notify.d.ts +2 -0
  28. package/@ones-editor/list-block/src/mindmap/index.d.ts +2 -0
  29. package/@ones-editor/table-block/src/table-block/border-bar/table-border-bar.d.ts +1 -0
  30. package/@ones-editor/table-block/src/table-block/border-bar/table-row-column-toolbar.d.ts +1 -0
  31. package/@ones-editor/table-block/src/table-block/close-toolbar.d.ts +2 -0
  32. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  33. package/@ones-editor/ui/src/icons/index.d.ts +1 -14
  34. package/@ones-editor/ui/src/index.d.ts +3 -1
  35. package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +1 -1
  36. package/@ones-editor/ui-base/src/icons/index.d.ts +35 -12
  37. package/@ones-editor/ui-base/src/index.d.ts +1 -0
  38. package/@ones-editor/{ui/src/quick-menu/item-shortcuts.d.ts → ui-base/src/item-shortcuts/index.d.ts} +0 -0
  39. package/@ones-editor/ui-base/src/locale/en-us.d.ts +3 -0
  40. package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +3 -0
  41. package/dist/index.js +359 -29062
  42. package/package.json +1 -1
@@ -1,15 +1,2 @@
1
- import SplitCellIcon from './split-cell.svg?raw';
2
1
  import MergeCellsIcon from './merge-cells.svg?raw';
3
- import headingH1Icon from './heading-h1.svg?raw';
4
- import headingH2Icon from './heading-h2.svg?raw';
5
- import headingH3Icon from './heading-h3.svg?raw';
6
- import headingH4Icon from './heading-h4.svg?raw';
7
- import headingH5Icon from './heading-h5.svg?raw';
8
- import headingH6Icon from './heading-h6.svg?raw';
9
- import headingH7Icon from './heading-h7.svg?raw';
10
- import headingH8Icon from './heading-h8.svg?raw';
11
- import unorderedIcon from './unordered-list.svg?raw';
12
- import orderedIcon from './ordered-list.svg?raw';
13
- import checkboxIcon from './checkbox.svg?raw';
14
- import quoteIcon from './quote.svg?raw';
15
- export { SplitCellIcon, MergeCellsIcon, headingH1Icon, headingH2Icon, headingH3Icon, headingH4Icon, headingH5Icon, headingH6Icon, headingH7Icon, headingH8Icon, unorderedIcon, orderedIcon, checkboxIcon, quoteIcon, };
2
+ export { MergeCellsIcon, };
@@ -1,10 +1,12 @@
1
1
  import './style.scss';
2
2
  import OnesEditorToolbar from './toolbar/toolbar-handler';
3
3
  import OnesEditorQuickMenu, { getAllQuickMenuItems } from './quick-menu';
4
+ import { getHeadingMenuOptions } from './quick-menu/basic-menu-items';
4
5
  import OnesEditorTooltip from './tooltips';
5
6
  import TextStyleShortcuts from './shortcuts';
6
7
  import { editLink } from './link-popup';
8
+ import { getToolbar } from './toolbar/helper';
7
9
  import './locale';
8
10
  import type { QuickMenuItem } from './quick-menu';
9
- export { OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, getAllQuickMenuItems, QuickMenuItem, editLink, TextStyleShortcuts };
11
+ export { OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, getAllQuickMenuItems, QuickMenuItem, editLink, TextStyleShortcuts, getToolbar, getHeadingMenuOptions };
10
12
  export { createTextButton } from './text-button';
@@ -46,6 +46,6 @@ export default abstract class CommandBar extends TypedEmitter<CommandBarEvents>
46
46
  protected abstract getCommandBarRoot(): HTMLElement | null;
47
47
  static commandBarCreators: Map<string, CreateManualCommandBarFunction>;
48
48
  static registerManualCommandBar(type: string, creator: CreateManualCommandBarFunction): void;
49
- static createSubCommandBar(item: CommandItem, closeable: Closeable): AbstractManualCommandBar;
49
+ static createSubCommandBar(item: CommandItem, closeable: Closeable, options?: CommandBarOptions): AbstractManualCommandBar;
50
50
  static hasExistsCommandBar(): boolean;
51
51
  }
@@ -34,24 +34,13 @@ import WarningIcon from './warning.svg?raw';
34
34
  import PasteSpecialIcon from './paste-special.svg?raw';
35
35
  import ImageErrorIcon from './image-error.svg?raw';
36
36
  import ImageEmptyIcon from './image-empty.svg?raw';
37
- import LinkIcon from './link.svg?raw';
38
37
  import LinkOffIcon from './linkoff.svg?raw';
39
38
  import LaunchIcon from './launch.svg?raw';
40
- import CodeIcon from './code.svg?raw';
41
- import AudioIcon from './audio.svg?raw';
42
39
  import GraphIcon from './graph.svg?raw';
43
- import VideoIcon from './video.svg?raw';
44
40
  import FileIcon from './file.svg?raw';
45
- import MathIcon from './math.svg?raw';
46
41
  import MathMenuIcon from './math-menu.svg?raw';
47
- import TableIcon from './table.svg?raw';
48
42
  import TableMenuIcon from './table-menu.svg?raw';
49
43
  import LineIcon from './line.svg?raw';
50
- import QqvideoIcon from './qqvideo.svg?raw';
51
- import BilibiliIcon from './bilibili.svg?raw';
52
- import YoukuIcon from './youku.svg?raw';
53
- import ModaoIcon from './modao.svg?raw';
54
- import FigmaIcon from './figma.svg?raw';
55
44
  import WebIcon from './web.svg?raw';
56
45
  import EditIcon from './edit.svg?raw';
57
46
  import CommentIcon from './comment.svg?raw';
@@ -60,4 +49,38 @@ import HelpIcon from './help.svg?raw';
60
49
  import CheckMarkIcon from './check-mark.svg?raw';
61
50
  import TextIcon from './text.svg?raw';
62
51
  import RightArrowIcon from './right-arrow.svg?raw';
63
- 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, QqvideoIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, WebIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon, TextIcon, RightArrowIcon, };
52
+ import BilibiliIcon from './bilibili-icon.svg?raw';
53
+ import YoukuIcon from './youku-icon.svg?raw';
54
+ import FigmaIcon from './figma-icon.svg?raw';
55
+ import ModaoIcon from './modao-icon.svg?raw';
56
+ import TencentVideoIcon from './tencent-video-icon.svg?raw';
57
+ import WebPageIcon from './webpage-icon.svg?raw';
58
+ import MathIcon from './math-icon.svg?raw';
59
+ import AudioIcon from './audio-icon.svg?raw';
60
+ import VideoIcon from './video-icon.svg?raw';
61
+ import UmlIcon from './uml.svg?raw';
62
+ import DividingLineIcon from './dividing-line-icon.svg?raw';
63
+ import LinkIcon from './link-icon.svg?raw';
64
+ import CodeIcon from './code-icon.svg?raw';
65
+ import TableIcon from './table-icon.svg?raw';
66
+ import HeadingH1Icon from './heading-h1.svg?raw';
67
+ import HeadingH2Icon from './heading-h2.svg?raw';
68
+ import HeadingH3Icon from './heading-h3.svg?raw';
69
+ import HeadingH4Icon from './heading-h4.svg?raw';
70
+ import HeadingH5Icon from './heading-h5.svg?raw';
71
+ import HeadingH6Icon from './heading-h6.svg?raw';
72
+ import HeadingH7Icon from './heading-h7.svg?raw';
73
+ import HeadingH8Icon from './heading-h8.svg?raw';
74
+ import CheckboxIcon from './checkbox.svg?raw';
75
+ import QuoteIcon from './quote.svg?raw';
76
+ import LinkHrefIcon from './link.svg?raw';
77
+ import UnorderedIcon from './unordered.svg?raw';
78
+ import OrderedIcon from './ordered.svg?raw';
79
+ import CopyIcon from './copy.svg?raw';
80
+ import CutIcon from './cut.svg?raw';
81
+ import DeleteIcon from './delete.svg?raw';
82
+ import LockBlockIcon from './lock-block.svg?raw';
83
+ import UnLockBlockIcon from './unlocked-block.svg?raw';
84
+ import CollapseUpIcon from './collapse-up.svg?raw';
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, };
@@ -11,3 +11,4 @@ export * from './color-palette';
11
11
  export * from './color-button';
12
12
  export * from './input/create-input';
13
13
  export * from './auto-suggest';
14
+ export * from './item-shortcuts';
@@ -4,5 +4,8 @@ declare const _default: {
4
4
  backgroundDesc: string;
5
5
  reset: string;
6
6
  };
7
+ search: {
8
+ emptyTips: string;
9
+ };
7
10
  };
8
11
  export default _default;
@@ -4,5 +4,8 @@ declare const _default: {
4
4
  backgroundDesc: string;
5
5
  reset: string;
6
6
  };
7
+ search: {
8
+ emptyTips: string;
9
+ };
7
10
  };
8
11
  export default _default;