@ones-editor/editor 0.0.3-beta.129 → 0.0.3-beta.130
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-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/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/file/src/types.d.ts +0 -1
- package/@ones-editor/find-dialog/src/find-dialog.d.ts +1 -4
- package/@ones-editor/find-dialog/src/highlights/highligh-text.d.ts +0 -3
- package/@ones-editor/find-dialog/src/highlights/highlight-dom.d.ts +0 -1
- 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/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +1 -2
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +0 -2
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +0 -2
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +175 -149
- package/package.json +1 -1
- package/@ones-editor/find-dialog/src/doc/doc-handler.d.ts +0 -15
|
@@ -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 {};
|
|
@@ -20,5 +20,4 @@ export interface FileOptions {
|
|
|
20
20
|
onClick?: (editor: OnesEditor, elem: BlockElement | BoxElement, event: MouseEvent) => void;
|
|
21
21
|
onDownloadFile?: (editor: OnesEditor, data: FileData) => void;
|
|
22
22
|
renderFileCardIcon?: (editor: OnesEditor, blockData: FileEmbedData) => Promise<false | HTMLImageElement>;
|
|
23
|
-
onGetFileDownloadUrl?: (editor: OnesEditor, box: FileBoxData) => Promise<string | undefined>;
|
|
24
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
2
|
import { ManualCloseDialog } from '../../../@ones-editor/ui-base';
|
|
3
|
-
import { OnesEditor
|
|
3
|
+
import { OnesEditor } from '../../../@ones-editor/core';
|
|
4
4
|
export default class FindDialog {
|
|
5
5
|
private editor;
|
|
6
6
|
dialog: ManualCloseDialog | null;
|
|
@@ -25,9 +25,6 @@ export default class FindDialog {
|
|
|
25
25
|
constructor(editor: OnesEditor);
|
|
26
26
|
handleFindChanged: () => void;
|
|
27
27
|
handleCompositionEnd: () => void;
|
|
28
|
-
handleDocChanged: (changedBlock: BlockElement) => void;
|
|
29
|
-
handleDocInserted: () => void;
|
|
30
|
-
handleDocDeleted: (deletedBlock: BlockElement) => void;
|
|
31
28
|
handleInput: (event: Event) => void;
|
|
32
29
|
handleFind: () => void;
|
|
33
30
|
findNext(options: {
|
|
@@ -3,9 +3,6 @@ export declare function clearAllReplaceResultHighlight(editor: OnesEditor): void
|
|
|
3
3
|
export declare function clearAllHighlights(editor: OnesEditor, options?: {
|
|
4
4
|
keepReplaceResult?: boolean;
|
|
5
5
|
}): void;
|
|
6
|
-
export declare function clearHighlightsInBlock(editor: OnesEditor, block: BlockElement, options?: {
|
|
7
|
-
keepReplaceResult?: boolean;
|
|
8
|
-
}): void;
|
|
9
6
|
export declare function getCurrentHighlighIndex(editor: OnesEditor): number;
|
|
10
7
|
export declare function gotoFirstHighlight(editor: OnesEditor): number;
|
|
11
8
|
export declare function gotoNextHighlight(editor: OnesEditor): number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
2
|
export declare function isHighlight(elem: HTMLElement): boolean;
|
|
3
3
|
export declare function getAllHighlights(editor: OnesEditor): HTMLElement[];
|
|
4
|
-
export declare function getHighlightsInBlock(editor: OnesEditor, block: BlockElement): HTMLElement[];
|
|
5
4
|
export declare function getAllReplaceResultHighlights(editor: OnesEditor): HTMLElement[];
|
|
6
5
|
export declare function getBlockHighlight(block: BlockElement): HTMLElement[];
|
|
7
6
|
export declare function clearBlockHighlight(block: BlockElement): void;
|
|
@@ -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;
|