@ones-editor/editor 0.0.5-beta.2 → 0.0.5-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.
- package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +1 -1
- package/@ones-editor/core/src/core/blocks/common/block-dom.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +0 -1
- package/@ones-editor/input-handlers/src/enforce-with-document-title/enforce-with-document-title-handler.d.ts +1 -1
- package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +1 -0
- package/@ones-editor/mention/src/types.d.ts +0 -1
- package/@ones-editor/toc/src/index.d.ts +0 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +2 -2
- package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +1 -2
- package/@ones-editor/ui/src/quick-menu/types.d.ts +1 -1
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +0 -1
- package/dist/index.js +63 -63
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/@ones-editor/toc/src/types.d.ts +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlockElement, OnesEditor } from '../../../../../../@ones-editor/core';
|
|
2
2
|
import type { GetAllQuickMenuItemsOptions } from '../../../../../../@ones-editor/ui';
|
|
3
3
|
import type { BlockMenuItem } from '../types';
|
|
4
|
-
export declare function getAllInsertBlockItems(editor: OnesEditor, source: 'insert-block' | 'insert-block-before', options
|
|
4
|
+
export declare function getAllInsertBlockItems(editor: OnesEditor, source: 'insert-block' | 'insert-block-before', options?: GetAllQuickMenuItemsOptions): BlockMenuItem[];
|
|
5
5
|
export declare function executeInsertBlockCommand(editor: OnesEditor, block: BlockElement, item: BlockMenuItem, insertAbove?: boolean): Promise<BlockElement | null> | undefined;
|
|
@@ -34,3 +34,4 @@ export declare function getNextVisibleBlock(block: BlockElement): BlockElement |
|
|
|
34
34
|
export declare function getBlockIndex(block: BlockElement): number;
|
|
35
35
|
export declare function isInBlock(target: EventTarget | null): boolean;
|
|
36
36
|
export declare function isInBlockTools(target: EventTarget | null): boolean;
|
|
37
|
+
export declare function isTitleBlock(block: BlockElement): boolean;
|
|
@@ -11,6 +11,6 @@ declare class EnforceWithDocumentTitleHandler implements OnesEditorInputHandler
|
|
|
11
11
|
handleUpdateCompositionText(editor: OnesEditor): void;
|
|
12
12
|
handleSelectionChange: (editor: OnesEditor) => void;
|
|
13
13
|
private applyPlaceholder;
|
|
14
|
-
private
|
|
14
|
+
private isDocumentTitleBlock;
|
|
15
15
|
}
|
|
16
16
|
export default EnforceWithDocumentTitleHandler;
|