@ones-editor/editor 1.1.7-beta.6 → 1.1.7-beta.8

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,7 +1,6 @@
1
1
  import { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult } from '../../../../@ones-editor/core';
2
2
  export declare class OnesEditorCommentsRender implements OnesEditorBlockRenderer {
3
3
  renderText(editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
4
- renderBox(editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
5
4
  renderBlock(editor: OnesEditor, path: BlockPath, blockData: DocBlock): OnesEditorBlockRenderResult;
6
5
  updateBlock(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock): void;
7
6
  }
@@ -1,4 +1,4 @@
1
- import { OnesEditor, BlockElement, InsertTextOptions } from '../../types';
1
+ import { OnesEditor, BlockElement } from '../../types';
2
2
  import { DocBlockText, DocBlockTextActions } from '../../doc';
3
- export declare function editorUpdateBlockText(editor: OnesEditor, block: BlockElement, ops: DocBlockTextActions, options?: InsertTextOptions): DocBlockText;
4
- export declare function editorSetBlockText(editor: OnesEditor, block: BlockElement, newText: DocBlockText, options?: InsertTextOptions): void;
3
+ export declare function editorUpdateBlockText(editor: OnesEditor, block: BlockElement, ops: DocBlockTextActions): DocBlockText;
4
+ export declare function editorSetBlockText(editor: OnesEditor, block: BlockElement, newText: DocBlockText): void;
@@ -1,3 +1,3 @@
1
- import { InsertTextOptions, OnesEditor } from '../../types';
1
+ import { OnesEditor } from '../../types';
2
2
  import { DocBox } from '../../doc';
3
- export declare function editorUpdateBoxData(editor: OnesEditor, boxData: DocBox, options?: InsertTextOptions): void;
3
+ export declare function editorUpdateBoxData(editor: OnesEditor, boxData: DocBox): void;
@@ -441,7 +441,6 @@ export type OnesEditorCustomCreator = (editor: OnesEditor) => OnesEditorCustom;
441
441
  export interface CloneBlockResultInfo {
442
442
  containerIdMap: Map<string, string>;
443
443
  blockIdMap: Map<string, string>;
444
- boxIdMap: Map<string, string>;
445
444
  }
446
445
  export interface OnesEditorDomEvents extends OnesEditorCustom {
447
446
  addEventListener: <T = Event>(element: Element | Document | Window, eventName: string, eventHandler: (editor: OnesEditor, event: T) => void) => void;
@@ -542,7 +541,7 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
542
541
  deleteChildContainers: (containerIds: string[]) => void;
543
542
  updateBlockData: (block: BlockElement, data: DocBlockAttributes, newRange?: SelectionRange) => DocBlock;
544
543
  updateEmbedData: (block: BlockElement, data: DocEmbedData, newRange?: SelectionRange) => DocBlock;
545
- updateBoxData: (boxData: DocBox, options?: InsertTextOptions) => void;
544
+ updateBoxData: (boxData: DocBox) => void;
546
545
  updateCompositionText: (text: string, end: boolean) => void;
547
546
  getColor: (index: number, type?: string) => string;
548
547
  }
@@ -4,4 +4,6 @@ import MathjaxEmbed from './mathjax-embed';
4
4
  import './mathjax-style.scss';
5
5
  import './locale';
6
6
  import ConvertEmptyMathjaxBoxInputHandler from './mathjax-box/convert-mathjax';
7
+ import { MathjaxOptions } from './mathjax/convert';
8
+ export type { MathjaxOptions };
7
9
  export { MathjaxBox, MathjaxEmbed, createEmptyMathjaxBox, editMathjaxBox, ConvertEmptyMathjaxBoxInputHandler, };
@@ -14,6 +14,7 @@ export default class PasteSpecialButton {
14
14
  private cleaningDoc;
15
15
  handlePasteSpecial: (bar: AbstractCommandBar, item: CommandItem) => void;
16
16
  handleClose: () => void;
17
+ handleSelectionChange: () => void;
17
18
  hide(): void;
18
19
  clearCheckedState(): void;
19
20
  destroy(): void;