@ones-editor/editor 2.1.7-beta.34 → 2.1.7-beta.37

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.
@@ -158,6 +158,7 @@ export interface CommandItem {
158
158
  setCloseable?: (closeable: Closeable) => void;
159
159
  beforePopup?: (parent: unknown) => void;
160
160
  switchable?: boolean;
161
+ hidden?: boolean;
161
162
  /**
162
163
  * defaults to true
163
164
  */
@@ -12,5 +12,6 @@ import { InsertItem } from './insert';
12
12
  import { FindReplaceItem } from './find';
13
13
  import { CommentItem } from './comment';
14
14
  import { ColorItem } from './text-color';
15
- export declare function getToolbarDefaultItems(editor: OnesEditor): (FontBoldItem | FontItalicItem | FontUnderlineItem | FontStrikethroughItem | InlineCodeItem | SuperscriptItem | SubscriptItem | InsertImageItem | InsertLinkItem | OrderedListItem | UnorderedListItem | CheckListItem | ParagraphItem | QuoteItem | SeparatorItem | AlignLeftItem | AlignCenterItem | AlignRightItem | UndoItem | RedoItem | InsertItem | FindReplaceItem | CommentItem | ColorItem)[];
16
- export { UndoItem, RedoItem, FontBoldItem, FontItalicItem, FontUnderlineItem, FontStrikethroughItem, ColorItem, InlineCodeItem, SuperscriptItem, SubscriptItem, AlignLeftItem, AlignCenterItem, AlignRightItem, ParagraphItem, SeparatorItem, OrderedListItem, UnorderedListItem, CheckListItem, InsertImageItem, InsertLinkItem, QuoteItem, InsertItem, FindReplaceItem, CommentItem, };
15
+ import { MoreItem } from './more-item';
16
+ export declare function getToolbarDefaultItems(editor: OnesEditor): (FontBoldItem | FontItalicItem | FontUnderlineItem | FontStrikethroughItem | InlineCodeItem | SuperscriptItem | SubscriptItem | InsertImageItem | InsertLinkItem | OrderedListItem | UnorderedListItem | CheckListItem | ParagraphItem | QuoteItem | SeparatorItem | AlignLeftItem | AlignCenterItem | AlignRightItem | UndoItem | RedoItem | InsertItem | FindReplaceItem | CommentItem | ColorItem | MoreItem)[];
17
+ export { UndoItem, RedoItem, FontBoldItem, FontItalicItem, FontUnderlineItem, FontStrikethroughItem, ColorItem, InlineCodeItem, SuperscriptItem, SubscriptItem, AlignLeftItem, AlignCenterItem, AlignRightItem, ParagraphItem, SeparatorItem, OrderedListItem, UnorderedListItem, CheckListItem, InsertImageItem, InsertLinkItem, QuoteItem, InsertItem, FindReplaceItem, CommentItem, MoreItem, };
@@ -0,0 +1,20 @@
1
+ import { CommandItem, CommandItemChildrenPlacement, OnesEditor } from '../../../../@ones-editor/core';
2
+ import { FixedToolbar } from '../../../../@ones-editor/ui-base';
3
+ import { ToolbarItem } from '../types';
4
+ export declare class MoreItem implements ToolbarItem {
5
+ name: string;
6
+ id: string;
7
+ manualShowChildren: boolean;
8
+ childrenPlacement: CommandItemChildrenPlacement;
9
+ children: CommandItem[];
10
+ hidden?: boolean | undefined;
11
+ fixedToolbar: FixedToolbar | undefined;
12
+ observer?: ResizeObserver;
13
+ icon: string;
14
+ childrenType: 'menu' | 'toolbar' | 'mobile-bottom-menu';
15
+ childrenMenuId: string;
16
+ constructor(editor: OnesEditor);
17
+ destroy(): void;
18
+ onClick(editor: OnesEditor, item: ToolbarItem): void;
19
+ updateItems(): void;
20
+ }
@@ -40,6 +40,7 @@ export declare class ColorItem extends TextColorItem implements ToolbarItem {
40
40
  setCloseable?: ((closeable: import("@ones-editor/core").Closeable) => void) | undefined;
41
41
  beforePopup?: ((parent: unknown) => void) | undefined;
42
42
  switchable?: boolean | undefined;
43
+ hidden?: boolean | undefined;
43
44
  clickToClose?: boolean | undefined;
44
45
  } | null;
45
46
  handleChangeColor(type: 'color' | 'backgroundColor' | 'clearColor', value: number): void;