@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.
- package/@ones-editor/context-menu/src/helper/command-items.d.ts +3 -1
- package/@ones-editor/context-menu/src/menu/index.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/quick-menu/index.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +52 -13
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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[];
|