@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.
@@ -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: GetAllQuickMenuItemsOptions): BlockMenuItem[];
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;
@@ -140,7 +140,6 @@ export interface CommandItem {
140
140
  ellipsisTooltip?: string;
141
141
  disableTooltip?: boolean;
142
142
  disableReason?: string;
143
- hideGroupItem?: boolean;
144
143
  setCloseable?: (closeable: Closeable) => void;
145
144
  beforePopup?: (parent: unknown) => void;
146
145
  }
@@ -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 static isDocumentTitleBlock;
14
+ private isDocumentTitleBlock;
15
15
  }
16
16
  export default EnforceWithDocumentTitleHandler;
@@ -1,4 +1,5 @@
1
1
  export interface EnforceWithDocumentTitleHandlerOptions {
2
+ hideTitle?: boolean;
2
3
  headingLevel?: number;
3
4
  titlePlaceholder?: string;
4
5
  contentPlaceholder?: string | Element;
@@ -12,6 +12,5 @@ export type OnesEditorMentionUser = {
12
12
  email?: string;
13
13
  };
14
14
  export type MentionOptions = {
15
- enableFirstBlock?: boolean;
16
15
  queryUsers: (editor: OnesEditor, text: string) => Promise<OnesEditorMentionUser[]>;
17
16
  };
@@ -2,5 +2,4 @@ import TocEmbed from './toc-embed';
2
2
  import './locale';
3
3
  export * from './toc-provider';
4
4
  export * from './heading-scroll';
5
- export * from './types';
6
5
  export { TocEmbed };