@ones-editor/editor 1.0.2-beta.9 → 1.0.3
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/code-block/src/index.d.ts +2 -2
- package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +1 -6
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +22 -1
- package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
- package/@ones-editor/core/src/core/doc/doc.d.ts +1 -0
- package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +1 -0
- package/@ones-editor/core/src/core/index.d.ts +0 -1
- package/@ones-editor/core/src/core/input-handler/actions.d.ts +0 -1
- package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +3 -3
- package/@ones-editor/core/src/core/types.d.ts +0 -27
- package/@ones-editor/core/src/local-doc/index.d.ts +1 -0
- package/@ones-editor/graph-embed/src/config/index.d.ts +1 -1
- package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +1 -1
- package/@ones-editor/image-embed/src/shortcuts/index.d.ts +1 -2
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +4 -0
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +0 -1
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +0 -1
- package/@ones-editor/versions/src/history-doc/history-doc.d.ts +1 -0
- package/dist/index.js +174 -175
- package/dist/types.d.ts +0 -2
- package/package.json +1 -1
- package/@ones-editor/context-menu/index.d.ts +0 -3
- package/@ones-editor/context-menu/package.json +0 -8
- package/@ones-editor/context-menu/src/helper/actions.d.ts +0 -4
- package/@ones-editor/context-menu/src/helper/command-items.d.ts +0 -23
- package/@ones-editor/context-menu/src/helper/utils.d.ts +0 -4
- package/@ones-editor/context-menu/src/locale/en-us.d.ts +0 -14
- package/@ones-editor/context-menu/src/locale/index.d.ts +0 -1
- package/@ones-editor/context-menu/src/locale/ja-jp.d.ts +0 -14
- package/@ones-editor/context-menu/src/locale/zh-cn.d.ts +0 -14
- package/@ones-editor/context-menu/src/menu/index.d.ts +0 -21
package/dist/types.d.ts
CHANGED
|
@@ -49,7 +49,6 @@ export interface CreateOnesEditorOptions {
|
|
|
49
49
|
token: string;
|
|
50
50
|
disableLogout?: boolean;
|
|
51
51
|
enableComments?: boolean;
|
|
52
|
-
enableContextMenu?: boolean;
|
|
53
52
|
scrollContainer?: HTMLElement;
|
|
54
53
|
lang?: i18n.LANGS;
|
|
55
54
|
logLevel?: LogLevel;
|
|
@@ -85,7 +84,6 @@ export interface CreateLocalEditorOptions {
|
|
|
85
84
|
};
|
|
86
85
|
serverUrl?: string;
|
|
87
86
|
enableComments?: boolean;
|
|
88
|
-
enableContextMenu?: boolean;
|
|
89
87
|
events?: EditorEvents;
|
|
90
88
|
componentsOptions?: EditorComponentOptions;
|
|
91
89
|
hideTitle?: boolean;
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { OnesEditor, EditorInputHandlers } from '../../../../@ones-editor/core';
|
|
2
|
-
export declare function handleCopyAction(editor: OnesEditor, inputHandlers: EditorInputHandlers | null, id: 'copy' | 'copy-markdown'): Promise<void>;
|
|
3
|
-
export declare function handleCutAction(editor: OnesEditor, inputHandlers: EditorInputHandlers | null): Promise<void>;
|
|
4
|
-
export declare function handlePasteAction(editor: OnesEditor, inputHandlers: EditorInputHandlers | null): Promise<void>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { OnesEditor, CommandItem } from '../../../../@ones-editor/core';
|
|
2
|
-
export default class ContextMenuCommandItems {
|
|
3
|
-
private editor;
|
|
4
|
-
private t;
|
|
5
|
-
private supportClipboard;
|
|
6
|
-
private isSecureContext;
|
|
7
|
-
private externalActionHandleMap;
|
|
8
|
-
constructor(editor: OnesEditor);
|
|
9
|
-
clipboardSupport(): void;
|
|
10
|
-
get isRangeCollapsed(): boolean;
|
|
11
|
-
get imageTypeCommandItems(): CommandItem[];
|
|
12
|
-
get copyTypeCommandItems(): CommandItem[];
|
|
13
|
-
get cutCommandItem(): CommandItem;
|
|
14
|
-
get stepItem(): CommandItem;
|
|
15
|
-
get selectionCommandItems(): CommandItem[];
|
|
16
|
-
destroy(): void;
|
|
17
|
-
handleActionByExternal: (item: CommandItem) => unknown;
|
|
18
|
-
getPasteCommandItem: () => Promise<CommandItem>;
|
|
19
|
-
getCommandItems: () => Promise<CommandItem[]>;
|
|
20
|
-
private getExternalContextMenuOptions;
|
|
21
|
-
private secureEnvTips;
|
|
22
|
-
private isFocusImageBlock;
|
|
23
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ImageObject } from '../../../../@ones-editor/image-embed';
|
|
2
|
-
export declare function blobToString(blob: Blob): Promise<string>;
|
|
3
|
-
export declare function isClipboardEmpty(): Promise<boolean>;
|
|
4
|
-
export declare function saveAs(resourceUrl: string, imageObject: ImageObject): void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
contextMenu: {
|
|
3
|
-
copyMarkdown: string;
|
|
4
|
-
paste: string;
|
|
5
|
-
copyImage: string;
|
|
6
|
-
copyImageUrl: string;
|
|
7
|
-
imageSaveAs: string;
|
|
8
|
-
newTabOpenImage: string;
|
|
9
|
-
selectBlock: string;
|
|
10
|
-
selectAll: string;
|
|
11
|
-
uneditableBlockSelected: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
contextMenu: {
|
|
3
|
-
copyMarkdown: string;
|
|
4
|
-
paste: string;
|
|
5
|
-
copyImage: string;
|
|
6
|
-
copyImageUrl: string;
|
|
7
|
-
imageSaveAs: string;
|
|
8
|
-
newTabOpenImage: string;
|
|
9
|
-
selectBlock: string;
|
|
10
|
-
selectAll: string;
|
|
11
|
-
uneditableBlockSelected: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
contextMenu: {
|
|
3
|
-
copyMarkdown: string;
|
|
4
|
-
paste: string;
|
|
5
|
-
copyImage: string;
|
|
6
|
-
copyImageUrl: string;
|
|
7
|
-
imageSaveAs: string;
|
|
8
|
-
newTabOpenImage: string;
|
|
9
|
-
selectBlock: string;
|
|
10
|
-
selectAll: string;
|
|
11
|
-
uneditableBlockSelected: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EditorInputHandlers } from '../../../../@ones-editor/core';
|
|
2
|
-
import type { OnesEditor, OnesEditorContextMenuInstance } from '../../../../@ones-editor/core';
|
|
3
|
-
import './context-menu.scss';
|
|
4
|
-
declare class OnesEditorContextMenu implements OnesEditorContextMenuInstance {
|
|
5
|
-
private editor;
|
|
6
|
-
private contextMenu;
|
|
7
|
-
private contextMenuCommandItems;
|
|
8
|
-
contextMenuInputHandlers: EditorInputHandlers | null;
|
|
9
|
-
constructor(editor: OnesEditor);
|
|
10
|
-
destroy(): void;
|
|
11
|
-
show(event: MouseEvent): void;
|
|
12
|
-
private updateEditorCaret;
|
|
13
|
-
private initInputHandlers;
|
|
14
|
-
private handleContextMenu;
|
|
15
|
-
private isInMenu;
|
|
16
|
-
private isInEditor;
|
|
17
|
-
private handleContextMenuShown;
|
|
18
|
-
private handleContextMenuClick;
|
|
19
|
-
private handleImageEmbedAction;
|
|
20
|
-
}
|
|
21
|
-
export default OnesEditorContextMenu;
|