@ones-editor/editor 0.0.3-beta.57 → 0.0.3-beta.59
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/auto-link/package.json +8 -0
- package/@ones-editor/auto-link/src/index.d.ts +3 -0
- package/@ones-editor/block-menu/src/block-menu-button/drag-preview/index.d.ts +1 -1
- package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +1 -0
- package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
- package/@ones-editor/core/src/core/doc/to-plain-text.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +1 -0
- package/@ones-editor/list-block/src/mindmap/index.d.ts +1 -1
- package/@ones-editor/list-block/src/mindmap/to-mindmap/index.d.ts +1 -1
- package/@ones-editor/markdown-to-doc/src/tokens/block-tokens/paragraph.d.ts +1 -0
- package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +1 -1
- package/@ones-editor/mention/src/block-mention.d.ts +1 -1
- package/@ones-editor/mention/src/dom/mention-button.d.ts +1 -1
- package/@ones-editor/table-block/src/constant/index.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +2 -3
- package/@ones-editor/ui/src/quick-menu/basic-commands.d.ts +5 -0
- package/@ones-editor/ui/src/quick-menu/index.d.ts +3 -0
- package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +8 -15
- package/dist/index.js +147 -145
- package/package.json +1 -1
- /package/@ones-editor/block-menu/src/block-menu-button/{drag-drop → drag-preview}/element-to-data-url.d.ts +0 -0
|
@@ -4,7 +4,7 @@ export declare class DragPreviewImage {
|
|
|
4
4
|
private startPosition;
|
|
5
5
|
constructor(editor: OnesEditor);
|
|
6
6
|
private dragContainer;
|
|
7
|
-
handleDragStart: (e: DragEvent,
|
|
7
|
+
handleDragStart: (e: DragEvent, preview: HTMLElement) => Promise<void>;
|
|
8
8
|
handleDrag: (e: DragEvent) => void;
|
|
9
9
|
handleDragEnd: () => void;
|
|
10
10
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DocObject } from '../../doc';
|
|
2
2
|
import { BlockElement, OnesEditor } from '../../types';
|
|
3
|
+
export declare function injectDocToHtmlFragment(htmlFragment: string, doc: DocObject): string;
|
|
3
4
|
export declare function addMetaToDoc(editor: OnesEditor, doc: DocObject): void;
|
|
4
5
|
export type BeforeCopyCallback = (editor: OnesEditor, event: ClipboardEvent, doc: DocObject) => DocObject | boolean | undefined;
|
|
5
6
|
export declare function editorCopy(editor: OnesEditor, event: ClipboardEvent, beforeCopy?: BeforeCopyCallback): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { editorCopyBlock } from './clipboard/copy';
|
|
1
|
+
export { editorCopyBlock, addMetaToDoc, injectDocToHtmlFragment } from './clipboard/copy';
|
|
@@ -95,6 +95,7 @@ export interface Embed {
|
|
|
95
95
|
offset: number;
|
|
96
96
|
data?: DocBlockAttributes;
|
|
97
97
|
}) => ConvertBlockResult | null;
|
|
98
|
+
toStandardDoc?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject, path: BlockPath) => Promise<DocObject | undefined>;
|
|
98
99
|
}
|
|
99
100
|
export interface ConvertBlockResult {
|
|
100
101
|
blockData: DocBlock;
|
|
@@ -2,7 +2,7 @@ import { BlockElement, OnesEditor, OnesEditorCustom } from '../../../../@ones-ed
|
|
|
2
2
|
import './mindmap.scss';
|
|
3
3
|
export default class OnesEditorListMindmap implements OnesEditorCustom {
|
|
4
4
|
private editor;
|
|
5
|
-
toMindmapButton:
|
|
5
|
+
toMindmapButton: HTMLElement;
|
|
6
6
|
currentBlock: BlockElement | null;
|
|
7
7
|
constructor(editor: OnesEditor);
|
|
8
8
|
static get(editor: OnesEditor): OnesEditorListMindmap | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { OnesEditor } from '../../../../../@ones-editor/core';
|
|
2
|
-
export declare function createToMindmapButton(editor: OnesEditor):
|
|
2
|
+
export declare function createToMindmapButton(editor: OnesEditor): HTMLDivElement;
|
|
@@ -2,3 +2,4 @@ import { marked } from 'marked';
|
|
|
2
2
|
import { DocBlock } from '../../../../../@ones-editor/core';
|
|
3
3
|
import { TokenToBlockOptions } from '../base';
|
|
4
4
|
export declare function paragraphToBlocks(token: marked.Tokens.Paragraph, options: TokenToBlockOptions): DocBlock[];
|
|
5
|
+
export declare function textToBlocks(token: marked.Tokens.Text, options: TokenToBlockOptions): DocBlock[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
-
export type OnEditChange = (tex: string) => void;
|
|
2
|
+
export type OnEditChange = (tex: string, end: boolean) => void;
|
|
3
3
|
export declare function editMathjax(editor: OnesEditor, elem: HTMLElement, tex: string, onChange: OnEditChange): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OnesEditorCustom, OnesEditor } from '../../../@ones-editor/core';
|
|
2
2
|
export default class OnesEditorBlockMention implements OnesEditorCustom {
|
|
3
3
|
private editor;
|
|
4
|
-
mentionButton:
|
|
4
|
+
mentionButton: HTMLElement;
|
|
5
5
|
constructor(editor: OnesEditor);
|
|
6
6
|
private shouldBlockShowMention;
|
|
7
7
|
private handleHoveringBlock;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
-
export declare function createMentionButton(editor: OnesEditor):
|
|
2
|
+
export declare function createMentionButton(editor: OnesEditor): HTMLDivElement;
|