@ones-editor/editor 2.1.1-beta.73 → 2.1.1-beta.75
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/block-attributes.d.ts +2 -0
- package/@ones-editor/core/src/core/containers/root-container.d.ts +0 -3
- package/@ones-editor/core/src/core/editor/index.d.ts +1 -1
- package/@ones-editor/core/src/utils/dom.d.ts +1 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/index.d.ts +1 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +2 -4
- package/@ones-editor/mobile-helper/src/fixed-toolbar/toolbar-handler.d.ts +1 -1
- package/@ones-editor/mobile-helper/src/index.d.ts +2 -1
- package/@ones-editor/table-block/src/index.d.ts +2 -5
- package/@ones-editor/text-commands/src/index.d.ts +0 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/locale/en-us.d.ts +9 -0
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +9 -0
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +9 -0
- package/@ones-editor/ui/src/providers/mobile-link-provider.d.ts +4 -1
- package/@ones-editor/ui/src/providers/selection-provider.d.ts +9 -0
- package/@ones-editor/ui/src/providers/utils/text-styles.d.ts +1 -1
- package/@ones-editor/ui-base/src/color-palette/color-palette.d.ts +1 -1
- package/@ones-editor/ui-base/src/index.d.ts +1 -1
- package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +0 -1
- package/@ones-editor/ui-base/src/mobile-command-bar/scroll-into-view.d.ts +1 -1
- package/dist/index.js +366 -485
- package/package.json +1 -1
- package/@ones-editor/text-commands/src/locale/en-us.d.ts +0 -13
- package/@ones-editor/text-commands/src/locale/index.d.ts +0 -1
- package/@ones-editor/text-commands/src/locale/ja-jp.d.ts +0 -13
- package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +0 -13
- package/@ones-editor/ui/src/providers/utils/text-commands.d.ts +0 -3
- /package/@ones-editor/table-block/src/commands/{table-command-provider.d.ts → mobile-command-provider.d.ts} +0 -0
|
@@ -4,8 +4,10 @@ export default class BlockAttributesHandler implements OnesEditorCustom {
|
|
|
4
4
|
private editor;
|
|
5
5
|
private textBlockAttributes;
|
|
6
6
|
private activeBlockAttributes;
|
|
7
|
+
private lastRange;
|
|
7
8
|
constructor(editor: OnesEditor);
|
|
8
9
|
clear: () => void;
|
|
10
|
+
handleSelectionChanged: () => void;
|
|
9
11
|
destroy(): void;
|
|
10
12
|
getEmptyBlockTextAttributes(blockId: string): DocBlockTextAttributes | undefined;
|
|
11
13
|
setActiveBlockAttributes: (attributes: CommandParams) => void;
|
|
@@ -8,9 +8,6 @@ export declare class RootContainer {
|
|
|
8
8
|
private mouseDownEvent;
|
|
9
9
|
private dbClickRef;
|
|
10
10
|
constructor(editor: OnesEditor, rootContainer: ContainerElement);
|
|
11
|
-
private isMove;
|
|
12
|
-
handleTouchMove: (e: TouchEvent) => void;
|
|
13
|
-
handleTouchEnd: (e: TouchEvent) => void;
|
|
14
11
|
private bindEvents;
|
|
15
12
|
private unbindEvents;
|
|
16
13
|
destroy(): void;
|
|
@@ -40,4 +40,5 @@ export declare function getElementFromPoint(x: number, y: number, options?: {
|
|
|
40
40
|
export declare function createMouseEventFromTouchEvent(event: TouchEvent, type: 'mousedown' | 'mousemove' | 'mouseup' | 'click'): MouseEvent;
|
|
41
41
|
export declare function ensureIsMobileEvent(events: MouseEvent | TouchEvent): events is TouchEvent;
|
|
42
42
|
export declare function bindDbClick(elem: HTMLElement, handler: (event: MouseEvent) => void): () => void;
|
|
43
|
+
export declare const getVisualViewportHeightOffset: () => number;
|
|
43
44
|
export {};
|
|
@@ -10,6 +10,7 @@ export declare class MobileCommandHandler {
|
|
|
10
10
|
private get virtualViewportHeight();
|
|
11
11
|
private get clientHeight();
|
|
12
12
|
private toggleDelay;
|
|
13
|
+
private preHeight;
|
|
13
14
|
layoutBar: import("lodash").DebouncedFunc<() => void>;
|
|
14
15
|
handScroll: import("lodash").DebouncedFunc<() => void>;
|
|
15
16
|
destroy(): void;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { BlockElement, CommandItem, CommandItemWithSource, CommandParams,
|
|
1
|
+
import { BlockElement, CommandItem, CommandItemWithSource, CommandParams, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../../@ones-editor/core';
|
|
2
2
|
import { ProxyProvider } from '../../../../../@ones-editor/ui';
|
|
3
|
-
export default class
|
|
3
|
+
export default class MobileInsertMenuProvider extends ProxyProvider {
|
|
4
4
|
private editor;
|
|
5
5
|
id: string;
|
|
6
6
|
get whiteList(): string[];
|
|
7
7
|
providers: OnesEditorCommandProvider[];
|
|
8
8
|
constructor(editor: OnesEditor);
|
|
9
|
-
getNextBlock(container: ContainerElement, block: BlockElement): number;
|
|
10
9
|
getInsertCommands: () => CommandItem[];
|
|
11
10
|
getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams) => CommandItem[];
|
|
12
11
|
executeInsertCommand: () => boolean;
|
|
13
|
-
getNextBlockIndex: (container: ContainerElement, block: BlockElement) => number;
|
|
14
12
|
executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItemWithSource, params: CommandParams) => boolean;
|
|
15
13
|
}
|
|
@@ -5,7 +5,7 @@ export declare class MobileToolbarHandler {
|
|
|
5
5
|
private fixedProviders;
|
|
6
6
|
bar: HTMLElement;
|
|
7
7
|
constructor(editor: OnesEditor, parent: HTMLElement);
|
|
8
|
-
private
|
|
8
|
+
private handleSubBarShown;
|
|
9
9
|
private handleSelectionChange;
|
|
10
10
|
handleClick: (_: any, item: CommandItem) => void;
|
|
11
11
|
destroy(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
2
|
import { OnesEditor, OnesEditorCustom } from '../../../@ones-editor/core';
|
|
3
3
|
import { MobileCommandHandler } from './fixed-toolbar';
|
|
4
|
-
import './mobile-helper-styles.scss';
|
|
5
4
|
import './locale';
|
|
5
|
+
import './mobile-helper-styles.scss';
|
|
6
6
|
export { MobileCommandHandler };
|
|
7
7
|
export declare class OnesEditorMobileHelper implements OnesEditorCustom {
|
|
8
8
|
private editor;
|
|
@@ -18,5 +18,6 @@ export declare class OnesEditorMobileHelper implements OnesEditorCustom {
|
|
|
18
18
|
handleLongPress: (event: TouchEvent) => boolean;
|
|
19
19
|
handleTouchMove: (event: TouchEvent) => void;
|
|
20
20
|
handleTouchStart: (event: TouchEvent) => void;
|
|
21
|
+
debounceShowCursorToolbar: import("lodash").DebouncedFunc<() => void>;
|
|
21
22
|
handleTouchEnd: (event: TouchEvent) => void;
|
|
22
23
|
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import TableBlock, { includeBigTable } from './table-block';
|
|
2
|
-
import { TableBlockCommandProvider
|
|
2
|
+
import { TableBlockCommandProvider } from './commands';
|
|
3
3
|
import './locale';
|
|
4
4
|
import './table-style.scss';
|
|
5
5
|
import TableShortcuts from './table-block/table-shortcuts';
|
|
6
|
-
import
|
|
7
|
-
import MobileTableCommandProvider from './commands/table-command-provider';
|
|
6
|
+
import MobileTableCommandProvider from './commands/mobile-command-provider';
|
|
8
7
|
export * from './types';
|
|
9
8
|
export { MobileTableCommandProvider, TableBlock, TableBlockCommandProvider, TableShortcuts, includeBigTable };
|
|
10
|
-
export { deleteColumns, deleteRows, setStripeStyle, setColTitle, setRowTitle, insertColumn, insertRow, };
|
|
11
|
-
export { createEntireRowAndColumnRange, getAbstractTableSelectionRange };
|
|
12
9
|
export type { CreateTableData } from './table-block/table-creator';
|