@ones-editor/editor 0.0.3-beta.50 → 0.0.3-beta.51

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,4 +1,4 @@
1
1
  import { BlockElement, OnesEditor } from '../../../../../../@ones-editor/core';
2
2
  import { BlockMenuItem } from '../types';
3
- export declare function getAllInsertBlockItems(editor: OnesEditor): BlockMenuItem[];
3
+ export declare function getAllInsertBlockItems(editor: OnesEditor, source: 'insert-block' | 'insert-block-before'): BlockMenuItem[];
4
4
  export declare function executeInsertBlockCommand(editor: OnesEditor, block: BlockElement, item: BlockMenuItem, insertAbove?: boolean): Promise<BlockElement | null> | undefined;
@@ -2,8 +2,9 @@ import { TextKindBlock } from '../../../@ones-editor/core';
2
2
  import OnesEditorListMindmap from './mindmap';
3
3
  import './lang';
4
4
  import './style.scss';
5
+ import { getListAllNextBrothers } from './utils/list-brother';
6
+ import { resetListStart } from './start/reset-list-start';
5
7
  export { type ListOptions } from './types';
6
8
  declare const ListBlock: TextKindBlock;
7
- export * from './command/covert-to-list';
8
9
  export * from './keyboard/to-text-block';
9
- export { ListBlock, OnesEditorListMindmap, };
10
+ export { ListBlock, OnesEditorListMindmap, resetListStart, getListAllNextBrothers, };
@@ -0,0 +1,2 @@
1
+ import { OnesEditor, DocBlock, DocObject, BlockPath } from '../../../../@ones-editor/core';
2
+ export declare function convertTo(editor: OnesEditor, blockData: DocBlock, doc: DocObject, type: 'text' | 'html' | 'markdown', path: BlockPath): string;
@@ -20,5 +20,5 @@ declare class TableCreatorItem implements CommandItem, CreateTableData {
20
20
  handleTableCreatorLeave: () => void;
21
21
  handleTableCreatorCellEnter: (event: MouseEvent) => void;
22
22
  }
23
- export declare function getTableCreatorItem(editor: OnesEditor): TableCreatorItem;
23
+ export declare function getTableCreatorItem(): TableCreatorItem;
24
24
  export {};