@ones-editor/editor 2.1.1-beta.73 → 2.1.1-beta.75

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 (29) hide show
  1. package/@ones-editor/core/src/core/command-providers/block-attributes.d.ts +2 -0
  2. package/@ones-editor/core/src/core/containers/root-container.d.ts +0 -3
  3. package/@ones-editor/core/src/core/editor/index.d.ts +1 -1
  4. package/@ones-editor/core/src/utils/dom.d.ts +1 -0
  5. package/@ones-editor/mobile-helper/src/fixed-toolbar/index.d.ts +1 -0
  6. package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +2 -4
  7. package/@ones-editor/mobile-helper/src/fixed-toolbar/toolbar-handler.d.ts +1 -1
  8. package/@ones-editor/mobile-helper/src/index.d.ts +2 -1
  9. package/@ones-editor/table-block/src/index.d.ts +2 -5
  10. package/@ones-editor/text-commands/src/index.d.ts +0 -1
  11. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  12. package/@ones-editor/ui/src/locale/en-us.d.ts +9 -0
  13. package/@ones-editor/ui/src/locale/ja-jp.d.ts +9 -0
  14. package/@ones-editor/ui/src/locale/zh-cn.d.ts +9 -0
  15. package/@ones-editor/ui/src/providers/mobile-link-provider.d.ts +4 -1
  16. package/@ones-editor/ui/src/providers/selection-provider.d.ts +9 -0
  17. package/@ones-editor/ui/src/providers/utils/text-styles.d.ts +1 -1
  18. package/@ones-editor/ui-base/src/color-palette/color-palette.d.ts +1 -1
  19. package/@ones-editor/ui-base/src/index.d.ts +1 -1
  20. package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +0 -1
  21. package/@ones-editor/ui-base/src/mobile-command-bar/scroll-into-view.d.ts +1 -1
  22. package/dist/index.js +366 -485
  23. package/package.json +1 -1
  24. package/@ones-editor/text-commands/src/locale/en-us.d.ts +0 -13
  25. package/@ones-editor/text-commands/src/locale/index.d.ts +0 -1
  26. package/@ones-editor/text-commands/src/locale/ja-jp.d.ts +0 -13
  27. package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +0 -13
  28. package/@ones-editor/ui/src/providers/utils/text-commands.d.ts +0 -3
  29. /package/@ones-editor/table-block/src/commands/{table-command-provider.d.ts → mobile-command-provider.d.ts} +0 -0
@@ -43,6 +43,15 @@ declare const _default: {
43
43
  paste: string;
44
44
  tab: string;
45
45
  shiftTab: string;
46
+ bold: string;
47
+ italic: string;
48
+ underline: string;
49
+ strikethrough: string;
50
+ code: string;
51
+ subscript: string;
52
+ superscript: string;
53
+ more: string;
54
+ selectBlock: string;
46
55
  };
47
56
  };
48
57
  export default _default;
@@ -43,6 +43,15 @@ declare const _default: {
43
43
  paste: string;
44
44
  tab: string;
45
45
  shiftTab: string;
46
+ bold: string;
47
+ italic: string;
48
+ underline: string;
49
+ strikethrough: string;
50
+ code: string;
51
+ subscript: string;
52
+ superscript: string;
53
+ more: string;
54
+ selectBlock: string;
46
55
  };
47
56
  };
48
57
  export default _default;
@@ -43,6 +43,15 @@ declare const _default: {
43
43
  paste: string;
44
44
  tab: string;
45
45
  shiftTab: string;
46
+ bold: string;
47
+ italic: string;
48
+ underline: string;
49
+ strikethrough: string;
50
+ code: string;
51
+ subscript: string;
52
+ superscript: string;
53
+ more: string;
54
+ selectBlock: string;
46
55
  };
47
56
  };
48
57
  export default _default;
