@ones-editor/editor 2.8.15-beta.2 → 2.8.16-beta.1
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/editor/actions/break-text-block.d.ts +1 -1
- package/@ones-editor/core/src/core/types.d.ts +1 -0
- package/@ones-editor/list-block/src/index.d.ts +1 -0
- package/@ones-editor/list-block/src/keyboard/enter.d.ts +3 -1
- package/@ones-editor/list-block/src/keyboard/index.d.ts +2 -0
- package/@ones-editor/paste-handler/src/convert-link.d.ts +6 -0
- package/@ones-editor/paste-handler/src/text-data-converter.d.ts +2 -2
- package/@ones-editor/table-block/src/commands/adjust-column-widths-evenly.d.ts +3 -0
- package/@ones-editor/table-block/src/commands/table-block-commands.d.ts +1 -1
- package/@ones-editor/table-block/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/table-block/src/locale/ja-jp.d.ts +1 -0
- package/@ones-editor/table-block/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/toc/src/locale/en-us.d.ts +1 -0
- package/@ones-editor/toc/src/locale/ja-jp.d.ts +1 -0
- package/@ones-editor/toc/src/locale/zh-cn.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/icons/index.d.ts +3 -1
- package/dist/helper/break-text-block.d.ts +2 -0
- package/dist/helper/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +407 -224
- package/package.json +1 -1
|
@@ -4,5 +4,5 @@ export interface BreakTextBlockResult {
|
|
|
4
4
|
block: BlockElement;
|
|
5
5
|
newBlock: BlockElement;
|
|
6
6
|
}
|
|
7
|
-
export declare function copyBlockAttributes(editor: OnesEditor, block: BlockElement): DocBlockAttributes;
|
|
7
|
+
export declare function copyBlockAttributes(editor: OnesEditor, block: BlockElement, options?: BreakTextOptions): DocBlockAttributes;
|
|
8
8
|
export declare function editorBreakTextBlock(editor: OnesEditor, block: BlockElement, offset: number, options?: BreakTextOptions): BreakTextBlockResult;
|
|
@@ -426,6 +426,7 @@ export interface BreakTextOptions {
|
|
|
426
426
|
forceInsertAfter?: boolean;
|
|
427
427
|
newBlockData?: DocBlock;
|
|
428
428
|
copyBlockAttributes?: boolean;
|
|
429
|
+
copyHeading?: boolean;
|
|
429
430
|
}
|
|
430
431
|
export interface OnesEditorEvents {
|
|
431
432
|
'docChanged': (editor: OnesEditor, local: boolean) => void;
|
|
@@ -8,6 +8,7 @@ import './lang';
|
|
|
8
8
|
import './style.scss';
|
|
9
9
|
import { ListPasteHandler } from './local-events/paste-handler';
|
|
10
10
|
import { handleTab, handleShiftTab } from './keyboard/tab';
|
|
11
|
+
export { autoBreakListBlock } from './keyboard/enter';
|
|
11
12
|
export { type ListOptions, type DocListBlock } from './types';
|
|
12
13
|
declare const ListBlock: TextKindBlock;
|
|
13
14
|
export * from './utils';
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
+
export declare function breakListBlock(editor: OnesEditor, block: BlockElement, offset: number, attributesBlock: BlockElement): import("@ones-editor/core").BreakTextBlockResult;
|
|
3
|
+
export declare function autoBreakListBlock(editor: OnesEditor, block: BlockElement, offset: number): import("@ones-editor/core").BreakTextBlockResult;
|
|
2
4
|
export declare function handleEnter(editor: OnesEditor): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnesEditor, OnesEditorInputHandler } from '../../../../@ones-editor/core';
|
|
2
|
+
import { autoBreakListBlock } from './enter';
|
|
2
3
|
export default class ListBlockInputHandler implements OnesEditorInputHandler {
|
|
3
4
|
private editor;
|
|
4
5
|
constructor(editor: OnesEditor);
|
|
@@ -7,3 +8,4 @@ export default class ListBlockInputHandler implements OnesEditorInputHandler {
|
|
|
7
8
|
private handleBackspace;
|
|
8
9
|
private handleTab;
|
|
9
10
|
}
|
|
11
|
+
export { autoBreakListBlock, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocObject, OnesEditor, OnesEditorInputHandler } from '../../../@ones-editor/core';
|
|
2
|
+
export declare class ConvertLinkPasteHandler implements OnesEditorInputHandler {
|
|
3
|
+
order: number;
|
|
4
|
+
constructor();
|
|
5
|
+
handleBeforePasteDoc(editor: OnesEditor, doc: DocObject): Promise<boolean>;
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnesEditor, OnesEditorDataConverter, OnesEditorDocs
|
|
1
|
+
import { OnesEditor, OnesEditorDataConverter, OnesEditorDocs } from '../../../@ones-editor/core';
|
|
2
2
|
export declare class TextDataConverter implements OnesEditorDataConverter {
|
|
3
|
-
fromData(editor: OnesEditor, data: DataTransfer
|
|
3
|
+
fromData(editor: OnesEditor, data: DataTransfer): Promise<OnesEditorDocs | undefined>;
|
|
4
4
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BlockElement, OnesEditor, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
|
+
export declare function adjustColumnWidthsEvenly(editor: OnesEditor, block: BlockElement, range: SelectionRange): boolean;
|
|
3
|
+
export declare function canAdjustColumnWidthsEvenly(editor: OnesEditor, block: BlockElement, range: SelectionRange): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandItem, BlockElement, CommandParams, CommandResult, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
|
-
declare const TableCommands: readonly ["table/merge-cells", "table/split-cell", "table/insert-column", "table/insert-row", "table/delete-rows", "table/delete-columns", "table/delete"];
|
|
2
|
+
declare const TableCommands: readonly ["table/merge-cells", "table/split-cell", "table/insert-column", "table/insert-row", "table/delete-rows", "table/delete-columns", "table/delete", "table/adjust-column-widths-evenly"];
|
|
3
3
|
export type TableCommand = typeof TableCommands[number];
|
|
4
4
|
export default class TableBlockCommandProvider implements OnesEditorCommandProvider {
|
|
5
5
|
id: string;
|