@ones-editor/editor 0.0.3-beta.180 → 0.0.3-beta.182

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.
@@ -1,7 +1,9 @@
1
1
  import { OnesEditor, OnesEditorDataConverter, OnesEditorDocs, PasteOptions } from '../types';
2
2
  export default class EditorDataConverter implements OnesEditorDataConverter {
3
3
  private converters;
4
+ private converterTypes;
4
5
  constructor();
6
+ private prepareData;
5
7
  fromData(editor: OnesEditor, data: DataTransfer, options?: PasteOptions): Promise<OnesEditorDocs | undefined>;
6
8
  addConverter(converter: OnesEditorDataConverter): void;
7
9
  }
@@ -16,6 +16,7 @@ export declare function editGraph(editor: OnesEditor, block: BlockElement, data:
16
16
  export declare function initDrawIo(editor: OnesEditor): Promise<void>;
17
17
  export declare function removeDrawioEmptyStatus(embed: HTMLElement): void;
18
18
  export declare function addDrawioEmptyStatus(embed: HTMLElement): void;
19
+ export declare function addDrawioLoadErrorStatus(editor: OnesEditor, embed: HTMLElement, data: DrawIoData): void;
19
20
  export declare function setGraph(embed: HTMLElement, data: GraphDataType): void;
20
21
  export declare function getPreGraphData(embed: HTMLElement): {
21
22
  src: string;
@@ -4,6 +4,9 @@ declare const _default: {
4
4
  empty: string;
5
5
  loading: string;
6
6
  abstract: string;
7
+ errorTips: string;
8
+ errorSubTips: string;
9
+ retry: string;
7
10
  };
8
11
  };
9
12
  export default _default;
@@ -4,6 +4,9 @@ declare const _default: {
4
4
  empty: string;
5
5
  loading: string;
6
6
  abstract: string;
7
+ errorTips: string;
8
+ errorSubTips: string;
9
+ retry: string;
7
10
  };
8
11
  };
9
12
  export default _default;
@@ -4,6 +4,9 @@ declare const _default: {
4
4
  empty: string;
5
5
  loading: string;
6
6
  abstract: string;
7
+ errorTips: string;
8
+ errorSubTips: string;
9
+ retry: string;
7
10
  };
8
11
  };
9
12
  export default _default;
@@ -0,0 +1,2 @@
1
+ import GraphIcon from './graph-icon.svg?raw';
2
+ export { GraphIcon, };
@@ -17,6 +17,7 @@ export default abstract class GraphBase {
17
17
  createEmbedContent(content: BlockContentElement, block: DocEmbedBlock): void;
18
18
  updateEmbedContent(content: BlockContentElement, block: DocEmbedBlock): void;
19
19
  protected updateImage(embed: HTMLDivElement, code: string | undefined, url: string | undefined | null, err: Error | null): Promise<void>;
20
+ protected errorBoundary(embed: HTMLDivElement, code: string | undefined, url: string | undefined | null): void;
20
21
  protected updateClasses(embed: HTMLDivElement, code: string | undefined, err: Error | null): void;
21
22
  editGraph(content: BlockContentElement): void;
22
23
  getBlockProperties(block: BlockElement, properties?: GraphEmbedBlockProperties): BlockProperties;
@@ -5,6 +5,9 @@ declare const _default: {
5
5
  edit: string;
6
6
  comment: string;
7
7
  help: string;
8
+ errorTips: string;
9
+ errorSubTips: string;
10
+ retry: string;
8
11
  };
9
12
  };
10
13
  export default _default;
@@ -5,6 +5,9 @@ declare const _default: {
5
5
  edit: string;
6
6
  comment: string;
7
7
  help: string;
8
+ errorTips: string;
9
+ errorSubTips: string;
10
+ retry: string;
8
11
  };
9
12
  };
10
13
  export default _default;
@@ -5,6 +5,9 @@ declare const _default: {
5
5
  edit: string;
6
6
  comment: string;
7
7
  help: string;
8
+ errorTips: string;
9
+ errorSubTips: string;
10
+ retry: string;
8
11
  };
9
12
  };
10
13
  export default _default;