@ckeditor/ckeditor5-comments 41.3.0-alpha.3 → 41.3.0
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/build/comments.js +1 -1
- package/package.json +3 -4
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +2 -2
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/commentsarchive.css +1 -1
- package/dist/content-index.css +0 -332
- package/dist/editor-index.css +0 -902
- package/dist/index.css +0 -1874
- package/dist/translations/af.d.ts +0 -8
- package/dist/translations/af.js +0 -23
- package/dist/translations/ar.d.ts +0 -8
- package/dist/translations/ar.js +0 -23
- package/dist/translations/bg.d.ts +0 -8
- package/dist/translations/bg.js +0 -23
- package/dist/translations/bn.d.ts +0 -8
- package/dist/translations/bn.js +0 -23
- package/dist/translations/bs.d.ts +0 -8
- package/dist/translations/bs.js +0 -23
- package/dist/translations/ca.d.ts +0 -8
- package/dist/translations/ca.js +0 -23
- package/dist/translations/cs.d.ts +0 -8
- package/dist/translations/cs.js +0 -23
- package/dist/translations/da.d.ts +0 -8
- package/dist/translations/da.js +0 -23
- package/dist/translations/de-ch.d.ts +0 -8
- package/dist/translations/de-ch.js +0 -23
- package/dist/translations/de.d.ts +0 -8
- package/dist/translations/de.js +0 -23
- package/dist/translations/el.d.ts +0 -8
- package/dist/translations/el.js +0 -23
- package/dist/translations/en-au.d.ts +0 -8
- package/dist/translations/en-au.js +0 -23
- package/dist/translations/en.d.ts +0 -8
- package/dist/translations/en.js +0 -23
- package/dist/translations/es-co.d.ts +0 -8
- package/dist/translations/es-co.js +0 -23
- package/dist/translations/es.d.ts +0 -8
- package/dist/translations/es.js +0 -23
- package/dist/translations/et.d.ts +0 -8
- package/dist/translations/et.js +0 -23
- package/dist/translations/fa.d.ts +0 -8
- package/dist/translations/fa.js +0 -23
- package/dist/translations/fi.d.ts +0 -8
- package/dist/translations/fi.js +0 -23
- package/dist/translations/fr.d.ts +0 -8
- package/dist/translations/fr.js +0 -23
- package/dist/translations/gl.d.ts +0 -8
- package/dist/translations/gl.js +0 -23
- package/dist/translations/he.d.ts +0 -8
- package/dist/translations/he.js +0 -23
- package/dist/translations/hi.d.ts +0 -8
- package/dist/translations/hi.js +0 -23
- package/dist/translations/hr.d.ts +0 -8
- package/dist/translations/hr.js +0 -23
- package/dist/translations/hu.d.ts +0 -8
- package/dist/translations/hu.js +0 -23
- package/dist/translations/id.d.ts +0 -8
- package/dist/translations/id.js +0 -23
- package/dist/translations/it.d.ts +0 -8
- package/dist/translations/it.js +0 -23
- package/dist/translations/ja.d.ts +0 -8
- package/dist/translations/ja.js +0 -23
- package/dist/translations/jv.d.ts +0 -8
- package/dist/translations/jv.js +0 -23
- package/dist/translations/ko.d.ts +0 -8
- package/dist/translations/ko.js +0 -23
- package/dist/translations/lt.d.ts +0 -8
- package/dist/translations/lt.js +0 -23
- package/dist/translations/lv.d.ts +0 -8
- package/dist/translations/lv.js +0 -23
- package/dist/translations/ms.d.ts +0 -8
- package/dist/translations/ms.js +0 -23
- package/dist/translations/nl.d.ts +0 -8
- package/dist/translations/nl.js +0 -23
- package/dist/translations/no.d.ts +0 -8
- package/dist/translations/no.js +0 -23
- package/dist/translations/pl.d.ts +0 -8
- package/dist/translations/pl.js +0 -23
- package/dist/translations/pt-br.d.ts +0 -8
- package/dist/translations/pt-br.js +0 -23
- package/dist/translations/pt.d.ts +0 -8
- package/dist/translations/pt.js +0 -23
- package/dist/translations/ro.d.ts +0 -8
- package/dist/translations/ro.js +0 -23
- package/dist/translations/ru.d.ts +0 -8
- package/dist/translations/ru.js +0 -23
- package/dist/translations/sk.d.ts +0 -8
- package/dist/translations/sk.js +0 -23
- package/dist/translations/sq.d.ts +0 -8
- package/dist/translations/sq.js +0 -23
- package/dist/translations/sr-latn.d.ts +0 -8
- package/dist/translations/sr-latn.js +0 -23
- package/dist/translations/sr.d.ts +0 -8
- package/dist/translations/sr.js +0 -23
- package/dist/translations/sv.d.ts +0 -8
- package/dist/translations/sv.js +0 -23
- package/dist/translations/th.d.ts +0 -8
- package/dist/translations/th.js +0 -23
- package/dist/translations/tk.d.ts +0 -8
- package/dist/translations/tk.js +0 -23
- package/dist/translations/tr.d.ts +0 -8
- package/dist/translations/tr.js +0 -23
- package/dist/translations/tt.d.ts +0 -8
- package/dist/translations/tt.js +0 -23
- package/dist/translations/ug.d.ts +0 -8
- package/dist/translations/ug.js +0 -23
- package/dist/translations/uk.d.ts +0 -8
- package/dist/translations/uk.js +0 -23
- package/dist/translations/ur.d.ts +0 -8
- package/dist/translations/ur.js +0 -23
- package/dist/translations/vi.d.ts +0 -8
- package/dist/translations/vi.js +0 -23
- package/dist/translations/zh-cn.d.ts +0 -8
- package/dist/translations/zh-cn.js +0 -23
- package/dist/translations/zh.d.ts +0 -8
- package/dist/translations/zh.js +0 -23
- package/dist/types/annotations/annotation.d.ts +0 -94
- package/dist/types/annotations/annotationcollection.d.ts +0 -102
- package/dist/types/annotations/annotations.d.ts +0 -158
- package/dist/types/annotations/annotationsuis.d.ts +0 -236
- package/dist/types/annotations/editorannotations.d.ts +0 -71
- package/dist/types/annotations/inlineannotations.d.ts +0 -94
- package/dist/types/annotations/narrowsidebar.d.ts +0 -89
- package/dist/types/annotations/sidebar.d.ts +0 -104
- package/dist/types/annotations/view/annotationcounterbuttonview.d.ts +0 -33
- package/dist/types/annotations/view/annotationview.d.ts +0 -94
- package/dist/types/annotations/view/sidebaritemview.d.ts +0 -59
- package/dist/types/annotations/view/sidebarview.d.ts +0 -36
- package/dist/types/annotations/widesidebar.d.ts +0 -81
- package/dist/types/augmentation.d.ts +0 -56
- package/dist/types/comments/addcommentthreadcommand.d.ts +0 -39
- package/dist/types/comments/commentsarchive.d.ts +0 -35
- package/dist/types/comments/commentsarchiveui.d.ts +0 -42
- package/dist/types/comments/commentsediting.d.ts +0 -84
- package/dist/types/comments/commentsrepository.d.ts +0 -1134
- package/dist/types/comments/commentsui.d.ts +0 -37
- package/dist/types/comments/integrations/clipboard.d.ts +0 -30
- package/dist/types/comments/integrations/commentsrestrictededitingmode.d.ts +0 -21
- package/dist/types/comments/integrations/importword.d.ts +0 -25
- package/dist/types/comments/ui/commenteditor/commenteditor.d.ts +0 -40
- package/dist/types/comments/ui/commenteditor/commenteditorui.d.ts +0 -35
- package/dist/types/comments/ui/commenteditor/commenteditoruiview.d.ts +0 -40
- package/dist/types/comments/ui/commentthreadcontroller.d.ts +0 -68
- package/dist/types/comments/ui/view/basecommentthreadview.d.ts +0 -123
- package/dist/types/comments/ui/view/basecommentview.d.ts +0 -116
- package/dist/types/comments/ui/view/collapsedcommentsview.d.ts +0 -17
- package/dist/types/comments/ui/view/commentcontentview.d.ts +0 -18
- package/dist/types/comments/ui/view/commentinputview.d.ts +0 -90
- package/dist/types/comments/ui/view/commentsarchiveview.d.ts +0 -42
- package/dist/types/comments/ui/view/commentslistview.d.ts +0 -104
- package/dist/types/comments/ui/view/commentthreadheaderview.d.ts +0 -54
- package/dist/types/comments/ui/view/commentthreadinputview.d.ts +0 -45
- package/dist/types/comments/ui/view/commentthreadview.d.ts +0 -122
- package/dist/types/comments/ui/view/commentview.d.ts +0 -247
- package/dist/types/comments.d.ts +0 -39
- package/dist/types/commentsonly.d.ts +0 -37
- package/dist/types/config.d.ts +0 -202
- package/dist/types/index.d.ts +0 -28
- package/dist/types/utils/common-translations.d.ts +0 -13
- package/dist/types/utils/createmutationobserver.d.ts +0 -18
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { Translations } from 'ckeditor5';
|
|
7
|
-
declare const translations: Translations;
|
|
8
|
-
export default translations;
|
package/dist/translations/ug.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export default{'ug':{'dictionary':{'Comment\x20editor':'ئىنكاس\x20تەھرىرلىگۈچ','NUMBER_OF_COMMENTS':['%0\x20ئىنكاس','%0\x20ئىنكاس'],'TOO_LONG_COMMENT_ALERT':'ئىنكاس\x20مەزمۇنى\x20بەك\x20ئۇزۇن.\x20ئىنكاسىڭىز\x20%0\x20ھەرپ\x20ئەمما\x20چېكى\x20%1\x20ھەرپ.','Reply...':'جاۋاب...','Reply\x20to\x20reopen\x20discussion...':'قايتا\x20ئېچىلغان\x20سۆزلىشىشكە\x20ئىنكاس\x20قايتۇرىدۇ…','Write\x20a\x20comment...':'ئىنكاس\x20يېزىش...','Comment\x20was\x20made\x20on\x20an\x20element':'ئېلېمېنتقا\x20ئىنكاس\x20يېزىلغان','Edit':'تەھرىرلەش','Resolve':'ھەل\x20قىل','Reopen':'قايتا\x20ئاچ','Remove':'چىقىرىۋېتىش','Reply':'جاۋاب','Delete\x20comment?':'ئىنكاسنى\x20ئۆچۈرەمسىز؟','Delete\x20comment\x20thread?':'ئىنكاس\x20باغلىمىنى\x20ئۆچۈرەمسىز؟','Marked\x20as\x20resolved':'ھەل\x20قىلىندى\x20بەلگىسى\x20سېلىنغان','Comment':'ئىنكاس','ENTER_COMMENT_ANNOUNCEMENT':'ئىنكاسقا\x20كىرىش.','LEAVE_COMMENT_ANNOUNCEMENT':'ئىنكاستىن\x20چىقىش.','PENDING_ACTION_COMMENT_THREAD':'ئىنكاس\x20رايونىدا\x20ساقلانمىغان\x20ئۆزگەرتىش\x20مەۋجۇت','EXTERNAL_COMMENT':'بۇ\x20ئىنكاس\x20سىرتقى\x20مەنبەدىن\x20كەلگەن.','EXTERNAL_IMPORT_WORD_COMMENT':'بۇ\x20ئىنكاس\x20ئەكىرىلگەن\x20Word\x20ھۆججىتىدىن\x20كەلگەن.','EXTERNAL_AVATAR':'كۆرۈنگەن\x20يازغۇچىنىڭ\x20ئىسمى\x20سىرتقى\x20مەنبە\x20(قوشقۇچى\x20%0)\x20دىن\x20كەلگەن','EXTERNAL_IMPORT_WORD_AVATAR':'كۆرۈنگەن\x20يازغۇچىنىڭ\x20ئىسمى\x20%0\x20ئەكىرگەن\x20Wordھۆججىتىدىن\x20دىن\x20كەلگەن','COMMENTS_ARCHIVE':'ئىنكاس\x20ئارخىپى','EMPTY_COMMENTS_ARCHIVE':'ئارخىپلانغان\x20ھېچقانداق\x20ئىنكاس\x20يوق.'},'getPluralForm':_0xe3853e=>0x1!=_0xe3853e}};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { Translations } from 'ckeditor5';
|
|
7
|
-
declare const translations: Translations;
|
|
8
|
-
export default translations;
|
package/dist/translations/uk.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export default{'uk':{'dictionary':{'Comment\x20editor':'Редактор\x20коментарів','NUMBER_OF_COMMENTS':['%0\x20Коментар','%0\x20Коментаря','%0\x20Коментарів','%0\x20Коментарів'],'TOO_LONG_COMMENT_ALERT':'Коментар\x20задовгий.\x20Ваш\x20коментар\x20містить\x20%0\x20знак\x20із\x20%1\x20допустимих.','Reply...':'Відповісти...','Reply\x20to\x20reopen\x20discussion...':'Відповісти,\x20щоб\x20відновити\x20обговорення...','Write\x20a\x20comment...':'Написати\x20коментар...','Comment\x20was\x20made\x20on\x20an\x20element':'Було\x20зроблено\x20коментар\x20до\x20елемента','Edit':'Редагувати','Resolve':'Вирішити','Reopen':'Відновити','Remove':'Видалити','Reply':'Відповісти','Delete\x20comment?':'Видалити\x20коментар?','Delete\x20comment\x20thread?':'Видати\x20ланцюжок\x20коментарів?','Marked\x20as\x20resolved':'Позначено\x20як\x20вирішене','Comment':'Коментар','ENTER_COMMENT_ANNOUNCEMENT':'Вхід\x20у\x20коментар.','LEAVE_COMMENT_ANNOUNCEMENT':'Вихід\x20з\x20коментаря.','PENDING_ACTION_COMMENT_THREAD':'Незбережена\x20зміна\x20ланцюжка\x20коментарів.','EXTERNAL_COMMENT':'Цей\x20коментар\x20походить\x20від\x20зовнішнього\x20джерела.','EXTERNAL_IMPORT_WORD_COMMENT':'Цей\x20коментар\x20походить\x20з\x20імпортованого\x20Word\x20файлу.','EXTERNAL_AVATAR':'Показане\x20ім\x27я\x20автора\x20походить\x20із\x20зовнішнього\x20джерела\x20(доданого\x20%0)','EXTERNAL_IMPORT_WORD_AVATAR':'Показане\x20ім\x27я\x20автора\x20походить\x20із\x20документу\x20Word\x20імпортованого\x20%0','COMMENTS_ARCHIVE':'Архів\x20коментарів','EMPTY_COMMENTS_ARCHIVE':'Немає\x20архівних\x20гілок\x20коментарів.'},'getPluralForm':_0x4be636=>_0x4be636%0x1==0x0&&_0x4be636%0xa==0x1&&_0x4be636%0x64!=0xb?0x0:_0x4be636%0x1==0x0&&_0x4be636%0xa>=0x2&&_0x4be636%0xa<=0x4&&(_0x4be636%0x64<0xc||_0x4be636%0x64>0xe)?0x1:_0x4be636%0x1==0x0&&(_0x4be636%0xa==0x0||_0x4be636%0xa>=0x5&&_0x4be636%0xa<=0x9||_0x4be636%0x64>=0xb&&_0x4be636%0x64<=0xe)?0x2:0x3}};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { Translations } from 'ckeditor5';
|
|
7
|
-
declare const translations: Translations;
|
|
8
|
-
export default translations;
|
package/dist/translations/ur.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export default{'ur':{'dictionary':{'Comment\x20editor':'تبصرہ\x20ایڈیٹر','NUMBER_OF_COMMENTS':['0%\x20تبصرہ','0%\x20تبصرے'],'TOO_LONG_COMMENT_ALERT':'آپ\x20کا\x20تبصرہ\x20طویل\x20ہے۔\x20آپ\x20کے\x20تبصرے\x20میں\x200%\x20حروف\x20ہیں\x20جبکہ\x201%\x20حروف\x20کی\x20حد\x20ہے۔','Reply...':'جواب۔۔۔','Reply\x20to\x20reopen\x20discussion...':'','Write\x20a\x20comment...':'تبصرہ\x20کریں۔۔۔','Comment\x20was\x20made\x20on\x20an\x20element':'','Edit':'ترمیم','Resolve':'','Reopen':'','Remove':'حذف\x20کریں','Reply':'','Delete\x20comment?':'تبصرہ\x20حذف\x20کریں؟','Delete\x20comment\x20thread?':'تبصرے\x20کا\x20دھاگہ\x20حذف\x20کریں؟','Marked\x20as\x20resolved':'','Comment':'تبصرہ','ENTER_COMMENT_ANNOUNCEMENT':'','LEAVE_COMMENT_ANNOUNCEMENT':'','PENDING_ACTION_COMMENT_THREAD':'تبصرے\x20دھاگے\x20میں\x20غیر\x20محفوظ\x20تبدیلیاں\x20ہیں۔','EXTERNAL_COMMENT':'','EXTERNAL_IMPORT_WORD_COMMENT':'','EXTERNAL_AVATAR':'','EXTERNAL_IMPORT_WORD_AVATAR':'','COMMENTS_ARCHIVE':'','EMPTY_COMMENTS_ARCHIVE':''},'getPluralForm':_0x507dab=>0x1!=_0x507dab}};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { Translations } from 'ckeditor5';
|
|
7
|
-
declare const translations: Translations;
|
|
8
|
-
export default translations;
|
package/dist/translations/vi.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export default{'vi':{'dictionary':{'Comment\x20editor':'Trình\x20chỉnh\x20sửa\x20bình\x20luận','NUMBER_OF_COMMENTS':'%0\x20Bình\x20luận','TOO_LONG_COMMENT_ALERT':'Nội\x20dung\x20bình\x20luận\x20quá\x20dài.\x20Bình\x20luận\x20của\x20bạn\x20có\x20%0\x20ký\x20tự,\x20tuy\x20nhiên\x20giới\x20hạn\x20ký\x20tự\x20là\x20%1.','Reply...':'Trả\x20lời...','Reply\x20to\x20reopen\x20discussion...':'Trả\x20lời\x20để\x20mở\x20lại\x20cuộc\x20thảo\x20luận...','Write\x20a\x20comment...':'Viết\x20bình\x20luận...','Comment\x20was\x20made\x20on\x20an\x20element':'Bình\x20luận\x20được\x20tạo\x20trên\x20một\x20yếu\x20tố','Edit':'Chỉnh\x20sửa','Resolve':'Xử\x20lí','Reopen':'Mở\x20lại','Remove':'Xóa','Reply':'Trả\x20lời','Delete\x20comment?':'Xóa\x20bình\x20luận?','Delete\x20comment\x20thread?':'Xóa\x20chuỗi\x20bình\x20luận?','Marked\x20as\x20resolved':'Đánh\x20dấu\x20là\x20đã\x20xử\x20lí','Comment':'Bình\x20luận','ENTER_COMMENT_ANNOUNCEMENT':'Đang\x20nhập\x20bình\x20luận.','LEAVE_COMMENT_ANNOUNCEMENT':'Đang\x20viết\x20bình\x20luận.','PENDING_ACTION_COMMENT_THREAD':'Nội\x20dung\x20thay\x20đổi\x20chưa\x20lưu\x20trong\x20chuỗi\x20bình\x20luận.','EXTERNAL_COMMENT':'Nhận\x20xét\x20này\x20đến\x20từ\x20một\x20nguồn\x20bên\x20ngoài.','EXTERNAL_IMPORT_WORD_COMMENT':'Bình\x20luận\x20này\x20đến\x20từ\x20một\x20tệp\x20Word\x20được\x20nhập.','EXTERNAL_AVATAR':'Tên\x20tác\x20giả\x20được\x20hiển\x20thị\x20đến\x20từ\x20nguồn\x20bên\x20ngoài\x20\x20(do\x20%0\x20thêm\x20vào)','EXTERNAL_IMPORT_WORD_AVATAR':'Tên\x20tác\x20giả\x20được\x20hiển\x20thị\x20đến\x20từ\x20một\x20tài\x20liệu\x20Word\x20do\x20%0\x20nhập','COMMENTS_ARCHIVE':'Kho\x20lưu\x20trữ\x20bình\x20luận','EMPTY_COMMENTS_ARCHIVE':'Không\x20có\x20chủ\x20đề\x20bình\x20luận\x20nào\x20được\x20lưu\x20trữ.'},'getPluralForm':_0x3d7066=>0x0}};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { Translations } from 'ckeditor5';
|
|
7
|
-
declare const translations: Translations;
|
|
8
|
-
export default translations;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export default{'zh-cn':{'dictionary':{'Comment\x20editor':'评论插件','NUMBER_OF_COMMENTS':'%0\x20条评论','TOO_LONG_COMMENT_ALERT':'评论内容过长。评论内容长度必须大于%0个字符而小于%1个字符。','Reply...':'回复...','Reply\x20to\x20reopen\x20discussion...':'回复以重新开启讨论……','Write\x20a\x20comment...':'编写评论...','Comment\x20was\x20made\x20on\x20an\x20element':'对元素进行了评论','Edit':'编辑','Resolve':'解决','Reopen':'重新开启','Remove':'删除','Reply':'回复','Delete\x20comment?':'删除这条评论?','Delete\x20comment\x20thread?':'删除这组评论?','Marked\x20as\x20resolved':'标记为已解决','Comment':'评论','ENTER_COMMENT_ANNOUNCEMENT':'进入评论。','LEAVE_COMMENT_ANNOUNCEMENT':'离开评论。','PENDING_ACTION_COMMENT_THREAD':'评论区有未保存内容','EXTERNAL_COMMENT':'此评论来自外部来源。','EXTERNAL_IMPORT_WORD_COMMENT':'此评论来自导入的\x20Word\x20文件。','EXTERNAL_AVATAR':'显示的作者名来自(%0\x20添加的)外部来源','EXTERNAL_IMPORT_WORD_AVATAR':'显示的作者名来自\x20%0\x20导入的\x20Word\x20文件','COMMENTS_ARCHIVE':'评论存档','EMPTY_COMMENTS_ARCHIVE':'没有已存档的评论。'},'getPluralForm':_0x2c60ae=>0x0}};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { Translations } from 'ckeditor5';
|
|
7
|
-
declare const translations: Translations;
|
|
8
|
-
export default translations;
|
package/dist/translations/zh.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export default{'zh':{'dictionary':{'Comment\x20editor':'留言編輯器','NUMBER_OF_COMMENTS':'%0\x20則留言','TOO_LONG_COMMENT_ALERT':'留言內容太長。你的留言有\x20%0\x20個字,上限字數為\x20%1。','Reply...':'回覆...','Reply\x20to\x20reopen\x20discussion...':'回覆以重新開啟討論...','Write\x20a\x20comment...':'撰寫留言...','Comment\x20was\x20made\x20on\x20an\x20element':'對元件進行的留言','Edit':'編輯','Resolve':'解決','Reopen':'重新開啟','Remove':'刪除','Reply':'回覆','Delete\x20comment?':'刪除留言?','Delete\x20comment\x20thread?':'刪除討論串?','Marked\x20as\x20resolved':'已標記為解決','Comment':'留言','ENTER_COMMENT_ANNOUNCEMENT':'正在進入留言。','LEAVE_COMMENT_ANNOUNCEMENT':'正在留下留言。','PENDING_ACTION_COMMENT_THREAD':'討論串尚未儲存。','EXTERNAL_COMMENT':'此留言來自外部來源。','EXTERNAL_IMPORT_WORD_COMMENT':'此留言來自匯入的\x20Word\x20檔案。','EXTERNAL_AVATAR':'顯示的作者名稱來自外部來源(由\x20%0\x20新增)','EXTERNAL_IMPORT_WORD_AVATAR':'顯示的作者名稱來自由\x20%0\x20匯入的\x20Word\x20文件','COMMENTS_ARCHIVE':'留言封存紀錄','EMPTY_COMMENTS_ARCHIVE':'無封存的留言串。'},'getPluralForm':_0x4e8c18=>0x0}};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/annotations/annotation
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Rect, Collection } from 'ckeditor5/src/utils.js';
|
|
14
|
-
import type { View } from 'ckeditor5/src/ui.js';
|
|
15
|
-
import type AnnotationView from './view/annotationview.js';
|
|
16
|
-
import type { AnnotationOptions } from './annotations.js';
|
|
17
|
-
declare const Annotation_base: {
|
|
18
|
-
new (): import("ckeditor5/src/utils.js").Observable;
|
|
19
|
-
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Represents an annotation.
|
|
23
|
-
*
|
|
24
|
-
* Annotation is an entity that combines an {@link module:comments/annotations/view/annotationview~AnnotationView}
|
|
25
|
-
* and an annotation target (a DOM element or a {@link module:utils/dom/rect~Rect}) to which the annotation is bound.
|
|
26
|
-
*/
|
|
27
|
-
export default class Annotation extends Annotation_base {
|
|
28
|
-
/**
|
|
29
|
-
* The visibility of the annotation. Annotations that are not visible, are filtered from Annotation UI collections.
|
|
30
|
-
*
|
|
31
|
-
* @observable
|
|
32
|
-
*/
|
|
33
|
-
isVisible: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* The annotation view.
|
|
36
|
-
*/
|
|
37
|
-
view: AnnotationView;
|
|
38
|
-
/**
|
|
39
|
-
* A collection of DOM elements which, when focused, make the annotation active.
|
|
40
|
-
*
|
|
41
|
-
* By default, this collection only contains the annotation view element.
|
|
42
|
-
* It can be extended with custom targets that will be tracked by the annotation focus tracking system.
|
|
43
|
-
*/
|
|
44
|
-
focusableElements: Collection<HTMLElement>;
|
|
45
|
-
/**
|
|
46
|
-
* Creates an instance of the {@link module:comments/annotations/annotation~Annotation}.
|
|
47
|
-
*/
|
|
48
|
-
constructor({ view, target, type, isVisible }: AnnotationOptions);
|
|
49
|
-
/**
|
|
50
|
-
* The type of the annotation.
|
|
51
|
-
*/
|
|
52
|
-
get type(): string;
|
|
53
|
-
/**
|
|
54
|
-
* The annotation inner view.
|
|
55
|
-
*
|
|
56
|
-
* It is the view that is wrapped by the annotation view.*
|
|
57
|
-
*/
|
|
58
|
-
get innerView(): View;
|
|
59
|
-
/**
|
|
60
|
-
* The annotation target to which the annotation view should be pinned.
|
|
61
|
-
*
|
|
62
|
-
* It can be an array of DOM elements or {@link module:utils/dom/rect~Rect a rect instance} or `null`.
|
|
63
|
-
*/
|
|
64
|
-
get target(): Rect | Array<HTMLElement> | null;
|
|
65
|
-
/**
|
|
66
|
-
* The position and dimensions of the annotation target to which the annotation is bound.
|
|
67
|
-
*/
|
|
68
|
-
get targetRect(): Rect | null;
|
|
69
|
-
/**
|
|
70
|
-
* The state of the annotation.
|
|
71
|
-
*/
|
|
72
|
-
get isActive(): boolean;
|
|
73
|
-
set isActive(value: boolean);
|
|
74
|
-
/**
|
|
75
|
-
* Updates the target rect in the annotation view instance.
|
|
76
|
-
*/
|
|
77
|
-
updateTargetRect(): void;
|
|
78
|
-
/**
|
|
79
|
-
* Clears all event listeners and internal collections.
|
|
80
|
-
*/
|
|
81
|
-
destroy(): void;
|
|
82
|
-
/**
|
|
83
|
-
* Refreshes the visibility of the annotation based on the visibility of the annotation target.
|
|
84
|
-
*
|
|
85
|
-
* It sets the {@link #isVisible} property when the target is not attached to DOM or if the target or its descendant has
|
|
86
|
-
* set the `display` attribute to `none`.
|
|
87
|
-
*
|
|
88
|
-
* This method only updates an annotation if the annotation target is an HTML Element.
|
|
89
|
-
*/
|
|
90
|
-
refreshVisibility(): void;
|
|
91
|
-
}
|
|
92
|
-
type Target = Rect | HTMLElement | null;
|
|
93
|
-
export type AnnotationTarget = Target | (() => Target | Array<Target>);
|
|
94
|
-
export {};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/annotations/annotationcollection
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Collection } from 'ckeditor5/src/utils.js';
|
|
14
|
-
import type { View } from 'ckeditor5/src/ui.js';
|
|
15
|
-
import type Annotation from './annotation.js';
|
|
16
|
-
/**
|
|
17
|
-
* A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
18
|
-
*
|
|
19
|
-
* It implements methods for managing annotations and creates a focus tracker for them to make it easier to manage
|
|
20
|
-
* the focus for all annotations.
|
|
21
|
-
*
|
|
22
|
-
* `AnnotationCollection` fires {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:focus} when an annotation
|
|
23
|
-
* becomes focused and {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:blur} when all annotations
|
|
24
|
-
* lose focus.
|
|
25
|
-
*/
|
|
26
|
-
export default class AnnotationCollection extends Collection<Annotation> {
|
|
27
|
-
/**
|
|
28
|
-
* @param annotations Initial annotations.
|
|
29
|
-
*/
|
|
30
|
-
constructor(annotations?: Iterable<Annotation>);
|
|
31
|
-
/**
|
|
32
|
-
* Equals to `true` when one of the annotation in the collection is focused.
|
|
33
|
-
*/
|
|
34
|
-
get isFocused(): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Adds an annotation to the collection.
|
|
37
|
-
*/
|
|
38
|
-
add(annotation: Annotation): this;
|
|
39
|
-
/**
|
|
40
|
-
* Removes the annotation from the collection.
|
|
41
|
-
*/
|
|
42
|
-
remove(annotation: Annotation): Annotation;
|
|
43
|
-
/**
|
|
44
|
-
* Gets the annotation for a given annotation view's inner view.
|
|
45
|
-
*/
|
|
46
|
-
getByInnerView(innerView: View): Annotation | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Gets the annotation for a given annotation view.
|
|
49
|
-
*/
|
|
50
|
-
getByView(view: View): Annotation | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Destroys all bindings and clears the collection.
|
|
53
|
-
*/
|
|
54
|
-
destroy(): void;
|
|
55
|
-
/**
|
|
56
|
-
* Refreshes the positioning of all annotations and sorts them topmost and leftmost.
|
|
57
|
-
*/
|
|
58
|
-
refreshPositioning(): void;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Fired when an annotation becomes active.
|
|
62
|
-
*
|
|
63
|
-
* @eventName ~AnnotationCollection#focus
|
|
64
|
-
* @param annotation An annotation that was focused.
|
|
65
|
-
*/
|
|
66
|
-
export type AnnotationFocusEvent = {
|
|
67
|
-
name: 'focus';
|
|
68
|
-
args: [annotation: Annotation];
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Fired when all annotations become blurred.
|
|
72
|
-
*
|
|
73
|
-
* @eventName ~AnnotationCollection#blur
|
|
74
|
-
*/
|
|
75
|
-
export type AnnotationBlurEvent = {
|
|
76
|
-
name: 'blur';
|
|
77
|
-
args: [];
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* A helper function that binds two {@link module:comments/annotations/annotationcollection~AnnotationCollection AnnotationCollection}s
|
|
81
|
-
* and allows filtering items based on the passed callback.
|
|
82
|
-
*
|
|
83
|
-
* Since {@link module:comments/annotations/annotationcollection~AnnotationCollection#refreshPositioning}
|
|
84
|
-
* sorts the annotations by removing and inserting items, the binding implemented by the `bindTo()` method is lost. This is why
|
|
85
|
-
* this helper needs to be used.
|
|
86
|
-
*
|
|
87
|
-
* This helper is used by the annotations UIs to filter which annotations from the
|
|
88
|
-
* {@link module:comments/annotations/annotations~Annotations#collection main annotation collection} should be handled by
|
|
89
|
-
* a given annotations UI.
|
|
90
|
-
*
|
|
91
|
-
* @param `options.source` The source collection
|
|
92
|
-
* from which the annotations will be taken.
|
|
93
|
-
* @param `options.target` The target collection
|
|
94
|
-
* that will be synced to the source collection.
|
|
95
|
-
* @param options.filter Filtering function that gets an annotation and should return `true` if the annotation should be
|
|
96
|
-
* copied to the `target` collection.
|
|
97
|
-
*/
|
|
98
|
-
export declare function bindAnnotationCollections({ source, target, filter }: {
|
|
99
|
-
source: AnnotationCollection;
|
|
100
|
-
target: AnnotationCollection;
|
|
101
|
-
filter: (annotation: Annotation) => boolean;
|
|
102
|
-
}): void;
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/annotations/annotations
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
-
import type { View } from 'ckeditor5/src/ui.js';
|
|
15
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
16
|
-
import Annotation, { type AnnotationTarget } from './annotation.js';
|
|
17
|
-
import AnnotationCollection from './annotationcollection.js';
|
|
18
|
-
import AnnotationView, { type AnnotationMainView } from './view/annotationview.js';
|
|
19
|
-
/**
|
|
20
|
-
* Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
|
|
21
|
-
* for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
|
|
22
|
-
*
|
|
23
|
-
* It allows for {@link module:comments/annotations/annotations~Annotations#add adding} and
|
|
24
|
-
* {@link module:comments/annotations/annotations~Annotations#remove removing} annotations.
|
|
25
|
-
*
|
|
26
|
-
* It manages {@link module:comments/annotations/annotations~Annotations#activate activating} and
|
|
27
|
-
* {@link module:comments/annotations/annotations~Annotations#deactivateAll deactivating} annotations. Using those methods will
|
|
28
|
-
* result in setting {@link module:comments/annotations/annotationsuis~AnnotationUI#activeAnnotation} in the appropriate
|
|
29
|
-
* {@link module:comments/annotations/annotationsuis~AnnotationsUI annotations UI} plugins.
|
|
30
|
-
*
|
|
31
|
-
* All active annotations are stored in {@link module:comments/annotations/annotations~Annotations#activeAnnotations}.
|
|
32
|
-
*
|
|
33
|
-
* `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
|
|
34
|
-
* `Annotations` and propagates information to and from annotations UI plugins.
|
|
35
|
-
*/
|
|
36
|
-
export default class Annotations extends ContextPlugin {
|
|
37
|
-
/**
|
|
38
|
-
* A set of currently active annotations.
|
|
39
|
-
*
|
|
40
|
-
* @observable
|
|
41
|
-
*/
|
|
42
|
-
activeAnnotations: Set<Annotation>;
|
|
43
|
-
/**
|
|
44
|
-
* A collection of all annotations. It should not be operated on directly.
|
|
45
|
-
*/
|
|
46
|
-
readonly collection: AnnotationCollection;
|
|
47
|
-
/**
|
|
48
|
-
* @inheritDoc
|
|
49
|
-
*/
|
|
50
|
-
static get pluginName(): "Annotations";
|
|
51
|
-
/**
|
|
52
|
-
* @inheritDoc
|
|
53
|
-
*/
|
|
54
|
-
constructor(context: Context | Editor);
|
|
55
|
-
/**
|
|
56
|
-
* Adds an annotation to the collection.
|
|
57
|
-
*/
|
|
58
|
-
add(annotation: Annotation): void;
|
|
59
|
-
/**
|
|
60
|
-
* Removes the given annotation from the collection.
|
|
61
|
-
*/
|
|
62
|
-
remove(annotation: Annotation): void;
|
|
63
|
-
/**
|
|
64
|
-
* Refreshes the visibility of annotations based on the visibility of their annotation targets.
|
|
65
|
-
*
|
|
66
|
-
* This method should be called when one or more annotations' targets changed their visibility,
|
|
67
|
-
* for example when one of the editors was shown or hidden.
|
|
68
|
-
*
|
|
69
|
-
* This method recalculates all annotations' {@link module:comments/annotations/annotation~Annotation#isVisible `isVisible`} property.
|
|
70
|
-
*/
|
|
71
|
-
refreshVisibility(): void;
|
|
72
|
-
/**
|
|
73
|
-
* Refreshes the positioning of all visible annotations and sorts them topmost and leftmost.
|
|
74
|
-
*/
|
|
75
|
-
refreshPositioning(): void;
|
|
76
|
-
/**
|
|
77
|
-
* Returns the annotation that "contains" the given annotation view's inner view.
|
|
78
|
-
*/
|
|
79
|
-
getByInnerView(innerView: View): Annotation | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* Deactivates all active annotations.
|
|
82
|
-
*
|
|
83
|
-
* @fires _deactivateAllAnnotations
|
|
84
|
-
*/
|
|
85
|
-
deactivateAll(): void;
|
|
86
|
-
/**
|
|
87
|
-
* @inheritDoc
|
|
88
|
-
*/
|
|
89
|
-
destroy(): void;
|
|
90
|
-
/**
|
|
91
|
-
* Activates the given annotation.
|
|
92
|
-
*
|
|
93
|
-
* If annotations UI that handles the given annotation already has an active annotation,
|
|
94
|
-
* then it deactivates it and activates the provided one.
|
|
95
|
-
*
|
|
96
|
-
* @fires _activateAnnotation
|
|
97
|
-
*/
|
|
98
|
-
activate(annotation: Annotation): void;
|
|
99
|
-
/**
|
|
100
|
-
* Creates an annotation.
|
|
101
|
-
*
|
|
102
|
-
* ```ts
|
|
103
|
-
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
104
|
-
*
|
|
105
|
-
* const annotation = annotations.createAnnotation( {
|
|
106
|
-
* view: annotationView,
|
|
107
|
-
* target: document.getElementById( 'target' ),
|
|
108
|
-
* type: 'comment'
|
|
109
|
-
* } );
|
|
110
|
-
* ```
|
|
111
|
-
*
|
|
112
|
-
* @returns An annotation.
|
|
113
|
-
*/
|
|
114
|
-
createAnnotation(options: AnnotationOptions): Annotation;
|
|
115
|
-
/**
|
|
116
|
-
* Creates an annotation view wrapper for the annotation content.
|
|
117
|
-
*
|
|
118
|
-
* ```ts
|
|
119
|
-
* const innerView = createCustomView();
|
|
120
|
-
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
121
|
-
* ```
|
|
122
|
-
*
|
|
123
|
-
* @returns An annotation view.
|
|
124
|
-
*/
|
|
125
|
-
createAnnotationView(locale: Locale, view: AnnotationMainView): AnnotationView;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* The configuration options which are used to create new {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
129
|
-
*
|
|
130
|
-
* @param view The annotation view.
|
|
131
|
-
* @param target The annotation target.
|
|
132
|
-
* @param type The annotation type.
|
|
133
|
-
* @param isVisible The initial visibility of the annotation.
|
|
134
|
-
*/
|
|
135
|
-
export interface AnnotationOptions {
|
|
136
|
-
view: AnnotationView;
|
|
137
|
-
target: AnnotationTarget;
|
|
138
|
-
type: string | (() => string);
|
|
139
|
-
isVisible?: boolean;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* An internal event that fires when the annotation should be activated.
|
|
143
|
-
*
|
|
144
|
-
* @eventName ~Annotations#_activateAnnotation
|
|
145
|
-
*/
|
|
146
|
-
export type ActivateAnnotationEvent = {
|
|
147
|
-
name: '_activateAnnotation';
|
|
148
|
-
args: [annotation: Annotation];
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* An internal event that fires when all annotations should be deactivated.
|
|
152
|
-
*
|
|
153
|
-
* @eventName ~Annotations#_deactivateAllAnnotations
|
|
154
|
-
*/
|
|
155
|
-
export type DeactivateAllAnnotationsEvent = {
|
|
156
|
-
name: '_deactivateAllAnnotations';
|
|
157
|
-
args: [];
|
|
158
|
-
};
|