@ones-editor/editor 0.0.3-beta.82 → 0.0.3-beta.84
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/code-block/src/icons/copy.d.ts +1 -1
- package/@ones-editor/code-block/src/icons/wrap.d.ts +1 -1
- package/@ones-editor/code-block/src/locale/en-us.d.ts +3 -0
- package/@ones-editor/code-block/src/locale/ja-jp.d.ts +10 -0
- package/@ones-editor/code-block/src/locale/zh-cn.d.ts +3 -0
- package/@ones-editor/core/src/core/types.d.ts +2 -2
- package/@ones-editor/drawio-embed/types/index.d.ts +1 -1
- package/@ones-editor/embed-block-helper/src/block-resizer/index.d.ts +14 -0
- package/@ones-editor/embed-block-helper/src/index.d.ts +1 -0
- package/@ones-editor/excalidraw/package.json +11 -0
- package/@ones-editor/excalidraw/src/excalidraw/block-properties.d.ts +2 -0
- package/@ones-editor/excalidraw/src/excalidraw/editor.d.ts +2 -0
- package/@ones-editor/excalidraw/src/index.d.ts +4 -0
- package/@ones-editor/excalidraw/src/types.d.ts +9 -0
- package/@ones-editor/excalidraw/src/utils/excalidraw-data.d.ts +4 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +147 -147
- package/package.json +4 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const CopyIcon = "\n<svg
|
|
1
|
+
declare const CopyIcon = "\n<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13.5361 20.4C14.2409 20.4 14.773 20.2179 15.1325 19.8537C15.492 19.4895 15.6718 18.9502 15.6718 18.236L15.6718 16.9949L16.8283 16.9943C17.5378 16.9943 18.0711 16.8122 18.4282 16.448C18.7854 16.0838 18.9639 15.5446 18.9639 14.8303V9.45929C18.9639 9.03358 18.9142 8.67173 18.8149 8.37373C18.7156 8.07573 18.5335 7.79193 18.2686 7.52231L14.9055 4.09535C14.6595 3.84465 14.3875 3.66609 14.0895 3.55967C13.7915 3.45324 13.4557 3.40002 13.082 3.40002H10.5349C9.83008 3.40002 9.29794 3.58213 8.93846 3.94635C8.57897 4.31057 8.39922 4.8498 8.39922 5.56405L8.39905 6.80672L7.23562 6.8057C6.53083 6.8057 5.9987 6.98781 5.63921 7.35203C5.27972 7.71625 5.09998 8.25548 5.09998 8.96972V18.236C5.09998 18.9502 5.27972 19.4895 5.63921 19.8537C5.9987 20.2179 6.53083 20.4 7.23562 20.4H13.5361ZM15.6718 13.0423C15.6718 12.5977 15.6316 12.2489 15.5512 11.9958C15.4708 11.7427 15.291 11.4743 15.0119 11.1905L11.3508 7.46554C11.0859 7.19593 10.8246 7.01855 10.5668 6.93341C10.3606 6.86529 10.1112 6.82443 9.8187 6.8108L9.61239 6.80672L9.61251 5.6279C9.61251 5.30152 9.69647 5.05319 9.86439 4.88291C10.0323 4.71262 10.2842 4.62748 10.62 4.62748H13.4936V7.92673C13.4936 8.33352 13.5964 8.63743 13.8022 8.83846C14.008 9.03949 14.3095 9.14 14.7068 9.14H17.7436V14.7736C17.7436 15.0952 17.6596 15.3424 17.4917 15.515C17.3238 15.6877 17.0719 15.774 16.7361 15.774L15.6718 15.7743L15.6718 13.0423ZM14.87 8.09704H17.4313L14.5436 5.16674V7.76357C14.5436 7.98589 14.6524 8.09704 14.87 8.09704ZM13.4439 19.1796H7.32078C6.98967 19.1796 6.74016 19.0933 6.57224 18.9207C6.40432 18.748 6.32036 18.5009 6.32036 18.1792V9.01937C6.32036 8.70245 6.4055 8.45885 6.57579 8.28857C6.74607 8.11829 6.99676 8.03314 7.32787 8.03314H9.44932V11.7865C9.44932 12.25 9.56285 12.593 9.78989 12.8153C10.0169 13.0376 10.3551 13.1488 10.8045 13.1488H14.4585V18.1792C14.4585 18.5009 14.3734 18.748 14.2031 18.9207C14.0328 19.0933 13.7797 19.1796 13.4439 19.1796ZM10.9322 12.0561H14.2598L10.5491 8.28144V11.6658C10.5491 11.803 10.5798 11.9023 10.6413 11.9638C10.7028 12.0253 10.7998 12.0561 10.9322 12.0561Z\"/>\n</svg>\n";
|
|
2
2
|
export default CopyIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const WrapIcon = "\n<svg
|
|
1
|
+
declare const WrapIcon = "\n<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18.4388 7.11504H5.55388C5.24779 7.11504 5 6.86726 5 6.55388C5 6.24779 5.24779 6 5.55388 6H18.4388C18.7522 6 19 6.24779 19 6.55388C19 6.86726 18.7449 7.11504 18.4388 7.11504ZM18.4388 10.7225H5.55388C5.24779 10.7225 5 10.4748 5 10.1687C5 9.86257 5.24779 9.61478 5.55388 9.61478H18.4388C18.7522 9.61478 19 9.85528 19 10.1687C19 10.4748 18.7449 10.7225 18.4388 10.7225ZM18.4388 14.3373H5.55388C5.24779 14.3373 5 14.0895 5 13.7834C5 13.4701 5.24779 13.2223 5.55388 13.2223H18.4388C18.7522 13.2223 19 13.4701 19 13.7834C19 14.0895 18.7449 14.3373 18.4388 14.3373ZM12.8855 17.9448H5.55388C5.24779 17.9448 5 17.697 5 17.3909C5 17.0849 5.24779 16.8371 5.55388 16.8371H12.8855C13.1989 16.8371 13.4466 17.0849 13.4466 17.3909C13.4466 17.7043 13.1989 17.9448 12.8855 17.9448ZM21 14.7344V16.3013C21 17.486 20.4268 18.0593 19.2357 18.0593L17.5159 18.0593V18.8555C17.5159 19.2631 17.1019 19.4351 16.7771 19.1803L15.2866 18.0211C14.9045 17.7217 14.9045 17.3459 15.2866 17.0465L16.7771 15.8809C17.1019 15.6262 17.5159 15.8045 17.5159 16.2121V17.0083H19.1847C19.6943 17.0083 19.9554 16.7535 19.9554 16.2121V14.7344C19.9554 14.365 20.1465 14.1548 20.4777 14.1484C20.8153 14.1421 21 14.365 21 14.7344Z\"/>\n</svg>\n";
|
|
2
2
|
export default WrapIcon;
|
|
@@ -203,7 +203,7 @@ export interface Block {
|
|
|
203
203
|
clearSelection: (editor: OnesEditor) => void;
|
|
204
204
|
getBlockProperties?: (editor: OnesEditor, block: BlockElement) => BlockProperties;
|
|
205
205
|
getOptions?: (editor: OnesEditor) => BlockOptions;
|
|
206
|
-
notify?: (editor: OnesEditor, command: string, params?: unknown) =>
|
|
206
|
+
notify?: (editor: OnesEditor, command: string, params?: unknown) => unknown | undefined;
|
|
207
207
|
handleBlockElementUpdated?: (editor: OnesEditor, block: BlockElement, blockData: DocBlock) => void;
|
|
208
208
|
handleContainerResized?: (editor: OnesEditor, block: BlockElement) => void;
|
|
209
209
|
handleDeleteBlock?: (editor: OnesEditor, block: BlockElement, local: boolean, options: DeleteBlockEventOptions) => void;
|
|
@@ -417,7 +417,7 @@ export declare class OnesEditorCustomDataWrapper<T> {
|
|
|
417
417
|
private editor;
|
|
418
418
|
private data;
|
|
419
419
|
constructor(editor: OnesEditor, data: T);
|
|
420
|
-
getData
|
|
420
|
+
getData(): T;
|
|
421
421
|
getEditor(): OnesEditor;
|
|
422
422
|
destroy(): void;
|
|
423
423
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
+
import { BlockResizer } from '../../../../@ones-editor/block-resizer';
|
|
3
|
+
export declare class EmbedBlockResizer {
|
|
4
|
+
private editor;
|
|
5
|
+
blockResizer: BlockResizer;
|
|
6
|
+
constructor(editor: OnesEditor);
|
|
7
|
+
handleResizing: (resizer: BlockResizer, rect: DOMRect) => void;
|
|
8
|
+
destroy(): void;
|
|
9
|
+
handleHoveringBlockChange: (block: BlockElement | null, old: BlockElement | null) => void;
|
|
10
|
+
tryEnableResizer(block: BlockElement): void;
|
|
11
|
+
disableResizer(): void;
|
|
12
|
+
static get(editor: OnesEditor): EmbedBlockResizer;
|
|
13
|
+
static register(editor: OnesEditor, block: BlockElement): EmbedBlockResizer;
|
|
14
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { OnesEditor } from 'packages/core/src';
|
|
2
|
+
import { ExcalidrawSvgMetadata } from '../types';
|
|
3
|
+
export declare function downloadDataFromUrl(url: string): Promise<ExcalidrawSvgMetadata | null>;
|
|
4
|
+
export declare function uploadSvg(editor: OnesEditor, svg: SVGSVGElement, metadata: ExcalidrawSvgMetadata): Promise<import("packages/core/src").UploadResourceResult>;
|