@ones-editor/editor 2.3.0-beta.9 → 2.3.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/comments/src/types.d.ts +5 -0
- package/@ones-editor/core/src/core/command-providers/block-attributes.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +11 -3
- package/@ones-editor/core/src/utils/dom.d.ts +1 -0
- package/@ones-editor/drawio-embed/src/dom/toast.d.ts +2 -0
- package/@ones-editor/drawio-embed/src/helper/paste-handler.d.ts +8 -0
- package/@ones-editor/drawio-embed/src/index.d.ts +2 -1
- package/@ones-editor/drawio-embed/src/lang/en-us.d.ts +1 -3
- package/@ones-editor/drawio-embed/src/lang/ja-jp.d.ts +1 -3
- package/@ones-editor/drawio-embed/src/lang/zh-cn.d.ts +1 -3
- package/@ones-editor/drawio-embed/src/utils/misc.d.ts +6 -0
- package/@ones-editor/embed-block-helper/src/block-resizer/index.d.ts +6 -1
- package/@ones-editor/exclusive-block/src/index.d.ts +2 -0
- package/@ones-editor/graph-embed/src/command.d.ts +9 -0
- package/@ones-editor/graph-embed/src/config/index.d.ts +9 -1
- package/@ones-editor/graph-embed/src/flowchart/flowchart-embed.d.ts +1 -1
- package/@ones-editor/graph-embed/src/flowchart/flowchart-helper.d.ts +2 -1
- package/@ones-editor/graph-embed/src/flowchart/flowchart.d.ts +11 -3
- package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +29 -23
- package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +3 -4
- package/@ones-editor/graph-embed/src/helper/graph-dom/code-editor.d.ts +4 -0
- package/@ones-editor/graph-embed/src/helper/graph-dom/draw-dom.d.ts +16 -0
- package/@ones-editor/graph-embed/src/helper/graph-dom/layout-dom.d.ts +25 -0
- package/@ones-editor/graph-embed/src/helper/graph-dom/view-select.d.ts +22 -0
- package/@ones-editor/graph-embed/src/helper/graph-exclusive-handler.d.ts +13 -0
- package/@ones-editor/graph-embed/src/helper/graph-quick-commands.d.ts +3 -0
- package/@ones-editor/graph-embed/src/helper/utils.d.ts +4 -0
- package/@ones-editor/graph-embed/src/index.d.ts +3 -2
- package/@ones-editor/graph-embed/src/lang/en-us.d.ts +11 -6
- package/@ones-editor/graph-embed/src/lang/ja-jp.d.ts +11 -6
- package/@ones-editor/graph-embed/src/lang/zh-cn.d.ts +11 -6
- package/@ones-editor/graph-embed/src/mermaid/mermaid-embed.d.ts +1 -1
- package/@ones-editor/graph-embed/src/mermaid/mermaid-helper.d.ts +1 -0
- package/@ones-editor/graph-embed/src/mermaid/mermaid.d.ts +12 -4
- package/@ones-editor/graph-embed/src/plantuml/plantuml-embed.d.ts +1 -1
- package/@ones-editor/graph-embed/src/plantuml/plantuml-helper.d.ts +2 -1
- package/@ones-editor/graph-embed/src/plantuml/plantuml.d.ts +11 -3
- package/@ones-editor/graph-embed/src/types.d.ts +41 -0
- package/@ones-editor/image-embed/src/types.d.ts +0 -1
- package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/ja-jp.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
- package/@ones-editor/mobile-helper/src/selection-gripper/select-handle.d.ts +2 -2
- package/@ones-editor/paste-special/src/paste-special-handler.d.ts +2 -2
- package/@ones-editor/sharedb-doc/src/types.d.ts +1 -0
- package/@ones-editor/table-block/src/commands/select-column.d.ts +1 -0
- package/@ones-editor/table-block/src/commands/select-rows.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/locale/en-us.d.ts +2 -0
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +2 -0
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +2 -0
- package/@ones-editor/ui/src/providers/insert-menu.d.ts +2 -2
- package/@ones-editor/ui/src/providers/utils/add-section.d.ts +9 -0
- package/@ones-editor/ui/src/providers/utils/index.d.ts +2 -0
- package/@ones-editor/ui/src/quick-menu/index.d.ts +2 -1
- package/@ones-editor/ui/src/quick-menu/quick-command-providers.d.ts +3 -3
- package/@ones-editor/ui/src/quick-menu/types.d.ts +2 -2
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +3 -0
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +2 -0
- package/@ones-editor/ui-base/src/color-button/text-color-item.d.ts +2 -1
- package/@ones-editor/ui-base/src/toast/index.d.ts +2 -1
- package/dist/custom/image-preview-handler.d.ts +11 -0
- package/dist/error-handler/error-info-bar.d.ts +0 -2
- package/dist/error-handler/index.d.ts +6 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +7340 -6024
- package/dist/lang/en-us.d.ts +7 -0
- package/dist/lang/ja-jp.d.ts +7 -0
- package/dist/lang/zh-cn.d.ts +7 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
- package/@ones-editor/graph-embed/assets/index.d.ts +0 -2
- package/@ones-editor/graph-embed/types/index.d.ts +0 -16
package/dist/lang/en-us.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
placeholder: {
|
|
3
3
|
common: {
|
|
4
4
|
title: string;
|
|
5
|
+
mobileTitle: string;
|
|
5
6
|
readonlyTitle: string;
|
|
6
7
|
content: string;
|
|
7
8
|
contentInContainer: string;
|
|
@@ -18,7 +19,13 @@ declare const _default: {
|
|
|
18
19
|
limitedEnvTips: string;
|
|
19
20
|
};
|
|
20
21
|
error: {
|
|
22
|
+
retry: string;
|
|
21
23
|
network: string;
|
|
24
|
+
networkPopup: string;
|
|
25
|
+
uploadResourceError: string;
|
|
26
|
+
uploadResourceErrorMessage: string;
|
|
27
|
+
uploadResourcePopup: string;
|
|
28
|
+
uploadResourceNoPopup: string;
|
|
22
29
|
};
|
|
23
30
|
};
|
|
24
31
|
export default _default;
|
package/dist/lang/ja-jp.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
placeholder: {
|
|
3
3
|
common: {
|
|
4
4
|
title: string;
|
|
5
|
+
mobileTitle: string;
|
|
5
6
|
readonlyTitle: string;
|
|
6
7
|
content: string;
|
|
7
8
|
contentInContainer: string;
|
|
@@ -18,7 +19,13 @@ declare const _default: {
|
|
|
18
19
|
limitedEnvTips: string;
|
|
19
20
|
};
|
|
20
21
|
error: {
|
|
22
|
+
retry: string;
|
|
21
23
|
network: string;
|
|
24
|
+
networkPopup: string;
|
|
25
|
+
uploadResourceError: string;
|
|
26
|
+
uploadResourceErrorMessage: string;
|
|
27
|
+
uploadResourcePopup: string;
|
|
28
|
+
uploadResourceNoPopup: string;
|
|
22
29
|
};
|
|
23
30
|
};
|
|
24
31
|
export default _default;
|
package/dist/lang/zh-cn.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
placeholder: {
|
|
3
3
|
common: {
|
|
4
4
|
title: string;
|
|
5
|
+
mobileTitle: string;
|
|
5
6
|
readonlyTitle: string;
|
|
6
7
|
content: string;
|
|
7
8
|
contentInContainer: string;
|
|
@@ -18,7 +19,13 @@ declare const _default: {
|
|
|
18
19
|
limitedEnvTips: string;
|
|
19
20
|
};
|
|
20
21
|
error: {
|
|
22
|
+
retry: string;
|
|
21
23
|
network: string;
|
|
24
|
+
networkPopup: string;
|
|
25
|
+
uploadResourceError: string;
|
|
26
|
+
uploadResourceErrorMessage: string;
|
|
27
|
+
uploadResourcePopup: string;
|
|
28
|
+
uploadResourceNoPopup: string;
|
|
22
29
|
};
|
|
23
30
|
};
|
|
24
31
|
export default _default;
|
package/dist/types.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export type EditorComponentOptions = {
|
|
|
47
47
|
};
|
|
48
48
|
export type EditorEvents = {
|
|
49
49
|
onClickLink?: (editor: OnesEditor, event: MouseEvent, link: Element) => void;
|
|
50
|
+
onPreviewImage?: (editor: OnesEditor, img: HTMLImageElement) => void;
|
|
50
51
|
};
|
|
51
52
|
export interface CreateOnesEditorOptions {
|
|
52
53
|
id?: string;
|
|
@@ -104,6 +105,7 @@ export interface CreateOnesEditorOptions {
|
|
|
104
105
|
onDisconnected?: (reason: string) => void;
|
|
105
106
|
onUnknownError?: (error: Error) => void;
|
|
106
107
|
onUploadResourceError?: (error: Error) => void;
|
|
108
|
+
onUploadResourceSuccess?: () => void;
|
|
107
109
|
onReady?: () => void;
|
|
108
110
|
}
|
|
109
111
|
export interface CreateLocalEditorOptions {
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type MermaidEmbedOptions = {
|
|
2
|
-
cdn?: {
|
|
3
|
-
mermaid?: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export type FlowCharEmbedOptions = {
|
|
7
|
-
cdn?: {
|
|
8
|
-
flowchart?: string[];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export type PlantumlEmbedOptions = {
|
|
12
|
-
cdn?: {
|
|
13
|
-
plantuml?: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export type LANG = Record<string, string | Record<string, string>>;
|