@ones-editor/editor 1.1.8-beta.3 → 1.1.8-beta.6

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.
@@ -1,5 +1,7 @@
1
1
  import { BlockCommands, BlockElement, CommandItem, OnesEditor, OnesEditorBlockHook } from '../../../../../@ones-editor/core';
2
2
  export default class StandardBlockActionHook implements OnesEditorBlockHook {
3
3
  commands(editor: OnesEditor, blockElement: BlockElement): BlockCommands;
4
+ deleteBlock(editor: OnesEditor, block: BlockElement): void;
5
+ copyBlock(editor: OnesEditor, block: BlockElement): void;
4
6
  executeCommand: (editor: OnesEditor, bloockElement: BlockElement, item: CommandItem) => void;
5
7
  }
@@ -4,5 +4,6 @@ export declare function injectDocToHtmlFragment(htmlFragment: string, doc: DocOb
4
4
  export declare function addMetaToDoc(editor: OnesEditor, doc: DocObject): void;
5
5
  export type BeforeCopyCallback = (editor: OnesEditor, event: ClipboardEvent, doc: DocObject) => DocObject | boolean | undefined;
6
6
  export declare function editorCopy(editor: OnesEditor, event: ClipboardEvent, beforeCopy?: BeforeCopyCallback): void;
7
+ export declare function editorCopyDoc(editor: OnesEditor, doc: DocObject): void;
7
8
  export declare function editorCopyWithoutEvent(editor: OnesEditor, beforeCopy?: BeforeCopyCallback): void;
8
- export declare function editorCopyBlock(editor: OnesEditor, block: BlockElement): Promise<boolean>;
9
+ export declare function editorCopyBlock(editor: OnesEditor, block: BlockElement): Promise<void>;
@@ -1,2 +1,2 @@
1
- export { editorCopyBlock, addMetaToDoc, injectDocToHtmlFragment } from './clipboard/copy';
1
+ export { editorCopyBlock, editorCopyDoc, addMetaToDoc, injectDocToHtmlFragment } from './clipboard/copy';
2
2
  export { copyResourcesFromDoc } from './clipboard/resources/copy-resources';
@@ -8,6 +8,8 @@ export interface IUserOptions {
8
8
  minDuration?: number;
9
9
  speed?: number;
10
10
  verticalOffset?: number;
11
+ disableHorizontal?: boolean;
12
+ disableVertical?: boolean;
11
13
  }
12
14
  export interface IOptions {
13
15
  cancelOnUserAction: boolean;
@@ -18,6 +20,8 @@ export interface IOptions {
18
20
  minDuration: number;
19
21
  speed: number;
20
22
  verticalOffset: number;
23
+ disableHorizontal?: boolean;
24
+ disableVertical?: boolean;
21
25
  }
22
26
  declare function animateScrollTo(y: number, userOptions?: IUserOptions): Promise<boolean>;
23
27
  declare function animateScrollTo(coords: TCoords, userOptions?: IUserOptions): Promise<boolean>;
@@ -1,2 +1,4 @@
1
+ import { getHeadingBlockChildren } from './collapse-heading-block';
1
2
  import { HeadingBlockCollapseButton } from './heading-block-collapse-button-render';
2
- export { HeadingBlockCollapseButton };
3
+ export * from './heading-utils';
4
+ export { HeadingBlockCollapseButton, getHeadingBlockChildren };
@@ -1,7 +1,7 @@
1
- import TableBlock, { includeBigTable } from './table-block';
1
+ import TableBlock from './table-block';
2
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
6
  export * from './types';
7
- export { TableBlock, TableBlockCommandProvider, TableShortcuts, includeBigTable };
7
+ export { TableBlock, TableBlockCommandProvider, TableShortcuts };
@@ -1,4 +1,3 @@
1
1
  import { ComplexKindBlock } from '../../../../@ones-editor/core';
2
- export { includeBigTable } from './table-dom';
3
2
  declare const TableBlock: ComplexKindBlock;
4
3
  export default TableBlock;
@@ -15,4 +15,3 @@ export declare function getParentTableBlock(block: BlockElement): BlockElement |
15
15
  export declare function getTableCol(table: HTMLTableElement, colIndex: number): HTMLTableColElement;
16
16
  export declare function isValid(tableBlock: BlockElement): boolean;
17
17
  export declare function resetBlockHelperPos(scrollContainer: ScrollContainer): void;
18
- export declare function includeBigTable(editor: OnesEditor): boolean;
@@ -6,5 +6,4 @@ export interface TableOptions {
6
6
  allowScrollBarFixed?: boolean;
7
7
  hideCellMenu?: boolean;
8
8
  hideToolbar?: boolean;
9
- bigTableBoundary?: number;
10
9
  }