@ones-editor/editor 3.0.12-beta.3 → 3.0.13
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.
|
@@ -133,7 +133,6 @@ export interface CommandItem {
|
|
|
133
133
|
order?: number;
|
|
134
134
|
type?: CommandItemType;
|
|
135
135
|
element?: HTMLElement | ((item: CommandItem) => HTMLElement);
|
|
136
|
-
useDefaultClickHandler?: boolean;
|
|
137
136
|
icon?: string;
|
|
138
137
|
childrenType?: 'menu' | 'toolbar' | 'mobile-bottom-menu';
|
|
139
138
|
children?: CommandItem[];
|
|
@@ -24,7 +24,6 @@ export type GraphDataType = XmlData | XmlSvgData | SrcData;
|
|
|
24
24
|
export type LANG = Record<string, string | Record<string, string>>;
|
|
25
25
|
export type OnesEditorLang = 'zh-CN' | 'zh-HK' | 'ja-JP' | 'en-US';
|
|
26
26
|
export interface DrawIoOptions {
|
|
27
|
-
visible?: boolean;
|
|
28
27
|
lang?: OnesEditorLang;
|
|
29
28
|
cdn?: {
|
|
30
29
|
drawioBaseUrl?: string;
|
|
@@ -32,9 +31,7 @@ export interface DrawIoOptions {
|
|
|
32
31
|
drawioJs?: string;
|
|
33
32
|
pako?: string;
|
|
34
33
|
};
|
|
35
|
-
menuItemSuffix?: (editor: OnesEditor) => Element;
|
|
36
34
|
callbacks?: {
|
|
37
|
-
onBeforeInsertDrawio?: (editor: OnesEditor) => boolean | undefined;
|
|
38
35
|
onError?: (editor: OnesEditor, error: Error) => void;
|
|
39
36
|
onCreateDrawIoFrame?: (editor: OnesEditor) => Promise<HTMLIFrameElement>;
|
|
40
37
|
onCloseDrawIoFrame?: (editor: OnesEditor, iframe: HTMLIFrameElement) => boolean;
|
|
@@ -16,7 +16,6 @@ export declare class ColorItem extends TextColorItem implements ToolbarItem {
|
|
|
16
16
|
order?: number | undefined;
|
|
17
17
|
type?: import("@ones-editor/core").CommandItemType | undefined;
|
|
18
18
|
element?: HTMLElement | ((item: import("@ones-editor/core").CommandItem) => HTMLElement) | undefined;
|
|
19
|
-
useDefaultClickHandler?: boolean | undefined;
|
|
20
19
|
icon?: string | undefined;
|
|
21
20
|
childrenType?: "menu" | "toolbar" | "mobile-bottom-menu" | undefined;
|
|
22
21
|
children?: import("@ones-editor/core").CommandItem[] | undefined;
|