@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.
Files changed (55) hide show
  1. package/@ones-editor/comments/src/comment-item/comment-item.d.ts +1 -0
  2. package/@ones-editor/comments/src/comments/comments.d.ts +2 -2
  3. package/@ones-editor/comments/src/comments-list/comments-list.d.ts +2 -2
  4. package/@ones-editor/comments/src/comments-list/group-item.d.ts +1 -0
  5. package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -1
  6. package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +2 -2
  7. package/@ones-editor/comments/src/types.d.ts +4 -5
  8. package/@ones-editor/core/src/core/doc/doc.d.ts +6 -2
  9. package/@ones-editor/core/src/core/editor/actions/auto-insert-block.d.ts +2 -2
  10. package/@ones-editor/core/src/core/editor/actions/delete-block-text.d.ts +2 -2
  11. package/@ones-editor/core/src/core/editor/actions/insert-block.d.ts +2 -2
  12. package/@ones-editor/core/src/core/editor/actions/insert-text.d.ts +2 -2
  13. package/@ones-editor/core/src/core/editor/editor-dom/dom-events.d.ts +1 -1
  14. package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +4 -3
  15. package/@ones-editor/core/src/core/selection/editor-selection.d.ts +2 -2
  16. package/@ones-editor/core/src/core/types.d.ts +9 -7
  17. package/@ones-editor/core/src/i18n/i18n.d.ts +36 -0
  18. package/@ones-editor/core/src/local-doc/index.d.ts +2 -6
  19. package/@ones-editor/core/src/utils/logger/index.d.ts +1 -0
  20. package/@ones-editor/image-embed/src/empty-image-converter.d.ts +5 -0
  21. package/@ones-editor/image-embed/src/index.d.ts +2 -1
  22. package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +1 -0
  23. package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +1 -0
  24. package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
  25. package/@ones-editor/input-handlers/src/markdown-shortcuts/table-converter.d.ts +2 -0
  26. package/@ones-editor/mathjax/package.json +3 -0
  27. package/@ones-editor/mathjax/src/index.d.ts +2 -1
  28. package/@ones-editor/mathjax/src/mathjax-box/convert-mathjax.d.ts +5 -0
  29. package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +2 -2
  30. package/@ones-editor/scroll-container/src/index.d.ts +6 -18
  31. package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +3 -3
  32. package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +3 -3
  33. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +6 -1
  34. package/@ones-editor/sharedb-doc/src/index.d.ts +1 -0
  35. package/@ones-editor/sharedb-doc/src/types.d.ts +3 -2
  36. package/@ones-editor/templates/src/templates/select-template.d.ts +0 -1
  37. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  38. package/@ones-editor/ui/src/tooltips/index.d.ts +4 -0
  39. package/@ones-editor/ui-base/src/auto-suggest/should-focus-to-editor.d.ts +2 -0
  40. package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +1 -0
  41. package/@ones-editor/ui-base/src/command-bar/types.d.ts +5 -0
  42. package/@ones-editor/ui-base/src/dialog/index.d.ts +1 -0
  43. package/@ones-editor/ui-base/src/dialog/types.d.ts +4 -0
  44. package/@ones-editor/versions/src/types.d.ts +1 -0
  45. package/@ones-editor/versions/src/version-dialog/index.d.ts +3 -1
  46. package/dist/comments/create-comment-editor.d.ts +4 -7
  47. package/dist/comments/local-doc-comments-provider.d.ts +18 -0
  48. package/dist/comments/{comments-provider.d.ts → sharedb-doc-comments-provider.d.ts} +3 -6
  49. package/dist/index.d.ts +6 -5
  50. package/dist/index.js +158 -160
  51. package/dist/lang/en-us.d.ts +13 -0
  52. package/dist/lang/index.d.ts +1 -0
  53. package/dist/lang/zh-cn.d.ts +13 -0
  54. package/dist/types.d.ts +13 -3
  55. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ placeholder: {
3
+ common: {
4
+ title: string;
5
+ readonlyTitle: string;
6
+ content: string;
7
+ };
8
+ local: {
9
+ readonlyTitle: string;
10
+ };
11
+ };
12
+ };
13
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ placeholder: {
3
+ common: {
4
+ title: string;
5
+ readonlyTitle: string;
6
+ content: string;
7
+ };
8
+ local: {
9
+ readonlyTitle: string;
10
+ };
11
+ };
12
+ };
13
+ export default _default;
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: number;
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
- serverUrl?: string;
64
+ enableComments?: boolean;
55
65
  componentsOptions?: EditorComponentOptions;
56
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "0.0.3-beta.33",
3
+ "version": "0.0.3-beta.34",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",