@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.
@@ -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, PasteOptions } from '../../../@ones-editor/core';
1
+ import { OnesEditor, OnesEditorDataConverter, OnesEditorDocs } from '../../../@ones-editor/core';
2
2
  export declare class TextDataConverter implements OnesEditorDataConverter {
3
- fromData(editor: OnesEditor, data: DataTransfer, options?: PasteOptions): Promise<OnesEditorDocs | undefined>;
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;
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  splitCell: string;
8
8
  tableConfigKey: string;
9
9
  deleteTable: string;
10
+ adjustColumnWidthsEvenly: string;
10
11
  insertCol: string;
11
12
  insertRow: string;
12
13
  deleteCol: string;
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  splitCell: string;
8
8
  tableConfigKey: string;
9
9
  deleteTable: string;
10
+ adjustColumnWidthsEvenly: string;
10
11
  insertCol: string;
11
12
  insertRow: string;
12
13
  deleteCol: string;
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  splitCell: string;
8
8
  tableConfigKey: string;
9
9
  deleteTable: string;
10
+ adjustColumnWidthsEvenly: string;
10
11
  insertCol: string;
11
12
  insertRow: string;
12
13
  deleteCol: string;
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  toc: {
3
+ name: string;
3
4
  empty: string;
4
5
  };
5
6
  };
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  toc: {
3
+ name: string;
3
4
  empty: string;
4
5
  };
5
6
  };
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  toc: {
3
+ name: string;
3
4
  empty: string;
4
5
  };
5
6
  };