@ones-editor/editor 1.1.25 → 1.1.27
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/doc/apply-data-delta.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/doc.d.ts +21 -0
- package/@ones-editor/find-dialog/src/shortcuts.d.ts +2 -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;
|
|
@@ -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;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../@ones-editor/core';
|
|
2
2
|
import './locale';
|
|
3
3
|
export declare function handleFindReplace(editor: OnesEditor): boolean;
|
|
4
|
+
declare function handleReplaceAndFind(editor: OnesEditor): boolean;
|
|
4
5
|
declare const FindReplaceShortcuts: {
|
|
5
6
|
'CtrlOrCmd+F': typeof handleFindReplace;
|
|
7
|
+
'CtrlOrCmd+Shift+H': typeof handleReplaceAndFind;
|
|
6
8
|
};
|
|
7
9
|
export { FindReplaceShortcuts, };
|