@ones-editor/editor 1.1.20-beta.13 → 1.1.20-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.
@@ -10,19 +10,20 @@ export default class OnesEditorQuickMenu {
10
10
  protected editor: OnesEditor;
11
11
  private options;
12
12
  protected suggest: OnesEditorAutoSuggest;
13
- private allItems;
14
- private items;
13
+ private _items;
15
14
  private maxHeading;
16
15
  private firstEmptyOffset;
17
16
  private currentContainerId;
18
17
  private currentBlockIndex;
18
+ private get selectedBlock();
19
+ private get items();
20
+ private set items(value);
19
21
  constructor(editor: OnesEditor, options?: QuickMenuOptions);
20
22
  get menu(): import("@ones-editor/ui-base").ManualMenu;
21
23
  destroy(): void;
22
24
  queryItems: (suggest: unknown, text: string) => Promise<QuickMenuItem[]>;
23
25
  onClose: () => void;
24
26
  onShow: (suggest: OnesEditorAutoSuggest, containerId: string, blockIndex: number, offset: number) => boolean;
25
- private filterItems;
26
27
  onClickItem: (suggest: unknown, item: CommandItem) => void;
27
28
  private initMenuItems;
28
29
  private refreshMenuItems;
@@ -1,7 +1,9 @@
1
- import { OnesEditor } from '../../../../@ones-editor/core';
1
+ import { BlockElement, CommandItemMenuType, OnesEditor } from '../../../../@ones-editor/core';
2
2
  import { QuickMenuCommandParams, QuickMenuItem } from './types';
3
3
  export interface GetAllQuickMenuItemsOptions {
4
4
  withPlainText: boolean;
5
5
  from: QuickMenuCommandParams['from'];
6
+ type: CommandItemMenuType;
7
+ ignoreFilter?: boolean;
6
8
  }
7
- export declare function getAllQuickMenuItems(editor: OnesEditor, options?: GetAllQuickMenuItemsOptions): QuickMenuItem[];
9
+ export declare function getAllQuickMenuItems(editor: OnesEditor, block: BlockElement | undefined, options: GetAllQuickMenuItemsOptions): QuickMenuItem[];
@@ -4,7 +4,6 @@ import { CommandBarContentElement, CommandItemElement } from '../command-bar/typ
4
4
  export type PopupOptions = {
5
5
  id?: string;
6
6
  beforeClose?: (event?: MouseEvent) => boolean;
7
- disablePageScroll?: boolean;
8
7
  };
9
8
  export default class Popup extends ManualCommandBar {
10
9
  constructor(content: HTMLElement, options?: PopupOptions);