@ones-editor/editor 0.0.3-beta.33 → 0.0.3-beta.34
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/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 +1 -0
- 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 +4 -5
- package/@ones-editor/core/src/core/doc/doc.d.ts +6 -2
- 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 +4 -3
- package/@ones-editor/core/src/core/selection/editor-selection.d.ts +2 -2
- package/@ones-editor/core/src/core/types.d.ts +9 -7
- package/@ones-editor/core/src/i18n/i18n.d.ts +36 -0
- package/@ones-editor/core/src/local-doc/index.d.ts +2 -6
- package/@ones-editor/core/src/utils/logger/index.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/enforce-with-document-title/types.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
- 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/scroll-container/src/index.d.ts +6 -18
- 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 +6 -1
- package/@ones-editor/sharedb-doc/src/index.d.ts +1 -0
- package/@ones-editor/sharedb-doc/src/types.d.ts +3 -2
- package/@ones-editor/templates/src/templates/select-template.d.ts +0 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/tooltips/index.d.ts +4 -0
- package/@ones-editor/ui-base/src/auto-suggest/should-focus-to-editor.d.ts +2 -0
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +1 -0
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +5 -0
- package/@ones-editor/ui-base/src/dialog/index.d.ts +1 -0
- package/@ones-editor/ui-base/src/dialog/types.d.ts +4 -0
- package/@ones-editor/versions/src/types.d.ts +1 -0
- package/@ones-editor/versions/src/version-dialog/index.d.ts +3 -1
- 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.d.ts +6 -5
- package/dist/index.js +158 -160
- package/dist/lang/en-us.d.ts +13 -0
- package/dist/lang/index.d.ts +1 -0
- package/dist/lang/zh-cn.d.ts +13 -0
- package/dist/types.d.ts +13 -3
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Embed, OnesEditor, OnesEditorUser, OnesEditorUserPermission } from '../@ones-editor/core';
|
|
1
|
+
import { Embed, i18n, 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,6 +10,7 @@ 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';
|
|
13
14
|
export interface RemoteCaretsOptions {
|
|
14
15
|
onUserChanged?: (editor: OnesEditor, users: OnesEditorUser[]) => void;
|
|
15
16
|
}
|
|
@@ -27,6 +28,8 @@ export type EditorComponentOptions = {
|
|
|
27
28
|
quickMenu?: QuickMenuOptions;
|
|
28
29
|
templates?: TemplateOptions;
|
|
29
30
|
custom?: Record<string, unknown>;
|
|
31
|
+
popover?: PopoverOptions;
|
|
32
|
+
findDialog?: FindDialogOptions;
|
|
30
33
|
};
|
|
31
34
|
export interface CreateOnesEditorOptions {
|
|
32
35
|
id?: string;
|
|
@@ -35,11 +38,16 @@ export interface CreateOnesEditorOptions {
|
|
|
35
38
|
docId: string;
|
|
36
39
|
permission: OnesEditorUserPermission;
|
|
37
40
|
token: string;
|
|
41
|
+
disableLogout?: boolean;
|
|
42
|
+
enableComments?: boolean;
|
|
43
|
+
scrollContainer?: HTMLElement;
|
|
44
|
+
lang?: i18n.LANGS;
|
|
45
|
+
onReauth?: (userId: string, docId: string, permission: OnesEditorUserPermission) => Promise<string>;
|
|
38
46
|
user: {
|
|
39
47
|
userId: string;
|
|
40
48
|
displayName: string;
|
|
41
49
|
avatarUrl: string;
|
|
42
|
-
rainbowIndex
|
|
50
|
+
rainbowIndex?: number;
|
|
43
51
|
};
|
|
44
52
|
components?: {
|
|
45
53
|
embeds?: Embed[];
|
|
@@ -48,9 +56,11 @@ export interface CreateOnesEditorOptions {
|
|
|
48
56
|
}
|
|
49
57
|
export interface CreateLocalEditorOptions {
|
|
50
58
|
id?: string;
|
|
59
|
+
lang?: i18n.LANGS;
|
|
60
|
+
scrollContainer?: HTMLElement;
|
|
51
61
|
components?: {
|
|
52
62
|
embeds?: Embed[];
|
|
53
63
|
};
|
|
54
|
-
|
|
64
|
+
enableComments?: boolean;
|
|
55
65
|
componentsOptions?: EditorComponentOptions;
|
|
56
66
|
}
|