@ones-editor/editor 2.1.7-beta.8 → 2.1.7-beta.9

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.
@@ -1,6 +1,8 @@
1
1
  import { CommandItem, OnesEditor, OnesEditorCustom } from '../../../@ones-editor/core';
2
2
  import { AbstractCommandBar, FixedToolbar } from '../../../@ones-editor/ui-base';
3
3
  import { ToolbarItem } from './types';
4
+ import './locale';
5
+ import './style.scss';
4
6
  export * from './types';
5
7
  export * from './items';
6
8
  export declare class MainToolbar implements OnesEditorCustom {
@@ -0,0 +1,8 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ import { ToolbarItem } from '../types';
3
+ export declare class CommentItem implements ToolbarItem {
4
+ id: string;
5
+ name: string;
6
+ icon: string;
7
+ onClick(editor: OnesEditor, item: ToolbarItem): void;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ import { ToolbarItem } from '../types';
3
+ export declare class FindReplaceItem implements ToolbarItem {
4
+ id: string;
5
+ name: string;
6
+ icon: string;
7
+ onClick(editor: OnesEditor, item: ToolbarItem): void;
8
+ }
@@ -25,4 +25,16 @@ export declare class FontStrikethroughItem extends FontStyleBaseItem {
25
25
  icon: string;
26
26
  constructor();
27
27
  }
28
+ export declare class InlineCodeItem extends FontStyleBaseItem {
29
+ icon: string;
30
+ constructor();
31
+ }
32
+ export declare class SuperscriptItem extends FontStyleBaseItem {
33
+ icon: string;
34
+ constructor();
35
+ }
36
+ export declare class SubscriptItem extends FontStyleBaseItem {
37
+ icon: string;
38
+ constructor();
39
+ }
28
40
  export {};
@@ -1,6 +1,6 @@
1
1
  import { TextColorItem } from '../../../../@ones-editor/ui-base';
2
2
  import { OnesEditor } from '../../../../@ones-editor/core';
3
- import { FontBoldItem, FontItalicItem, FontUnderlineItem, FontStrikethroughItem } from './font-style';
3
+ import { FontBoldItem, FontItalicItem, FontUnderlineItem, FontStrikethroughItem, InlineCodeItem, SubscriptItem, SuperscriptItem } from './font-style';
4
4
  import { InsertImageItem } from './image';
5
5
  import { InsertLinkItem } from './link';
6
6
  import { OrderedListItem, UnorderedListItem, CheckListItem } from './list';
@@ -8,5 +8,9 @@ import { ParagraphItem } from './paragraph';
8
8
  import { QuoteItem } from './quote';
9
9
  import { SeparatorItem } from './separator';
10
10
  import { AlignLeftItem, AlignCenterItem, AlignRightItem } from './text-align';
11
- export declare function getToolbarDefaultItems(editor: OnesEditor): (TextColorItem | FontBoldItem | FontItalicItem | FontUnderlineItem | FontStrikethroughItem | AlignLeftItem | AlignCenterItem | AlignRightItem | ParagraphItem | SeparatorItem | OrderedListItem | UnorderedListItem | CheckListItem | InsertImageItem | InsertLinkItem | QuoteItem)[];
12
- export { FontBoldItem, FontItalicItem, FontUnderlineItem, FontStrikethroughItem, TextColorItem, AlignLeftItem, AlignCenterItem, AlignRightItem, ParagraphItem, SeparatorItem, OrderedListItem, UnorderedListItem, CheckListItem, InsertImageItem, InsertLinkItem, QuoteItem, };
11
+ import { RedoItem, UndoItem } from './undo';
12
+ import { InsertItem } from './insert';
13
+ import { FindReplaceItem } from './find';
14
+ import { CommentItem } from './comment';
15
+ export declare function getToolbarDefaultItems(editor: OnesEditor): (TextColorItem | FontBoldItem | FontItalicItem | FontUnderlineItem | FontStrikethroughItem | InlineCodeItem | SuperscriptItem | SubscriptItem | InsertImageItem | InsertLinkItem | OrderedListItem | UnorderedListItem | CheckListItem | ParagraphItem | QuoteItem | SeparatorItem | AlignLeftItem | AlignCenterItem | AlignRightItem | UndoItem | RedoItem | InsertItem | FindReplaceItem | CommentItem)[];
16
+ export { UndoItem, RedoItem, FontBoldItem, FontItalicItem, FontUnderlineItem, FontStrikethroughItem, TextColorItem, InlineCodeItem, SuperscriptItem, SubscriptItem, AlignLeftItem, AlignCenterItem, AlignRightItem, ParagraphItem, SeparatorItem, OrderedListItem, UnorderedListItem, CheckListItem, InsertImageItem, InsertLinkItem, QuoteItem, InsertItem, FindReplaceItem, CommentItem, };
@@ -0,0 +1,12 @@
1
+ import { CommandItem, CommandItemChildrenPlacement, OnesEditor } from '../../../../@ones-editor/core';
2
+ import { ToolbarItem } from '../types';
3
+ export declare class InsertItem implements ToolbarItem {
4
+ name: string;
5
+ id: string;
6
+ dropdown: boolean;
7
+ manualShowChildren: boolean;
8
+ childrenPlacement: CommandItemChildrenPlacement;
9
+ children: CommandItem[];
10
+ constructor(editor: OnesEditor);
11
+ onClick(editor: OnesEditor, item: ToolbarItem): void;
12
+ }
@@ -0,0 +1,18 @@
1
+ import { CommandItemState, OnesEditor } from '../../../../@ones-editor/core';
2
+ import { ToolbarItem } from '../types';
3
+ export declare class UndoItem implements ToolbarItem {
4
+ icon: string;
5
+ id: string;
6
+ name: string;
7
+ states: CommandItemState[];
8
+ onClick(editor: OnesEditor, item: ToolbarItem): void;
9
+ updateState(editor: OnesEditor): void;
10
+ }
11
+ export declare class RedoItem implements ToolbarItem {
12
+ icon: string;
13
+ id: string;
14
+ name: string;
15
+ states: CommandItemState[];
16
+ onClick(editor: OnesEditor, item: ToolbarItem): void;
17
+ updateState(editor: OnesEditor): void;
18
+ }
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ toolbar: {
3
+ undo: string;
4
+ redo: string;
5
+ insert: string;
6
+ findReplace: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ toolbar: {
3
+ undo: string;
4
+ redo: string;
5
+ insert: string;
6
+ findReplace: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ toolbar: {
3
+ undo: string;
4
+ redo: string;
5
+ insert: string;
6
+ findReplace: string;
7
+ };
8
+ };
9
+ export default _default;