@ones-editor/editor 2.2.16-beta.1 → 2.2.16-beta.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.
@@ -6,6 +6,7 @@ export default class BlockAttributesHandler implements OnesEditorCustom {
6
6
  private activeBlockAttributes;
7
7
  private lastRange;
8
8
  constructor(editor: OnesEditor);
9
+ static get(editor: OnesEditor): BlockAttributesHandler;
9
10
  clear: () => void;
10
11
  handleSelectionChanged: () => void;
11
12
  destroy(): void;
@@ -0,0 +1,2 @@
1
+ import './toast.scss';
2
+ export declare const showWarnToast: () => () => void;
@@ -0,0 +1,8 @@
1
+ import { DocObject, OnesEditor, OnesEditorCustom, OnesEditorInputHandler } from '../../../../@ones-editor/core';
2
+ export declare class DrawioPasteHandler implements OnesEditorInputHandler, OnesEditorCustom {
3
+ private editor;
4
+ constructor(editor: OnesEditor);
5
+ isSameOrigin(editor: OnesEditor, doc: DocObject, src: string): boolean;
6
+ handleBeforePasteDoc: (editor: OnesEditor, doc: DocObject) => Promise<boolean>;
7
+ destroy(): void;
8
+ }
@@ -1,5 +1,6 @@
1
1
  import DrawioEmbed from './drawio-embed';
2
+ import { DrawioPasteHandler } from './helper/paste-handler';
2
3
  import './style.scss';
3
- export { DrawioEmbed, };
4
+ export { DrawioEmbed, DrawioPasteHandler, };
4
5
  export * from '../types';
5
6
  export * from './utils/download-object';
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  abstract: string;
7
7
  errorTips: string;
8
8
  errorSubTips: string;
9
+ warnTips: string;
9
10
  retry: string;
10
11
  save: string;
11
12
  };
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  abstract: string;
7
7
  errorTips: string;
8
8
  errorSubTips: string;
9
+ warnTips: string;
9
10
  retry: string;
10
11
  save: string;
11
12
  };
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  abstract: string;
7
7
  errorTips: string;
8
8
  errorSubTips: string;
9
+ warnTips: string;
9
10
  retry: string;
10
11
  save: string;
11
12
  };
@@ -1,3 +1,3 @@
1
- export declare const HANDLE_CIRCLE_SIZE = 12;
2
- export declare const HANDLE_WIDTH = 12;
1
+ export declare const HANDLE_CIRCLE_SIZE = 7;
2
+ export declare const HANDLE_WIDTH = 7;
3
3
  export declare function createSelectHandle(type: 'start' | 'end'): HTMLDivElement;