@ones-editor/editor 1.1.15 → 1.1.16-beta.3
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/items/insert-block-items/index.d.ts +1 -1
- package/@ones-editor/core/src/core/types.d.ts +1 -0
- package/@ones-editor/excalidraw/src/types.d.ts +2 -1
- package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +2 -0
- 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/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +2 -2
- package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +2 -1
- package/@ones-editor/ui/src/quick-menu/types.d.ts +1 -1
- package/@ones-editor/ui-base/src/command-bar/manual-menu.d.ts +1 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -0
- package/@ones-editor/ui-base/src/popup/popup.d.ts +2 -0
- package/@ones-editor/versions/src/types.d.ts +1 -0
- package/@ones-editor/versions/src/version-dialog/version-list.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +107 -107
- package/dist/types.d.ts +4 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlockElement, OnesEditor } from '../../../../../../@ones-editor/core';
|
|
2
2
|
import type { GetAllQuickMenuItemsOptions } from '../../../../../../@ones-editor/ui';
|
|
3
3
|
import type { BlockMenuItem } from '../types';
|
|
4
|
-
export declare function getAllInsertBlockItems(editor: OnesEditor, source: 'insert-block' | 'insert-block-before', options
|
|
4
|
+
export declare function getAllInsertBlockItems(editor: OnesEditor, source: 'insert-block' | 'insert-block-before', options: GetAllQuickMenuItemsOptions): BlockMenuItem[];
|
|
5
5
|
export declare function executeInsertBlockCommand(editor: OnesEditor, block: BlockElement, item: BlockMenuItem, insertAbove?: boolean): Promise<BlockElement | null> | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExcalidrawElement } from '@excalidraw/excalidraw/types/element/types';
|
|
1
2
|
import { BinaryFiles } from '@excalidraw/excalidraw/types/types';
|
|
2
3
|
export type ExcalidrawEmbedData = {
|
|
3
4
|
src: string;
|
|
@@ -5,5 +6,5 @@ export type ExcalidrawEmbedData = {
|
|
|
5
6
|
};
|
|
6
7
|
export type ExcalidrawSvgMetadata = {
|
|
7
8
|
files: BinaryFiles;
|
|
8
|
-
elements: readonly
|
|
9
|
+
elements: readonly ExcalidrawElement[];
|
|
9
10
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
1
2
|
export interface EnforceWithDocumentTitleHandlerOptions {
|
|
2
3
|
hideTitle?: boolean;
|
|
3
4
|
headingLevel?: number;
|
|
@@ -5,4 +6,5 @@ export interface EnforceWithDocumentTitleHandlerOptions {
|
|
|
5
6
|
contentPlaceholder?: string | Element;
|
|
6
7
|
readonlyTitlePlaceholder?: string;
|
|
7
8
|
addPlaceholderToAllCurrentEmptyBlock?: boolean;
|
|
9
|
+
applyContentPlaceholder?: (editor: OnesEditor) => boolean;
|
|
8
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as markmap from 'markmap-view';
|
|
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: markmap.Markmap['options'], options: ToMindmapOptions): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Markmap } from 'markmap-view';
|
|
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: Markmap['options'], options: ToMindmapOptions) => void;
|
|
11
11
|
closeMindmap: (editor: OnesEditor, block: BlockElement) => void;
|
|
12
12
|
fitMindmap: (editor: OnesEditor, block: BlockElement) => void;
|
|
13
13
|
}
|