@ones-editor/editor 2.1.1-beta.78 → 2.1.1-beta.80

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,12 +1,17 @@
1
1
  /// <reference types="lodash" />
2
2
  import { CommandItem, OnesEditor, OnesEditorCustom } from '../../../@ones-editor/core';
3
- import { AutoSuggestAnchor, OnesEditorAutoSuggest } from '../../../@ones-editor/ui-base';
3
+ import { AutoSuggestAnchor, EditorInput, OnesEditorAutoSuggest } from '../../../@ones-editor/ui-base';
4
4
  import { MentionOptions } from './types';
5
+ interface MobileWrap {
6
+ wrapper: HTMLElement;
7
+ input: EditorInput;
8
+ content: HTMLElement;
9
+ }
5
10
  export default class OnesEditorMention implements OnesEditorCustom {
6
11
  private editor;
7
12
  private options;
8
13
  suggest: OnesEditorAutoSuggest;
9
- private mobileWrap;
14
+ private mobileWrap?;
10
15
  private items;
11
16
  constructor(editor: OnesEditor, options: MentionOptions);
12
17
  createMobileHeader: () => HTMLDivElement | undefined;
@@ -20,7 +25,7 @@ export default class OnesEditorMention implements OnesEditorCustom {
20
25
  createItemElement: (item: CommandItem, find: string) => HTMLElement;
21
26
  createMobileItems: (content: HTMLElement, items: CommandItem[], find: string) => void;
22
27
  onInputChanged: import("lodash").DebouncedFunc<(content: HTMLElement, e: Event) => void>;
23
- getMobileCommandElement: () => HTMLElement;
28
+ createMobileWrap: () => MobileWrap;
24
29
  createMobileCommandItem: (items: CommandItem[]) => {
25
30
  id: string;
26
31
  name: string;
@@ -29,3 +34,4 @@ export default class OnesEditorMention implements OnesEditorCustom {
29
34
  _queryItems: (text: string) => Promise<CommandItem[]>;
30
35
  queryItems: (menu: OnesEditorAutoSuggest, text: string) => Promise<CommandItem[]>;
31
36
  }
37
+ export {};
@@ -6,6 +6,7 @@ export declare class MobileToolbarHandler {
6
6
  bar: HTMLElement;
7
7
  constructor(editor: OnesEditor, parent: HTMLElement);
8
8
  private subBar;
9
+ private addSubBar;
9
10
  private handleSubBarShown;
10
11
  layoutSubBar(): void;
11
12
  private handleSelectionChange;