@ones-editor/editor 1.1.2 → 1.1.3-bate.10
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/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 +2 -0
- package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +1 -0
- 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 -4
- package/@ones-editor/core/src/core/keyboard/default-shortcuts.d.ts +1 -2
- package/@ones-editor/core/src/core/types.d.ts +0 -24
- package/@ones-editor/core/src/utils/dom-scroll.d.ts +1 -1
- package/@ones-editor/core/src/utils/index.d.ts +0 -1
- package/@ones-editor/drawio-embed/src/helper/iframe-embed-doc-event.d.ts +23 -0
- package/@ones-editor/drawio-embed/src/helper/index.d.ts +1 -1
- package/@ones-editor/drawio-embed/src/index.d.ts +1 -0
- package/@ones-editor/drawio-embed/src/lang/en-us.d.ts +3 -0
- package/@ones-editor/drawio-embed/src/lang/ja-jp.d.ts +3 -0
- package/@ones-editor/drawio-embed/src/lang/zh-cn.d.ts +3 -0
- package/@ones-editor/graph-embed/src/config/index.d.ts +1 -1
- package/@ones-editor/image-embed/src/shortcuts/index.d.ts +1 -2
- package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +4 -0
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +2 -0
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +2 -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/version-dialog/version-list.d.ts +1 -1
- package/dist/index.js +200 -204
- 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 -5
- package/@ones-editor/context-menu/src/helper/command-items.d.ts +0 -26
- package/@ones-editor/context-menu/src/helper/utils.d.ts +0 -3
- 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 -17
- package/@ones-editor/core/src/utils/blob-to-string.d.ts +0 -1
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,5 +0,0 @@
|
|
|
1
|
-
import type { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
-
export declare function handleCopyAction(editor: OnesEditor): Promise<void>;
|
|
3
|
-
export declare function handleCopyMarkdownAction(editor: OnesEditor): Promise<void>;
|
|
4
|
-
export declare function handleCutAction(editor: OnesEditor): Promise<void>;
|
|
5
|
-
export declare function handleSaveImageFromImageEmbedTypeBlock(editor: OnesEditor, block: BlockElement): Promise<void>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { OnesEditor, CommandItem } from '../../../../@ones-editor/core';
|
|
2
|
-
export default class ContextMenuCommandItems {
|
|
3
|
-
private editor;
|
|
4
|
-
private t;
|
|
5
|
-
private clipboardPermission;
|
|
6
|
-
private isSecureContext;
|
|
7
|
-
private externalActionHandleMap;
|
|
8
|
-
constructor(editor: OnesEditor);
|
|
9
|
-
get hasClipboardReadPermission(): boolean;
|
|
10
|
-
get hasClipboardWritePermission(): boolean;
|
|
11
|
-
clipboardSupport(): void;
|
|
12
|
-
get isRangeCollapsed(): boolean;
|
|
13
|
-
get imageTypeCommandItems(): CommandItem[];
|
|
14
|
-
get copyTypeCommandItems(): CommandItem[];
|
|
15
|
-
get cutCommandItem(): CommandItem;
|
|
16
|
-
get stepItem(): CommandItem;
|
|
17
|
-
get selectionCommandItems(): CommandItem[];
|
|
18
|
-
destroy(): void;
|
|
19
|
-
handleActionByExternal: (item: CommandItem) => unknown;
|
|
20
|
-
getPasteCommandItem: () => Promise<CommandItem>;
|
|
21
|
-
getCommandItems: () => Promise<CommandItem[]>;
|
|
22
|
-
private getExternalContextMenuOptions;
|
|
23
|
-
private secureEnvTips;
|
|
24
|
-
private isFocusImageBlock;
|
|
25
|
-
private isFocusImageTypeEmbed;
|
|
26
|
-
}
|
|
@@ -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,17 +0,0 @@
|
|
|
1
|
-
import type { OnesEditor, OnesEditorCustom } from '../../../../@ones-editor/core';
|
|
2
|
-
import './context-menu.scss';
|
|
3
|
-
declare class OnesEditorContextMenu implements OnesEditorCustom {
|
|
4
|
-
private editor;
|
|
5
|
-
private contextMenu;
|
|
6
|
-
private contextMenuCommandItems;
|
|
7
|
-
constructor(editor: OnesEditor);
|
|
8
|
-
destroy: () => void;
|
|
9
|
-
private updateEditorCaret;
|
|
10
|
-
private handleContextMenu;
|
|
11
|
-
private isInMenu;
|
|
12
|
-
private isInEditor;
|
|
13
|
-
private handleContextMenuShown;
|
|
14
|
-
private handleContextMenuClick;
|
|
15
|
-
private handleImageEmbedAction;
|
|
16
|
-
}
|
|
17
|
-
export default OnesEditorContextMenu;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function blob2String(blob: Blob): Promise<string>;
|