@ones-editor/editor 2.0.4-beta.4 → 2.0.4-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.
- package/@ones-editor/core/src/core/types.d.ts +5 -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/layout-block/src/toolbar.d.ts +8 -1
- package/@ones-editor/layout-block/src/utils.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +182 -182
- package/package.json +1 -1
|
@@ -210,6 +210,11 @@ export interface BlockOptions {
|
|
|
210
210
|
showLocker?: boolean;
|
|
211
211
|
};
|
|
212
212
|
findPreviewElement?: (editor: OnesEditor, complexBlock: BlockElement) => HTMLElement;
|
|
213
|
+
headingCollapsable?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* 拖拽时,是否显示缩略图容器自带的阴影,默认为 false
|
|
216
|
+
*/
|
|
217
|
+
previewNoShadow?: boolean;
|
|
213
218
|
}
|
|
214
219
|
export interface StandardDragObject {
|
|
215
220
|
type: 'block';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { BlockElement } from '../../../../@ones-editor/core';
|
|
1
|
+
import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
2
|
export declare function isTitleBlock(block: BlockElement): boolean;
|
|
3
|
+
export declare function canShowCollapseButtons(editor: OnesEditor, hoverBlock: BlockElement | null): boolean;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { OnesEditor, BlockElement, AutoScroll, OnesEditorCustom, ContainerElement } from '../../../@ones-editor/core';
|
|
2
|
+
import { Instance } from 'tippy.js';
|
|
2
3
|
export declare function createSeparatorContainer(editor: OnesEditor, childContainerId: string, index: number): HTMLDivElement;
|
|
3
|
-
export declare function createActionBar(editor: OnesEditor, containerID: string, _blockElement: BlockElement, columnRemovable?: boolean):
|
|
4
|
+
export declare function createActionBar(editor: OnesEditor, containerID: string, _blockElement: BlockElement, columnRemovable?: boolean): {
|
|
5
|
+
actionBarContainer: HTMLDivElement;
|
|
6
|
+
tippyInstance?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
actionBarContainer: HTMLDivElement;
|
|
9
|
+
tippyInstance: Instance<import("tippy.js").Props>;
|
|
10
|
+
};
|
|
4
11
|
export declare function elementToDataUrl(editor: OnesEditor, element: HTMLElement): Promise<string>;
|
|
5
12
|
export declare class OnesEditorCustomLayoutDragHandler implements OnesEditorCustom {
|
|
6
13
|
private editor;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BlockElement, ContainerElement, DocBlock, DocObject, OnesEditor } from '../../../@ones-editor/core';
|
|
2
2
|
export declare function isBlockElement(item: unknown): item is BlockElement;
|
|
3
|
+
export declare function isLayoutBlock(block: BlockElement): boolean;
|
|
3
4
|
export declare function flattenLayoutBlockIfExists(_docObject: DocObject, containerID?: string): DocBlock[];
|
|
4
5
|
export declare function currentCaptionInRootContainer(editor: OnesEditor): boolean;
|
|
5
6
|
export declare function getClosetLayoutContainer(block: BlockElement | undefined): ContainerElement | undefined;
|