@ones-editor/editor 1.1.15-beta.9 → 1.1.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.
- package/@ones-editor/excalidraw/src/types.d.ts +1 -2
- package/@ones-editor/list-block/src/mindmap/to-mindmap/to-mindmap.d.ts +2 -2
- package/@ones-editor/list-block/src/mindmap/to-mindmap/types.d.ts +2 -2
- package/@ones-editor/to-docx/src/doc2other/core.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/versions/src/types.d.ts +0 -1
- package/@ones-editor/versions/src/version-dialog/version-list.d.ts +0 -1
- package/dist/index.js +26 -26
- package/package.json +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ExcalidrawElement } from '@excalidraw/excalidraw/types/element/types';
|
|
2
1
|
import { BinaryFiles } from '@excalidraw/excalidraw/types/types';
|
|
3
2
|
export type ExcalidrawEmbedData = {
|
|
4
3
|
src: string;
|
|
@@ -6,5 +5,5 @@ export type ExcalidrawEmbedData = {
|
|
|
6
5
|
};
|
|
7
6
|
export type ExcalidrawSvgMetadata = {
|
|
8
7
|
files: BinaryFiles;
|
|
9
|
-
elements: readonly
|
|
8
|
+
elements: readonly unknown[];
|
|
10
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IMarkmapOptions } from 'markmap-view/types/types';
|
|
2
2
|
import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
|
|
3
3
|
import { ToMindmapOptions } from './types';
|
|
4
|
-
export declare function toMindmap(editor: OnesEditor, block: BlockElement, mindmapOptions:
|
|
4
|
+
export declare function toMindmap(editor: OnesEditor, block: BlockElement, mindmapOptions: IMarkmapOptions, options: ToMindmapOptions): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
|
|
2
|
-
import {
|
|
2
|
+
import { IMarkmapOptions } from 'markmap-view/types/types';
|
|
3
3
|
export interface ToMindmapOptions {
|
|
4
4
|
mindmapTools: MindmapTools;
|
|
5
5
|
reset?: boolean;
|
|
@@ -7,7 +7,7 @@ export interface ToMindmapOptions {
|
|
|
7
7
|
selectBlock?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export interface MindmapTools {
|
|
10
|
-
toMindmap: (editor: OnesEditor, block: BlockElement, mindmapOptions:
|
|
10
|
+
toMindmap: (editor: OnesEditor, block: BlockElement, mindmapOptions: IMarkmapOptions, options: ToMindmapOptions) => void;
|
|
11
11
|
closeMindmap: (editor: OnesEditor, block: BlockElement) => void;
|
|
12
12
|
fitMindmap: (editor: OnesEditor, block: BlockElement) => void;
|
|
13
13
|
}
|
|
@@ -18,6 +18,7 @@ export interface BlocksGenerator {
|
|
|
18
18
|
addHyperlinkParagraph(link: string | undefined, title?: string): void;
|
|
19
19
|
addOtherEmbedBlock(embedType: string, embedData: any): Promise<void>;
|
|
20
20
|
addTableMatrix(colsWidth: number[], matrix: CalcCell[][], data: DocObject): Promise<void>;
|
|
21
|
+
addVirtualBlock(blockId: string, data: DocObject, maxWidth: number): Promise<void>;
|
|
21
22
|
addEmptyParagraph(): void;
|
|
22
23
|
}
|
|
23
24
|
export declare function convertBlocksOfDoc(parent: string, // 父节点,暂时只有list block需要这个
|