@ones-editor/editor 2.1.1-beta.1 → 2.1.1-beta.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-helper/old-version-comment.d.ts +5 -6
- package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +2 -1
- package/@ones-editor/core/src/core/doc/doc.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +87 -42
- package/package.json +1 -1
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { DocObject,
|
|
1
|
+
import { DocObject, OnesEditor, OnesEditorComment, OnesEditorDocRange, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
export interface AddCommentToOldVersionBody {
|
|
3
3
|
avatarUrl: string;
|
|
4
4
|
containerId: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
endOffset: number;
|
|
5
|
+
rangeType: 'simple' | 'complex';
|
|
6
|
+
range: OnesEditorDocRange;
|
|
7
|
+
selectedContainers: string[];
|
|
9
8
|
commentId?: string;
|
|
10
9
|
commentGroupId?: string;
|
|
11
10
|
comment: DocObject;
|
|
12
11
|
abstract?: string;
|
|
13
12
|
}
|
|
14
|
-
export declare function addCommentToOldVersion(editor: OnesEditor, version: number, range:
|
|
13
|
+
export declare function addCommentToOldVersion(editor: OnesEditor, version: number, range: SelectionRange, comment: OnesEditorComment, commentDoc: DocObject): Promise<void>;
|
|
15
14
|
export declare function replyCommentToOldVersion(editor: OnesEditor, version: number, comment: OnesEditorComment, commentDoc: DocObject): Promise<unknown>;
|
|
16
15
|
export declare function updateCommentToOldDoc(editor: OnesEditor, version: number, commentId: string, commentDoc: DocObject): Promise<unknown>;
|
|
17
16
|
export declare function deleteCommentFromOldDoc(editor: OnesEditor, version: number, commentId: string): Promise<unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnesEditor, BlockElement, BlockPosition, ContainerElement, ComplexBlockPosition, GetChildContainerOptions } from '../../types';
|
|
1
|
+
import { OnesEditor, BlockElement, BlockPosition, ContainerElement, ComplexBlockPosition, GetChildContainerOptions, ComplexSelectionRange } from '../../types';
|
|
2
2
|
export declare function complexBlockGetAllChildContainers(editor: OnesEditor, block: BlockElement, options?: GetChildContainerOptions): ContainerElement[];
|
|
3
3
|
export declare function complexBlockGetSelectedContainers(editor: OnesEditor, block: BlockElement, start: BlockPosition, end: BlockPosition): ContainerElement[];
|
|
4
4
|
export declare function isFirstChildBlockInComplexBlock(editor: OnesEditor, childBlock: BlockElement): boolean;
|
|
@@ -13,3 +13,4 @@ export declare function complexBlockAdjustSelectionPos(editor: OnesEditor, compl
|
|
|
13
13
|
anchor: ComplexBlockPosition;
|
|
14
14
|
focus: ComplexBlockPosition;
|
|
15
15
|
};
|
|
16
|
+
export declare function isFullSelectedOneComplexBlock(editor: OnesEditor, complexRange?: ComplexSelectionRange): boolean;
|
|
@@ -110,10 +110,12 @@ export interface OnesEditorDocComplexBlockPos {
|
|
|
110
110
|
}
|
|
111
111
|
export type OnesEditorDocBlockPos = OnesEditorDocSimpleBlockPos | OnesEditorDocComplexBlockPos;
|
|
112
112
|
export interface OnesEditorDocSimpleRange {
|
|
113
|
+
reverse?: boolean;
|
|
113
114
|
anchor: OnesEditorDocSimpleBlockPos;
|
|
114
115
|
focus: OnesEditorDocSimpleBlockPos;
|
|
115
116
|
}
|
|
116
117
|
export interface OnesEditorDocComplexRange {
|
|
118
|
+
reverse?: boolean;
|
|
117
119
|
anchor: OnesEditorDocComplexBlockPos;
|
|
118
120
|
focus: OnesEditorDocComplexBlockPos;
|
|
119
121
|
}
|