@ones-editor/editor 2.8.27 → 2.8.28-beta.11
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/block-locker/src/i18n/zh-hant-hk.d.ts +8 -0
- package/@ones-editor/block-menu/src/locale/zh-hant-hk.d.ts +25 -0
- package/@ones-editor/callout-block/src/locale/zh-hant-hk.d.ts +15 -0
- package/@ones-editor/code-block/src/locale/zh-hant-hk.d.ts +13 -0
- package/@ones-editor/comments/src/comment-item/comment-item.d.ts +1 -0
- package/@ones-editor/comments/src/comments/comments.d.ts +5 -1
- package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +3 -1
- package/@ones-editor/comments/src/comments-helper/get-comment-from-selection.d.ts +3 -0
- package/@ones-editor/comments/src/comments-helper/get-comments-from-doc.d.ts +5 -1
- package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +2 -1
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +14 -2
- package/@ones-editor/comments/src/comments-list/group-item.d.ts +2 -0
- package/@ones-editor/comments/src/comments-list/group-list.d.ts +8 -2
- package/@ones-editor/comments/src/comments-list/handler.d.ts +2 -1
- package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +1 -0
- package/@ones-editor/comments/src/comments-render/get-block-comments.d.ts +5 -0
- package/@ones-editor/comments/src/comments-render/index.d.ts +10 -1
- package/@ones-editor/comments/src/constant/index.d.ts +2 -1
- package/@ones-editor/comments/src/index.d.ts +1 -0
- package/@ones-editor/comments/src/locale/en-us.d.ts +9 -0
- package/@ones-editor/comments/src/locale/ja-jp.d.ts +9 -0
- package/@ones-editor/comments/src/locale/zh-cn.d.ts +9 -0
- package/@ones-editor/comments/src/locale/zh-hant-hk.d.ts +24 -0
- package/@ones-editor/comments/src/resolved-comments/index.d.ts +4 -0
- package/@ones-editor/comments/src/resolved-comments/resolved-comment-editor.d.ts +14 -0
- package/@ones-editor/comments/src/resolved-comments/resolved-comment-list.d.ts +4 -0
- package/@ones-editor/comments/src/types.d.ts +7 -1
- package/@ones-editor/context-menu/src/locale/zh-hant-hk.d.ts +14 -0
- package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +1 -0
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +2 -0
- package/@ones-editor/core/src/core/doc/doc.d.ts +9 -0
- package/@ones-editor/core/src/core/types.d.ts +3 -0
- package/@ones-editor/core/src/i18n/i18n.d.ts +21 -1
- package/@ones-editor/core/src/i18n/zh-hant-hk.d.ts +21 -0
- package/@ones-editor/core/src/local-doc/index.d.ts +1 -0
- package/@ones-editor/dividing-line-embed/src/i18n/zh-hant-hk.d.ts +7 -0
- package/@ones-editor/drawio-embed/src/lang/zh-hant-hk.d.ts +19 -0
- package/@ones-editor/drawio-embed/types/index.d.ts +1 -1
- package/@ones-editor/embed-block-helper/src/locale/zh-hant-hk.d.ts +7 -0
- package/@ones-editor/exclusive-block/src/locale/zh-hant-hk.d.ts +7 -0
- package/@ones-editor/file/src/locale/zh-hant-hk.d.ts +15 -0
- package/@ones-editor/find-dialog/src/locale/zh-hant-hk.d.ts +13 -0
- package/@ones-editor/graph-embed/src/lang/zh-hant-hk.d.ts +18 -0
- package/@ones-editor/heading-collapse/src/locale/zh-hant-hk.d.ts +7 -0
- package/@ones-editor/image-embed/src/locale/zh-hant-hk.d.ts +17 -0
- package/@ones-editor/input-handlers/src/i18n/zh-hant-hk.d.ts +13 -0
- package/@ones-editor/layout-block/src/locale/zh-hant-hk.d.ts +10 -0
- package/@ones-editor/list-block/src/lang/zh-hant-hk.d.ts +21 -0
- package/@ones-editor/main-toolbar/src/locale/zh-hant-hk.d.ts +15 -0
- package/@ones-editor/mathjax/src/locale/zh-hant-hk.d.ts +7 -0
- package/@ones-editor/media-embed/src/locale/zh-hant-hk.d.ts +20 -0
- package/@ones-editor/mention/src/locale/zh-hant-hk.d.ts +9 -0
- package/@ones-editor/misc/src/re-auth/locale/zh-hant-hk.d.ts +7 -0
- package/@ones-editor/mobile-helper/src/locale/zh-hant-hk.d.ts +9 -0
- package/@ones-editor/paste-special/src/locale/zh-hant-hk.d.ts +8 -0
- package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +2 -1
- package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +2 -1
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +3 -1
- package/@ones-editor/sharedb-doc/src/types.d.ts +1 -0
- package/@ones-editor/status/src/locale/zh-hant-hk.d.ts +25 -0
- package/@ones-editor/table-block/src/locale/zh-hant-hk.d.ts +33 -0
- package/@ones-editor/templates/src/locale/zh-hant-hk.d.ts +9 -0
- package/@ones-editor/toc/src/locale/zh-hant-hk.d.ts +8 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/locale/zh-hant-hk.d.ts +60 -0
- package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +1 -0
- package/@ones-editor/ui-base/src/icons/index.d.ts +2 -1
- package/@ones-editor/ui-base/src/locale/zh-hant-hk.d.ts +39 -0
- package/@ones-editor/versions/src/locale/zh-hant-hk.d.ts +45 -0
- package/@ones-editor/versions/src/version-dialog/history-handler.d.ts +1 -0
- package/@ones-editor/webpage-embed/src/locale/zh-hant-hk.d.ts +27 -0
- package/dist/comments/local-doc-comments-provider.d.ts +2 -1
- package/dist/comments/sharedb-doc-comments-provider.d.ts +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1618 -157
- package/dist/lang/zh-hant-hk.d.ts +31 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
drawio: {
|
|
3
|
+
title: string;
|
|
4
|
+
empty: string;
|
|
5
|
+
loading: string;
|
|
6
|
+
abstract: string;
|
|
7
|
+
errorTips: string;
|
|
8
|
+
errorSubTips: string;
|
|
9
|
+
warnTips: string;
|
|
10
|
+
retry: string;
|
|
11
|
+
save: string;
|
|
12
|
+
exit: string;
|
|
13
|
+
error: {
|
|
14
|
+
exitConfirm: string;
|
|
15
|
+
exitMessage: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -22,7 +22,7 @@ export interface SrcData {
|
|
|
22
22
|
}
|
|
23
23
|
export type GraphDataType = XmlData | XmlSvgData | SrcData;
|
|
24
24
|
export type LANG = Record<string, string | Record<string, string>>;
|
|
25
|
-
export type OnesEditorLang = 'zh-CN' | 'zh-
|
|
25
|
+
export type OnesEditorLang = 'zh-CN' | 'zh-HK' | 'ja-JP' | 'en-US';
|
|
26
26
|
export interface DrawIoOptions {
|
|
27
27
|
lang?: OnesEditorLang;
|
|
28
28
|
cdn?: {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
file: {
|
|
3
|
+
abstract: string;
|
|
4
|
+
commands: {
|
|
5
|
+
download: string;
|
|
6
|
+
toLink: string;
|
|
7
|
+
toCard: string;
|
|
8
|
+
comment: string;
|
|
9
|
+
preview: string;
|
|
10
|
+
};
|
|
11
|
+
uploadedTime: string;
|
|
12
|
+
askAi: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -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,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,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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocBlocks, DocObject, OnesEditorComment } from '../../../../@ones-editor/core';
|
|
1
|
+
import { DocBlocks, DocCommentResolver, DocObject, OnesEditorComment } from '../../../../@ones-editor/core';
|
|
2
2
|
export interface ShareDBDocCommentBase {
|
|
3
3
|
id: string;
|
|
4
4
|
groupId: string;
|
|
@@ -9,6 +9,7 @@ export interface ShareDBDocCommentBase {
|
|
|
9
9
|
created: number;
|
|
10
10
|
modified: number;
|
|
11
11
|
blocks?: DocBlocks;
|
|
12
|
+
resolver?: DocCommentResolver;
|
|
12
13
|
}
|
|
13
14
|
export type ShareDBDocComment = ShareDBDocCommentBase & {
|
|
14
15
|
[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';
|
|
2
|
+
type ActionType = 'deleteBlock' | 'insertBlock' | 'deleteBlockData' | 'insertBlockData' | 'updateBlockText' | 'deleteContainer' | 'createContainer' | 'deleteComment' | 'createComment' | 'updateComment' | 'updateCommentResolved';
|
|
3
3
|
interface Action {
|
|
4
4
|
type: ActionType;
|
|
5
5
|
containerId?: string;
|
|
@@ -20,6 +20,7 @@ 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;
|
|
23
24
|
end(): void;
|
|
24
25
|
}
|
|
25
26
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuildResourceUrlOptions, DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, DocVersion, EventCallbacks, OnesEditorComment, OnesEditorDoc, OnesEditorDocHistoryData, OnesEditorDocServerMeta, OnesEditorDocStatus, OnesEditorDocVersionExtra, OnesEditorDocVersionHelper, OnesEditorHistoryDataParseHandler, UploadResourceOptions, UploadResourceResult } from '../../../../@ones-editor/core';
|
|
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';
|
|
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,6 +66,7 @@ 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>;
|
|
69
70
|
destroy(): void;
|
|
70
71
|
private handleOp;
|
|
71
72
|
onDeleteBlock(containerId: string, blockIndex: number, local: boolean): void;
|
|
@@ -77,6 +78,7 @@ export default class ShareDBDoc extends EventCallbacks<ShareDBDocCallbacks> impl
|
|
|
77
78
|
onDeleteComment(commentId: string, local: boolean): void;
|
|
78
79
|
onCreateComment(commentId: string, local: boolean): void;
|
|
79
80
|
onUpdateComment(commentId: string, local: boolean): void;
|
|
81
|
+
onUpdateCommentResolver(commentId: string, local: boolean): void;
|
|
80
82
|
onCustomMessage(msg: unknown): void;
|
|
81
83
|
addResources(resourceIds: string[]): Promise<string[]>;
|
|
82
84
|
uploadResource(file: File, options?: UploadResourceOptions): Promise<UploadResourceResult>;
|
|
@@ -134,4 +134,5 @@ 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;
|
|
137
138
|
}
|
|
@@ -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;
|