@ones-editor/editor 2.8.28-beta.1 → 2.8.28-beta.12
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 +1 -1
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +5 -3
- package/@ones-editor/comments/src/comments-list/group-list.d.ts +1 -0
- package/@ones-editor/comments/src/locale/en-us.d.ts +2 -0
- package/@ones-editor/comments/src/locale/ja-jp.d.ts +2 -0
- package/@ones-editor/comments/src/locale/zh-cn.d.ts +2 -0
- package/@ones-editor/comments/src/locale/zh-hant-hk.d.ts +24 -0
- package/@ones-editor/comments/src/types.d.ts +1 -0
- package/@ones-editor/context-menu/src/locale/zh-hant-hk.d.ts +14 -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/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/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-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/webpage-embed/src/locale/zh-hant-hk.d.ts +27 -0
- package/dist/index.js +789 -57
- package/dist/lang/zh-hant-hk.d.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
blockMenu: {
|
|
3
|
+
section: {
|
|
4
|
+
basics: string;
|
|
5
|
+
system: string;
|
|
6
|
+
styles: string;
|
|
7
|
+
common: string;
|
|
8
|
+
actions: string;
|
|
9
|
+
thirdParty: string;
|
|
10
|
+
};
|
|
11
|
+
command: {
|
|
12
|
+
insertAbove: string;
|
|
13
|
+
insertAfter: string;
|
|
14
|
+
copy: string;
|
|
15
|
+
cut: string;
|
|
16
|
+
delete: string;
|
|
17
|
+
};
|
|
18
|
+
button: {
|
|
19
|
+
searchPlaceholder: string;
|
|
20
|
+
tips: string;
|
|
21
|
+
insertTips: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -15,7 +15,7 @@ export default class OnesEditorComments {
|
|
|
15
15
|
getMiniCommentList(): MiniCommentsList;
|
|
16
16
|
destroy(): void;
|
|
17
17
|
private showComment;
|
|
18
|
-
showCommentList: (groupId?: string) => void;
|
|
18
|
+
showCommentList: (groupId?: string, type?: 'current' | 'resolved') => void;
|
|
19
19
|
setFirstEditingCommentActive(): void;
|
|
20
20
|
isEditing(includeEmpty?: boolean): boolean;
|
|
21
21
|
mount(containers: CommentRoot): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnesEditor, CommandItem } from '../../../../@ones-editor/core';
|
|
2
2
|
import { TypedEmitter } from 'tiny-typed-emitter';
|
|
3
3
|
import { FixedToolbar } from '../../../../@ones-editor/ui-base';
|
|
4
|
-
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../types';
|
|
4
|
+
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider, CommentListType } from '../types';
|
|
5
5
|
import CommentGroupList from './group-list';
|
|
6
6
|
interface CommentsListEvents {
|
|
7
7
|
onSelectComment: () => void;
|
|
@@ -15,7 +15,7 @@ export default class CommentsList extends TypedEmitter<CommentsListEvents> imple
|
|
|
15
15
|
private listType;
|
|
16
16
|
private switcherItem;
|
|
17
17
|
private switcherBar;
|
|
18
|
-
private
|
|
18
|
+
private noCommentTip;
|
|
19
19
|
constructor(editor: OnesEditor, commentsProvider: OnesEditorCommentsProvider);
|
|
20
20
|
private get commentOptions();
|
|
21
21
|
destroy(): void;
|
|
@@ -29,9 +29,11 @@ export default class CommentsList extends TypedEmitter<CommentsListEvents> imple
|
|
|
29
29
|
isEditing(includeEmpty?: boolean): boolean;
|
|
30
30
|
setFirstEditingCommentActive(): void;
|
|
31
31
|
handleSwitchType: (bar: unknown, item: CommandItem) => void;
|
|
32
|
+
getListType(): CommentListType;
|
|
33
|
+
setListType(type: CommentListType): void;
|
|
32
34
|
handleSelectionOnComment: () => void;
|
|
33
35
|
updateCommentCount: () => void;
|
|
34
|
-
|
|
36
|
+
updateCommentCountTip(): void;
|
|
35
37
|
handleActiveItemChanged: (index: number, direction?: 'prev' | 'next') => void;
|
|
36
38
|
handleItemLayoutUpdated: () => void;
|
|
37
39
|
show(groupId?: string): void;
|
|
@@ -36,6 +36,7 @@ export default class CommentGroupList extends ListBase<CommentWithChildren, Comm
|
|
|
36
36
|
handleCreateComment(comment: OnesEditorComment, local: boolean): void;
|
|
37
37
|
handleDeleteComment(commentId: string): void;
|
|
38
38
|
handleResolveComment(commentId: string): void;
|
|
39
|
+
removeGroupItem(comment: OnesEditorComment): void;
|
|
39
40
|
handleUpdateComment(comment: OnesEditorComment): void;
|
|
40
41
|
handleContainerClick: (event: MouseEvent) => void;
|
|
41
42
|
handleDocumentClick: (event: MouseEvent) => void;
|
|
@@ -24,8 +24,10 @@ declare const _default: {
|
|
|
24
24
|
currentComment: string;
|
|
25
25
|
resolvedComment: string;
|
|
26
26
|
removedFromDoc: string;
|
|
27
|
+
noCurrentComment: string;
|
|
27
28
|
noResolvedComment: string;
|
|
28
29
|
resolveComment: string;
|
|
30
|
+
commentHasAlreadyRemoved: string;
|
|
29
31
|
};
|
|
30
32
|
};
|
|
31
33
|
export default _default;
|
|
@@ -24,8 +24,10 @@ declare const _default: {
|
|
|
24
24
|
currentComment: string;
|
|
25
25
|
resolvedComment: string;
|
|
26
26
|
removedFromDoc: string;
|
|
27
|
+
noCurrentComment: string;
|
|
27
28
|
noResolvedComment: string;
|
|
28
29
|
resolveComment: string;
|
|
30
|
+
commentHasAlreadyRemoved: string;
|
|
29
31
|
};
|
|
30
32
|
};
|
|
31
33
|
export default _default;
|
|
@@ -24,8 +24,10 @@ declare const _default: {
|
|
|
24
24
|
currentComment: string;
|
|
25
25
|
resolvedComment: string;
|
|
26
26
|
removedFromDoc: string;
|
|
27
|
+
noCurrentComment: string;
|
|
27
28
|
noResolvedComment: string;
|
|
28
29
|
resolveComment: string;
|
|
30
|
+
commentHasAlreadyRemoved: string;
|
|
29
31
|
};
|
|
30
32
|
};
|
|
31
33
|
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
comment: {
|
|
3
|
+
count: string;
|
|
4
|
+
hide: string;
|
|
5
|
+
show: string;
|
|
6
|
+
reply: string;
|
|
7
|
+
quicklyReply: string;
|
|
8
|
+
send: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
replyPlaceholder: string;
|
|
11
|
+
edit: string;
|
|
12
|
+
delete: string;
|
|
13
|
+
image: string;
|
|
14
|
+
sendTitle: string;
|
|
15
|
+
replyTitle: string;
|
|
16
|
+
isFirst: string;
|
|
17
|
+
isLast: string;
|
|
18
|
+
more: string;
|
|
19
|
+
comment: string;
|
|
20
|
+
command: string;
|
|
21
|
+
quickMenuCommand: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -22,6 +22,7 @@ export interface OnesEditorCommentOptions {
|
|
|
22
22
|
onUpdateLayout?: (editor: OnesEditor, data: CommentData) => void;
|
|
23
23
|
onCommentCountChange?: (count: number) => void;
|
|
24
24
|
onCommentEditorClick?: (editor: OnesEditor, event: MouseEvent) => void;
|
|
25
|
+
onCommentListTypeChange?: (editor: OnesEditor, type: 'current' | 'resolved') => void;
|
|
25
26
|
events?: EditorEvents;
|
|
26
27
|
componentsOptions?: {
|
|
27
28
|
[index: string]: unknown;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
contextMenu: {
|
|
3
|
+
copyMarkdown: string;
|
|
4
|
+
paste: string;
|
|
5
|
+
copyImage: string;
|
|
6
|
+
copyImageUrl: string;
|
|
7
|
+
imageSaveAs: string;
|
|
8
|
+
newTabOpenImage: string;
|
|
9
|
+
selectBlock: string;
|
|
10
|
+
selectAll: string;
|
|
11
|
+
uneditableBlockSelected: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -40,6 +40,26 @@ declare const langs: {
|
|
|
40
40
|
imageExportFailed: string;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
+
'zh-HK': {
|
|
44
|
+
name: string;
|
|
45
|
+
date: {
|
|
46
|
+
dateFromFuture: string;
|
|
47
|
+
dateJustNow: string;
|
|
48
|
+
dateYesterday: string;
|
|
49
|
+
dateMinutesAgo: string;
|
|
50
|
+
date1HourAgo: string;
|
|
51
|
+
dateHoursAgo: string;
|
|
52
|
+
dateDaysAgo: string;
|
|
53
|
+
dateWeeksAgo: string;
|
|
54
|
+
};
|
|
55
|
+
common: {
|
|
56
|
+
cancel: string;
|
|
57
|
+
downloadAsImage: string;
|
|
58
|
+
};
|
|
59
|
+
docx: {
|
|
60
|
+
imageExportFailed: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
43
63
|
'ja-JP': {
|
|
44
64
|
name: string;
|
|
45
65
|
date: {
|
|
@@ -64,5 +84,5 @@ declare const langs: {
|
|
|
64
84
|
export declare function setLang(lang?: LANGS | null | undefined): void;
|
|
65
85
|
export declare function mergeLang(l: any): void;
|
|
66
86
|
export declare function t(key: string, args?: Record<string, string>): string;
|
|
67
|
-
export declare function getCurrentLang(): "en-US" | "zh-CN" | "ja-JP";
|
|
87
|
+
export declare function getCurrentLang(): "en-US" | "zh-CN" | "zh-HK" | "ja-JP";
|
|
68
88
|
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
date: {
|
|
4
|
+
dateFromFuture: string;
|
|
5
|
+
dateJustNow: string;
|
|
6
|
+
dateYesterday: string;
|
|
7
|
+
dateMinutesAgo: string;
|
|
8
|
+
date1HourAgo: string;
|
|
9
|
+
dateHoursAgo: string;
|
|
10
|
+
dateDaysAgo: string;
|
|
11
|
+
dateWeeksAgo: string;
|
|
12
|
+
};
|
|
13
|
+
common: {
|
|
14
|
+
cancel: string;
|
|
15
|
+
downloadAsImage: string;
|
|
16
|
+
};
|
|
17
|
+
docx: {
|
|
18
|
+
imageExportFailed: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -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;
|
|
@@ -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;
|