@ones-editor/editor 0.0.3-beta.131 → 0.0.3-beta.133
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/block-menu/src/block-menu-button/drag-drop/drag-handler.d.ts +3 -3
- package/@ones-editor/block-menu/src/block-menu-button/drag-preview/index.d.ts +2 -2
- package/@ones-editor/block-resizer/src/index.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -0
- package/@ones-editor/comments/src/locale/ja-jp.d.ts +3 -0
- package/@ones-editor/comments/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +1 -0
- package/@ones-editor/drop-target/src/drop-target.d.ts +1 -0
- package/@ones-editor/file/src/index.d.ts +1 -0
- package/@ones-editor/file/src/locale/en-us.d.ts +6 -0
- package/@ones-editor/file/src/locale/index.d.ts +1 -0
- package/@ones-editor/file/src/locale/ja-jp.d.ts +6 -0
- package/@ones-editor/file/src/locale/zh-cn.d.ts +6 -0
- package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +1 -0
- package/@ones-editor/media-embed/src/core/video-resizer.d.ts +1 -0
- package/@ones-editor/mention/src/index.d.ts +1 -0
- package/@ones-editor/mention/src/locale/en-us.d.ts +6 -0
- package/@ones-editor/mention/src/locale/index.d.ts +1 -0
- package/@ones-editor/mention/src/locale/ja-jp.d.ts +6 -0
- package/@ones-editor/mention/src/locale/zh-cn.d.ts +6 -0
- package/@ones-editor/mention/src/mention.d.ts +1 -0
- package/@ones-editor/text-commands/src/index.d.ts +2 -1
- package/@ones-editor/text-commands/src/shortcut-handler.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +175 -149
- package/package.json +1 -1
|
@@ -12,9 +12,9 @@ export default class BlockMenuButtonDragHandler {
|
|
|
12
12
|
};
|
|
13
13
|
constructor(editor: OnesEditor, button: OnesEditorBlockMenuButton);
|
|
14
14
|
destroy(): void;
|
|
15
|
-
handleDragStart: (event:
|
|
16
|
-
handleDrag: (event:
|
|
17
|
-
handleDragEnd: () => void;
|
|
15
|
+
handleDragStart: (event: MouseEvent) => void;
|
|
16
|
+
handleDrag: (event: MouseEvent) => void;
|
|
17
|
+
handleDragEnd: (event: MouseEvent) => void;
|
|
18
18
|
}
|
|
19
19
|
declare global {
|
|
20
20
|
interface Window {
|
|
@@ -4,7 +4,7 @@ export declare class DragPreviewImage {
|
|
|
4
4
|
private startPosition;
|
|
5
5
|
constructor(editor: OnesEditor);
|
|
6
6
|
private dragContainer;
|
|
7
|
-
handleDragStart: (e:
|
|
8
|
-
handleDrag: (e:
|
|
7
|
+
handleDragStart: (e: MouseEvent, preview: HTMLElement) => Promise<void>;
|
|
8
|
+
handleDrag: (e: MouseEvent) => void;
|
|
9
9
|
handleDragEnd: () => void;
|
|
10
10
|
}
|
|
@@ -19,6 +19,7 @@ export declare class BlockResizer extends TypedEmitter<BlockResizerEvents> {
|
|
|
19
19
|
enableResize(block: BlockElement, resizableElement?: HTMLElement): void;
|
|
20
20
|
disableResize(): void;
|
|
21
21
|
update(block: BlockElement, resizableElement?: HTMLElement): void;
|
|
22
|
+
updateResizer(): void;
|
|
22
23
|
getBlock(): BlockElement | null;
|
|
23
24
|
destroy(): void;
|
|
24
25
|
private getResizableElement;
|
|
@@ -6,6 +6,7 @@ export declare class MiniGroupList extends ListBase<MiniCommentGroup, MiniGroupI
|
|
|
6
6
|
protected editor: OnesEditor;
|
|
7
7
|
protected commentsProvider: OnesEditorCommentsProvider;
|
|
8
8
|
constructor(editor: OnesEditor, commentsProvider: OnesEditorCommentsProvider, parent: HTMLElement);
|
|
9
|
+
private fixListOps;
|
|
9
10
|
protected createItem(data: MiniCommentGroup): MiniGroupItem;
|
|
10
11
|
protected findInsertPos(): number;
|
|
11
12
|
private handleDocChanged;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,6 +7,7 @@ export default class VideoResizer {
|
|
|
7
7
|
destroy(): void;
|
|
8
8
|
private handleHoveringBlockChange;
|
|
9
9
|
private getVideoElement;
|
|
10
|
+
updateResizer(block: BlockElement): void;
|
|
10
11
|
disableBlockResize(block: BlockElement): void;
|
|
11
12
|
enableBlockResize(block: BlockElement, resizableElement: HTMLElement): void;
|
|
12
13
|
private handleResizing;
|
|
@@ -2,5 +2,6 @@ import OnesEditorMention from './mention';
|
|
|
2
2
|
import MentionBox from './mention-box';
|
|
3
3
|
import OnesEditorBlockMention from './block-mention';
|
|
4
4
|
import './mention-style.scss';
|
|
5
|
+
import './locale';
|
|
5
6
|
export { OnesEditorMention, MentionBox, OnesEditorBlockMention };
|
|
6
7
|
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ export default class OnesEditorMention implements OnesEditorCustom {
|
|
|
6
6
|
private options;
|
|
7
7
|
suggest: OnesEditorAutoSuggest;
|
|
8
8
|
constructor(editor: OnesEditor, options: MentionOptions);
|
|
9
|
+
onClose: () => void;
|
|
9
10
|
destroy(): void;
|
|
10
11
|
onShow: (suggest: OnesEditorAutoSuggest, containerId: string, blockIndex: number, offset: number) => boolean;
|
|
11
12
|
onClickItem: (menu: OnesEditorAutoSuggest, item: CommandItem, anchor: AutoSuggestAnchor) => void;
|