@ones-editor/editor 2.1.1-beta.11 → 2.1.1-beta.14
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/{ui → block-menu}/src/block-menu/index.d.ts +1 -3
- package/@ones-editor/block-menu/src/block-menu/items/block-command-items.d.ts +3 -0
- package/@ones-editor/block-menu/src/block-menu/items/index.d.ts +5 -0
- package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +5 -0
- package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +30 -0
- package/@ones-editor/block-menu/src/block-menu/items/types.d.ts +5 -0
- package/@ones-editor/block-menu/src/block-menu-button/menu-button/index.d.ts +1 -1
- package/@ones-editor/block-padding/src/index.d.ts +1 -1
- package/@ones-editor/callout-block/src/callout-block/callout-quick-menu-item-filter.d.ts +4 -3
- package/@ones-editor/comments/src/index.d.ts +0 -3
- package/@ones-editor/comments/src/text-comments/comments-command-provider.d.ts +3 -4
- package/@ones-editor/core/src/core/blocks/common/block-properties.d.ts +9 -9
- package/@ones-editor/core/src/core/blocks/common/execute-block-command.d.ts +2 -2
- package/@ones-editor/core/src/core/blocks/complex-blocks/child-blocks.d.ts +1 -2
- package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +1 -2
- package/@ones-editor/core/src/core/blocks/text-blocks/base/child.d.ts +7 -2
- package/@ones-editor/core/src/core/command-providers/commands/index.d.ts +0 -2
- package/@ones-editor/core/src/core/command-providers/commands/range-commands.d.ts +5 -2
- package/@ones-editor/core/src/core/command-providers/editor-command-providers.d.ts +14 -4
- package/@ones-editor/core/src/core/command-providers/index.d.ts +1 -3
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +1 -1
- package/@ones-editor/core/src/core/containers/root-container.d.ts +4 -4
- package/@ones-editor/core/src/core/doc/doc.d.ts +0 -3
- package/@ones-editor/core/src/core/doc/rich-text/text-style.d.ts +0 -2
- package/@ones-editor/core/src/core/editor/actions/clear-selected-contents.d.ts +2 -2
- package/@ones-editor/core/src/core/selection/actions/index.d.ts +1 -2
- package/@ones-editor/core/src/core/selection/index.d.ts +0 -1
- package/@ones-editor/core/src/core/selection/select-handler.d.ts +3 -3
- package/@ones-editor/core/src/core/types.d.ts +28 -36
- package/@ones-editor/core/src/utils/dom.d.ts +0 -3
- package/@ones-editor/core/src/utils/drag-drop.d.ts +3 -8
- package/@ones-editor/image-embed/src/splitter-resizer/index.d.ts +3 -3
- package/@ones-editor/mention/src/locale/en-us.d.ts +0 -1
- package/@ones-editor/mention/src/locale/ja-jp.d.ts +0 -1
- package/@ones-editor/mention/src/locale/zh-cn.d.ts +0 -1
- package/@ones-editor/mention/src/mention.d.ts +0 -14
- package/@ones-editor/mobile-helper/src/index.d.ts +0 -6
- package/@ones-editor/sharedb-doc/src/index.d.ts +0 -3
- package/@ones-editor/table-block/src/commands/index.d.ts +0 -2
- package/@ones-editor/table-block/src/commands/table-block-commands.d.ts +3 -4
- package/@ones-editor/table-block/src/index.d.ts +1 -4
- package/@ones-editor/table-block/src/table-block/cell-menu/table-cell-dom.d.ts +0 -6
- package/@ones-editor/table-block/src/table-block/table-resize/resize-drag-drop.d.ts +4 -4
- package/@ones-editor/text-commands/src/index.d.ts +2 -1
- package/@ones-editor/text-commands/src/text-command-provider.d.ts +24 -0
- package/@ones-editor/text-commands/src/text-commands.d.ts +4 -0
- package/@ones-editor/{ui/src/providers/utils → text-commands/src}/text-styles.d.ts +1 -3
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +8 -29
- package/@ones-editor/ui/src/locale/en-us.d.ts +0 -1
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +0 -1
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +0 -1
- package/@ones-editor/ui/src/{providers/utils → quick-menu}/basic-commands.d.ts +2 -1
- package/@ones-editor/ui/src/quick-menu/basic-menu-items.d.ts +16 -0
- package/@ones-editor/ui/src/quick-menu/index.d.ts +19 -7
- package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +8 -0
- package/@ones-editor/ui/src/quick-menu/insert-empty-block.d.ts +4 -0
- package/@ones-editor/ui/src/quick-menu/order.d.ts +1 -0
- package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +9 -0
- package/@ones-editor/ui/src/quick-menu/types.d.ts +4 -0
- package/@ones-editor/{ui-base → ui}/src/text-button/index.d.ts +1 -1
- package/@ones-editor/ui/src/{providers → toolbar/commands}/align.d.ts +4 -4
- package/@ones-editor/ui/src/toolbar/commands/paragraph.d.ts +11 -0
- package/@ones-editor/ui/src/toolbar/commands/turn-into.d.ts +10 -0
- package/@ones-editor/ui/src/toolbar/merge-commands.d.ts +2 -0
- package/@ones-editor/ui/src/toolbar/text-commands.d.ts +2 -2
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +1 -2
- package/@ones-editor/ui-base/src/color-button/text-color-item.d.ts +0 -1
- package/@ones-editor/ui-base/src/color-palette/color-palette.d.ts +1 -1
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +1 -1
- package/@ones-editor/ui-base/src/command-bar/fixed-toolbar.d.ts +1 -3
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -3
- package/@ones-editor/ui-base/src/index.d.ts +0 -2
- package/@ones-editor/ui-base/src/input/create-input.d.ts +3 -23
- package/@ones-editor/ui-base/src/popup/popup.d.ts +1 -1
- package/dist/comments/local-doc-comments-provider.d.ts +1 -2
- package/dist/index.js +20534 -23155
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +0 -16
- package/@ones-editor/core/src/core/command-providers/abstract-providers.d.ts +0 -25
- package/@ones-editor/core/src/core/command-providers/block-attributes.d.ts +0 -14
- package/@ones-editor/core/src/core/command-providers/commands/inject-source.d.ts +0 -3
- package/@ones-editor/core/src/core/command-providers/commands/merge-commands.d.ts +0 -3
- package/@ones-editor/layout-block/src/command-filter.d.ts +0 -7
- package/@ones-editor/mobile-helper/src/fixed-toolbar/fixed-providers.d.ts +0 -6
- package/@ones-editor/mobile-helper/src/fixed-toolbar/index.d.ts +0 -18
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/align-dropdown.d.ts +0 -9
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/group.d.ts +0 -7
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +0 -15
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert.d.ts +0 -8
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/paragraph.d.ts +0 -9
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/text-dropdown.d.ts +0 -9
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/turn-into.d.ts +0 -8
- package/@ones-editor/mobile-helper/src/fixed-toolbar/toolbar-handler.d.ts +0 -11
- package/@ones-editor/mobile-helper/src/selection-gripper/index.d.ts +0 -19
- package/@ones-editor/mobile-helper/src/selection-gripper/select-handle.d.ts +0 -3
- package/@ones-editor/ui/src/block-menu/block-command-providers.d.ts +0 -8
- package/@ones-editor/ui/src/providers/align-dropdown.d.ts +0 -10
- package/@ones-editor/ui/src/providers/block-hook-provider.d.ts +0 -16
- package/@ones-editor/ui/src/providers/clipboard-provider.d.ts +0 -10
- package/@ones-editor/ui/src/providers/color-provider.d.ts +0 -18
- package/@ones-editor/ui/src/providers/edit-link-provider.d.ts +0 -6
- package/@ones-editor/ui/src/providers/heading.d.ts +0 -13
- package/@ones-editor/ui/src/providers/inline-code-provider.d.ts +0 -10
- package/@ones-editor/ui/src/providers/inline-style-provider.d.ts +0 -10
- package/@ones-editor/ui/src/providers/insert-above.d.ts +0 -9
- package/@ones-editor/ui/src/providers/insert-after.d.ts +0 -9
- package/@ones-editor/ui/src/providers/insert-box-provider.d.ts +0 -12
- package/@ones-editor/ui/src/providers/insert-group.d.ts +0 -7
- package/@ones-editor/ui/src/providers/insert-menu.d.ts +0 -16
- package/@ones-editor/ui/src/providers/link.d.ts +0 -12
- package/@ones-editor/ui/src/providers/list.d.ts +0 -13
- package/@ones-editor/ui/src/providers/mobile-link-provider.d.ts +0 -10
- package/@ones-editor/ui/src/providers/paragraph.d.ts +0 -9
- package/@ones-editor/ui/src/providers/proxy-provider.d.ts +0 -9
- package/@ones-editor/ui/src/providers/quoted.d.ts +0 -10
- package/@ones-editor/ui/src/providers/script-with-dropdown.d.ts +0 -9
- package/@ones-editor/ui/src/providers/tab-provider.d.ts +0 -10
- package/@ones-editor/ui/src/providers/text-command-provider.d.ts +0 -15
- package/@ones-editor/ui/src/providers/text-fixed-provider.d.ts +0 -16
- package/@ones-editor/ui/src/providers/text-script-provider.d.ts +0 -10
- package/@ones-editor/ui/src/providers/text-styles.d.ts +0 -9
- package/@ones-editor/ui/src/providers/turn-into.d.ts +0 -9
- package/@ones-editor/ui/src/providers/utils/add-section.d.ts +0 -2
- package/@ones-editor/ui/src/providers/utils/clipboard.d.ts +0 -6
- package/@ones-editor/ui/src/providers/utils/inject-block-options.d.ts +0 -5
- package/@ones-editor/ui/src/providers/utils/text-commands.d.ts +0 -3
- package/@ones-editor/ui/src/quick-menu/quick-command-providers.d.ts +0 -8
- package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +0 -22
- package/@ones-editor/ui/src/readonly-toolbar/index.d.ts +0 -30
- package/@ones-editor/ui/src/readonly-toolbar/types.d.ts +0 -12
- package/@ones-editor/ui/src/toolbar/link-commands.d.ts +0 -11
- package/@ones-editor/ui/src/utils/hide-toolbar.d.ts +0 -2
- package/@ones-editor/ui-base/src/mobile-command-bar/init-menu-item.d.ts +0 -3
- package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +0 -22
- /package/@ones-editor/{ui → block-menu}/src/block-menu/standard-block-actions/hook.d.ts +0 -0
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AbstractProvider, CommandItemWithSource, OnesEditor, OnesEditorCommandProviders, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
|
-
export declare class QuickCommandProviders extends AbstractProvider implements OnesEditorCommandProviders {
|
|
3
|
-
protected editor: OnesEditor;
|
|
4
|
-
id: string;
|
|
5
|
-
constructor(editor: OnesEditor);
|
|
6
|
-
getCommands(range: SelectionRange): CommandItemWithSource[];
|
|
7
|
-
executeCommand: (range: SelectionRange, item: CommandItemWithSource) => {};
|
|
8
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, OnesEditor, OnesEditorBlockHook, SelectionRange, TextBlockContentChild } from '../../../../@ones-editor/core';
|
|
2
|
-
import { ReadonlyCommandOptions, ReadonlyToolbarCommandProvider } from './types';
|
|
3
|
-
export declare class AddCommentToOldDocCommandProvider implements ReadonlyToolbarCommandProvider, OnesEditorBlockHook {
|
|
4
|
-
private editor;
|
|
5
|
-
private version;
|
|
6
|
-
private localCreatedComments;
|
|
7
|
-
constructor(editor: OnesEditor, version: number);
|
|
8
|
-
onCreateComment(commentId: string, local: boolean): Promise<void>;
|
|
9
|
-
onDeleteComment(commentId: string, local: boolean): Promise<void>;
|
|
10
|
-
onUpdateComment(commentId: string, local: boolean): Promise<void>;
|
|
11
|
-
hideToolbar(editor: OnesEditor): void;
|
|
12
|
-
commands(editor: OnesEditor, blockElement: BlockElement, child: TextBlockContentChild | null): {
|
|
13
|
-
group: string;
|
|
14
|
-
commands: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
}[];
|
|
18
|
-
executeCommand: (editor: OnesEditor, block: BlockElement, item: CommandItem, child: TextBlockContentChild | null) => void;
|
|
19
|
-
} | undefined;
|
|
20
|
-
getTextCommands(editor: OnesEditor, range: SelectionRange): CommandItem[];
|
|
21
|
-
executeCommand(editor: OnesEditor, command: CommandItem, options: ReadonlyCommandOptions): void;
|
|
22
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
|
-
import { BlockElement, CommandItem, OnesEditor, OnesEditorCustom, SelectionRange, TextBlockContentChild } from '../../../../@ones-editor/core';
|
|
3
|
-
import { AbstractCommandBar, ManualToolbar } from '../../../../@ones-editor/ui-base';
|
|
4
|
-
import type { ReadonlyToolbarCommandProvider } from './types';
|
|
5
|
-
export declare class ReadonlyToolbar implements OnesEditorCustom {
|
|
6
|
-
private editor;
|
|
7
|
-
toolbar: ManualToolbar;
|
|
8
|
-
toolbarType: 'text' | 'object';
|
|
9
|
-
mouseDown: boolean;
|
|
10
|
-
hoveringBlock: BlockElement | null;
|
|
11
|
-
hoveringTextChild: TextBlockContentChild | null;
|
|
12
|
-
oldRange: SelectionRange | null;
|
|
13
|
-
providers: ReadonlyToolbarCommandProvider[];
|
|
14
|
-
constructor(editor: OnesEditor);
|
|
15
|
-
destroy(): void;
|
|
16
|
-
addProvider(provider: ReadonlyToolbarCommandProvider): void;
|
|
17
|
-
isInBlock(block: BlockElement, event: MouseEvent): boolean;
|
|
18
|
-
handleButtonClick: (toolbar: AbstractCommandBar, item: CommandItem) => void;
|
|
19
|
-
handleClose: () => void;
|
|
20
|
-
handleClosing: (bar: unknown, event: MouseEvent) => boolean;
|
|
21
|
-
bindEvents(): void;
|
|
22
|
-
unbindEvents(): void;
|
|
23
|
-
handleDocumentMouseDown: (event: MouseEvent) => void;
|
|
24
|
-
handleDocumentMouseUp: () => void;
|
|
25
|
-
handleSelectionChange: import("lodash").DebouncedFunc<(editor: OnesEditor) => void>;
|
|
26
|
-
private handleHoveringBlockChildChange;
|
|
27
|
-
groupCommands: (allCommands: CommandItem[]) => CommandItem[];
|
|
28
|
-
showTextToolbar(reason: string): void;
|
|
29
|
-
showObjectToolbar(event: MouseEvent | null): void;
|
|
30
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, OnesEditor, SelectionRange, TextBlockContentChild } from '../../../../@ones-editor/core';
|
|
2
|
-
import { CommandBar } from '../../../../@ones-editor/ui-base';
|
|
3
|
-
export interface ReadonlyCommandOptions {
|
|
4
|
-
hoveringBlock: BlockElement | null;
|
|
5
|
-
hoveringTextChild: TextBlockContentChild | null;
|
|
6
|
-
bar: CommandBar;
|
|
7
|
-
}
|
|
8
|
-
export interface ReadonlyToolbarCommandProvider {
|
|
9
|
-
getTextCommands?: (editor: OnesEditor, range: SelectionRange) => CommandItem[];
|
|
10
|
-
destroy?: () => void;
|
|
11
|
-
executeCommand: (editor: OnesEditor, command: CommandItem, options: ReadonlyCommandOptions) => void;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BlockCommands, BlockElement, CommandItem, OnesEditor, OnesEditorBlockHook, TextBlockContentChild } from '../../../../@ones-editor/core';
|
|
2
|
-
import { EditLinkProvider } from '../providers/edit-link-provider';
|
|
3
|
-
import ClipboardProvider from '../providers/clipboard-provider';
|
|
4
|
-
export declare class LinkCommands implements OnesEditorBlockHook {
|
|
5
|
-
private editor;
|
|
6
|
-
provider: EditLinkProvider;
|
|
7
|
-
clipboardProvider: ClipboardProvider;
|
|
8
|
-
constructor(editor: OnesEditor);
|
|
9
|
-
commands(editor: OnesEditor, block: BlockElement, child: TextBlockContentChild | null): BlockCommands | undefined;
|
|
10
|
-
executeCommand: (editor: OnesEditor, block: BlockElement, item: CommandItem, child: TextBlockContentChild | null) => void;
|
|
11
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CloseReason, CommandItem } from '../../../../@ones-editor/core';
|
|
2
|
-
import { Instance } from 'tippy.js';
|
|
3
|
-
import './mobile-bottom-menu.scss';
|
|
4
|
-
import { AbstractManualCommandBar, CommandBar, CommandBarContentElement, CommandItemElement, ManualShowCommandBarOptions } from '../command-bar';
|
|
5
|
-
declare class MobileBottomMenu extends CommandBar implements AbstractManualCommandBar {
|
|
6
|
-
tippyInstance: Instance | null;
|
|
7
|
-
createContentWithHeader: () => HTMLDivElement;
|
|
8
|
-
handleClose: () => void;
|
|
9
|
-
oldActiveElement: HTMLElement | null;
|
|
10
|
-
handleShown: () => void;
|
|
11
|
-
manualShow: (target: HTMLElement, options?: ManualShowCommandBarOptions) => void;
|
|
12
|
-
close(reason: CloseReason): void;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
get isVisible(): boolean;
|
|
15
|
-
get popper(): Element | null;
|
|
16
|
-
getSubBarOptions: (item: CommandItem) => ManualShowCommandBarOptions;
|
|
17
|
-
protected initCommandBarElement(elem: CommandBarContentElement): void;
|
|
18
|
-
protected getCommandBarRoot(): HTMLElement | null;
|
|
19
|
-
protected initItemElement(item: CommandItem, elem: CommandItemElement): void;
|
|
20
|
-
}
|
|
21
|
-
declare function createMobileBottomMenu(): void;
|
|
22
|
-
export { createMobileBottomMenu, MobileBottomMenu, };
|
|
File without changes
|