@ones-editor/editor 2.8.28-beta.1 → 2.8.29
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/comments/comments.d.ts +0 -4
- package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +1 -3
- package/@ones-editor/comments/src/comments-helper/get-comment-from-selection.d.ts +0 -3
- package/@ones-editor/comments/src/comments-helper/get-comments-from-doc.d.ts +1 -5
- package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +1 -2
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +1 -11
- package/@ones-editor/comments/src/comments-list/group-item.d.ts +0 -2
- package/@ones-editor/comments/src/comments-list/group-list.d.ts +2 -7
- package/@ones-editor/comments/src/comments-list/handler.d.ts +1 -2
- 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 +0 -1
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +0 -1
- package/@ones-editor/comments/src/comments-render/index.d.ts +1 -10
- package/@ones-editor/comments/src/constant/index.d.ts +1 -2
- package/@ones-editor/comments/src/index.d.ts +0 -1
- package/@ones-editor/comments/src/locale/en-us.d.ts +0 -7
- package/@ones-editor/comments/src/locale/ja-jp.d.ts +0 -7
- package/@ones-editor/comments/src/locale/zh-cn.d.ts +0 -7
- package/@ones-editor/comments/src/locale/zh-hant-hk.d.ts +24 -0
- package/@ones-editor/comments/src/types.d.ts +1 -6
- 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 +0 -1
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +0 -2
- package/@ones-editor/core/src/core/doc/doc.d.ts +0 -9
- package/@ones-editor/core/src/core/types.d.ts +0 -3
- 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 +0 -1
- 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 +1 -2
- package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +1 -2
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +1 -3
- package/@ones-editor/sharedb-doc/src/types.d.ts +0 -1
- 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 +0 -1
- package/@ones-editor/ui-base/src/icons/index.d.ts +1 -2
- 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 +0 -1
- package/@ones-editor/webpage-embed/src/locale/zh-hant-hk.d.ts +27 -0
- package/dist/comments/local-doc-comments-provider.d.ts +1 -2
- package/dist/comments/sharedb-doc-comments-provider.d.ts +1 -3
- package/dist/index.d.ts +0 -2
- package/dist/index.js +768 -878
- package/dist/lang/zh-hant-hk.d.ts +31 -0
- package/dist/types.d.ts +0 -2
- package/package.json +1 -1
- package/@ones-editor/comments/src/comments-render/get-block-comments.d.ts +0 -5
- package/@ones-editor/comments/src/resolved-comments/index.d.ts +0 -4
- package/@ones-editor/comments/src/resolved-comments/resolved-comment-editor.d.ts +0 -14
- package/@ones-editor/comments/src/resolved-comments/resolved-comment-list.d.ts +0 -4
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
quickMenu: {
|
|
3
|
+
basic: {
|
|
4
|
+
heading: {
|
|
5
|
+
title: string;
|
|
6
|
+
space: string;
|
|
7
|
+
};
|
|
8
|
+
unordered: string;
|
|
9
|
+
ordered: string;
|
|
10
|
+
checkbox: string;
|
|
11
|
+
quote: string;
|
|
12
|
+
};
|
|
13
|
+
inlineBox: {
|
|
14
|
+
math: string;
|
|
15
|
+
link: string;
|
|
16
|
+
emoji: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
link: {
|
|
20
|
+
textLabel: string;
|
|
21
|
+
urlLabel: string;
|
|
22
|
+
textPlaceholder: string;
|
|
23
|
+
urlPlaceholder: string;
|
|
24
|
+
mobileTextPlaceholder: string;
|
|
25
|
+
mobileUrlPlaceholder: string;
|
|
26
|
+
submitText: string;
|
|
27
|
+
cancelText: string;
|
|
28
|
+
edit: string;
|
|
29
|
+
remove: string;
|
|
30
|
+
title: string;
|
|
31
|
+
openLink: string;
|
|
32
|
+
};
|
|
33
|
+
commands: {
|
|
34
|
+
unordered: string;
|
|
35
|
+
ordered: string;
|
|
36
|
+
check: string;
|
|
37
|
+
link: string;
|
|
38
|
+
quote: string;
|
|
39
|
+
alignLeft: string;
|
|
40
|
+
alignRight: string;
|
|
41
|
+
alignCenter: string;
|
|
42
|
+
alignGroup: string;
|
|
43
|
+
heading: string;
|
|
44
|
+
headingGroup: string;
|
|
45
|
+
text: string;
|
|
46
|
+
paste: string;
|
|
47
|
+
tab: string;
|
|
48
|
+
shiftTab: string;
|
|
49
|
+
bold: string;
|
|
50
|
+
italic: string;
|
|
51
|
+
underline: string;
|
|
52
|
+
strikethrough: string;
|
|
53
|
+
code: string;
|
|
54
|
+
subscript: string;
|
|
55
|
+
superscript: string;
|
|
56
|
+
more: string;
|
|
57
|
+
selectBlock: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
|
@@ -8,7 +8,6 @@ export declare class AddCommentToOldDocCommandProvider implements ReadonlyToolba
|
|
|
8
8
|
onCreateComment(commentId: string, local: boolean): Promise<void>;
|
|
9
9
|
onDeleteComment(commentId: string, local: boolean): Promise<void>;
|
|
10
10
|
onUpdateComment(commentId: string, local: boolean): Promise<void>;
|
|
11
|
-
onUpdateCommentResolver(commentId: string, local: boolean): void;
|
|
12
11
|
hideToolbar(editor: OnesEditor): void;
|
|
13
12
|
commands(editor: OnesEditor, blockElement: BlockElement, child: TextBlockContentChild | null): {
|
|
14
13
|
group: string;
|
|
@@ -46,7 +46,6 @@ import CommentIcon from './comment.svg?raw';
|
|
|
46
46
|
import RefreshIcon from './refresh.svg?raw';
|
|
47
47
|
import HelpIcon from './help.svg?raw';
|
|
48
48
|
import CheckMarkIcon from './check-mark.svg?raw';
|
|
49
|
-
import CircleCheckMarkIcon from './circle-check-mark.svg?raw';
|
|
50
49
|
import TextIcon from './text.svg?raw';
|
|
51
50
|
import RightArrowIcon from './right-arrow.svg?raw';
|
|
52
51
|
import BilibiliIcon from './bilibili-icon.svg?raw';
|
|
@@ -127,4 +126,4 @@ import ShiftTabIcon from './shift-tab.svg?raw';
|
|
|
127
126
|
import TableEditIcon from './table-edit.svg?raw';
|
|
128
127
|
import AdjustWidthIcon from './adjust-width.svg?raw';
|
|
129
128
|
import TocIcon from './toc.svg?raw';
|
|
130
|
-
export { TableEditIcon, TabIcon, ShiftTabIcon, DownloadIcon, AddEmojiIcon, BallIcon, CardIcon, FoodIcon, LightIcon, SmileIcon, SymbolIcon, TreeIcon, TimeIcon, ClearIcon, CloseIcon, PrevIcon, NextIcon, MoreIcon, TextColorIcon, AddIcon, ArrowDownIcon, ArrowUpIcon, ArrowLeftIcon, ArrowRightIcon, DeleteRowIcon, DeleteColIcon, MergeCellIcon, SplitCellIcon, DeleteTableIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, Heading7Icon, Heading8Icon, HeadingNIcon, OrderedListIcon, UnorderedListIcon, CheckListIcon, BlockquoteIcon, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ImageIcon, ImageMenuIcon, ImageErrorIcon, ImageEmptyIcon, LinkIcon, LinkOffIcon, WarningIcon, PasteSpecialIcon, LaunchIcon, CodeIcon, LayoutIcon, AudioIcon, GraphIcon, VideoIcon, FileIcon, MathIcon, MathMenuIcon, TableIcon, TableMenuIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon,
|
|
129
|
+
export { TableEditIcon, TabIcon, ShiftTabIcon, DownloadIcon, AddEmojiIcon, BallIcon, CardIcon, FoodIcon, LightIcon, SmileIcon, SymbolIcon, TreeIcon, TimeIcon, ClearIcon, CloseIcon, PrevIcon, NextIcon, MoreIcon, TextColorIcon, AddIcon, ArrowDownIcon, ArrowUpIcon, ArrowLeftIcon, ArrowRightIcon, DeleteRowIcon, DeleteColIcon, MergeCellIcon, SplitCellIcon, DeleteTableIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, Heading7Icon, Heading8Icon, HeadingNIcon, OrderedListIcon, UnorderedListIcon, CheckListIcon, BlockquoteIcon, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ImageIcon, ImageMenuIcon, ImageErrorIcon, ImageEmptyIcon, LinkIcon, LinkOffIcon, WarningIcon, PasteSpecialIcon, LaunchIcon, CodeIcon, LayoutIcon, AudioIcon, GraphIcon, VideoIcon, FileIcon, MathIcon, MathMenuIcon, TableIcon, TableMenuIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon, TextIcon, RightArrowIcon, TencentVideoIcon, WebPageIcon, UmlIcon, DividingLineIcon, HeadingH1Icon, HeadingH2Icon, HeadingH3Icon, HeadingH4Icon, HeadingH5Icon, HeadingH6Icon, HeadingH7Icon, HeadingH8Icon, CheckboxIcon, QuoteIcon, LinkHrefIcon, OrderedIcon, UnorderedIcon, CopyIcon, CutIcon, DeleteIcon, LockBlockIcon, UnLockBlockIcon, InsertBeforeIcon, InsertAfterIcon, MentionIcon, CircleAddIcon, LoadingIcon, DragIcon, UmlBrandIcon, OnesLoadingIcon, BoldIcon, ItalicIcon, UnderlineIcon, LineThroughIcon, SubscriptIcon, SuperscriptIcon, InlineCodeIcon, ToMindMapIcon, FitIcon, FullScreenIcon, ExitFullScreenIcon, CaretDownIcon, StatusIcon, AlertEmojiIcon, ForbiddenIcon, WarningFilledIcon, InformationFilledIcon, SearchIcon, CalloutIcon, LoadingCircleIcon, TextGroupIcon, AdjustWidthIcon, TocIcon, };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
button: {
|
|
3
|
+
ok: string;
|
|
4
|
+
cancel: string;
|
|
5
|
+
confirm: string;
|
|
6
|
+
};
|
|
7
|
+
colorPalette: {
|
|
8
|
+
colorDesc: string;
|
|
9
|
+
name: string;
|
|
10
|
+
backgroundDesc: string;
|
|
11
|
+
reset: string;
|
|
12
|
+
more: string;
|
|
13
|
+
};
|
|
14
|
+
emojiPalette: {
|
|
15
|
+
name: string;
|
|
16
|
+
search: {
|
|
17
|
+
placeholder: string;
|
|
18
|
+
};
|
|
19
|
+
content: {
|
|
20
|
+
loading: string;
|
|
21
|
+
empty: string;
|
|
22
|
+
};
|
|
23
|
+
category: {
|
|
24
|
+
frequentlyUsed: string;
|
|
25
|
+
smileysAndPeople: string;
|
|
26
|
+
animalsAndNature: string;
|
|
27
|
+
foodAndDrink: string;
|
|
28
|
+
activity: string;
|
|
29
|
+
travelAndPlaces: string;
|
|
30
|
+
objects: string;
|
|
31
|
+
symbols: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
search: {
|
|
35
|
+
emptyTips: string;
|
|
36
|
+
loading: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
version: {
|
|
3
|
+
latest: string;
|
|
4
|
+
update: string;
|
|
5
|
+
insert: string;
|
|
6
|
+
delete: string;
|
|
7
|
+
goBack: string;
|
|
8
|
+
revertVersion: string;
|
|
9
|
+
play: string;
|
|
10
|
+
versionList: string;
|
|
11
|
+
versionListHeader: string;
|
|
12
|
+
unknown: string;
|
|
13
|
+
restoreFrom: string;
|
|
14
|
+
restoreInfo: string;
|
|
15
|
+
versionInfoLeft: string;
|
|
16
|
+
versionInfoRight: string;
|
|
17
|
+
noSelectedVersion: string;
|
|
18
|
+
noMemoedVersion: string;
|
|
19
|
+
noFilterVersion: string;
|
|
20
|
+
memo: string;
|
|
21
|
+
revert: string;
|
|
22
|
+
filter: {
|
|
23
|
+
all: string;
|
|
24
|
+
memoed: string;
|
|
25
|
+
allVersions: string;
|
|
26
|
+
memoVersions: string;
|
|
27
|
+
};
|
|
28
|
+
textarea: {
|
|
29
|
+
placeholder: string;
|
|
30
|
+
};
|
|
31
|
+
tooltip: {
|
|
32
|
+
help: string;
|
|
33
|
+
user: string;
|
|
34
|
+
auth: string;
|
|
35
|
+
};
|
|
36
|
+
dropdownHeader: string;
|
|
37
|
+
dropdown: {
|
|
38
|
+
header: string;
|
|
39
|
+
};
|
|
40
|
+
noVersions: string;
|
|
41
|
+
lastVersion: string;
|
|
42
|
+
filterMemoed: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
webpage: {
|
|
3
|
+
title: string;
|
|
4
|
+
youku: string;
|
|
5
|
+
modao: string;
|
|
6
|
+
tencent: string;
|
|
7
|
+
bilibili: string;
|
|
8
|
+
figma: string;
|
|
9
|
+
dialog: {
|
|
10
|
+
helpContent: string;
|
|
11
|
+
helpLink: string;
|
|
12
|
+
label: string;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
title: string;
|
|
15
|
+
errorEnterUrl: string;
|
|
16
|
+
unsupportedUrl: string;
|
|
17
|
+
okText: string;
|
|
18
|
+
cancelText: string;
|
|
19
|
+
};
|
|
20
|
+
abstract: string;
|
|
21
|
+
command: {
|
|
22
|
+
refresh: string;
|
|
23
|
+
openPage: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../../@ones-editor/comments';
|
|
2
|
-
import {
|
|
2
|
+
import { DocObject, LocalDoc, OnesEditor, OnesEditorComment, OnesEditorDoc } from '../../@ones-editor/core';
|
|
3
3
|
export default class LocalDocCommentsProvider implements OnesEditorCommentsProvider {
|
|
4
4
|
private editor;
|
|
5
5
|
private localDoc;
|
|
@@ -15,7 +15,6 @@ export default class LocalDocCommentsProvider implements OnesEditorCommentsProvi
|
|
|
15
15
|
localCreateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
16
16
|
localDeleteComment(commentId: string): void;
|
|
17
17
|
localUpdateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
18
|
-
localUpdateCommentResolver(commentId: string, resolver?: DocCommentResolver): void;
|
|
19
18
|
createCommentEditor(parent: HTMLElement, childDoc: LocalDoc): OnesEditor;
|
|
20
19
|
allowEdit(comment: OnesEditorComment): boolean;
|
|
21
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../../@ones-editor/comments';
|
|
2
|
-
import {
|
|
2
|
+
import { DocObject, LocalDoc, OnesEditor, OnesEditorComment } from '../../@ones-editor/core';
|
|
3
3
|
import { ShareDBDocCallbacks } from '../../@ones-editor/sharedb-doc';
|
|
4
4
|
export default class ShareDBDocCommentsProvider implements OnesEditorCommentsProvider, ShareDBDocCallbacks {
|
|
5
5
|
private editor;
|
|
@@ -12,11 +12,9 @@ export default class ShareDBDocCommentsProvider implements OnesEditorCommentsPro
|
|
|
12
12
|
localCreateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
13
13
|
localDeleteComment(commentId: string): void;
|
|
14
14
|
localUpdateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
15
|
-
localUpdateCommentResolver(commentId: string, resolver?: DocCommentResolver): void;
|
|
16
15
|
onCreateComment(commentId: string, local: boolean): void;
|
|
17
16
|
onDeleteComment(commentId: string, local: boolean): void;
|
|
18
17
|
onUpdateComment(commentId: string, local: boolean): void;
|
|
19
|
-
onUpdateCommentResolver(commentId: string, local: boolean): void;
|
|
20
18
|
addListener(callback: OnesEditorCommentsEvents): void;
|
|
21
19
|
removeListener(callback: OnesEditorCommentsEvents): void;
|
|
22
20
|
createCommentEditor(parent: HTMLElement, childDoc: LocalDoc): OnesEditor;
|
package/dist/index.d.ts
CHANGED
|
@@ -45,13 +45,11 @@ export * from 'tiny-typed-emitter';
|
|
|
45
45
|
export { ShareDBDocVersionsProvider, OnesEditorIcons, isLayoutBlock, LayoutQuickMenuItemFilter, CalloutQuickMenuItemFilter, MobileCommandHandler, PasteSpecialHandler };
|
|
46
46
|
export type { FileBoxData, FileEmbedData } from '../@ones-editor/file';
|
|
47
47
|
export * from './helper';
|
|
48
|
-
export { OnesEditorComments, OnesEditorCommentsRender } from '../@ones-editor/comments';
|
|
49
48
|
export { type DocListBlock } from '../@ones-editor/list-block';
|
|
50
49
|
export declare function getDefaultOnesEditorOptions(options: CreateOnesEditorOptions): {
|
|
51
50
|
id: string | undefined;
|
|
52
51
|
scrollContainer: HTMLElement | undefined;
|
|
53
52
|
enableComments: boolean | undefined;
|
|
54
|
-
enableResolveComments: boolean | undefined;
|
|
55
53
|
enableContextMenu: boolean | undefined;
|
|
56
54
|
components: {
|
|
57
55
|
blocks: import("@ones-editor/core").Block[];
|