@ones-editor/editor 1.1.17-beta.6 → 1.1.17-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,9 +1,10 @@
1
1
  interface SelectFileOptions {
2
2
  multiple?: boolean;
3
+ container?: HTMLElement;
3
4
  }
4
5
  export declare function selectFile<T extends SelectFileOptions = SelectFileOptions>(accept: string, options?: T): Promise<T extends {
5
6
  multiple: true;
6
- } ? File[] : File>;
7
+ } ? (File[] | null) : (File | null)>;
7
8
  export declare function isDraggingFiles(v: unknown): v is File[];
8
9
  export declare function getFileExt(file: string): string;
9
10
  export declare function requestDownload(downloadUrl: string, fileName?: string): void;
@@ -1,4 +1,4 @@
1
1
  import * as markmap from 'markmap-view';
2
2
  import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
3
3
  import { ToMindmapOptions } from './types';
4
- export declare function toMindmap(editor: OnesEditor, block: BlockElement, mindmapOptions: markmap.Markmap['options'], options: ToMindmapOptions): void;
4
+ export declare function toMindmap(editor: OnesEditor, block: BlockElement, mindmapOptions: Partial<markmap.Markmap['options']>, options: ToMindmapOptions): void;
@@ -7,7 +7,7 @@ export interface ToMindmapOptions {
7
7
  selectBlock?: boolean;
8
8
  }
9
9
  export interface MindmapTools {
10
- toMindmap: (editor: OnesEditor, block: BlockElement, mindmapOptions: Markmap['options'], options: ToMindmapOptions) => void;
10
+ toMindmap: (editor: OnesEditor, block: BlockElement, mindmapOptions: Partial<Markmap['options']>, options: ToMindmapOptions) => void;
11
11
  closeMindmap: (editor: OnesEditor, block: BlockElement) => void;
12
12
  fitMindmap: (editor: OnesEditor, block: BlockElement) => void;
13
13
  }