@ones-editor/editor 2.2.15-beta.2 → 2.2.15-beta.4

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,10 +1,14 @@
1
1
  import { BlockElement, BoxCommands, BoxElement, CommandItem, OnesEditor, OnesEditorCommandProvider } from '../../../../@ones-editor/core';
2
+ export type ExtIds = 'separator' | 'add-comment';
2
3
  export declare class StandardBoxCommands implements BoxCommands {
3
4
  private editor;
5
+ private extIds?;
4
6
  group: string;
5
7
  providers: OnesEditorCommandProvider[];
6
- constructor(editor: OnesEditor);
8
+ constructor(editor: OnesEditor, extIds?: ExtIds[] | undefined);
9
+ addProvider(provider: OnesEditorCommandProvider): void;
7
10
  get commands(): CommandItem[];
8
11
  executeCommand(editor: OnesEditor, block: BlockElement, box: BoxElement, item: CommandItem): void;
9
- static create(editor: OnesEditor): StandardBoxCommands;
12
+ static create(editor: OnesEditor, extIds?: ExtIds[]): StandardBoxCommands;
13
+ static mobileCreate(editor: OnesEditor, extIds?: ExtIds[]): StandardBoxCommands;
10
14
  }
@@ -38,6 +38,7 @@ import { AddCommentToOldDocCommandProvider } from './readonly-toolbar/add-commen
38
38
  import ClipboardProvider from './providers/clipboard-provider';
39
39
  export * from './providers/utils/clipboard';
40
40
  export * from './providers/utils';
41
+ export * from './box-helper/standard-box-commands';
41
42
  export { ClipboardProvider, ListProvider, QuotedProvider, TextCommandProvider, injectBlockOptions, LinkProvider, InlineBoxCommandProvider, AlignProvider, ParagraphProvider, ProxyProvider, InlineCodeProvider, InlineStyleProvider, ColorStyleProvider, ScriptDropdownProvider, TextScriptProvider, HeadingProvider, MobileLinkProvider, InsertMenuProvider, };
42
43
  export type { QuickMenuCommandParams, QuickMenuCommandProvider, QuickMenuCommandBetween, AddMenuCommand, QuickMenuCommandInline, OnesEditorToolbarBase, OnesEditorTooltipCallbacks, EditorTooltipTippyInstance, OnesEditorTooltipProps, QuickMenuItem, QuickMenuOptions, ReadonlyToolbarCommandProvider, ReadonlyCommandOptions, };
43
44
  export { BlockMenu, BlockCommandProviders, OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, editLink, TextStyleShortcuts, getToolbar, BasicCommands, isSelectBoxOnly, getReferenceClientRect, ReadonlyToolbar, AddCommentToOldDocCommandProvider, OverflowTooltipHelper, };
@@ -16,7 +16,7 @@ export default abstract class CommandBar extends TypedEmitter<CommandBarEvents>
16
16
  constructor(items: CommandItem[], closeable?: Closeable, options?: CommandBarOptions);
17
17
  close(reason: CloseReason): void;
18
18
  click(item: CommandItem, target: HTMLElement): void;
19
- createPopperOptions(): Partial<import("@popperjs/core").Options>;
19
+ createPopperOptions(flip?: boolean): Partial<import("@popperjs/core").Options>;
20
20
  destroy(): void;
21
21
  abstract readonly isVisible: boolean;
22
22
  get isSubCommandBar(): boolean;
@@ -67,6 +67,7 @@ export interface CommandBarOptions {
67
67
  padding?: number;
68
68
  beforeClose?: (event?: MouseEvent | TouchEvent) => boolean;
69
69
  showName?: boolean;
70
+ maxWidth?: number | string;
70
71
  }
71
72
  export type CreateManualCommandBarFunction = (parentItem: CommandItem, closeable: Closeable, options?: CommandBarOptions) => AbstractManualCommandBar;
72
73
  export type PopoverOptions = {
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  };
29
29
  search: {
30
30
  emptyTips: string;
31
+ loading: string;
31
32
  };
32
33
  };
33
34
  export default _default;
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  };
29
29
  search: {
30
30
  emptyTips: string;
31
+ loading: string;
31
32
  };
32
33
  };
33
34
  export default _default;
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  };
29
29
  search: {
30
30
  emptyTips: string;
31
+ loading: string;
31
32
  };
32
33
  };
33
34
  export default _default;