@ones-editor/editor 2.2.15-beta.4 → 2.2.16-beta.10
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/callout-block/src/callout-block/callout-block-content.d.ts +2 -3
- package/@ones-editor/callout-block/src/callout-block/helper.d.ts +2 -4
- package/@ones-editor/callout-block/src/locale/en-us.d.ts +0 -3
- package/@ones-editor/callout-block/src/locale/ja-jp.d.ts +0 -3
- package/@ones-editor/callout-block/src/locale/zh-cn.d.ts +0 -3
- package/@ones-editor/core/src/core/command-providers/block-attributes.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 -0
- package/@ones-editor/drawio-embed/src/lang/ja-jp.d.ts +1 -0
- package/@ones-editor/drawio-embed/src/lang/zh-cn.d.ts +1 -0
- package/@ones-editor/drawio-embed/src/utils/misc.d.ts +6 -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/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/color-button/text-color-item.d.ts +2 -1
- package/@ones-editor/ui-base/src/emoji-item/emoji-item.d.ts +2 -1
- package/@ones-editor/ui-base/src/emoji-palette/index.d.ts +12 -9
- package/@ones-editor/ui-base/src/emoji-palette/types.d.ts +0 -9
- package/@ones-editor/ui-base/src/index.d.ts +0 -2
- package/@ones-editor/ui-base/src/toast/index.d.ts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2590 -2625
- package/dist/types.d.ts +1 -2
- package/package.json +1 -1
- package/@ones-editor/callout-block/src/callout-block/callout-icon.d.ts +0 -14
- package/@ones-editor/ui-base/src/emoji-palette/default-emoji-palette.d.ts +0 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { OnesEditor, BlockPath, BlockElement
|
|
1
|
+
import type { OnesEditor, BlockPath, BlockElement } from '../../../../@ones-editor/core';
|
|
2
2
|
import type { DocCalloutBlockData } from './types';
|
|
3
|
-
export declare function createCalloutBlockContent(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocCalloutBlockData): BlockContentElement;
|
|
4
|
-
export declare function handleUpdateCalloutBlock(editor: OnesEditor, block: BlockElement, blockData: DocBlock): boolean;
|
|
3
|
+
export declare function createCalloutBlockContent(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocCalloutBlockData): import("@ones-editor/core").BlockContentElement;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DocBlock } from '../../../../@ones-editor/core';
|
|
2
|
+
import { ColorId } from './types';
|
|
3
3
|
export declare function checkBlockAllowInCallout(block: DocBlock): boolean;
|
|
4
4
|
export declare function getHexBackgroundColor(backgroundColor: ColorId): string;
|
|
5
|
-
export declare function getCalloutBlockData(editor: OnesEditor, block: BlockElement): import("./types").DocCalloutBlockData;
|
|
6
|
-
export declare function updateCalloutBlockData(editor: OnesEditor, block: BlockElement, blockPayload: Partial<CalloutBlockPayload>): void;
|
|
@@ -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,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';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export declare const isEmptyImage: (svg: HTMLImageElement) => boolean;
|
|
2
2
|
export declare const isEmptySvg: (svg: Element) => boolean;
|
|
3
3
|
export declare const getTextContent: (node: any) => any;
|
|
4
|
+
interface LoopCheckResourceWasLoadedOptions {
|
|
5
|
+
checker: () => boolean;
|
|
6
|
+
maxRetryTime: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function loopCheckResourceWasLoaded(options: LoopCheckResourceWasLoadedOptions): Promise<void>;
|
|
9
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const HANDLE_CIRCLE_SIZE =
|
|
2
|
-
export declare const HANDLE_WIDTH =
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnesEditor, OnesEditorInputHandler, OnesEditorUndoAction, OnesEditorDocs, DocObject, BlockPosition } from '../../../@ones-editor/core';
|
|
1
|
+
import { OnesEditor, OnesEditorInputHandler, OnesEditorUndoAction, OnesEditorDocs, DocObject, BlockPosition, OnesEditorCustom } from '../../../@ones-editor/core';
|
|
2
2
|
import PasteSpecialButton from './paste-special-button';
|
|
3
|
-
export default class PasteSpecialHandler implements OnesEditorInputHandler {
|
|
3
|
+
export default class PasteSpecialHandler implements OnesEditorInputHandler, OnesEditorCustom {
|
|
4
4
|
private editor;
|
|
5
5
|
button: PasteSpecialButton;
|
|
6
6
|
lastUndoAction: OnesEditorUndoAction | null;
|