@ones-editor/editor 0.0.3-beta.29 → 0.0.3-beta.32
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/comment-item/comment-item.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/group-item.d.ts +1 -0
- package/@ones-editor/comments/src/types.d.ts +0 -2
- package/@ones-editor/core/src/core/types.d.ts +1 -0
- package/@ones-editor/image-embed/src/empty-image-converter.d.ts +5 -0
- package/@ones-editor/image-embed/src/index.d.ts +2 -1
- package/@ones-editor/input-handlers/src/markdown-shortcuts/table-converter.d.ts +2 -0
- package/@ones-editor/mathjax/package.json +3 -0
- package/@ones-editor/mathjax/src/index.d.ts +2 -1
- package/@ones-editor/mathjax/src/mathjax-box/convert-mathjax.d.ts +5 -0
- package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +2 -2
- package/@ones-editor/sharedb-doc/src/index.d.ts +1 -0
- package/@ones-editor/templates/src/templates/select-template.d.ts +0 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/auto-suggest/should-focus-to-editor.d.ts +2 -0
- package/dist/comments/create-comment-editor.d.ts +4 -7
- package/dist/comments/local-doc-comments-provider.d.ts +18 -0
- package/dist/comments/{comments-provider.d.ts → sharedb-doc-comments-provider.d.ts} +3 -6
- package/dist/index.js +152 -152
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ export declare class CommentGroupItem extends TypedEmitter<CommentGroupItemEvent
|
|
|
33
33
|
handleUpdateChildComment(comment: OnesEditorComment): void;
|
|
34
34
|
handleUpdateMainComment(comment: OnesEditorComment): void;
|
|
35
35
|
deleteMainComment(commentId: OnesEditorComment['id']): void;
|
|
36
|
+
handleReadonlyChanged: (editor: OnesEditor) => void;
|
|
36
37
|
edit(): void;
|
|
37
38
|
destroy(): void;
|
|
38
39
|
private handleResize;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocObject, LocalDoc, OnesEditor, OnesEditorComment } from '../../../@ones-editor/core';
|
|
2
|
-
import { AuthMessage } from '../../../@ones-editor/sharedb-doc';
|
|
3
2
|
export type CommentData = {
|
|
4
3
|
[p in string]: unknown;
|
|
5
4
|
};
|
|
@@ -25,7 +24,6 @@ export interface OnesEditorCommentsEvents {
|
|
|
25
24
|
onUpdateComment: (commentId: string, local: boolean) => void;
|
|
26
25
|
}
|
|
27
26
|
export interface OnesEditorCommentsProvider {
|
|
28
|
-
getAuth: () => AuthMessage;
|
|
29
27
|
getComments: () => OnesEditorComment[];
|
|
30
28
|
getComment: (id: string) => OnesEditorComment;
|
|
31
29
|
getCommentDoc: (commentId: string) => DocObject;
|
|
@@ -593,6 +593,7 @@ export interface OnesEditorBlocks {
|
|
|
593
593
|
getBlockClass: (type: string) => Block;
|
|
594
594
|
createBlock: (path: BlockPath, container: ContainerElement, block: DocBlock) => BlockElement;
|
|
595
595
|
forEach: (callback: (blockClass: Block) => void) => void;
|
|
596
|
+
hasBlock: (type: string) => boolean;
|
|
596
597
|
}
|
|
597
598
|
export interface OnesEditorEmbeds {
|
|
598
599
|
registerEmbedClass: (embedClass: Embed) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OnesEditor, OnesEditorInputHandler } from '../../../@ones-editor/core';
|
|
2
|
+
declare class EmptyImageConverterInputHandler implements OnesEditorInputHandler {
|
|
3
|
+
handleAfterInsertText(editor: OnesEditor, containerId: string, blockIndex: number, offset: number, text: string): boolean;
|
|
4
|
+
}
|
|
5
|
+
export default EmptyImageConverterInputHandler;
|
|
@@ -2,8 +2,9 @@ import { Embed } from '../../../@ones-editor/core';
|
|
|
2
2
|
import { ImageObject } from './image-object';
|
|
3
3
|
import './image-embed-style.scss';
|
|
4
4
|
import './locale';
|
|
5
|
+
import EmptyImageConverterInputHandler from './empty-image-converter';
|
|
5
6
|
export * from './shortcuts';
|
|
6
7
|
export * from './types';
|
|
7
8
|
export { ImageObject };
|
|
8
9
|
declare const ImageEmbed: Embed;
|
|
9
|
-
export { ImageEmbed };
|
|
10
|
+
export { ImageEmbed, EmptyImageConverterInputHandler };
|
|
@@ -3,4 +3,5 @@ import { createEmptyMathjaxBox, editMathjaxBox } from './mathjax-box/mathjax-box
|
|
|
3
3
|
import MathjaxEmbed from './mathjax-embed';
|
|
4
4
|
import './mathjax-style.scss';
|
|
5
5
|
import './locale';
|
|
6
|
-
|
|
6
|
+
import ConvertEmptyMathjaxBoxInputHandler from './mathjax-box/convert-mathjax';
|
|
7
|
+
export { MathjaxBox, MathjaxEmbed, createEmptyMathjaxBox, editMathjaxBox, ConvertEmptyMathjaxBoxInputHandler, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OnesEditor, OnesEditorInputHandler } from '../../../../@ones-editor/core';
|
|
2
|
+
declare class ConvertEmptyMathjaxBoxInputHandler implements OnesEditorInputHandler {
|
|
3
|
+
handleAfterInsertText(editor: OnesEditor, containerId: string, blockIndex: number, offset: number, text: string): boolean;
|
|
4
|
+
}
|
|
5
|
+
export default ConvertEmptyMathjaxBoxInputHandler;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
-
export type
|
|
3
|
-
export declare function editMathjax(editor: OnesEditor, elem: HTMLElement, tex: string,
|
|
2
|
+
export type OnEditChange = (tex: string) => void;
|
|
3
|
+
export declare function editMathjax(editor: OnesEditor, elem: HTMLElement, tex: string, onChange: OnEditChange): void;
|