@ones-editor/editor 0.0.3-beta.205 → 0.0.3-beta.207

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.
@@ -19,12 +19,10 @@ export default class TextStyleItem implements BlockMenuItem {
19
19
  id: string;
20
20
  name: string;
21
21
  element: HTMLElement;
22
- private textStylesTooltips;
23
22
  constructor(editor: OnesEditor, block: BlockElement, options: TextStyleItemOptions);
24
23
  createItemElement(editor: OnesEditor, block: BlockElement): HTMLDivElement;
25
24
  private createHeadingItemElement;
26
25
  private createListItemElement;
27
26
  createItem(id: string, icon: string, parent: HTMLElement, active?: boolean): void;
28
27
  handleClick: (editor: OnesEditor, event: Event) => void;
29
- private calcTextStyleItemTooltipsEnum;
30
28
  }
@@ -2,4 +2,3 @@ import { CodeBlock, CodeLineBlock, CodeTextDecorator } from './code-block';
2
2
  import './locale';
3
3
  export * from './code-block/types';
4
4
  export { CodeBlock, CodeLineBlock, CodeTextDecorator };
5
- export { isCodeBlock } from './code-block/code-block-dom';
@@ -7,5 +7,6 @@ export default class CommentsCommandProvider implements OnesEditorCommandProvide
7
7
  id: string;
8
8
  constructor(provider: OnesEditorCommentsProvider, editorComments: OnesEditorComments);
9
9
  getAvailableCommands(editor: OnesEditor, block: BlockElement, range: SelectionRange): BlockCommandItem[];
10
+ hideToolbar(editor: OnesEditor): void;
10
11
  executeRangeCommand(editor: OnesEditor, range: SelectionRange, command: BlockCommandItemWithSource, params: CommandParams, result: CommandResult): boolean;
11
12
  }
@@ -18,6 +18,9 @@ export interface OnesEditorCommentOptions {
18
18
  onUpdateLayout?: (editor: OnesEditor, data: CommentData) => void;
19
19
  onCommentCountChange?: (count: number) => void;
20
20
  onCommentEditorClick?: (editor: OnesEditor, event: MouseEvent) => void;
21
+ componentsOptions?: {
22
+ [index: string]: unknown;
23
+ };
21
24
  }
22
25
  export interface OnesEditorCommentsEvents {
23
26
  onCreateComment: (commentId: string, local: boolean) => void;
@@ -1,4 +1,4 @@
1
- import { MarkdownInputHandler, converterIntercept } from './markdown-shortcuts';
1
+ import { MarkdownInputHandler } from './markdown-shortcuts';
2
2
  import './i18n';
3
3
  export * from './enforce-with-document-title';
4
- export { MarkdownInputHandler, converterIntercept };
4
+ export { MarkdownInputHandler };
@@ -1,3 +1,2 @@
1
1
  import MarkdownInputHandler from './markdown-input-handler';
2
- import { converterIntercept } from './match-block-convert';
3
- export { converterIntercept, MarkdownInputHandler, };
2
+ export { MarkdownInputHandler, };
@@ -1,3 +1,2 @@
1
1
  import { OnesEditor } from '../../../../@ones-editor/core';
2
- export declare function converterIntercept(editor: OnesEditor, containerId: string, blockIndex: number, offset: number, type: 'enter' | 'space'): boolean;
3
2
  export declare function matchBlockConvert(editor: OnesEditor, containerId: string, blockIndex: number, offset: number, type: 'enter' | 'space'): boolean;
@@ -1,19 +1,3 @@
1
- /// <reference types="lodash" />
2
- import { AbstractCommandBar, Popup } from '../../../../@ones-editor/ui-base';
3
1
  import { OnesEditor } from '../../../../@ones-editor/core';
4
2
  export type OnEditChange = (tex: string, end: boolean) => void;
5
- export default class MathjaxEditor {
6
- editMathjaxPopup: Popup | null;
7
- onChange: OnEditChange | null;
8
- tex: string;
9
- private observer;
10
- editMathjax(elem: HTMLElement, tex: string, onChange: OnEditChange): void;
11
- handleClose: (commandBar: AbstractCommandBar) => void;
12
- handleKeyup: (event: KeyboardEvent) => void;
13
- handleChange: import("lodash").DebouncedFunc<(text: string) => void>;
14
- createPopupContent(tex: string): HTMLTextAreaElement;
15
- textareaWatcher(textarea: HTMLTextAreaElement): void;
16
- getTextarea(): HTMLTextAreaElement;
17
- destroy(): void;
18
- }
19
3
  export declare function editMathjax(editor: OnesEditor, elem: HTMLElement, tex: string, onChange: OnEditChange): void;