@ones-editor/editor 0.0.3-beta.32 → 0.0.3-beta.33
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 +0 -1
- package/@ones-editor/comments/src/comments/comments.d.ts +2 -2
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +2 -2
- package/@ones-editor/comments/src/comments-list/group-item.d.ts +0 -1
- package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +2 -2
- package/@ones-editor/comments/src/types.d.ts +5 -4
- package/@ones-editor/core/src/core/doc/doc.d.ts +2 -6
- package/@ones-editor/core/src/core/editor/actions/auto-insert-block.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/delete-block-text.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/insert-block.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/actions/insert-text.d.ts +2 -2
- package/@ones-editor/core/src/core/editor/editor-dom/dom-events.d.ts +1 -1
- package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +3 -4
- package/@ones-editor/core/src/core/selection/editor-selection.d.ts +2 -2
- package/@ones-editor/core/src/core/types.d.ts +7 -9
- package/@ones-editor/core/src/i18n/i18n.d.ts +0 -36
- package/@ones-editor/core/src/local-doc/index.d.ts +6 -2
- package/@ones-editor/core/src/utils/logger/index.d.ts +0 -1
- package/@ones-editor/image-embed/src/index.d.ts +1 -2
- package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +0 -1
- package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +0 -1
- package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +0 -1
- package/@ones-editor/mathjax/package.json +0 -3
- package/@ones-editor/mathjax/src/index.d.ts +1 -2
- package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +2 -2
- package/@ones-editor/scroll-container/src/index.d.ts +18 -6
- package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +3 -3
- package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +3 -3
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +1 -6
- package/@ones-editor/sharedb-doc/src/index.d.ts +0 -1
- package/@ones-editor/sharedb-doc/src/types.d.ts +2 -3
- package/@ones-editor/templates/src/templates/select-template.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/tooltips/index.d.ts +0 -4
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +0 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +0 -5
- package/@ones-editor/ui-base/src/dialog/index.d.ts +0 -1
- package/@ones-editor/versions/src/types.d.ts +0 -1
- package/@ones-editor/versions/src/version-dialog/index.d.ts +1 -3
- package/dist/comments/{sharedb-doc-comments-provider.d.ts → comments-provider.d.ts} +6 -3
- package/dist/comments/create-comment-editor.d.ts +7 -4
- package/dist/index.d.ts +5 -6
- package/dist/index.js +160 -158
- package/dist/types.d.ts +3 -11
- package/package.json +1 -1
- package/@ones-editor/image-embed/src/empty-image-converter.d.ts +0 -5
- package/@ones-editor/input-handlers/src/markdown-shortcuts/table-converter.d.ts +0 -2
- package/@ones-editor/mathjax/src/mathjax-box/convert-mathjax.d.ts +0 -5
- package/@ones-editor/ui-base/src/auto-suggest/should-focus-to-editor.d.ts +0 -2
- package/@ones-editor/ui-base/src/dialog/types.d.ts +0 -4
- package/dist/comments/local-doc-comments-provider.d.ts +0 -18
- package/dist/lang/en-us.d.ts +0 -13
- package/dist/lang/index.d.ts +0 -1
- package/dist/lang/zh-cn.d.ts +0 -13
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Embed,
|
|
1
|
+
import { Embed, OnesEditor, OnesEditorUser, OnesEditorUserPermission } from '../@ones-editor/core';
|
|
2
2
|
import { DrawIoOptions } from '../@ones-editor/drawio-embed';
|
|
3
3
|
import { MermaidEmbedOptions } from '../@ones-editor/graph-embed';
|
|
4
4
|
import { ImageOptions } from '../@ones-editor/image-embed';
|
|
@@ -10,7 +10,6 @@ import { OnesEditorCommentOptions } from '../@ones-editor/comments';
|
|
|
10
10
|
import { ListOptions } from '../@ones-editor/list-block';
|
|
11
11
|
import { QuickMenuOptions } from '../@ones-editor/ui/src/quick-menu';
|
|
12
12
|
import { TemplateOptions } from '../@ones-editor/templates';
|
|
13
|
-
import { FindDialogOptions, PopoverOptions } from '../@ones-editor/ui-base';
|
|
14
13
|
export interface RemoteCaretsOptions {
|
|
15
14
|
onUserChanged?: (editor: OnesEditor, users: OnesEditorUser[]) => void;
|
|
16
15
|
}
|
|
@@ -28,8 +27,6 @@ export type EditorComponentOptions = {
|
|
|
28
27
|
quickMenu?: QuickMenuOptions;
|
|
29
28
|
templates?: TemplateOptions;
|
|
30
29
|
custom?: Record<string, unknown>;
|
|
31
|
-
popover?: PopoverOptions;
|
|
32
|
-
findDialog?: FindDialogOptions;
|
|
33
30
|
};
|
|
34
31
|
export interface CreateOnesEditorOptions {
|
|
35
32
|
id?: string;
|
|
@@ -38,15 +35,11 @@ export interface CreateOnesEditorOptions {
|
|
|
38
35
|
docId: string;
|
|
39
36
|
permission: OnesEditorUserPermission;
|
|
40
37
|
token: string;
|
|
41
|
-
disableLogout?: boolean;
|
|
42
|
-
enableComments?: boolean;
|
|
43
|
-
lang?: i18n.LANGS;
|
|
44
|
-
onReauth?: (userId: string, docId: string, permission: OnesEditorUserPermission) => Promise<string>;
|
|
45
38
|
user: {
|
|
46
39
|
userId: string;
|
|
47
40
|
displayName: string;
|
|
48
41
|
avatarUrl: string;
|
|
49
|
-
rainbowIndex
|
|
42
|
+
rainbowIndex: number;
|
|
50
43
|
};
|
|
51
44
|
components?: {
|
|
52
45
|
embeds?: Embed[];
|
|
@@ -55,10 +48,9 @@ export interface CreateOnesEditorOptions {
|
|
|
55
48
|
}
|
|
56
49
|
export interface CreateLocalEditorOptions {
|
|
57
50
|
id?: string;
|
|
58
|
-
lang?: i18n.LANGS;
|
|
59
51
|
components?: {
|
|
60
52
|
embeds?: Embed[];
|
|
61
53
|
};
|
|
62
|
-
|
|
54
|
+
serverUrl?: string;
|
|
63
55
|
componentsOptions?: EditorComponentOptions;
|
|
64
56
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1,5 +0,0 @@
|
|
|
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,18 +0,0 @@
|
|
|
1
|
-
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../../@ones-editor/comments';
|
|
2
|
-
import { DocObject, LocalDoc, OnesEditor, OnesEditorComment, OnesEditorDoc } from '../../@ones-editor/core';
|
|
3
|
-
export default class LocalDocCommentsProvider implements OnesEditorCommentsProvider {
|
|
4
|
-
private editor;
|
|
5
|
-
private localDoc;
|
|
6
|
-
private listeners;
|
|
7
|
-
constructor(editor: OnesEditor, localDoc: OnesEditorDoc);
|
|
8
|
-
get doc(): DocObject;
|
|
9
|
-
getComments(): OnesEditorComment[];
|
|
10
|
-
getComment(commentId: string): OnesEditorComment;
|
|
11
|
-
getCommentDoc(commentId: string): DocObject;
|
|
12
|
-
addListener(callback: OnesEditorCommentsEvents): void;
|
|
13
|
-
removeListener(callback: OnesEditorCommentsEvents): void;
|
|
14
|
-
localCreateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
15
|
-
localDeleteComment(commentId: string): void;
|
|
16
|
-
localUpdateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
17
|
-
createCommentEditor(parent: HTMLElement, childDoc: LocalDoc): OnesEditor;
|
|
18
|
-
}
|
package/dist/lang/en-us.d.ts
DELETED
package/dist/lang/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|