@ckeditor/ckeditor5-comments 35.3.2 → 36.0.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 +3 -2
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +4 -4
- package/lang/translations/bg.po +4 -4
- package/lang/translations/bn.po +4 -4
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +4 -4
- package/lang/translations/cs.po +4 -4
- package/lang/translations/da.po +4 -4
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +4 -4
- package/lang/translations/el.po +4 -4
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +4 -4
- package/lang/translations/et.po +4 -4
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +4 -4
- package/lang/translations/fr.po +4 -4
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +4 -4
- package/lang/translations/hi.po +4 -4
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +4 -4
- package/lang/translations/id.po +4 -4
- package/lang/translations/it.po +4 -4
- package/lang/translations/ja.po +4 -4
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +4 -4
- package/lang/translations/lt.po +4 -4
- package/lang/translations/lv.po +4 -4
- package/lang/translations/ms.po +4 -4
- package/lang/translations/nl.po +4 -4
- package/lang/translations/no.po +4 -4
- package/lang/translations/pl.po +4 -4
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/pt.po +4 -4
- package/lang/translations/ro.po +4 -4
- package/lang/translations/ru.po +4 -4
- package/lang/translations/sk.po +4 -4
- package/lang/translations/sr-latn.po +5 -5
- package/lang/translations/sr.po +5 -5
- package/lang/translations/sv.po +4 -4
- package/lang/translations/th.po +4 -4
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +4 -4
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +7 -7
- package/lang/translations/uk.po +4 -4
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +4 -4
- package/lang/translations/zh-cn.po +4 -4
- package/lang/translations/zh.po +4 -4
- package/package.json +3 -3
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.js +2 -2
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.js +2 -2
- package/src/commentsonly.js +2 -2
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.js +2 -2
- package/theme/annotation.css +23 -6
- package/theme/commentthread.css +7 -0
package/lang/translations/ug.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -28,7 +28,7 @@ msgstr[1] "%0 ئىنكاس"
|
|
|
28
28
|
|
|
29
29
|
msgctxt "The alert displayed for a comment that is too long."
|
|
30
30
|
msgid "TOO_LONG_COMMENT_ALERT"
|
|
31
|
-
msgstr ""
|
|
31
|
+
msgstr "ئىنكاس مەزمۇنى بەك ئۇزۇن. ئىنكاسىڭىز %0 ھەرپ ئەمما چېكى %1 ھەرپ."
|
|
32
32
|
|
|
33
33
|
msgctxt "The placeholder for the reply field."
|
|
34
34
|
msgid "Reply..."
|
|
@@ -64,20 +64,20 @@ msgstr "ئىنكاس"
|
|
|
64
64
|
|
|
65
65
|
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
66
66
|
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
67
|
-
msgstr ""
|
|
67
|
+
msgstr "ئىنكاس رايونىدا ساقلانمىغان ئۆزگەرتىش مەۋجۇت"
|
|
68
68
|
|
|
69
69
|
msgctxt "The additional information that comments comes from external source."
|
|
70
70
|
msgid "EXTERNAL_COMMENT"
|
|
71
|
-
msgstr ""
|
|
71
|
+
msgstr "بۇ ئىنكاس سىرتقى مەنبەدىن كەلگەن."
|
|
72
72
|
|
|
73
73
|
msgctxt "The additional information that comments comes from imported Word file."
|
|
74
74
|
msgid "EXTERNAL_IMPORT_WORD_COMMENT"
|
|
75
|
-
msgstr ""
|
|
75
|
+
msgstr "بۇ ئىنكاس ئەكىرىلگەن Word ھۆججىتىدىن كەلگەن."
|
|
76
76
|
|
|
77
77
|
msgctxt "The additional information that displayed author name comes from an external source."
|
|
78
78
|
msgid "EXTERNAL_AVATAR"
|
|
79
|
-
msgstr ""
|
|
79
|
+
msgstr "كۆرۈنگەن يازغۇچىنىڭ ئىسمى سىرتقى مەنبە (قوشقۇچى %0) دىن كەلگەن"
|
|
80
80
|
|
|
81
81
|
msgctxt "The additional information that displayed author name comes from imported Word file."
|
|
82
82
|
msgid "EXTERNAL_IMPORT_WORD_AVATAR"
|
|
83
|
-
msgstr ""
|
|
83
|
+
msgstr "كۆرۈنگەن يازغۇچىنىڭ ئىسمى %0 ئەكىرگەن Wordھۆججىتىدىن دىن كەلگەن"
|
package/lang/translations/uk.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -74,12 +74,12 @@ msgstr "Цей коментар походить від зовнішнього
|
|
|
74
74
|
|
|
75
75
|
msgctxt "The additional information that comments comes from imported Word file."
|
|
76
76
|
msgid "EXTERNAL_IMPORT_WORD_COMMENT"
|
|
77
|
-
msgstr ""
|
|
77
|
+
msgstr "Цей коментар походить з імпортованого Word файлу."
|
|
78
78
|
|
|
79
79
|
msgctxt "The additional information that displayed author name comes from an external source."
|
|
80
80
|
msgid "EXTERNAL_AVATAR"
|
|
81
|
-
msgstr ""
|
|
81
|
+
msgstr "Показане ім'я автора походить із зовнішнього джерела (доданого %0)"
|
|
82
82
|
|
|
83
83
|
msgctxt "The additional information that displayed author name comes from imported Word file."
|
|
84
84
|
msgid "EXTERNAL_IMPORT_WORD_AVATAR"
|
|
85
|
-
msgstr ""
|
|
85
|
+
msgstr "Показане ім'я автора походить із документу Word імпортованого %0"
|
package/lang/translations/ur.po
CHANGED
package/lang/translations/vi.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -71,12 +71,12 @@ msgstr "Nhận xét này đến từ một nguồn bên ngoài."
|
|
|
71
71
|
|
|
72
72
|
msgctxt "The additional information that comments comes from imported Word file."
|
|
73
73
|
msgid "EXTERNAL_IMPORT_WORD_COMMENT"
|
|
74
|
-
msgstr ""
|
|
74
|
+
msgstr "Bình luận này đến từ một tệp Word được nhập."
|
|
75
75
|
|
|
76
76
|
msgctxt "The additional information that displayed author name comes from an external source."
|
|
77
77
|
msgid "EXTERNAL_AVATAR"
|
|
78
|
-
msgstr ""
|
|
78
|
+
msgstr "Tên tác giả được hiển thị đến từ nguồn bên ngoài (do %0 thêm vào)"
|
|
79
79
|
|
|
80
80
|
msgctxt "The additional information that displayed author name comes from imported Word file."
|
|
81
81
|
msgid "EXTERNAL_IMPORT_WORD_AVATAR"
|
|
82
|
-
msgstr ""
|
|
82
|
+
msgstr "Tên tác giả được hiển thị đến từ một tài liệu Word do %0 nhập"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -71,12 +71,12 @@ msgstr "此评论来自外部来源。"
|
|
|
71
71
|
|
|
72
72
|
msgctxt "The additional information that comments comes from imported Word file."
|
|
73
73
|
msgid "EXTERNAL_IMPORT_WORD_COMMENT"
|
|
74
|
-
msgstr ""
|
|
74
|
+
msgstr "此评论来自导入的 Word 文件。"
|
|
75
75
|
|
|
76
76
|
msgctxt "The additional information that displayed author name comes from an external source."
|
|
77
77
|
msgid "EXTERNAL_AVATAR"
|
|
78
|
-
msgstr ""
|
|
78
|
+
msgstr "显示的作者名来自(%0 添加的)外部来源"
|
|
79
79
|
|
|
80
80
|
msgctxt "The additional information that displayed author name comes from imported Word file."
|
|
81
81
|
msgid "EXTERNAL_IMPORT_WORD_AVATAR"
|
|
82
|
-
msgstr ""
|
|
82
|
+
msgstr "显示的作者名来自 %0 导入的 Word 文件"
|
package/lang/translations/zh.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -71,12 +71,12 @@ msgstr "此留言來自外部來源。"
|
|
|
71
71
|
|
|
72
72
|
msgctxt "The additional information that comments comes from imported Word file."
|
|
73
73
|
msgid "EXTERNAL_IMPORT_WORD_COMMENT"
|
|
74
|
-
msgstr ""
|
|
74
|
+
msgstr "此留言來自匯入的 Word 檔案。"
|
|
75
75
|
|
|
76
76
|
msgctxt "The additional information that displayed author name comes from an external source."
|
|
77
77
|
msgid "EXTERNAL_AVATAR"
|
|
78
|
-
msgstr ""
|
|
78
|
+
msgstr "顯示的作者名稱來自外部來源(由 %0 新增)"
|
|
79
79
|
|
|
80
80
|
msgctxt "The additional information that displayed author name comes from imported Word file."
|
|
81
81
|
msgid "EXTERNAL_IMPORT_WORD_AVATAR"
|
|
82
|
-
msgstr ""
|
|
82
|
+
msgstr "顯示的作者名稱來自由 %0 匯入的 Word 文件"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "36.0.0",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"main": "src/index.js",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"ckeditor5": "^
|
|
35
|
-
"ckeditor5-collaboration": "^
|
|
34
|
+
"ckeditor5": "^36.0.0",
|
|
35
|
+
"ckeditor5-collaboration": "^36.0.0",
|
|
36
36
|
"lodash-es": "^4.17.11"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x321a=['render','focusTracker','_target','getClientRects','targetRect','isVisible','focusableElements','refreshVisibility','type','annotation-invalid-target','nodeType','isActive','remove','offsetParent','add','object','length','_assertCorrectTarget','view','destroy','target','stopListening','set','_getNormalizedTarget','innerView','item','filter','_type','function'];(function(_0x1850db,_0x321a8b){const _0x34caee=function(_0x196779){while(--_0x196779){_0x1850db['push'](_0x1850db['shift']());}};_0x34caee(++_0x321a8b);}(_0x321a,0xca));const _0x34ca=function(_0x1850db,_0x321a8b){_0x1850db=_0x1850db-0x0;let _0x34caee=_0x321a[_0x1850db];return _0x34caee;};import{CKEditorError as _0x5682de,Rect as _0x29e2ab,Collection as _0x5f5cbd,mix as _0x14f43c,ObservableMixin as _0x4ca73a}from'ckeditor5/src/utils';export default class d{constructor({view:_0x32f7d7,target:_0x398ded,type:_0x106baa,isVisible:_0x108ea8=!0x0}){this['view']=_0x32f7d7,this[_0x34ca('0x13')]['element']||this[_0x34ca('0x13')][_0x34ca('0x1')](),this['_type']=_0x106baa,this[_0x34ca('0x3')]=_0x398ded,d['_assertCorrectTarget'](this[_0x34ca('0x18')]()),this['focusableElements']=new _0x5f5cbd([this[_0x34ca('0x13')]['element']],{'idProperty':'_id'}),this['focusableElements']['on'](_0x34ca('0xf'),(_0x2adcbf,_0x23cf7c)=>{this[_0x34ca('0x13')][_0x34ca('0x2')][_0x34ca('0xf')](_0x23cf7c);}),this[_0x34ca('0x7')]['on'](_0x34ca('0xd'),(_0x3f97ad,_0x320fc4)=>{this['view'][_0x34ca('0x2')]['remove'](_0x320fc4);}),this[_0x34ca('0x17')]('isVisible',_0x108ea8);}get[_0x34ca('0x9')](){return _0x34ca('0x0')==typeof this[_0x34ca('0x1c')]?this[_0x34ca('0x1c')]():this[_0x34ca('0x1c')];}get[_0x34ca('0x19')](){return this[_0x34ca('0x13')]['mainView'];}get[_0x34ca('0x15')](){const _0x5586ed=this[_0x34ca('0x18')]();return d[_0x34ca('0x12')](_0x5586ed),_0x5586ed;}get[_0x34ca('0x5')](){const _0xf6e53c=this['target'];if(null===_0xf6e53c)return null;if(_0xf6e53c instanceof _0x29e2ab)return _0xf6e53c;const _0x3af952=_0xf6e53c[_0x34ca('0x1b')](_0x55e904=>function(_0x13369b){const _0x26bfe8=_0x13369b[_0x34ca('0xe')];if(_0x26bfe8)return!0x0;const _0x3a857e=_0x13369b[_0x34ca('0x4')]()[_0x34ca('0x1a')](0x0);return!!_0x3a857e;}(_0x55e904));return 0x0===_0x3af952[_0x34ca('0x11')]?null:new _0x29e2ab(_0x3af952[0x0][_0x34ca('0x4')]()[_0x34ca('0x1a')](0x0));}get[_0x34ca('0xc')](){return this[_0x34ca('0x13')][_0x34ca('0xc')];}set[_0x34ca('0xc')](_0x1ddfe4){this[_0x34ca('0x13')][_0x34ca('0xc')]=_0x1ddfe4,this[_0x34ca('0x13')]['mainView'][_0x34ca('0xc')]=_0x1ddfe4;}['updateTargetRect'](){this[_0x34ca('0x13')][_0x34ca('0x5')]=this[_0x34ca('0x5')];}[_0x34ca('0x14')](){this[_0x34ca('0x7')]['stopListening'](),this[_0x34ca('0x7')]['clear'](),this[_0x34ca('0x16')]();}[_0x34ca('0x8')](){this[_0x34ca('0x6')]=!!this['targetRect'];}static[_0x34ca('0x12')](_0x4e4cf7){if(!(null===_0x4e4cf7||_0x4e4cf7 instanceof _0x29e2ab||Array['isArray'](_0x4e4cf7)&&_0x4e4cf7['every'](_0x370473=>p(_0x370473))))throw new _0x5682de(_0x34ca('0xa'),null,{'target':_0x4e4cf7});}[_0x34ca('0x18')](){let _0x199f4b=_0x34ca('0x0')==typeof this[_0x34ca('0x3')]?this['_target']():this[_0x34ca('0x3')];return _0x199f4b=p(_0x199f4b)?[_0x199f4b]:_0x199f4b,_0x199f4b;}}function p(_0x3625b5){return null!==_0x3625b5&&_0x34ca('0x10')==typeof _0x3625b5&&0x1===_0x3625b5[_0x34ca('0xb')];}_0x14f43c(d,_0x4ca73a);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2611=['focusTracker','getByView','from','change:isFocused','updateTargetRect','focus','_viewToAnnotation','getIndex','annotationcollection-not-existing-item','view','destroy','_innerViewToAnnotation','getByInnerView','targetRect','get','add','_focusTracker','_getOrderInContent','fire','top','length','sort','refreshPositioning','delete','focusableElements','stopListening','set','left','isFocused','clear','has','innerView','listenTo','remove'];(function(_0x5da147,_0x261194){const _0x3488e5=function(_0x675327){while(--_0x675327){_0x5da147['push'](_0x5da147['shift']());}};_0x3488e5(++_0x261194);}(_0x2611,0x1ed));const _0x3488=function(_0x5da147,_0x261194){_0x5da147=_0x5da147-0x0;let _0x3488e5=_0x2611[_0x5da147];return _0x3488e5;};import{CKEditorError as _0x419ecb,Collection as _0x226793,FocusTracker as _0x2cf184}from'ckeditor5/src/utils';export default class x extends _0x226793{constructor(_0x24b295=[]){super(),this[_0x3488('0x1c')]=new Map(),this[_0x3488('0x17')]=new Map(),this[_0x3488('0x21')]=new _0x2cf184(),this['_focusTracker']['on'](_0x3488('0x14'),(_0x46d0c5,_0x520e65,_0xad8de5)=>{_0xad8de5||this[_0x3488('0x1')]('blur');});for(const _0x2d4d7e of _0x24b295)this[_0x3488('0x20')](_0x2d4d7e);}get[_0x3488('0xb')](){return this[_0x3488('0x21')]['isFocused'];}[_0x3488('0x20')](_0x35e265){if(this[_0x3488('0xd')](_0x35e265))throw new _0x419ecb('annotationcollection-duplicated-item',null);this[_0x3488('0x1c')][_0x3488('0x9')](_0x35e265[_0x3488('0xe')],_0x35e265),this[_0x3488('0x17')][_0x3488('0x9')](_0x35e265['view'],_0x35e265);for(const _0x1adecb of _0x35e265[_0x3488('0x7')])this[_0x3488('0x21')][_0x3488('0x20')](_0x1adecb);this[_0x3488('0xf')](_0x35e265[_0x3488('0x7')],'add',(_0x4bd646,_0x10fbc7)=>{this[_0x3488('0x21')][_0x3488('0x20')](_0x10fbc7);}),this['listenTo'](_0x35e265['focusableElements'],_0x3488('0x10'),(_0x5668bb,_0x769dca)=>{this[_0x3488('0x21')][_0x3488('0x10')](_0x769dca);}),this[_0x3488('0xf')](_0x35e265[_0x3488('0x1a')]['focusTracker'],_0x3488('0x14'),(_0x1b8dab,_0x59695f,_0xbd595a)=>{_0xbd595a&&this[_0x3488('0x1')](_0x3488('0x16'),_0x35e265);}),_0x35e265[_0x3488('0x15')]();const _0x1ab64d=this[_0x3488('0x0')](_0x35e265[_0x3488('0x1a')][_0x3488('0x1e')]);super[_0x3488('0x20')](_0x35e265,_0x1ab64d);}[_0x3488('0x10')](_0x246b03){if(!this[_0x3488('0xd')](_0x246b03))throw new _0x419ecb(_0x3488('0x19'),null);this[_0x3488('0x8')](_0x246b03[_0x3488('0x1a')][_0x3488('0x11')]),this[_0x3488('0x8')](_0x246b03['focusableElements']);for(const _0x16e9eb of _0x246b03[_0x3488('0x7')])this[_0x3488('0x21')][_0x3488('0x10')](_0x16e9eb);this[_0x3488('0x17')]['delete'](_0x246b03['view']),this[_0x3488('0x1c')][_0x3488('0x6')](_0x246b03[_0x3488('0xe')]),super[_0x3488('0x10')](_0x246b03);}[_0x3488('0x1d')](_0x3872c7){return this[_0x3488('0x1c')][_0x3488('0x1f')](_0x3872c7);}[_0x3488('0x12')](_0x41b485){return this[_0x3488('0x17')][_0x3488('0x1f')](_0x41b485);}[_0x3488('0x1b')](){super[_0x3488('0xc')](),this['stopListening'](),this[_0x3488('0x1c')][_0x3488('0xc')](),this[_0x3488('0x17')][_0x3488('0xc')](),this[_0x3488('0x21')][_0x3488('0x1b')]();}[_0x3488('0x5')](){for(const _0xc87489 of this)_0xc87489['updateTargetRect']();this['_sort']();}['_sort'](){const _0x4a6265=Array[_0x3488('0x13')](this)[_0x3488('0x4')]((_0x2b3786,_0x4fbf21)=>y(_0x2b3786[_0x3488('0x1a')][_0x3488('0x1e')],_0x4fbf21[_0x3488('0x1a')][_0x3488('0x1e')]));for(let _0x5c57f4=_0x4a6265[_0x3488('0x3')]-0x1;_0x5c57f4>0x0;_0x5c57f4--){const _0x4e1b0c=_0x4a6265[_0x5c57f4];_0x5c57f4!==this[_0x3488('0x18')](_0x4e1b0c)&&(this[_0x3488('0x10')](_0x4e1b0c),this[_0x3488('0x20')](_0x4e1b0c,_0x5c57f4));}}[_0x3488('0x0')](_0x37f587){let _0x42d576=0x0;if(!_0x37f587)return this['_items'][_0x3488('0x3')];for(const _0x154246 of this){const _0x1fb0fa=_0x154246[_0x3488('0x1a')][_0x3488('0x1e')];if(_0x1fb0fa){if(y(_0x37f587,_0x1fb0fa)<0x0)return _0x42d576;_0x42d576++;}}return _0x42d576;}}export function bindAnnotationCollections({source:_0xacc18c,target:_0x51f0ba,filter:_0x181bc6}){for(const _0x2df24b of _0xacc18c)_0x181bc6(_0x2df24b)&&_0x51f0ba['add'](_0x2df24b);_0x51f0ba[_0x3488('0xf')](_0xacc18c,_0x3488('0x20'),(_0x354467,_0x2793ce)=>{_0x181bc6(_0x2793ce)&&_0x51f0ba['add'](_0x2793ce);}),_0x51f0ba[_0x3488('0xf')](_0xacc18c,'remove',(_0x5a81df,_0xb9b778)=>{_0x51f0ba[_0x3488('0xd')](_0xb9b778)&&_0x51f0ba[_0x3488('0x10')](_0xb9b778);});}function y(_0x69897,_0x433adb){if(null===_0x69897&&null===_0x433adb)return 0x0;if(null===_0x69897)return-0x1;if(null===_0x433adb)return 0x1;const _0x16477d=_0x69897[_0x3488('0x2')]-_0x433adb[_0x3488('0x2')];return 0x0==_0x16477d?_0x69897[_0x3488('0xa')]-_0x433adb[_0x3488('0xa')]:_0x16477d;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5842=['remove','deactivateAll','has','_visibleAnnotations','refreshVisibility','collection','destroy','pluginName','source','getByInnerView','_bindAnnotationsToVisibleAnnotations','delete','stopListening','set','fire','_addActiveAnnotation','activeAnnotations','refreshPositioning','change:isVisible','isVisible','createAnnotationView','_deactivateAllAnnotations','listenTo','add'];(function(_0x5ae431,_0x58422c){const _0x21efb3=function(_0x8073c6){while(--_0x8073c6){_0x5ae431['push'](_0x5ae431['shift']());}};_0x21efb3(++_0x58422c);}(_0x5842,0x1e2));const _0x21ef=function(_0x5ae431,_0x58422c){_0x5ae431=_0x5ae431-0x0;let _0x21efb3=_0x5842[_0x5ae431];return _0x21efb3;};import{ContextPlugin as _0x36be73}from'ckeditor5/src/core';import _0x3698b7 from'./annotation';import _0x34080d from'./annotationcollection';import _0x1ddde2 from'./view/annotationview';export default class V extends _0x36be73{static get[_0x21ef('0x5')](){return'Annotations';}constructor(_0x183dd9){super(_0x183dd9),this[_0x21ef('0x3')]=new _0x34080d(),this[_0x21ef('0x1')]=new _0x34080d(),this[_0x21ef('0xb')](_0x21ef('0xe'),new Set()),this[_0x21ef('0x8')]();}['add'](_0x51af85){this[_0x21ef('0x3')][_0x21ef('0x15')](_0x51af85);}['remove'](_0xb13804){this['collection'][_0x21ef('0x16')](_0xb13804),_0xb13804[_0x21ef('0x4')]();}[_0x21ef('0x2')](){for(const _0x2d834e of this[_0x21ef('0x3')])_0x2d834e['refreshVisibility']();}['refreshPositioning'](){this[_0x21ef('0x1')][_0x21ef('0xf')]();}[_0x21ef('0x7')](_0x1abc05){return this[_0x21ef('0x3')]['getByInnerView'](_0x1abc05);}[_0x21ef('0x17')](){this[_0x21ef('0xc')](_0x21ef('0x13'));}['destroy'](){for(const _0x2e6665 of this[_0x21ef('0x3')])_0x2e6665[_0x21ef('0x4')]();this['_visibleAnnotations']['destroy'](),this[_0x21ef('0x3')][_0x21ef('0x4')](),super[_0x21ef('0x4')]();}['activate'](_0x16d6dd){this[_0x21ef('0xc')]('_activateAnnotation',_0x16d6dd);}['createAnnotation'](_0x52402b){return new _0x3698b7(_0x52402b);}[_0x21ef('0x12')](_0x3e3ce4,_0x1f836a){return new _0x1ddde2(_0x3e3ce4,_0x1f836a);}[_0x21ef('0xd')](_0x54fef6){const _0x34b877=new Set(this[_0x21ef('0xe')]);_0x34b877[_0x21ef('0x15')](_0x54fef6),this['activeAnnotations']=_0x34b877;}['_removeActiveAnnotation'](_0x280d14){const _0x290853=new Set(this['activeAnnotations']);_0x290853[_0x21ef('0x9')](_0x280d14),this[_0x21ef('0xe')]=_0x290853;}[_0x21ef('0x8')](){const _0x3cfd2f=this[_0x21ef('0x3')],_0xd333b4=this[_0x21ef('0x1')];function _0x31c03f(_0x15af72){const _0x1bb0c9=_0x15af72[_0x21ef('0x6')];_0x1bb0c9[_0x21ef('0x11')]&&!_0xd333b4[_0x21ef('0x0')](_0x1bb0c9)?_0xd333b4['add'](_0x1bb0c9):!_0x1bb0c9['isVisible']&&_0xd333b4[_0x21ef('0x0')](_0x1bb0c9)&&_0xd333b4['remove'](_0x1bb0c9);}this['listenTo'](_0x3cfd2f,_0x21ef('0x15'),(_0xcaed09,_0x18b82c)=>{_0x18b82c['isVisible']&&_0xd333b4[_0x21ef('0x15')](_0x18b82c),this[_0x21ef('0x14')](_0x18b82c,_0x21ef('0x10'),_0x31c03f);}),this[_0x21ef('0x14')](_0x3cfd2f,_0x21ef('0x16'),(_0x18018a,_0x224be8)=>{_0xd333b4[_0x21ef('0x0')](_0x224be8)&&_0xd333b4[_0x21ef('0x16')](_0x224be8),this[_0x21ef('0xa')](_0x224be8,_0x21ef('0x10'),_0x31c03f);});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dc1=['deactivateAll','detach','context','has','plugins','hasActive','annotationsuis-register-already-registered','activeUIs','stopListening','pluginName','init','remove','_removeActiveAnnotation','function','find','delete','_activateAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','from','length','activate','switchTo','annotationsuis-activate-missing-ui','collection','_deactivateAllAnnotations','_uisData','isActive','deactivate','listenTo','set','requires','push','filter','_uis','setActiveAnnotation','_addActiveAnnotation','add','_visibleAnnotations','register','destroy','_setSelectedAnnotations','attach','get','change:activeAnnotation'];(function(_0x468b57,_0x3dc14f){const _0x3279e2=function(_0xefba30){while(--_0xefba30){_0x468b57['push'](_0x468b57['shift']());}};_0x3279e2(++_0x3dc14f);}(_0x3dc1,0x18c));const _0x3279=function(_0x468b57,_0x3dc14f){_0x468b57=_0x468b57-0x0;let _0x3279e2=_0x3dc1[_0x468b57];return _0x3279e2;};import{ContextPlugin as _0x1f9a68}from'ckeditor5/src/core';import{CKEditorError as _0x562f3a}from'ckeditor5/src/utils';import _0x4b240f,{bindAnnotationCollections as _0x1da3cd}from'./annotationcollection';import _0x4eaeb2 from'./annotations';export default class I extends _0x1f9a68{static get[_0x3279('0x1e')](){return[_0x4eaeb2];}static get[_0x3279('0x9')](){return'AnnotationsUIs';}constructor(_0xd0e870){super(_0xd0e870),this[_0x3279('0x7')]=new Set(),this[_0x3279('0x21')]=new Map(),this[_0x3279('0x19')]=new Map();}[_0x3279('0xa')](){const _0x45cc69=this[_0x3279('0x2')]['plugins'][_0x3279('0x2a')](_0x4eaeb2);this[_0x3279('0x1c')](_0x45cc69,_0x3279('0x10'),(_0x120e8d,_0x481394)=>{for(const _0x2c4d05 of this[_0x3279('0x7')]){const _0x1d8cf1=this['_uis'][_0x3279('0x2a')](_0x2c4d05);(0x0,this['_uisData'][_0x3279('0x2a')](_0x2c4d05)[_0x3279('0x20')])(_0x481394)&&_0x1d8cf1[_0x3279('0x22')](_0x481394);}}),this[_0x3279('0x1c')](_0x45cc69,_0x3279('0x18'),()=>{for(const _0x2b2495 of this[_0x3279('0x7')]){this[_0x3279('0x21')][_0x3279('0x2a')](_0x2b2495)[_0x3279('0x22')](null);}}),this[_0x3279('0x1c')](_0x45cc69['_visibleAnnotations'],_0x3279('0x24'),(_0x445d05,_0x2f1717)=>{this[_0x3279('0x11')](_0x2f1717);});}[_0x3279('0x5')](){return this[_0x3279('0x7')]['size']>0x0;}[_0x3279('0x1a')](_0x3894fb){return this['activeUIs'][_0x3279('0x3')](_0x3894fb);}[_0x3279('0x14')](_0x3e4dbb,_0x3aa44f=()=>!0x0){const _0x1b577a=this[_0x3279('0x2')][_0x3279('0x4')]['get'](_0x4eaeb2);if(!this['_uis'][_0x3279('0x3')](_0x3e4dbb))throw new _0x562f3a(_0x3279('0x16'),this,{'uiName':_0x3e4dbb});this[_0x3279('0x1a')](_0x3e4dbb)&&this['deactivate'](_0x3e4dbb),this[_0x3279('0x7')][_0x3279('0x24')](_0x3e4dbb);const _0x549d1e=new _0x4b240f(),_0x3edf12=_0x1b577a[_0x3279('0x25')];_0x1da3cd({'source':_0x3edf12,'target':_0x549d1e,'filter':_0x3aa44f}),this[_0x3279('0x19')]['set'](_0x3e4dbb,{'collection':_0x549d1e,'filter':_0x3aa44f});const _0x5ae9c2=this['_uis'][_0x3279('0x2a')](_0x3e4dbb);_0x5ae9c2[_0x3279('0x29')](_0x549d1e),this[_0x3279('0x1c')](_0x5ae9c2,_0x3279('0x2b'),(_0x445ebe,_0x4111be,_0x42d8fa,_0x1a1e01)=>{_0x1a1e01&&_0x1b577a[_0x3279('0xc')](_0x1a1e01),_0x42d8fa&&_0x1b577a[_0x3279('0x23')](_0x42d8fa);});}[_0x3279('0x1b')](_0x1c87cd){this[_0x3279('0x7')][_0x3279('0xf')](_0x1c87cd);const _0x42df47=this[_0x3279('0x21')][_0x3279('0x2a')](_0x1c87cd);_0x42df47[_0x3279('0x1')](),this[_0x3279('0x8')](_0x42df47),this[_0x3279('0x19')][_0x3279('0x2a')](_0x1c87cd)[_0x3279('0x17')][_0x3279('0x27')](),this[_0x3279('0x19')][_0x3279('0xf')](_0x1c87cd);}[_0x3279('0x15')](_0x22bec5){const _0x3a5cab=this['context'][_0x3279('0x4')][_0x3279('0x2a')](_0x4eaeb2),_0x3318b1=Array[_0x3279('0x12')](_0x3a5cab['activeAnnotations'])[0x0]||null;this[_0x3279('0x0')](),this[_0x3279('0x14')](_0x22bec5);const _0x30f5e2=this[_0x3279('0x21')]['get'](_0x22bec5);_0x30f5e2[_0x3279('0x22')](_0x3318b1),_0x30f5e2[_0x3279('0x28')]&&_0x3318b1&&_0x30f5e2[_0x3279('0x28')]([_0x3318b1]);}[_0x3279('0x0')](){for(const _0x4b6e2e of this[_0x3279('0x7')])this[_0x3279('0x1b')](_0x4b6e2e);}[_0x3279('0x26')](_0x1e8d1b,_0x3156c5){if(this[_0x3279('0x21')][_0x3279('0x3')](_0x1e8d1b))throw new _0x562f3a(_0x3279('0x6'));if(_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x29')]||_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x1')]||_0x3279('0xd')!=typeof _0x3156c5[_0x3279('0x22')])throw new _0x562f3a('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1e8d1b,_0x3156c5);}['refilterAnnotations'](){const _0x376d6f=this[_0x3279('0x2')][_0x3279('0x4')]['get'](_0x4eaeb2)[_0x3279('0x17')],_0x457ad1=new Map(),_0x1e9345=Array[_0x3279('0x12')](this[_0x3279('0x7')]);for(const _0x1b249f of this[_0x3279('0x7')]){const _0xb4e296=this[_0x3279('0x19')]['get'](_0x1b249f)[_0x3279('0x17')];for(const _0x6c1b10 of _0xb4e296)_0x457ad1[_0x3279('0x1d')](_0x6c1b10,_0x1b249f);}for(const _0x23aea4 of _0x376d6f){const _0x54ac7a=_0x457ad1[_0x3279('0x2a')](_0x23aea4);this[_0x3279('0x11')](_0x23aea4);const _0x26faf4=_0x1e9345[_0x3279('0xe')](_0x5dd1f8=>this[_0x3279('0x19')][_0x3279('0x2a')](_0x5dd1f8)[_0x3279('0x20')](_0x23aea4));_0x54ac7a!==_0x26faf4&&(_0x54ac7a&&this['_uisData'][_0x3279('0x2a')](_0x54ac7a)[_0x3279('0x17')][_0x3279('0xb')](_0x23aea4),_0x26faf4&&this[_0x3279('0x19')]['get'](_0x26faf4)[_0x3279('0x17')]['add'](_0x23aea4));}}[_0x3279('0x27')](){this[_0x3279('0x0')](),super[_0x3279('0x27')]();}[_0x3279('0x11')](_0x2921a7){const _0x42d493=[];for(const _0x34224a of this[_0x3279('0x7')]){(0x0,this[_0x3279('0x19')][_0x3279('0x2a')](_0x34224a)[_0x3279('0x20')])(_0x2921a7)&&_0x42d493[_0x3279('0x1f')](_0x34224a);}if(_0x42d493[_0x3279('0x13')]>0x1)throw new _0x562f3a('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x42d493,'annotationType':_0x2921a7['type']});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11ac=['update','refreshSelectedViews','registerAnnotation','listenTo','_editorAnnotations','refresh','view','editing','selection','add','_dataCollectors','getByInnerView','element','getRanges','editorannotations-invalid-source-callback','innerView','requires','has','getOrderedSelectedAnnotations','function','remove','push','_editorAnnotationsData','fire','isCollapsed','set','editor','range','model','document','get','blur','hasDomSelection','annotation','focusTracker','EditorAnnotations','isReadOnly','collection','delete','from','change:isFocused','pluginName'];(function(_0x5cadf7,_0x11ac2b){const _0x1a532b=function(_0x3d7f06){while(--_0x3d7f06){_0x5cadf7['push'](_0x5cadf7['shift']());}};_0x1a532b(++_0x11ac2b);}(_0x11ac,0x1e9));const _0x1a53=function(_0x5cadf7,_0x11ac2b){_0x5cadf7=_0x5cadf7-0x0;let _0x1a532b=_0x11ac[_0x5cadf7];return _0x1a532b;};import{Plugin as _0x360b8c}from'ckeditor5/src/core';import{CKEditorError as _0x519dd1}from'ckeditor5/src/utils';import{debounce as _0x58cb69}from'lodash-es';import _0x27a99c from'./annotations';export default class k extends _0x360b8c{static get[_0x1a53('0x1f')](){return[_0x27a99c];}static get[_0x1a53('0xe')](){return _0x1a53('0x8');}constructor(_0x51a8b0){super(_0x51a8b0),this[_0x1a53('0x19')]=new Set(),this[_0x1a53('0x13')]=new Set();}['init'](){const _0x2bf161=this[_0x1a53('0x29')],_0x349887=_0x2bf161[_0x1a53('0x1')][_0x1a53('0x2')][_0x1a53('0x17')],_0x588b60=_0x58cb69(()=>this['refreshSelectedViews'](),0xa);_0x349887['on']('change:range',(_0x41e279,_0x5bddde)=>{_0x5bddde['directChange']&&(_0x588b60['cancel'](),this[_0x1a53('0x10')]());}),this[_0x1a53('0x12')](_0x2bf161[_0x1a53('0x16')][_0x1a53('0x15')][_0x1a53('0x2')],_0x1a53('0xd'),(_0x2ec7b7,_0x46544b,_0x3e35c0)=>{_0x3e35c0&&_0x588b60();}),this[_0x1a53('0x12')](_0x2bf161['ui'][_0x1a53('0x7')],_0x1a53('0xd'),(_0x5eb8f0,_0x4b5fcf,_0x37f955)=>{_0x37f955||_0x2bf161[_0x1a53('0x9')]||this[_0x1a53('0x26')](_0x1a53('0x4'),{'isAnnotationTracked':_0x1476b4=>this[_0x1a53('0x25')][_0x1a53('0x20')](_0x1476b4[_0x1a53('0x1e')])});}),this[_0x1a53('0x12')](this[_0x1a53('0x29')]['ui'],_0x1a53('0xf'),()=>this[_0x1a53('0x26')]('uiUpdate'));}[_0x1a53('0x11')](_0x14b7bd){if(this[_0x1a53('0x13')][_0x1a53('0x20')](_0x14b7bd))return;this[_0x1a53('0x13')]['add'](_0x14b7bd['view']),this[_0x1a53('0x29')]['ui']['focusTracker']['add'](_0x14b7bd[_0x1a53('0x15')][_0x1a53('0x1b')]);const _0x46022d=this[_0x1a53('0x29')]['plugins'][_0x1a53('0x3')](_0x27a99c);this['listenTo'](_0x46022d[_0x1a53('0xa')],_0x1a53('0x23'),(_0x4f1c01,_0x139296)=>{this['editor']['ui']['focusTracker'][_0x1a53('0x23')](_0x139296[_0x1a53('0x15')][_0x1a53('0x1b')]),this[_0x1a53('0x13')][_0x1a53('0xb')](_0x139296[_0x1a53('0x15')]);});}[_0x1a53('0x5')](){return this[_0x1a53('0x29')][_0x1a53('0x16')][_0x1a53('0x15')][_0x1a53('0x5')];}['addSourceCollector'](_0x260b9e){if(_0x1a53('0x22')!=typeof _0x260b9e)throw new _0x519dd1(_0x1a53('0x1d'));this[_0x1a53('0x19')][_0x1a53('0x18')](_0x260b9e);}['refreshSelectedViews'](){this[_0x1a53('0x26')](_0x1a53('0x14'));}[_0x1a53('0x21')]({activeAnnotation:_0x53ed40,annotations:_0x507042}){const _0x2b2819=[],_0x178077=this['editor'][_0x1a53('0x1')]['document']['selection'],_0xae70df=Array[_0x1a53('0xc')](_0x178077[_0x1a53('0x1c')]());for(const [_0x10ffc7,_0x21723d]of this[_0x1a53('0x25')]){const _0x4ab986=_0x3c6f73(_0x21723d),_0x5223e7=_0x507042[_0x1a53('0x1a')](_0x10ffc7);_0x4ab986&&_0x5223e7&&_0x2b2819[_0x1a53('0x24')]({'annotation':_0x5223e7,'range':_0x4ab986});}function _0x3c6f73(_0x1016a1){for(const _0x2d36a6 of _0x1016a1)for(const _0x57ec67 of _0xae70df)if(_0x2d36a6['containsRange'](_0x57ec67,!_0x178077[_0x1a53('0x27')]))return _0x2d36a6;return null;}return _0x2b2819['sort']((_0x203315,_0x4530b6)=>{const _0x49416d=_0x203315[_0x1a53('0x0')],_0x444836=_0x4530b6[_0x1a53('0x0')];if(!_0x49416d['isEqual'](_0x444836)){if(_0x49416d['containsRange'](_0x444836,!0x0))return 0x1;if(_0x444836['containsRange'](_0x49416d,!0x0))return-0x1;}return _0x203315['annotation']==_0x53ed40?-0x1:_0x4530b6['annotation']==_0x53ed40?0x1:0x0;})['map'](_0x2010cc=>_0x2010cc[_0x1a53('0x6')]);}get[_0x1a53('0x25')](){const _0x15d1fc=new Map();for(const _0xeb00c5 of Array[_0x1a53('0xc')](this['_dataCollectors']))for(const [_0x2771aa,_0x447ac2]of _0xeb00c5())_0x15d1fc[_0x1a53('0x28')](_0x2771aa,_0x447ac2);return _0x15d1fc;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2236=['hasActive','left','has','_forceRefresh','_manuallyClosed','pluginName','editableElement','Esc','attach','get','width','hasView','getBoundingClientRect','editor','afterInit','focus','switchTo','_addAnnotationToBalloon','top','requires','inlineannotations-detach-not-attached','isFocused','focusTracker','updatePosition','context','change:height','_closeAnnotation','every','plugins','inlineannotations-not-allowed-with-context','_balloon','init','_getBalloonTargetForAnnotation','update','refresh','includes','_removeAnnotationFromBalloon','selection','getFirstRange','view','change:visibleView','_addedAnnotations','find','getClientRects','setActiveAnnotation','register','map','mousedown','inline','annotations','isAttached','editing','length','clear','domConverter','fromRect','showStack','_selectedAnnotations','viewRangeToDom','activeAnnotation','bottom','_setSelectedAnnotations','push','targetRect','remove','getByView','isActive','from','document','getOrderedSelectedAnnotations','add','detach','destroy','visibleView','right','inlineannotations-attach-already-attached','change:isFocused','target','keystrokes','listenTo'];(function(_0x488c71,_0x223642){const _0x49a428=function(_0x20f5f3){while(--_0x20f5f3){_0x488c71['push'](_0x488c71['shift']());}};_0x49a428(++_0x223642);}(_0x2236,0x195));const _0x49a4=function(_0x488c71,_0x223642){_0x488c71=_0x488c71-0x0;let _0x49a428=_0x2236[_0x488c71];return _0x49a428;};import{Plugin as _0x570b26}from'ckeditor5/src/core';import _0x4c0da4 from'./annotationsuis';import _0x4e6973 from'./editorannotations';import{ContextualBalloon as _0x3375ef}from'ckeditor5/src/ui';import{MouseObserver as _0x3aede7}from'ckeditor5/src/engine';import{CKEditorError as _0x54a435,Rect as _0x16318c}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x570b26{static get[_0x49a4('0xe')](){return[_0x4e6973,_0x3375ef,_0x4c0da4];}static get[_0x49a4('0x0')](){return'InlineAnnotations';}constructor(_0x396865){super(_0x396865),_0x396865[_0x49a4('0x2e')][_0x49a4('0x22')]['addObserver'](_0x3aede7),this['isAttached']=!0x1,this['set'](_0x49a4('0x36'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x49a4('0x19')]=_0x396865['plugins'][_0x49a4('0x4')](_0x3375ef),this[_0x49a4('0x24')]=new Set(),this['_selectedAnnotations']=[],this[_0x49a4('0x4e')]=!0x1;}[_0x49a4('0x1a')](){const _0x49fdad=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')](_0x4c0da4);_0x49fdad[_0x49a4('0x13')]===this[_0x49a4('0x8')]&&(_0x49fdad[_0x49a4('0x28')](_0x49a4('0x2b'),this),this[_0x49a4('0x8')][_0x49a4('0x49')]['set']('Esc',(_0x52a247,_0x216b1d)=>{const _0x596f3=this[_0x49a4('0x19')];if(this[_0x49a4('0x2d')]&&_0x596f3[_0x49a4('0x44')]){const _0x57fe3a=this[_0x49a4('0x2c')][_0x49a4('0x3c')](_0x596f3['visibleView']);this[_0x49a4('0x15')](_0x57fe3a),_0x216b1d();}}));}[_0x49a4('0x9')](){const _0x5a1312=this[_0x49a4('0x8')][_0x49a4('0x17')]['get'](_0x4c0da4);_0x5a1312[_0x49a4('0x13')]===this['editor']&&(_0x5a1312[_0x49a4('0x4b')]()||_0x5a1312[_0x49a4('0xb')]('inline'));}[_0x49a4('0x27')](_0x477990){_0x477990!==this[_0x49a4('0x36')]&&(this[_0x49a4('0x36')]&&(this['activeAnnotation'][_0x49a4('0x3d')]=!0x1),_0x477990&&this[_0x49a4('0x8')]['ui'][_0x49a4('0x11')][_0x49a4('0x10')]&&(this[_0x49a4('0xc')](_0x477990,!0x0),_0x477990['isActive']=!0x0),_0x477990||this['_setSelectedAnnotations']([]),this[_0x49a4('0x36')]=_0x477990);}[_0x49a4('0x3')](_0x3f770b){this['annotations']=_0x3f770b;const _0x236bd7=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')](_0x4c0da4),_0x544378=this['_balloon'];if(this[_0x49a4('0x2d')])throw new _0x54a435(_0x49a4('0x46'),this);if(_0x236bd7['context']!==this[_0x49a4('0x8')])throw new _0x54a435(_0x49a4('0x18'),this);const _0x5871c9=this[_0x49a4('0x8')][_0x49a4('0x17')][_0x49a4('0x4')]('EditorAnnotations');this[_0x49a4('0x4a')](_0x5871c9,_0x49a4('0x1d'),function(){const _0x4837e8=_0x5871c9[_0x49a4('0x40')]({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x49a4('0x2c')]});if(!this['_forceRefresh']&&(_0x3e9396=_0x4837e8,_0x425a4f=this[_0x49a4('0x34')],_0x3e9396[_0x49a4('0x2f')]===_0x425a4f[_0x49a4('0x2f')]&&_0x3e9396[_0x49a4('0x16')](_0x2d87be=>_0x425a4f[_0x49a4('0x1e')](_0x2d87be))))return;var _0x3e9396,_0x425a4f;this[_0x49a4('0x4e')]=!0x1,this[_0x49a4('0x38')](_0x4837e8),this[_0x49a4('0x27')](_0x4837e8[0x0]||null);}['bind'](this)),this[_0x49a4('0x4a')](_0x5871c9,'blur',(_0x2ae2cd,{isAnnotationTracked:_0x400f5d})=>{this[_0x49a4('0x36')]&&_0x400f5d(this['activeAnnotation'])&&(this[_0x49a4('0x38')]([]),this[_0x49a4('0x27')](null));}),this[_0x49a4('0x4a')](this[_0x49a4('0x8')]['ui']['focusTracker'],_0x49a4('0x47'),(_0x21f021,_0xd623c2,_0x5a3f7a)=>{_0x5a3f7a||this['setActiveAnnotation'](null);}),this[_0x49a4('0x4a')](_0x3f770b,_0x49a4('0x3b'),(_0x3a609c,_0x68813e)=>{this[_0x49a4('0x1f')](_0x68813e),_0x68813e===this[_0x49a4('0x36')]&&this[_0x49a4('0x27')](null);}),this['listenTo'](_0x544378,_0x49a4('0x23'),(_0x8b9687,_0x51e5d5,_0x30d708,_0x5a2f7f)=>{if(_0x5a2f7f&&this['stopListening'](_0x5a2f7f),!_0x30d708||!_0x3f770b['getByView'](_0x30d708))return;const _0x5c8f24=_0x3f770b[_0x49a4('0x3c')](_0x30d708);this[_0x49a4('0x4a')](_0x30d708,_0x49a4('0x14'),()=>{_0x544378[_0x49a4('0x12')]();}),this[_0x49a4('0x4a')](_0x30d708,_0x49a4('0x2'),()=>{this[_0x49a4('0x15')](_0x5c8f24),this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')][_0x49a4('0xa')]();}),this['activeAnnotation']!==_0x5c8f24&&this[_0x49a4('0x27')](_0x5c8f24);}),this['listenTo'](this[_0x49a4('0x8')]['ui'],_0x49a4('0x1c'),()=>{_0x544378['visibleView']&&(_0x3f770b[_0x49a4('0x3c')](_0x544378[_0x49a4('0x44')])&&_0x544378[_0x49a4('0x12')]());}),this[_0x49a4('0x4a')](this[_0x49a4('0x8')][_0x49a4('0x2e')]['view'][_0x49a4('0x3f')],_0x49a4('0x2a'),()=>{this[_0x49a4('0x4e')]=!0x0,this[_0x49a4('0x4f')][_0x49a4('0x30')]();}),this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')]['document'][_0x49a4('0x20')][_0x49a4('0x1')]&&this[_0x49a4('0x8')][_0x49a4('0x2e')][_0x49a4('0x22')][_0x49a4('0xa')](),this[_0x49a4('0x2d')]=!0x0;}[_0x49a4('0x42')](){if(!this[_0x49a4('0x2d')])throw new _0x54a435(_0x49a4('0xf'),this);this[_0x49a4('0x27')](null);for(const _0x48813f of this['_addedAnnotations'])this[_0x49a4('0x1f')](_0x48813f);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}[_0x49a4('0x43')](){this['isAttached']&&this[_0x49a4('0x42')]();}[_0x49a4('0x38')](_0x90d7a7){for(const _0x526d30 of this[_0x49a4('0x34')])_0x90d7a7[_0x49a4('0x1e')](_0x526d30)||this['_manuallyClosed']['delete'](_0x526d30);for(const _0x4ef536 of this[_0x49a4('0x2c')])_0x90d7a7[_0x49a4('0x1e')](_0x4ef536)||this[_0x49a4('0x1f')](_0x4ef536);if(this['editor']['ui']['focusTracker'][_0x49a4('0x10')])for(const _0x34664f of _0x90d7a7)this[_0x49a4('0xc')](_0x34664f);this[_0x49a4('0x34')]=_0x90d7a7;}[_0x49a4('0xc')](_0x5d4f78,_0x3668be){this[_0x49a4('0x4f')][_0x49a4('0x4d')](_0x5d4f78)||(this['_addedAnnotations'][_0x49a4('0x4d')](_0x5d4f78)||this[_0x49a4('0x19')][_0x49a4('0x6')](_0x5d4f78[_0x49a4('0x22')])||(this[_0x49a4('0x24')]['add'](_0x5d4f78),this[_0x49a4('0x19')]['add']({'stackId':_0x5d4f78[_0x49a4('0x22')]['id'],'view':_0x5d4f78['view'],'position':{'target':()=>this[_0x49a4('0x1b')](_0x5d4f78)}})),_0x3668be&&this[_0x49a4('0x19')][_0x49a4('0x33')](_0x5d4f78[_0x49a4('0x22')]['id']));}['_getBalloonTargetForAnnotation'](_0x34b6b9){const _0xac1413=_0x34b6b9[_0x49a4('0x48')],_0xfc5c31=this['editor'][_0x49a4('0x2e')][_0x49a4('0x22')],_0x31781c=_0xfc5c31['document'][_0x49a4('0x20')][_0x49a4('0x21')](),_0x2fe2c8=_0xfc5c31[_0x49a4('0x31')][_0x49a4('0x35')](_0x31781c);if(_0x2fe2c8['collapse'](!0x0),_0xac1413){if(_0xac1413 instanceof _0x16318c)return _0xac1413;let _0x577d1b=[];for(const _0x3af685 of _0xac1413)_0x577d1b['push'](...(_0x2298e4=_0x3af685[_0x49a4('0x26')](),Array[_0x49a4('0x3e')](_0x2298e4)[_0x49a4('0x29')](DOMRect[_0x49a4('0x32')])));_0x577d1b=function(_0x2a2694){const _0x6a7886=[];let _0x361402=_0x2a2694[0x0];for(let _0x4b68fd=0x1;_0x4b68fd<_0x2a2694[_0x49a4('0x2f')];_0x4b68fd++)E(_0x361402,_0x2a2694[_0x4b68fd])?_0x361402['width']+=_0x2a2694[_0x4b68fd][_0x49a4('0x5')]:(_0x6a7886[_0x49a4('0x39')](_0x361402),_0x361402=_0x2a2694[_0x4b68fd]);return _0x6a7886['push'](_0x361402),_0x6a7886;}(_0x577d1b);const _0x180488=_0x2fe2c8[_0x49a4('0x7')]();return _0x577d1b[_0x49a4('0x25')](_0x46894b=>_0x46894b[_0x49a4('0xd')]<=_0x180488[_0x49a4('0xd')]&&_0x46894b[_0x49a4('0x37')]>=_0x180488[_0x49a4('0x37')]&&_0x46894b['left']<=_0x180488[_0x49a4('0x4c')]&&_0x46894b[_0x49a4('0x45')]>=_0x180488['right'])||_0x577d1b[0x0];}var _0x2298e4;return _0x34b6b9[_0x49a4('0x3a')]||_0x2fe2c8;}['_removeAnnotationFromBalloon'](_0x480532){this[_0x49a4('0x24')][_0x49a4('0x4d')](_0x480532)&&this[_0x49a4('0x19')][_0x49a4('0x6')](_0x480532[_0x49a4('0x22')])&&(this[_0x49a4('0x24')]['delete'](_0x480532),this[_0x49a4('0x19')][_0x49a4('0x3b')](_0x480532['view']));}[_0x49a4('0x15')](_0x5d3286){this[_0x49a4('0x4f')][_0x49a4('0x41')](_0x5d3286),this[_0x49a4('0x1f')](_0x5d3286);}}function E(_0x57755b,_0x152910){return _0x57755b[_0x49a4('0xd')]===_0x152910['top']&&_0x57755b[_0x49a4('0x37')]===_0x152910[_0x49a4('0x37')]&&_0x57755b[_0x49a4('0x45')]===_0x152910[_0x49a4('0x4c')];}
|