@ones-editor/editor 2.8.28-beta.1 → 2.8.31

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 (79) hide show
  1. package/@ones-editor/block-locker/src/i18n/zh-hant-hk.d.ts +8 -0
  2. package/@ones-editor/block-menu/src/locale/zh-hant-hk.d.ts +25 -0
  3. package/@ones-editor/callout-block/src/locale/zh-hant-hk.d.ts +15 -0
  4. package/@ones-editor/code-block/src/locale/zh-hant-hk.d.ts +13 -0
  5. package/@ones-editor/comments/src/comments/comments.d.ts +0 -4
  6. package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +1 -3
  7. package/@ones-editor/comments/src/comments-helper/get-comment-from-selection.d.ts +0 -3
  8. package/@ones-editor/comments/src/comments-helper/get-comments-from-doc.d.ts +1 -5
  9. package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +1 -2
  10. package/@ones-editor/comments/src/comments-list/comments-list.d.ts +1 -11
  11. package/@ones-editor/comments/src/comments-list/group-item.d.ts +0 -2
  12. package/@ones-editor/comments/src/comments-list/group-list.d.ts +2 -7
  13. package/@ones-editor/comments/src/comments-list/handler.d.ts +1 -2
  14. package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -1
  15. package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +0 -1
  16. package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +0 -1
  17. package/@ones-editor/comments/src/comments-render/index.d.ts +1 -10
  18. package/@ones-editor/comments/src/constant/index.d.ts +1 -2
  19. package/@ones-editor/comments/src/index.d.ts +0 -1
  20. package/@ones-editor/comments/src/locale/en-us.d.ts +0 -7
  21. package/@ones-editor/comments/src/locale/ja-jp.d.ts +0 -7
  22. package/@ones-editor/comments/src/locale/zh-cn.d.ts +0 -7
  23. package/@ones-editor/comments/src/locale/zh-hant-hk.d.ts +24 -0
  24. package/@ones-editor/comments/src/types.d.ts +1 -6
  25. package/@ones-editor/context-menu/src/locale/zh-hant-hk.d.ts +14 -0
  26. package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +0 -1
  27. package/@ones-editor/core/src/core/composition/editor-input.d.ts +0 -2
  28. package/@ones-editor/core/src/core/doc/doc.d.ts +0 -9
  29. package/@ones-editor/core/src/core/types.d.ts +0 -3
  30. package/@ones-editor/core/src/i18n/i18n.d.ts +21 -1
  31. package/@ones-editor/core/src/i18n/zh-hant-hk.d.ts +21 -0
  32. package/@ones-editor/core/src/local-doc/index.d.ts +0 -1
  33. package/@ones-editor/dividing-line-embed/src/i18n/zh-hant-hk.d.ts +7 -0
  34. package/@ones-editor/drawio-embed/src/lang/zh-hant-hk.d.ts +19 -0
  35. package/@ones-editor/drawio-embed/types/index.d.ts +1 -1
  36. package/@ones-editor/embed-block-helper/src/locale/zh-hant-hk.d.ts +7 -0
  37. package/@ones-editor/exclusive-block/src/locale/zh-hant-hk.d.ts +7 -0
  38. package/@ones-editor/file/src/locale/zh-hant-hk.d.ts +15 -0
  39. package/@ones-editor/find-dialog/src/locale/zh-hant-hk.d.ts +13 -0
  40. package/@ones-editor/graph-embed/src/lang/zh-hant-hk.d.ts +18 -0
  41. package/@ones-editor/heading-collapse/src/locale/zh-hant-hk.d.ts +7 -0
  42. package/@ones-editor/image-embed/src/locale/zh-hant-hk.d.ts +17 -0
  43. package/@ones-editor/input-handlers/src/i18n/zh-hant-hk.d.ts +13 -0
  44. package/@ones-editor/layout-block/src/locale/zh-hant-hk.d.ts +10 -0
  45. package/@ones-editor/list-block/src/lang/zh-hant-hk.d.ts +21 -0
  46. package/@ones-editor/main-toolbar/src/locale/zh-hant-hk.d.ts +15 -0
  47. package/@ones-editor/mathjax/src/locale/zh-hant-hk.d.ts +7 -0
  48. package/@ones-editor/media-embed/src/locale/zh-hant-hk.d.ts +20 -0
  49. package/@ones-editor/mention/src/locale/zh-hant-hk.d.ts +9 -0
  50. package/@ones-editor/misc/src/re-auth/locale/zh-hant-hk.d.ts +7 -0
  51. package/@ones-editor/mobile-helper/src/locale/zh-hant-hk.d.ts +9 -0
  52. package/@ones-editor/paste-special/src/locale/zh-hant-hk.d.ts +8 -0
  53. package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +1 -2
  54. package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +1 -2
  55. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +1 -3
  56. package/@ones-editor/sharedb-doc/src/types.d.ts +0 -1
  57. package/@ones-editor/status/src/locale/zh-hant-hk.d.ts +25 -0
  58. package/@ones-editor/table-block/src/locale/zh-hant-hk.d.ts +33 -0
  59. package/@ones-editor/templates/src/locale/zh-hant-hk.d.ts +9 -0
  60. package/@ones-editor/toc/src/locale/zh-hant-hk.d.ts +8 -0
  61. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  62. package/@ones-editor/ui/src/locale/zh-hant-hk.d.ts +60 -0
  63. package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +0 -1
  64. package/@ones-editor/ui-base/src/icons/index.d.ts +1 -2
  65. package/@ones-editor/ui-base/src/locale/zh-hant-hk.d.ts +39 -0
  66. package/@ones-editor/versions/src/locale/zh-hant-hk.d.ts +45 -0
  67. package/@ones-editor/versions/src/version-dialog/history-handler.d.ts +0 -1
  68. package/@ones-editor/webpage-embed/src/locale/zh-hant-hk.d.ts +27 -0
  69. package/dist/comments/local-doc-comments-provider.d.ts +1 -2
  70. package/dist/comments/sharedb-doc-comments-provider.d.ts +1 -3
  71. package/dist/index.d.ts +0 -2
  72. package/dist/index.js +768 -878
  73. package/dist/lang/zh-hant-hk.d.ts +31 -0
  74. package/dist/types.d.ts +0 -2
  75. package/package.json +1 -1
  76. package/@ones-editor/comments/src/comments-render/get-block-comments.d.ts +0 -5
  77. package/@ones-editor/comments/src/resolved-comments/index.d.ts +0 -4
  78. package/@ones-editor/comments/src/resolved-comments/resolved-comment-editor.d.ts +0 -14
  79. package/@ones-editor/comments/src/resolved-comments/resolved-comment-list.d.ts +0 -4
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ find: {
3
+ findLabel: string;
4
+ replaceLabel: string;
5
+ findButton: string;
6
+ replaceButton: string;
7
+ replaceAllButton: string;
8
+ moreButton: string;
9
+ findPlaceholder: string;
10
+ replacePlaceholder: string;
11
+ };
12
+ };
13
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ graph: {
3
+ empty: string;
4
+ readonlyEmpty: string;
5
+ errorTips: string;
6
+ help: string;
7
+ plantuml: string;
8
+ mermaid: string;
9
+ flowchart: string;
10
+ command: {
11
+ name: string;
12
+ bothShow: string;
13
+ codeShow: string;
14
+ drawShow: string;
15
+ };
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ expandCollapseButton: {
3
+ expand: string;
4
+ collapse: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ image: {
3
+ title: string;
4
+ upload: {
5
+ failed: string;
6
+ };
7
+ load: {
8
+ failed: string;
9
+ remote: {
10
+ failed: string;
11
+ tooltip: string;
12
+ };
13
+ };
14
+ abstract: string;
15
+ };
16
+ };
17
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ placeholder: {
3
+ default: string;
4
+ heading: string;
5
+ list: string;
6
+ mention: string;
7
+ mobileMention: string;
8
+ quote: string;
9
+ title: string;
10
+ mobileDefault: string;
11
+ };
12
+ };
13
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ layout: {
3
+ title: string;
4
+ columnDrag: string;
5
+ insertColumn: string;
6
+ selectColumn: string;
7
+ currentCols: string;
8
+ };
9
+ };
10
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ list: {
3
+ confirm: string;
4
+ setStart: string;
5
+ continueList: string;
6
+ restartList: string;
7
+ changeNumber: string;
8
+ numberLabel: string;
9
+ mention: {
10
+ tooltip: string;
11
+ };
12
+ };
13
+ mindmap: {
14
+ viewAsMindMap: string;
15
+ autoFit: string;
16
+ fullScreen: string;
17
+ close: string;
18
+ exitFullscreen: string;
19
+ };
20
+ };
21
+ export default _default;
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ toolbar: {
3
+ undo: string;
4
+ redo: string;
5
+ insert: string;
6
+ findReplace: string;
7
+ image: string;
8
+ link: string;
9
+ quote: string;
10
+ checkList: string;
11
+ orderedList: string;
12
+ unorderedList: string;
13
+ };
14
+ };
15
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ mathjax: {
3
+ emptyText: string;
4
+ abstract: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ media: {
3
+ upload: {
4
+ failed: string;
5
+ maxSizeFailed: string;
6
+ };
7
+ load: {
8
+ failed: string;
9
+ };
10
+ audio: {
11
+ menuItem: string;
12
+ abstract: string;
13
+ };
14
+ video: {
15
+ menuItem: string;
16
+ abstract: string;
17
+ };
18
+ };
19
+ };
20
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ mention: {
3
+ abstract: string;
4
+ placeholder: string;
5
+ noResult: string;
6
+ header: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ authError: {
3
+ tips: string;
4
+ successTips: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ mobile: {
3
+ insert: string;
4
+ commands: {
5
+ select: string;
6
+ };
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ pasteSpecial: {
3
+ originFormats: string;
4
+ plainText: string;
5
+ markdown: string;
6
+ };
7
+ };
8
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { DocBlocks, DocCommentResolver, DocObject, OnesEditorComment } from '../../../../@ones-editor/core';
1
+ import { DocBlocks, DocObject, OnesEditorComment } from '../../../../@ones-editor/core';
2
2
  export interface ShareDBDocCommentBase {
3
3
  id: string;
4
4
  groupId: string;
@@ -9,7 +9,6 @@ export interface ShareDBDocCommentBase {
9
9
  created: number;
10
10
  modified: number;
11
11
  blocks?: DocBlocks;
12
- resolver?: DocCommentResolver;
13
12
  }
14
13
  export type ShareDBDocComment = ShareDBDocCommentBase & {
15
14
  [index: string]: DocBlocks;
@@ -1,5 +1,5 @@
1
1
  import { DocBlock, DocBlockTextActions, OnesEditorHistoryDataParseHandler } from '../../../../../@ones-editor/core';
2
- type ActionType = 'deleteBlock' | 'insertBlock' | 'deleteBlockData' | 'insertBlockData' | 'updateBlockText' | 'deleteContainer' | 'createContainer' | 'deleteComment' | 'createComment' | 'updateComment' | 'updateCommentResolved';
2
+ type ActionType = 'deleteBlock' | 'insertBlock' | 'deleteBlockData' | 'insertBlockData' | 'updateBlockText' | 'deleteContainer' | 'createContainer' | 'deleteComment' | 'createComment' | 'updateComment';
3
3
  interface Action {
4
4
  type: ActionType;
5
5
  containerId?: string;
@@ -20,7 +20,6 @@ export declare class ParseHandler {
20
20
  onDeleteComment(commentId: string): void;
21
21
  onCreateComment(commentId: string): void;
22
22
  onUpdateComment(commentId: string): void;
23
- onUpdateCommentResolver(commentId: string): void;
24
23
  end(): void;
25
24
  }
26
25
  export {};
@@ -1,4 +1,4 @@
1
- import { BuildResourceUrlOptions, DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocCommentResolver, DocObject, DocVersion, EventCallbacks, OnesEditorComment, OnesEditorDoc, OnesEditorDocHistoryData, OnesEditorDocServerMeta, OnesEditorDocStatus, OnesEditorDocVersionExtra, OnesEditorDocVersionHelper, OnesEditorHistoryDataParseHandler, UploadResourceOptions, UploadResourceResult } from '../../../../@ones-editor/core';
1
+ import { BuildResourceUrlOptions, DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, DocVersion, EventCallbacks, OnesEditorComment, OnesEditorDoc, OnesEditorDocHistoryData, OnesEditorDocServerMeta, OnesEditorDocStatus, OnesEditorDocVersionExtra, OnesEditorDocVersionHelper, OnesEditorHistoryDataParseHandler, UploadResourceOptions, UploadResourceResult } from '../../../../@ones-editor/core';
2
2
  import { Doc } from 'sharedb/lib/client';
3
3
  import { LocalPresence } from 'sharedb/lib/sharedb';
4
4
  import RemoteCaretsHandler from './remote-caret-handler';
@@ -66,7 +66,6 @@ export default class ShareDBDoc extends EventCallbacks<ShareDBDocCallbacks> impl
66
66
  localCreateComment(comment: OnesEditorComment, doc: DocObject): Promise<void>;
67
67
  localDeleteComment(commentId: string): Promise<void>;
68
68
  localUpdateComment(comment: OnesEditorComment, doc: DocObject): Promise<void>;
69
- localUpdateCommentResolver(commentId: string, resolver?: DocCommentResolver): Promise<void> | Promise<boolean>;
70
69
  destroy(): void;
71
70
  private handleOp;
72
71
  onDeleteBlock(containerId: string, blockIndex: number, local: boolean): void;
@@ -78,7 +77,6 @@ export default class ShareDBDoc extends EventCallbacks<ShareDBDocCallbacks> impl
78
77
  onDeleteComment(commentId: string, local: boolean): void;
79
78
  onCreateComment(commentId: string, local: boolean): void;
80
79
  onUpdateComment(commentId: string, local: boolean): void;
81
- onUpdateCommentResolver(commentId: string, local: boolean): void;
82
80
  onCustomMessage(msg: unknown): void;
83
81
  addResources(resourceIds: string[]): Promise<string[]>;
84
82
  uploadResource(file: File, options?: UploadResourceOptions): Promise<UploadResourceResult>;
@@ -134,5 +134,4 @@ export interface ShareDBDocCallbacks extends OnesEditorDocCallbacks {
134
134
  onCreateComment?: (commentId: string, local: boolean) => void;
135
135
  onDeleteComment?: (commentId: string, local: boolean) => void;
136
136
  onUpdateComment?: (commentId: string, local: boolean) => void;
137
- onUpdateCommentResolver?: (commentId: string, local: boolean) => void;
138
137
  }
@@ -0,0 +1,25 @@
1
+ declare const _default: {
2
+ status: {
3
+ empty: string;
4
+ command: {
5
+ name: string;
6
+ };
7
+ color: {
8
+ red: string;
9
+ yellow: string;
10
+ green: string;
11
+ blue: string;
12
+ purple: string;
13
+ grey: string;
14
+ };
15
+ colorDefaultTitle: {
16
+ red: string;
17
+ yellow: string;
18
+ green: string;
19
+ blue: string;
20
+ purple: string;
21
+ grey: string;
22
+ };
23
+ };
24
+ };
25
+ export default _default;
@@ -0,0 +1,33 @@
1
+ declare const _default: {
2
+ table: {
3
+ cellBackground: string;
4
+ deleteSelectRow: string;
5
+ deleteSelectCol: string;
6
+ mergeCell: string;
7
+ splitCell: string;
8
+ tableConfigKey: string;
9
+ deleteTable: string;
10
+ adjustColumnWidthsEvenly: string;
11
+ insertCol: string;
12
+ insertRow: string;
13
+ deleteCol: string;
14
+ deleteRow: string;
15
+ tableConfig: {
16
+ rowTitle: string;
17
+ colTitle: string;
18
+ stripeStyle: string;
19
+ hideBorder: string;
20
+ showBorder: string;
21
+ showChart: string;
22
+ hideChart: string;
23
+ };
24
+ title: string;
25
+ abstract: string;
26
+ commands: {
27
+ setting: string;
28
+ insertRightCol: string;
29
+ insertBottomRow: string;
30
+ };
31
+ };
32
+ };
33
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ templates: {
3
+ title: string;
4
+ create: string;
5
+ choose: string;
6
+ customizedMark: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ toc: {
3
+ name: string;
4
+ empty: string;
5
+ abstract: string;
6
+ };
7
+ };
8
+ export default _default;