@ones-editor/editor 2.0.7-beta.13 → 2.0.7-beta.15

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,3 +1,4 @@
1
1
  import EmbedBlock from './embed-block';
2
2
  export * from './common';
3
+ export * from './helper';
3
4
  export { EmbedBlock };
@@ -25,11 +25,11 @@ export declare class EditorInput implements OnesEditorInput {
25
25
  editor: OnesEditor;
26
26
  composing: boolean;
27
27
  callbacks: EditorInputCallbacks;
28
- inputElement: HTMLInputElement;
28
+ inputElement: HTMLTextAreaElement;
29
29
  constructor(editor: OnesEditor, callbacks: EditorInputCallbacks);
30
30
  private isInCommandBar;
31
31
  destroy(): void;
32
- getInput(): HTMLInputElement;
32
+ getInput(): HTMLTextAreaElement;
33
33
  focus(options?: FocusOptions): void;
34
34
  isInDisableScrollMask(target: Node): boolean;
35
35
  handleWindowBlur: () => void;
@@ -87,6 +87,7 @@ export interface EmbedOptions {
87
87
  }
88
88
  export interface Embed {
89
89
  embedType: string;
90
+ adjustableMinHeight?: number;
90
91
  createEmbedContent: (editor: OnesEditor, content: BlockContentElement, block: DocEmbedBlock, path: BlockPath, container: ContainerElement, blockElement: BlockElement) => void;
91
92
  convertTo?: (editor: OnesEditor, blockData: DocEmbedBlock, doc: DocObject, type: 'text' | 'html' | 'markdown') => string;
92
93
  getBlockProperties?: (editor: OnesEditor, block: BlockElement) => BlockProperties;
@@ -638,7 +639,7 @@ export type PasteOptions = {
638
639
  toPlainText?: boolean;
639
640
  };
640
641
  export interface OnesEditorInput {
641
- readonly inputElement: HTMLInputElement;
642
+ readonly inputElement: HTMLTextAreaElement;
642
643
  destroy: () => void;
643
644
  focus: () => void;
644
645
  handleDocumentSelectionChange: () => void;
@@ -1,3 +1,4 @@
1
1
  export declare const MERMAID_SCRIPTS = "https://cdn.jsdelivr.net/npm/mermaid@9.0.1/dist/mermaid.min.js";
2
2
  export declare const FLOWCHART_SCRIPTS: string[];
3
3
  export declare const PLANTUML_PRE = "https://www.plantuml.com/plantuml/svg";
4
+ export declare const GRAPH_MIN_HEIGHT = 200;