@@ -1,9 +1,12 @@
1
1
  import { BlockElement, CommandItem, CommandItemWithSource, CommandParams, CommandResult, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
2
2
  export declare class MobileLinkProvider implements OnesEditorCommandProvider {
3
+ private options?;
3
4
  id: string;
4
5
  insertProvider: OnesEditorCommandProvider;
5
6
  editProvider: OnesEditorCommandProvider;
6
- constructor(editor: OnesEditor);
7
+ constructor(editor: OnesEditor, options?: {
8
+ linkMode: 'insert' | 'edit';
9
+ } | undefined);
7
10
  getSelectedLinkChild: (editor: OnesEditor, range: SelectionRange) => import("@ones-editor/core").TextBlockContentChild | null;
8
11
  getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams) => CommandItem[];
9
12
  executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItemWithSource, params: CommandParams, result?: CommandResult) => boolean;
@@ -0,0 +1,9 @@
1
+ import { BlockElement, CommandItem, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
2
+ export default class SelectionProvider implements OnesEditorCommandProvider {
3
+ private editor;
4
+ id: string;
5
+ constructor(editor: OnesEditor);
6
+ getAvailableCommands(editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams): CommandItem[];
7
+ getInsertCommands: () => never[];
8
+ executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, command: CommandItem): boolean;
9
+ }
@@ -2,5 +2,5 @@ import { BlockElement, CommandItem, DocBlockText, OnesEditor, SelectionRange, Te
2
2
  export declare function getIntersectionStyles(text: DocBlockText): Map<any, any>;
3
3
  export declare function getTextStyles(editor: OnesEditor, block: BlockElement, range: SelectionRange): TextStyles;
4
4
  export declare function applyTextStyle(editor: OnesEditor, block: BlockElement, range: SelectionRange, style: string, value?: boolean | string | number): DocBlockText;
5
- export declare function getStandardTextStyles(textStyles: CommandItem[], text: DocBlockText): CommandItem[];
5
+ export declare function getStandardTextStyles(editor: OnesEditor, textStyles: CommandItem[], text: DocBlockText): CommandItem[];
6
6
  export declare function getSubText(editor: OnesEditor, block: BlockElement, range: SelectionRange): DocBlockText;
@@ -14,5 +14,5 @@ export default class ColorPalette extends TypedEmitter<ColorPaletteEvents> {
14
14
  constructor(options?: ColorPaletteOptions);
15
15
  destroy(): void;
16
16
  setColor(type: ColorType, value: number | null): void;
17
- handleClick: (event: MouseEvent | PointerEvent) => void;
17
+ handleClick: (event: MouseEvent) => void;
18
18
  }
@@ -17,5 +17,5 @@ export * from './item-shortcuts';
17
17
  export * from './emoji-item';
18
18
  export * from './mobile-command-bar/mobile-bottom-menu';
19
19
  export * from './text-button';
20
- export { scrollIntoView } from './mobile-command-bar/scroll-into-view';
20
+ export { scrollBarIntoView } from './mobile-command-bar/scroll-into-view';
21
21
  export { tippy, };
@@ -13,7 +13,6 @@ declare class MobileBottomMenu extends CommandBar implements AbstractManualComma
13
13
  destroy(): void;
14
14
  get isVisible(): boolean;
15
15
  get popper(): Element | null;
16
- getSubBarOptions: (item: CommandItem) => ManualShowCommandBarOptions;
17
16
  protected initCommandBarElement(elem: CommandBarContentElement): void;
18
17
  protected getCommandBarRoot(): HTMLElement | null;
19
18
  protected initItemElement(item: CommandItem, elem: CommandItemElement): void;
@@ -1,3 +1,3 @@
1
1
  import { OnesEditor } from '../../../../@ones-editor/core';
2
2
  import { AbstractCommandBar } from '../command-bar';
3
- export declare const scrollIntoView: (bar: AbstractCommandBar, editor: OnesEditor) => void;
3
+ export declare const scrollBarIntoView: (editor: OnesEditor, bar: AbstractCommandBar) => void;