@ones-editor/editor 2.1.1-beta.50 → 2.1.1-beta.51
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/core/src/core/command-providers/commands/merge-commands.d.ts +1 -0
- package/@ones-editor/core/src/core/command-providers/editor-command-providers.d.ts +2 -1
- package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/ja-jp.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
- package/@ones-editor/list-block/src/index.d.ts +2 -1
- package/@ones-editor/mention/src/locale/en-us.d.ts +2 -0
- package/@ones-editor/mention/src/locale/ja-jp.d.ts +2 -0
- package/@ones-editor/mention/src/locale/zh-cn.d.ts +2 -0
- package/@ones-editor/mention/src/mention.d.ts +1 -0
- package/@ones-editor/mobile-helper/src/cursor-toolbar.d.ts +14 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +1 -1
- package/@ones-editor/{ui/src → mobile-helper/src/fixed-toolbar}/providers/tab-provider.d.ts +1 -1
- package/@ones-editor/mobile-helper/src/index.d.ts +3 -0
- package/@ones-editor/mobile-helper/src/locale/en-us.d.ts +6 -0
- package/@ones-editor/mobile-helper/src/locale/index.d.ts +1 -0
- package/@ones-editor/mobile-helper/src/locale/ja-jp.d.ts +6 -0
- package/@ones-editor/mobile-helper/src/locale/zh-cn.d.ts +6 -0
- package/@ones-editor/table-block/src/locale/en-us.d.ts +5 -0
- package/@ones-editor/table-block/src/locale/ja-jp.d.ts +5 -0
- package/@ones-editor/table-block/src/locale/zh-cn.d.ts +5 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/box-helper/standard-box-commands.d.ts +10 -0
- package/@ones-editor/ui/src/box-helper/standard-box-provider.d.ts +9 -0
- package/@ones-editor/ui/src/index.d.ts +4 -2
- package/@ones-editor/ui/src/locale/en-us.d.ts +4 -0
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +4 -0
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +4 -0
- package/@ones-editor/ui/src/providers/clipboard-provider.d.ts +11 -2
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +1 -1
- package/@ones-editor/ui-base/src/command-bar/init-toolbar-item.d.ts +1 -0
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -0
- package/@ones-editor/ui-base/src/icons/index.d.ts +5 -1
- package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +3 -2
- package/dist/index.js +2688 -2216
- package/package.json +1 -1
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/table-provider.d.ts +0 -9
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { CommandItem } from '../../types';
|
|
2
2
|
export declare function mergeCommands(blockCommands: CommandItem[]): CommandItem[];
|
|
3
3
|
export declare const flatCommands: (allCommands: Map<number, CommandItem[]>, sort?: boolean) => CommandItem[];
|
|
4
|
+
export declare const groupEachCommand: (allCommands: CommandItem[]) => CommandItem[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { OnesEditorCommandProviders } from '../types';
|
|
1
|
+
import { CommandItemWithSource, OnesEditorCommandProviders, SelectionRange } from '../types';
|
|
2
2
|
import { AbstractProvider } from './abstract-providers';
|
|
3
3
|
export default class EditorCommandProviders extends AbstractProvider implements OnesEditorCommandProviders {
|
|
4
4
|
id: string;
|
|
5
|
+
getCommands(range: SelectionRange): CommandItemWithSource[];
|
|
5
6
|
}
|
|
@@ -7,8 +7,9 @@ import { resetListStart } from './start/reset-list-start';
|
|
|
7
7
|
import './lang';
|
|
8
8
|
import './style.scss';
|
|
9
9
|
import { ListPasteHandler } from './local-events/paste-handler';
|
|
10
|
+
import { handleTab, handleShiftTab } from './keyboard/tab';
|
|
10
11
|
export { type ListOptions, type DocListBlock } from './types';
|
|
11
12
|
declare const ListBlock: TextKindBlock;
|
|
12
13
|
export * from './utils';
|
|
13
14
|
export * from './keyboard/to-text-block';
|
|
14
|
-
export { ListBlock, OnesEditorListMindmap, Mindmap, resetListStart, toMindmap, isMindmapRootBlock, ListBlockShortcuts, isViewingAsMindmap, getLastMindmapNode, ListPasteHandler, };
|
|
15
|
+
export { ListBlock, OnesEditorListMindmap, Mindmap, resetListStart, toMindmap, isMindmapRootBlock, ListBlockShortcuts, isViewingAsMindmap, getLastMindmapNode, ListPasteHandler, handleTab, handleShiftTab, };
|
|
@@ -9,6 +9,7 @@ export default class OnesEditorMention implements OnesEditorCustom {
|
|
|
9
9
|
private mobileWrap;
|
|
10
10
|
private items;
|
|
11
11
|
constructor(editor: OnesEditor, options: MentionOptions);
|
|
12
|
+
createMobileHeader: () => HTMLDivElement | undefined;
|
|
12
13
|
onClose: () => void;
|
|
13
14
|
destroy(): void;
|
|
14
15
|
onShow: (suggest: OnesEditorAutoSuggest, containerId: string, blockIndex: number, offset: number) => boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CommandItem, type OnesEditor } from '../../../@ones-editor/core';
|
|
2
|
+
export declare class CursorToolbarHandler {
|
|
3
|
+
private editor;
|
|
4
|
+
private toolbar;
|
|
5
|
+
constructor(editor: OnesEditor);
|
|
6
|
+
handleButtonClick: (toolbar: any, item: CommandItem) => void;
|
|
7
|
+
private handleSelectionChange;
|
|
8
|
+
getCommands: () => CommandItem[];
|
|
9
|
+
showToolbar: () => void;
|
|
10
|
+
close: () => void;
|
|
11
|
+
destroy(): void;
|
|
12
|
+
}
|
|
13
|
+
export declare const createCursorToolbar: (editor: OnesEditor) => CursorToolbarHandler;
|
|
14
|
+
export declare const hideCursorToolbar: (editor: OnesEditor) => void;
|
|
@@ -3,7 +3,7 @@ import { ProxyProvider } from '../../../../../@ones-editor/ui';
|
|
|
3
3
|
export default class InsertMenuProvider extends ProxyProvider {
|
|
4
4
|
private editor;
|
|
5
5
|
id: string;
|
|
6
|
-
whiteList: string[];
|
|
6
|
+
get whiteList(): string[];
|
|
7
7
|
providers: OnesEditorCommandProvider[];
|
|
8
8
|
constructor(editor: OnesEditor);
|
|
9
9
|
getNextBlock(container: ContainerElement, block: BlockElement): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '
|
|
1
|
+
import { BlockElement, CommandItem, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../../@ones-editor/core';
|
|
2
2
|
export default class TabProvider implements OnesEditorCommandProvider {
|
|
3
3
|
private editor;
|
|
4
4
|
id: string;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { OnesEditor, OnesEditorCustom } from '../../../@ones-editor/core';
|
|
2
2
|
import { MobileCommandHandler } from './fixed-toolbar';
|
|
3
3
|
import './mobile-helper-styles.scss';
|
|
4
|
+
import './locale';
|
|
4
5
|
export { MobileCommandHandler };
|
|
5
6
|
export declare class OnesEditorMobileHelper implements OnesEditorCustom {
|
|
6
7
|
private editor;
|
|
7
8
|
private longPressTimeout;
|
|
9
|
+
private longPressTriggered;
|
|
8
10
|
private gripper;
|
|
11
|
+
private cursorToolbar;
|
|
9
12
|
constructor(editor: OnesEditor);
|
|
10
13
|
destroy(): void;
|
|
11
14
|
handleSelectionChange: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|