@ones-editor/editor 2.0.2 → 2.0.3
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/comments-list/mini-comment/mini-comments-list.d.ts +1 -1
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/apply-data-delta.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/doc.d.ts +21 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +172 -172
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../../../@ones-editor/core';
|
|
2
2
|
import { TypedEmitter } from 'tiny-typed-emitter';
|
|
3
|
-
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../../types';
|
|
3
|
+
import type { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../../types';
|
|
4
4
|
import { MiniGroupList } from './group-list';
|
|
5
5
|
interface MiniCommentsListEvents {
|
|
6
6
|
onMiniCommentClose: () => void;
|
|
@@ -33,6 +33,7 @@ export declare class EditorInput implements OnesEditorInput {
|
|
|
33
33
|
focus(): void;
|
|
34
34
|
isInDisableScrollMask(target: HTMLElement): boolean;
|
|
35
35
|
handleWindowBlur: () => void;
|
|
36
|
+
handleWindowFocus: () => void;
|
|
36
37
|
handleDocumentClick: (event: MouseEvent) => void;
|
|
37
38
|
handleDocumentSelectionChange: () => void;
|
|
38
39
|
handleEditorSelectionChanged: () => void;
|
|
@@ -23,11 +23,32 @@ export type DocBlockTextActions = DocBlockTextActionOp[];
|
|
|
23
23
|
export type DocBlockAttributes = {
|
|
24
24
|
[index: string]: unknown;
|
|
25
25
|
};
|
|
26
|
+
export type ExportDSpecText = {
|
|
27
|
+
type: 'text';
|
|
28
|
+
data: string;
|
|
29
|
+
};
|
|
30
|
+
export type ExportDSpecImage = {
|
|
31
|
+
type: 'image';
|
|
32
|
+
data: string;
|
|
33
|
+
};
|
|
34
|
+
export type ExportDSpecLink = {
|
|
35
|
+
type: 'link';
|
|
36
|
+
data: {
|
|
37
|
+
url: string;
|
|
38
|
+
title: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export type ExportDSpecBlock = {
|
|
42
|
+
type: 'block';
|
|
43
|
+
data: string[];
|
|
44
|
+
};
|
|
45
|
+
export type DocExportSpec = ExportDSpecText | ExportDSpecImage | ExportDSpecLink | ExportDSpecBlock;
|
|
26
46
|
export type DocBlock = {
|
|
27
47
|
type: string;
|
|
28
48
|
id: string;
|
|
29
49
|
text?: DocBlockText;
|
|
30
50
|
children?: string[];
|
|
51
|
+
exportSpec?: DocExportSpec[];
|
|
31
52
|
} & DocBlockAttributes;
|
|
32
53
|
export type DocEmbedData = {
|
|
33
54
|
[index: string]: unknown;
|