@ones-editor/editor 0.0.3-beta.44 → 0.0.3-beta.45
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/find-preview-element.d.ts +1 -1
- package/@ones-editor/code-block/src/code-block/code-caret.d.ts +7 -0
- package/@ones-editor/code-block/src/code-block/code-copy.d.ts +4 -0
- package/@ones-editor/code-block/src/code-block/index.d.ts +3 -1
- package/@ones-editor/comments/src/comments-helper/utils.d.ts +0 -1
- package/@ones-editor/comments/src/comments-list/arrange-items.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/group-list.d.ts +1 -0
- package/@ones-editor/core/src/core/blocks/block-anchor/create-block-anchor.d.ts +1 -0
- package/@ones-editor/core/src/core/blocks/text-blocks/index.d.ts +1 -0
- package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-markdown.d.ts +3 -0
- package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-html.d.ts +3 -0
- package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-text.d.ts +3 -0
- package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +2 -2
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +1 -0
- package/@ones-editor/core/src/core/converter/block-to-html.d.ts +2 -2
- package/@ones-editor/core/src/core/converter/block-to-markdown.d.ts +2 -2
- package/@ones-editor/core/src/core/converter/block-to-text.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/focus-to-end.d.ts +0 -1
- package/@ones-editor/core/src/core/index.d.ts +1 -0
- package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +1 -0
- package/@ones-editor/core/src/core/selection/actions/index.d.ts +2 -2
- package/@ones-editor/core/src/core/selection/actions/select-all.d.ts +3 -1
- package/@ones-editor/core/src/core/types.d.ts +5 -2
- package/@ones-editor/core/src/utils/dom-scroll.d.ts +3 -1
- package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +1 -0
- package/@ones-editor/list-block/src/converter/convert-list-to.d.ts +2 -0
- package/@ones-editor/list-block/src/converter/convert-to-list.d.ts +14 -0
- package/@ones-editor/list-block/src/converter/index.d.ts +2 -14
- package/@ones-editor/list-block/src/level/change-multi-levels.d.ts +2 -0
- package/@ones-editor/list-block/src/level/decrease-level.d.ts +1 -0
- package/@ones-editor/list-block/src/types.d.ts +2 -1
- package/@ones-editor/media-embed/src/core/media-embed.d.ts +3 -1
- package/@ones-editor/mention/src/mention.d.ts +1 -0
- package/@ones-editor/scroll-container/src/dom-utils.d.ts +9 -0
- package/@ones-editor/scroll-container/src/index.d.ts +2 -0
- package/@ones-editor/scroll-container/src/observer/container-resize-observer.d.ts +2 -1
- package/@ones-editor/scroll-container/src/observer/locating-resize-observer.d.ts +2 -1
- package/@ones-editor/scroll-container/src/scroll-listener.d.ts +2 -0
- package/@ones-editor/scroll-container/src/types.d.ts +1 -0
- package/@ones-editor/table-block/src/locale/en-us.d.ts +5 -0
- package/@ones-editor/table-block/src/locale/zh-cn.d.ts +5 -0
- package/@ones-editor/table-block/src/table-block/table-scroll-events.d.ts +1 -0
- package/@ones-editor/table-block/src/types.d.ts +2 -0
- package/@ones-editor/text-commands/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/locale/en-us.d.ts +2 -0
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +2 -0
- package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +1 -0
- package/@ones-editor/ui/src/toolbar/box-only.d.ts +2 -0
- package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +2 -1
- package/@ones-editor/ui-base/src/auto-suggest/index.d.ts +2 -1
- package/@ones-editor/ui-base/src/input/create-input.d.ts +1 -0
- package/@ones-editor/ui-base/src/item-shortcuts/index.d.ts +1 -0
- package/@ones-editor/ui-base/src/list/drop-down-filterable-list.d.ts +2 -2
- package/@ones-editor/ui-base/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/webpage-embed/src/ui/dialog.d.ts +2 -2
- package/@ones-editor/webpage-embed/src/webpage-embed/webpage-items.d.ts +2 -0
- package/dist/index.js +154 -134
- package/package.json +2 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BlockElement, CommandItem, OnesEditor, OnesEditorHoveringBlockFilter } from '../../../../@ones-editor/core';
|
|
2
2
|
import { AbstractCommandBar } from '../../../../@ones-editor/ui-base';
|
|
3
3
|
import { OnesEditorToolbarBase } from './types';
|
|
4
|
+
export type ShowToolbarReason = 'click' | 'selectionChange';
|
|
4
5
|
export default class OnesEditorToolbar implements OnesEditorHoveringBlockFilter, OnesEditorToolbarBase {
|
|
5
6
|
private editor;
|
|
6
7
|
private toolbar;
|
|
@@ -24,7 +25,7 @@ export default class OnesEditorToolbar implements OnesEditorHoveringBlockFilter,
|
|
|
24
25
|
handleDocumentMouseUp: () => void;
|
|
25
26
|
private handleHoveringBlockChildChange;
|
|
26
27
|
handleSelectionChange: import("lodash").DebouncedFunc<(editor: OnesEditor) => void>;
|
|
27
|
-
update(): void;
|
|
28
|
+
update(reason: ShowToolbarReason): void;
|
|
28
29
|
private showTextToolbar;
|
|
29
30
|
private showObjectToolbar;
|
|
30
31
|
static register(editor: OnesEditor): OnesEditorToolbar;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import OnesEditorAutoSuggest from './auto-suggest';
|
|
2
2
|
import type { AutoSuggestAnchor, AutoSuggestOptions } from './auto-suggest';
|
|
3
|
-
|
|
3
|
+
import { shouldFocusToEditor } from './should-focus-to-editor';
|
|
4
|
+
export { OnesEditorAutoSuggest, AutoSuggestAnchor, AutoSuggestOptions, shouldFocusToEditor };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandItem } from '../../../../@ones-editor/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Popup } from '../popup';
|
|
3
3
|
import FilterableList, { FilterableListOptions } from './filterable-list';
|
|
4
4
|
export default class DropdownFilterableList extends FilterableList {
|
|
5
|
-
|
|
5
|
+
popup: Popup;
|
|
6
6
|
onShow: ((list: DropdownFilterableList) => void) | null;
|
|
7
7
|
onHide: ((list: DropdownFilterableList) => void) | null;
|
|
8
8
|
custom: unknown | null;
|
|
@@ -9,8 +9,8 @@ export declare class Dialog extends ManualCloseDialog {
|
|
|
9
9
|
private _options;
|
|
10
10
|
constructor(content: HTMLElement, options: ChildOptions);
|
|
11
11
|
private getReferenceClientRect;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
handleOk: () => Promise<void>;
|
|
13
|
+
handleClose: () => void;
|
|
14
14
|
show(): void;
|
|
15
15
|
destroy(): void;
|
|
16
16
|
}
|
|
@@ -4,6 +4,7 @@ export declare const getCommandItems: () => ({
|
|
|
4
4
|
id: string;
|
|
5
5
|
icon: string;
|
|
6
6
|
group: string;
|
|
7
|
+
subText: string;
|
|
7
8
|
order?: undefined;
|
|
8
9
|
} | {
|
|
9
10
|
id: string;
|
|
@@ -11,5 +12,6 @@ export declare const getCommandItems: () => ({
|
|
|
11
12
|
icon: string;
|
|
12
13
|
group: string;
|
|
13
14
|
order: number;
|
|
15
|
+
subText: string;
|
|
14
16
|
})[];
|
|
15
17
|
export declare function handleInsertEmptyEmbed(editor: OnesEditor, options: InsertEmptyBlockOptions): Promise<import("@ones-editor/core").BlockElement | null>;
|