@ones-editor/editor 2.0.4-beta.2 → 2.0.4-beta.20
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-button/index.d.ts +0 -1
- package/@ones-editor/block-menu/src/block-menu-button/menu-button/index.d.ts +3 -12
- package/@ones-editor/core/src/core/blocks/common/insert-empty-block.d.ts +1 -1
- package/@ones-editor/core/src/core/blocks/embed-blocks/embed-block/common.d.ts +1 -0
- package/@ones-editor/core/src/core/containers/children.d.ts +5 -2
- package/@ones-editor/core/src/core/doc/container.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/insert-doc/insert-doc.d.ts +1 -1
- package/@ones-editor/core/src/core/editor-doc/handle-block-data-changed.d.ts +2 -1
- package/@ones-editor/core/src/core/types.d.ts +12 -3
- package/@ones-editor/core/src/helper/hovering-block.d.ts +2 -0
- package/@ones-editor/heading-collapse/src/heading-collapse-button/heading-utils.d.ts +2 -1
- package/@ones-editor/heading-collapse/src/index.d.ts +1 -0
- package/@ones-editor/image-embed/src/image-object.d.ts +2 -0
- package/@ones-editor/layout-block/src/caption.d.ts +3 -3
- package/@ones-editor/layout-block/src/child-containers.d.ts +2 -2
- package/@ones-editor/layout-block/src/constants.d.ts +1 -1
- package/@ones-editor/layout-block/src/index.d.ts +2 -1
- package/@ones-editor/layout-block/src/toolbar.d.ts +9 -2
- package/@ones-editor/layout-block/src/types.d.ts +5 -1
- package/@ones-editor/layout-block/src/utils.d.ts +5 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +189 -189
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
- package/@ones-editor/column-block/package.json +0 -8
- package/@ones-editor/column-block/src/child-containers.d.ts +0 -2
- package/@ones-editor/column-block/src/columns-options.d.ts +0 -2
- package/@ones-editor/column-block/src/columns-properties.d.ts +0 -15
- package/@ones-editor/column-block/src/index.d.ts +0 -4
- package/@ones-editor/column-block/src/types.d.ts +0 -11
- package/@ones-editor/layout-block/src/paste.d.ts +0 -7
package/dist/types.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { CodeBlockExternalOptions } from '../@ones-editor/code-block';
|
|
|
15
15
|
import { MentionOptions } from '../@ones-editor/mention';
|
|
16
16
|
import { MathjaxOptions } from '../@ones-editor/mathjax';
|
|
17
17
|
import { LinkOptions } from '../@ones-editor/ui/src/link-popup';
|
|
18
|
+
import { EditorConfigLayoutOptions } from '../@ones-editor/layout-block/src/types';
|
|
18
19
|
export interface RemoteCaretsOptions {
|
|
19
20
|
onUserChanged?: (editor: OnesEditor, users: OnesEditorUser[]) => void;
|
|
20
21
|
}
|
|
@@ -40,6 +41,7 @@ export type EditorComponentOptions = {
|
|
|
40
41
|
code?: CodeBlockExternalOptions;
|
|
41
42
|
mathjax?: MathjaxOptions;
|
|
42
43
|
link?: LinkOptions;
|
|
44
|
+
columns?: EditorConfigLayoutOptions;
|
|
43
45
|
};
|
|
44
46
|
export type EditorEvents = {
|
|
45
47
|
onClickLink?: (editor: OnesEditor, event: MouseEvent, link: Element) => void;
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BlockCommands, BlockElement, CommandItem, OnesEditor } from '../../../@ones-editor/core';
|
|
2
|
-
export declare class ColumnsBlockCommands implements BlockCommands {
|
|
3
|
-
protected editor: OnesEditor;
|
|
4
|
-
protected block: BlockElement;
|
|
5
|
-
group: string;
|
|
6
|
-
constructor(editor: OnesEditor, block: BlockElement);
|
|
7
|
-
_commands: CommandItem[];
|
|
8
|
-
get commands(): CommandItem[];
|
|
9
|
-
executeCommand(editor: OnesEditor, block: BlockElement, item: CommandItem): void;
|
|
10
|
-
}
|
|
11
|
-
export declare function getColumnsBlockProperties(editor: OnesEditor, block: BlockElement): {
|
|
12
|
-
blockCommands: {
|
|
13
|
-
'hovering-toolbar': ColumnsBlockCommands;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DocBlock } from '../../../@ones-editor/core';
|
|
2
|
-
export type ColumnData = {
|
|
3
|
-
type: string;
|
|
4
|
-
columns: 1 | 2 | 3 | 4;
|
|
5
|
-
};
|
|
6
|
-
export declare const COLUMNS: ColumnData[];
|
|
7
|
-
export interface DocColumnsBlock extends DocBlock {
|
|
8
|
-
columnType: string;
|
|
9
|
-
children: string[];
|
|
10
|
-
}
|
|
11
|
-
export declare function getColumnData(type: string): ColumnData;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OnesEditor, OnesEditorCustom, OnesEditorDocs, OnesEditorInputHandler } from '../../../@ones-editor/core';
|
|
2
|
-
export declare class LayoutFlattenPasteHandler implements OnesEditorInputHandler, OnesEditorCustom {
|
|
3
|
-
private editor;
|
|
4
|
-
constructor(editor: OnesEditor);
|
|
5
|
-
handleBeforePaste(editor: OnesEditor, event: ClipboardEvent | null, docs: OnesEditorDocs, files: File[]): Promise<boolean>;
|
|
6
|
-
destroy(): void;
|
|
7
|
-
}
|