@ones-editor/editor 1.1.8-beta.7 → 1.1.8-beta.9
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/block-menu/src/block-menu/standard-block-actions/hook.d.ts +0 -2
- package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +1 -2
- package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
- package/@ones-editor/core/src/core/editor/editor-dom/editor-dom.d.ts +3 -1
- package/@ones-editor/core/src/core/editor/index.d.ts +1 -0
- package/@ones-editor/heading-collapse/src/heading-collapse-button/index.d.ts +1 -3
- package/@ones-editor/table-block/src/index.d.ts +2 -2
- package/@ones-editor/table-block/src/table-block/index.d.ts +1 -0
- package/@ones-editor/table-block/src/table-block/table-dom.d.ts +1 -0
- package/@ones-editor/table-block/src/types.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +830 -75940
- package/package.json +1 -1
|
@@ -1,7 +1,5 @@
|
|
|
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;
|
|
6
4
|
executeCommand: (editor: OnesEditor, bloockElement: BlockElement, item: CommandItem) => void;
|
|
7
5
|
}
|
|
@@ -4,6 +4,5 @@ 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;
|
|
8
7
|
export declare function editorCopyWithoutEvent(editor: OnesEditor, beforeCopy?: BeforeCopyCallback): void;
|
|
9
|
-
export declare function editorCopyBlock(editor: OnesEditor, block: BlockElement): Promise<
|
|
8
|
+
export declare function editorCopyBlock(editor: OnesEditor, block: BlockElement): Promise<boolean>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { editorCopyBlock,
|
|
1
|
+
export { editorCopyBlock, addMetaToDoc, injectDocToHtmlFragment } from './clipboard/copy';
|
|
2
2
|
export { copyResourcesFromDoc } from './clipboard/resources/copy-resources';
|
|
@@ -5,5 +5,7 @@ export declare function editorGetClientBottom(editor: OnesEditor): number;
|
|
|
5
5
|
export declare function editorGetVisibleRect(editor: OnesEditor): DOMRect;
|
|
6
6
|
export declare function isBlockPositionVisible(editor: OnesEditor, pos: SimpleBlockPosition): boolean;
|
|
7
7
|
export declare function isChildContainerVisible(editor: OnesEditor, container: ContainerElement): boolean;
|
|
8
|
+
export declare function scrollIntoView(editor: OnesEditor, target: HTMLElement, options?: {
|
|
9
|
+
animation?: boolean;
|
|
10
|
+
}): void;
|
|
8
11
|
export declare function editorScrollIntoView(editor: OnesEditor): void;
|
|
9
|
-
export declare function scrollIntoView(dom: Element, options?: any): void;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { getHeadingBlockChildren } from './collapse-heading-block';
|
|
2
1
|
import { HeadingBlockCollapseButton } from './heading-block-collapse-button-render';
|
|
3
|
-
export
|
|
4
|
-
export { HeadingBlockCollapseButton, getHeadingBlockChildren };
|
|
2
|
+
export { HeadingBlockCollapseButton };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import TableBlock from './table-block';
|
|
1
|
+
import TableBlock, { includeBigTable } 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 };
|
|
7
|
+
export { TableBlock, TableBlockCommandProvider, TableShortcuts, includeBigTable };
|
|
@@ -15,3 +15,4 @@ 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;
|