@ones-editor/editor 2.2.11-beta.3 → 2.2.11
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/comments/src/comments-list/group-list.d.ts +1 -1
- package/@ones-editor/core/src/core/editor/editor-dom/editor-dom.d.ts +3 -2
- package/@ones-editor/core/src/utils/dom.d.ts +0 -1
- package/@ones-editor/graph-embed/assets/index.d.ts +2 -0
- package/@ones-editor/graph-embed/src/config/index.d.ts +1 -9
- package/@ones-editor/graph-embed/src/flowchart/flowchart-embed.d.ts +1 -1
- package/@ones-editor/graph-embed/src/flowchart/flowchart-helper.d.ts +1 -2
- package/@ones-editor/graph-embed/src/flowchart/flowchart.d.ts +3 -11
- package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +23 -24
- package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +4 -3
- package/@ones-editor/graph-embed/src/index.d.ts +2 -3
- package/@ones-editor/graph-embed/src/lang/en-us.d.ts +6 -11
- package/@ones-editor/graph-embed/src/lang/ja-jp.d.ts +6 -11
- package/@ones-editor/graph-embed/src/lang/zh-cn.d.ts +6 -11
- package/@ones-editor/graph-embed/src/mermaid/mermaid-embed.d.ts +1 -1
- package/@ones-editor/graph-embed/src/mermaid/mermaid-helper.d.ts +0 -1
- package/@ones-editor/graph-embed/src/mermaid/mermaid.d.ts +4 -11
- package/@ones-editor/graph-embed/src/plantuml/plantuml-embed.d.ts +1 -1
- package/@ones-editor/graph-embed/src/plantuml/plantuml-helper.d.ts +1 -2
- package/@ones-editor/graph-embed/src/plantuml/plantuml.d.ts +3 -11
- package/@ones-editor/graph-embed/types/index.d.ts +16 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/box-helper/standard-box-commands.d.ts +2 -6
- package/@ones-editor/ui/src/index.d.ts +2 -2
- package/@ones-editor/ui/src/quick-menu/index.d.ts +1 -2
- package/@ones-editor/ui/src/tooltips/overflow-tooltip-helper.d.ts +11 -0
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +0 -2
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +0 -2
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +1 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +0 -1
- package/dist/index.js +6437 -6822
- package/package.json +1 -1
- package/@ones-editor/graph-embed/src/command.d.ts +0 -6
- package/@ones-editor/graph-embed/src/helper/graph-dom/code-editor.d.ts +0 -2
- package/@ones-editor/graph-embed/src/helper/graph-dom/draw-dom.d.ts +0 -16
- package/@ones-editor/graph-embed/src/helper/graph-dom/layout-dom.d.ts +0 -25
- package/@ones-editor/graph-embed/src/helper/graph-dom/view-select.d.ts +0 -22
- package/@ones-editor/graph-embed/src/helper/graph-quick-commands.d.ts +0 -3
- package/@ones-editor/graph-embed/src/types.d.ts +0 -38
- package/@ones-editor/status/src/dom/overflow-tooltip-tag.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AddMenuCommand, QuickMenuCommandBetween, QuickMenuCommandInline, QuickMenuCommandProvider } from '../../../@ones-editor/ui';
|
|
2
|
-
import { CommandItem, OnesEditor } from '../../../@ones-editor/core';
|
|
3
|
-
export declare class GraphCommandProvider implements QuickMenuCommandProvider {
|
|
4
|
-
getCommands: (editor: OnesEditor) => CommandItem[];
|
|
5
|
-
executeCommand: (editor: OnesEditor, item: CommandItem, params: QuickMenuCommandInline | QuickMenuCommandBetween | AddMenuCommand) => Promise<null>;
|
|
6
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OnesEditor } from '../../../../../@ones-editor/core';
|
|
2
|
-
export declare class DrawHandler {
|
|
3
|
-
private editor;
|
|
4
|
-
private parent;
|
|
5
|
-
private image?;
|
|
6
|
-
constructor(editor: OnesEditor, parent: HTMLElement);
|
|
7
|
-
private bindImage;
|
|
8
|
-
private handleImageError;
|
|
9
|
-
private handleImageLoad;
|
|
10
|
-
private setStatus;
|
|
11
|
-
private get status();
|
|
12
|
-
createEmptyContent(): void;
|
|
13
|
-
createErrorContent: () => void;
|
|
14
|
-
updateDraw(src?: string): void;
|
|
15
|
-
destroy(): void;
|
|
16
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DragDrop } from '../../../../../@ones-editor/core';
|
|
2
|
-
import { TypedEmitter } from 'tiny-typed-emitter';
|
|
3
|
-
interface GraphLayoutCallback {
|
|
4
|
-
'flexChange': (flex: number) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare class GraphLayout extends TypedEmitter<GraphLayoutCallback> {
|
|
7
|
-
private parent;
|
|
8
|
-
graphContent: HTMLElement;
|
|
9
|
-
constructor(parent: HTMLElement, leftEl: HTMLElement, rightEl: HTMLElement, flex: number);
|
|
10
|
-
bindMouseMove(): void;
|
|
11
|
-
unbindMouseMove(): void;
|
|
12
|
-
handleMouseMove: (event: MouseEvent) => void;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
getLeftElement(): HTMLElement;
|
|
15
|
-
getRightElement(): HTMLElement;
|
|
16
|
-
handleDrag: (drag: DragDrop<unknown>, event: MouseEvent | TouchEvent) => void;
|
|
17
|
-
handleDragEnd: (drag: DragDrop<unknown>, event: MouseEvent | TouchEvent) => void;
|
|
18
|
-
private hideLeft;
|
|
19
|
-
private hideRight;
|
|
20
|
-
showRight(): void;
|
|
21
|
-
showLeft(): void;
|
|
22
|
-
showBoth(flex: number): void;
|
|
23
|
-
changeLayout(flex: number): void;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TypedEmitter } from 'tiny-typed-emitter';
|
|
2
|
-
export declare enum ViewId {
|
|
3
|
-
Both = "both",
|
|
4
|
-
Draw = "draw",
|
|
5
|
-
Code = "code",
|
|
6
|
-
Select = "select"
|
|
7
|
-
}
|
|
8
|
-
interface ViewSelectCallback {
|
|
9
|
-
'viewChange': (viewSelect: ViewSelect) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare class ViewSelect extends TypedEmitter<ViewSelectCallback> {
|
|
12
|
-
private fixedToolbar;
|
|
13
|
-
selectedView: ViewId;
|
|
14
|
-
constructor(parent: HTMLElement);
|
|
15
|
-
private handleSelected;
|
|
16
|
-
setSelectedView(view: ViewId): void;
|
|
17
|
-
disable(): void;
|
|
18
|
-
enable(): void;
|
|
19
|
-
private createItems;
|
|
20
|
-
destroy(): void;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { CommandItem, OnesEditor } from '../../../@ones-editor/core';
|
|
2
|
-
import { StandardEmbedBlockProperties } from '../../../@ones-editor/embed-block-helper';
|
|
3
|
-
export type MermaidEmbedOptions = {
|
|
4
|
-
cdn?: {
|
|
5
|
-
mermaid?: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export type FlowCharEmbedOptions = {
|
|
9
|
-
cdn?: {
|
|
10
|
-
flowchart?: string[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export type PlantumlEmbedOptions = {
|
|
14
|
-
cdn?: {
|
|
15
|
-
plantuml?: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export interface GraphCommandItem extends CommandItem {
|
|
19
|
-
execute: (editor: OnesEditor, containerId: string, blockIndex: number) => void;
|
|
20
|
-
}
|
|
21
|
-
export interface StandardGraphData {
|
|
22
|
-
src: string;
|
|
23
|
-
code: string;
|
|
24
|
-
flex?: number;
|
|
25
|
-
height?: number;
|
|
26
|
-
view?: string;
|
|
27
|
-
}
|
|
28
|
-
export type GraphType = 'mermaid' | 'flowchart' | 'plantuml';
|
|
29
|
-
export type GraphEmbedBlockProperties = StandardEmbedBlockProperties;
|
|
30
|
-
export interface MermaidData extends Omit<StandardGraphData, 'code'> {
|
|
31
|
-
mermaidText: string;
|
|
32
|
-
}
|
|
33
|
-
export interface PlantumlData extends Omit<StandardGraphData, 'code'> {
|
|
34
|
-
plantumlText: string;
|
|
35
|
-
}
|
|
36
|
-
export interface FlowchartData extends Omit<StandardGraphData, 'code'> {
|
|
37
|
-
flowchartText: string;
|
|
38
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
-
export declare class OverflowTooltipTag {
|
|
3
|
-
private editor;
|
|
4
|
-
constructor(editor: OnesEditor);
|
|
5
|
-
private check;
|
|
6
|
-
private onMouseOver;
|
|
7
|
-
destroy(): void;
|
|
8
|
-
static create(classes: string[], title: string): HTMLAnchorElement;
|
|
9
|
-
static replaceTitleSpace(title: string): string;
|
|
10
|
-
}
|