@ones-editor/editor 2.9.8-beta.46 → 2.9.8-beta.48

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.
@@ -5,6 +5,7 @@ export default class ContextMenuCommandItems {
5
5
  private clipboardPermission;
6
6
  private isSecureContext;
7
7
  private externalActionHandleMap;
8
+ private target;
8
9
  constructor(editor: OnesEditor);
9
10
  get hasClipboardReadPermission(): boolean;
10
11
  get hasClipboardWritePermission(): boolean;
@@ -18,10 +19,11 @@ export default class ContextMenuCommandItems {
18
19
  destroy(): void;
19
20
  handleActionByExternal: (item: CommandItem) => unknown;
20
21
  getPasteCommandItem: () => Promise<CommandItem>;
21
- getCommandItems: () => Promise<CommandItem[]>;
22
+ getCommandItems: (target?: HTMLElement | null) => Promise<CommandItem[]>;
22
23
  private getExternalContextMenuOptions;
23
24
  private secureEnvTips;
24
25
  private isFocusImageBlock;
26
+ private getFocusImageBlock;
25
27
  private isFocusImageTypeEmbed;
26
28
  private isEmptyImageTypeEmbed;
27
29
  }
@@ -4,6 +4,7 @@ declare class OnesEditorContextMenu implements OnesEditorCustom {
4
4
  private editor;
5
5
  private contextMenu;
6
6
  private contextMenuCommandItems;
7
+ private target;
7
8
  constructor(editor: OnesEditor);
8
9
  destroy: () => void;
9
10
  private updateEditorCaret;
@@ -465,6 +465,7 @@ export interface OnesEditorOptionalOptions {
465
465
  enableResolveComments?: boolean;
466
466
  enableContextMenu?: boolean;
467
467
  settingsProvider?: OnesEditorSettingsProvider;
468
+ dateTimeFormatter?: (v: Date, source?: string) => string;
468
469
  }
469
470
  export interface OnesEditorOptions {
470
471
  colors: string[];
@@ -475,6 +476,7 @@ export interface OnesEditorOptions {
475
476
  enableResolveComments?: boolean;
476
477
  enableContextMenu?: boolean;
477
478
  scrollContainer?: HTMLElement;
479
+ dateTimeFormatter?: (v: Date, source?: string) => string;
478
480
  }
479
481
  export interface OnesEditorComponents {
480
482
  blocks?: Block[];