@ones-editor/editor 0.0.3-beta.57 → 0.0.3-beta.59
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/auto-link/package.json +8 -0
- package/@ones-editor/auto-link/src/index.d.ts +3 -0
- package/@ones-editor/block-menu/src/block-menu-button/drag-preview/index.d.ts +1 -1
- package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +1 -0
- package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
- package/@ones-editor/core/src/core/doc/to-plain-text.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +1 -0
- package/@ones-editor/list-block/src/mindmap/index.d.ts +1 -1
- package/@ones-editor/list-block/src/mindmap/to-mindmap/index.d.ts +1 -1
- package/@ones-editor/markdown-to-doc/src/tokens/block-tokens/paragraph.d.ts +1 -0
- package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +1 -1
- package/@ones-editor/mention/src/block-mention.d.ts +1 -1
- package/@ones-editor/mention/src/dom/mention-button.d.ts +1 -1
- package/@ones-editor/table-block/src/constant/index.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +2 -3
- package/@ones-editor/ui/src/quick-menu/basic-commands.d.ts +5 -0
- package/@ones-editor/ui/src/quick-menu/index.d.ts +3 -0
- package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +8 -15
- package/dist/index.js +147 -145
- package/package.json +1 -1
- /package/@ones-editor/block-menu/src/block-menu-button/{drag-drop → drag-preview}/element-to-data-url.d.ts +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import './style.scss';
|
|
2
2
|
import OnesEditorToolbar from './toolbar/toolbar-handler';
|
|
3
|
-
import OnesEditorQuickMenu, { getAllQuickMenuItems, QuickMenuCommandBetween, QuickMenuCommandInline, QuickMenuCommandProvider } from './quick-menu';
|
|
4
|
-
import { getHeadingMenuOptions } from './quick-menu/basic-menu-items';
|
|
3
|
+
import OnesEditorQuickMenu, { getAllQuickMenuItems, getHeadingMenuOptions, QuickMenuCommandBetween, QuickMenuCommandInline, QuickMenuCommandProvider, BasicCommands } from './quick-menu';
|
|
5
4
|
import OnesEditorTooltip from './tooltips';
|
|
6
5
|
import TextStyleShortcuts from './shortcuts';
|
|
7
6
|
import { editLink } from './link-popup';
|
|
@@ -9,6 +8,6 @@ import { getToolbar } from './toolbar/helper';
|
|
|
9
8
|
import './locale';
|
|
10
9
|
import type { QuickMenuItem } from './quick-menu';
|
|
11
10
|
export type { QuickMenuCommandProvider, QuickMenuCommandBetween, QuickMenuCommandInline };
|
|
12
|
-
export { OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, getAllQuickMenuItems, QuickMenuItem, editLink, TextStyleShortcuts, getToolbar, getHeadingMenuOptions };
|
|
11
|
+
export { OnesEditorToolbar, OnesEditorQuickMenu, OnesEditorTooltip, getAllQuickMenuItems, QuickMenuItem, editLink, TextStyleShortcuts, getToolbar, getHeadingMenuOptions, BasicCommands, };
|
|
13
12
|
export { createTextButton } from './text-button';
|
|
14
13
|
export { mergeCommands } from './toolbar/merge-commands';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
+
export declare function applyHeadingStyle(editor: OnesEditor, block: BlockElement, heading: number | null): void;
|
|
3
|
+
export declare function applyAlignStyle(editor: OnesEditor, block: BlockElement, align: string): void;
|
|
4
|
+
export declare function applyQuoteStyle(editor: OnesEditor, block: BlockElement): void;
|
|
5
|
+
export declare function applyList(editor: OnesEditor, block: BlockElement, id: 'unordered-list' | 'ordered-list' | 'check-list'): void;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { OnesEditor, CommandItem } from '../../../../@ones-editor/core';
|
|
2
2
|
import { OnesEditorAutoSuggest } from '../../../../@ones-editor/ui-base';
|
|
3
3
|
import { QuickMenuItem, QuickMenuOptions } from './types';
|
|
4
|
+
import { getHeadingMenuOptions } from './basic-menu-items';
|
|
5
|
+
import * as BasicCommands from './basic-commands';
|
|
4
6
|
export * from './types';
|
|
5
7
|
export * from './quick-menu-items';
|
|
8
|
+
export { getHeadingMenuOptions, BasicCommands };
|
|
6
9
|
export default class OnesEditorQuickMenu {
|
|
7
10
|
protected editor: OnesEditor;
|
|
8
11
|
private options;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import { InsertEmptyBlockOptions, OnesEditor, BlockElement } from '../../../../@ones-editor/core';
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
order: number;
|
|
10
|
-
group: string;
|
|
11
|
-
subText: string;
|
|
12
|
-
}[];
|
|
13
|
-
handleInsertEmptyBlock: typeof handleInsertEmptyBlock;
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
1
|
+
import { InsertEmptyBlockOptions, OnesEditor, BlockElement, CommandItem } from '../../../../@ones-editor/core';
|
|
2
|
+
import { QuickMenuCommandBetween, QuickMenuCommandInline, QuickMenuCommandProvider } from './types';
|
|
3
|
+
export declare class InlineBoxCommandProvider implements QuickMenuCommandProvider {
|
|
4
|
+
getCommands(): CommandItem[];
|
|
5
|
+
handleUpdateBlockCore(editor: OnesEditor, options: InsertEmptyBlockOptions): Promise<void | BlockElement | null>;
|
|
6
|
+
handleInsertEmptyBlockCore(editor: OnesEditor, options: InsertEmptyBlockOptions): Promise<BlockElement | null>;
|
|
7
|
+
executeCommand(editor: OnesEditor, item: CommandItem, params: QuickMenuCommandInline | QuickMenuCommandBetween): Promise<BlockElement | null>;
|
|
8
|
+
}
|