@ones-editor/editor 2.2.9 → 2.2.10-beta.3

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.
@@ -646,7 +646,7 @@ export interface OnesEditorInput {
646
646
  readonly inputElement: HTMLTextAreaElement;
647
647
  getInput: () => HTMLTextAreaElement;
648
648
  destroy: () => void;
649
- focus: () => void;
649
+ focus: (options?: FocusOptions) => void;
650
650
  handleDocumentSelectionChange: () => void;
651
651
  handleCompositionstart: (event: CompositionEvent) => void;
652
652
  handleCompositionend: (event: CompositionEvent) => void;
@@ -5,8 +5,9 @@
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
7
7
  "devDependencies": {
8
+ "@types/lodash.clonedeep": "^4.5.0",
8
9
  "@types/lodash.debounce": "^4.0.7",
9
- "@types/lodash.clonedeep": "^4.5.0"
10
+ "@types/lodash.memoize": "^4.1.9"
10
11
  },
11
12
  "types": "src/index.d.ts"
12
13
  }
@@ -6,6 +6,7 @@ export default class MathjaxEditor {
6
6
  editMathjaxPopup: Popup | null;
7
7
  onChange: OnEditChange | null;
8
8
  tex: string;
9
+ oldTex: string;
9
10
  private observer;
10
11
  editMathjax(elem: HTMLElement, tex: string, onChange: OnEditChange, options?: ManualShowCommandBarOptions): void;
11
12
  handleClose: (commandBar: AbstractCommandBar) => void;
@@ -0,0 +1,3 @@
1
+ export declare class ExportImageError extends Error {
2
+ constructor(message: string);
3
+ }
@@ -1,5 +1,7 @@
1
1
  import { IImageOptions } from 'docx';
2
2
  import { OnesEditor } from '../../../@ones-editor/core';
3
+ import { ExportImageError } from './errors';
4
+ export { ExportImageError };
3
5
  export interface EditorToDocxOptions {
4
6
  template?: Blob;
5
7
  download?: boolean;