@ckeditor/ckeditor5-comments 31.1.0 → 32.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/LICENSE.md +2 -2
- package/README.md +2 -2
- package/lang/translations/bs.po +80 -0
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +8 -8
- 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/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/ui/view/confirmmixin.js +2 -2
- package/src/comments/ui/view/confirmview.js +2 -2
- package/src/comments.js +2 -2
- package/src/commentsonly.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.js +2 -2
- package/src/utils/getdatetimeformatter.js +2 -2
- package/src/utils/getmarkerdomelement.js +2 -2
- package/src/utils/trim-html.js +2 -2
- package/theme/annotation-inline.css +1 -1
- package/theme/annotation.css +1 -1
- package/theme/comment.css +1 -1
- package/theme/commentinput.css +1 -1
- package/theme/commentmarker.css +1 -1
- package/theme/commentthread.css +1 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +1 -1
- package/theme/sidebar.css +1 -1
package/LICENSE.md
CHANGED
|
@@ -2,7 +2,7 @@ Software License Agreement
|
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
4
|
**CKEditor 5 comments** (https://ckeditor.com/collaboration/comments/)<br>
|
|
5
|
-
Copyright (c) 2003-2021, [CKSource](http://cksource.com)
|
|
5
|
+
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
|
|
6
6
|
|
|
7
7
|
CKEditor 5 comments feature is licensed under a commercial license and is protected by copyright law.
|
|
8
8
|
For more details about available licensing options please contact us at sales@cksource.com.
|
|
@@ -20,4 +20,4 @@ The following libraries are included in CKEditor 5 comments under the [MIT licen
|
|
|
20
20
|
Trademarks
|
|
21
21
|
----------
|
|
22
22
|
|
|
23
|
-
**CKEditor** is a trademark of [CKSource](http://cksource.com)
|
|
23
|
+
**CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
package/README.md
CHANGED
|
@@ -40,11 +40,11 @@ As a licensed CKEditor 5 comments user you can report bugs and request features
|
|
|
40
40
|
## License
|
|
41
41
|
|
|
42
42
|
**CKEditor 5 comments** (https://ckeditor.com/collaboration/comments/)<br>
|
|
43
|
-
Copyright (c) 2003-2021, [CKSource](http://cksource.com)
|
|
43
|
+
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
|
|
44
44
|
|
|
45
45
|
CKEditor 5 comments feature is licensed under a commercial license and is protected by copyright law.
|
|
46
46
|
For more details about available licensing options please contact us at sales@cksource.com.
|
|
47
47
|
|
|
48
48
|
### Trademarks
|
|
49
49
|
|
|
50
|
-
**CKEditor** is a trademark of [CKSource](http://cksource.com)
|
|
50
|
+
**CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Bosnian (https://www.transifex.com/ckeditor/teams/11143/bs/)\n"
|
|
16
|
+
"Language: bs\n"
|
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr ""
|
|
22
|
+
|
|
23
|
+
msgctxt "The label for the number of comments."
|
|
24
|
+
msgid "NUMBER_OF_COMMENTS"
|
|
25
|
+
msgid_plural "%0 Comments"
|
|
26
|
+
msgstr[0] "%0 komentar"
|
|
27
|
+
msgstr[1] "%0 komentara"
|
|
28
|
+
msgstr[2] "%0 komentara"
|
|
29
|
+
|
|
30
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
31
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
32
|
+
msgstr "Sadržaj komentara je predug. Vaš komentar ima %0 znakova, a limit za unos je %1 znakova."
|
|
33
|
+
|
|
34
|
+
msgctxt "The placeholder for the reply field."
|
|
35
|
+
msgid "Reply..."
|
|
36
|
+
msgstr "Odgovori..."
|
|
37
|
+
|
|
38
|
+
msgctxt "The placeholder for the new commend field."
|
|
39
|
+
msgid "Write a comment..."
|
|
40
|
+
msgstr "Napiši komentar..."
|
|
41
|
+
|
|
42
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
43
|
+
msgid "Edit"
|
|
44
|
+
msgstr "Uredi"
|
|
45
|
+
|
|
46
|
+
msgctxt "The label for the button that deletes a comment."
|
|
47
|
+
msgid "Remove"
|
|
48
|
+
msgstr "Ukloni"
|
|
49
|
+
|
|
50
|
+
msgctxt "The label for for the button that submits a comment."
|
|
51
|
+
msgid "Submit"
|
|
52
|
+
msgstr ""
|
|
53
|
+
|
|
54
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
55
|
+
msgid "Delete comment?"
|
|
56
|
+
msgstr "Obriši komentar?"
|
|
57
|
+
|
|
58
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
59
|
+
msgid "Delete comment thread?"
|
|
60
|
+
msgstr "Obriši niz komentara?"
|
|
61
|
+
|
|
62
|
+
msgctxt "The label for confirming an action."
|
|
63
|
+
msgid "Yes"
|
|
64
|
+
msgstr "Da"
|
|
65
|
+
|
|
66
|
+
msgctxt "The label for rejecting an action."
|
|
67
|
+
msgid "No"
|
|
68
|
+
msgstr "Ne"
|
|
69
|
+
|
|
70
|
+
msgctxt "The label for confirming a dangerous action."
|
|
71
|
+
msgid "Are you sure?"
|
|
72
|
+
msgstr "Da li ste sigurni?"
|
|
73
|
+
|
|
74
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
75
|
+
msgid "Comment"
|
|
76
|
+
msgstr "Komentar"
|
|
77
|
+
|
|
78
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
79
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
80
|
+
msgstr "Imate nesačuvane izmjene."
|
package/lang/translations/cs.po
CHANGED
package/lang/translations/da.po
CHANGED
package/lang/translations/de.po
CHANGED
package/lang/translations/en.po
CHANGED
package/lang/translations/es.po
CHANGED
package/lang/translations/et.po
CHANGED
package/lang/translations/fr.po
CHANGED
package/lang/translations/gl.po
CHANGED
package/lang/translations/hi.po
CHANGED
package/lang/translations/hr.po
CHANGED
package/lang/translations/hu.po
CHANGED
package/lang/translations/id.po
CHANGED
package/lang/translations/it.po
CHANGED
package/lang/translations/ja.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/tk.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "32.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/)",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"discussions"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ckeditor/ckeditor5-autoformat": "^
|
|
34
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
|
35
|
-
"@ckeditor/ckeditor5-collaboration-core": "^
|
|
36
|
-
"@ckeditor/ckeditor5-essentials": "^
|
|
37
|
-
"@ckeditor/ckeditor5-list": "^
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "^
|
|
39
|
-
"ckeditor5": "^
|
|
33
|
+
"@ckeditor/ckeditor5-autoformat": "^32.0.0",
|
|
34
|
+
"@ckeditor/ckeditor5-basic-styles": "^32.0.0",
|
|
35
|
+
"@ckeditor/ckeditor5-collaboration-core": "^32.0.0",
|
|
36
|
+
"@ckeditor/ckeditor5-essentials": "^32.0.0",
|
|
37
|
+
"@ckeditor/ckeditor5-list": "^32.0.0",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "^32.0.0",
|
|
39
|
+
"ckeditor5": "^32.0.0",
|
|
40
40
|
"date-fns": "^2.17.0",
|
|
41
41
|
"lodash-es": "^4.17.11"
|
|
42
42
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, 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 _0x5ade=['render','target','_id','item','_isTargetElementVisible','remove','stopListening','add','isActive','_type','refreshVisibility','isVisible','targetRect','_target','focusableElements','destroy','getClientRects','clear','focusTracker','view','_assertCorrectTarget','element','offsetParent','mainView','function'];(function(_0x5cf400,_0x5ade59){const _0x410122=function(_0x3f8687){while(--_0x3f8687){_0x5cf400['push'](_0x5cf400['shift']());}};_0x410122(++_0x5ade59);}(_0x5ade,0x1ea));const _0x4101=function(_0x5cf400,_0x5ade59){_0x5cf400=_0x5cf400-0x0;let _0x410122=_0x5ade[_0x5cf400];return _0x410122;};import{CKEditorError as _0x1d16c9,Rect as _0xd51009,Collection as _0x365ed9,mix as _0x2df483,ObservableMixin as _0x2edda8}from'ckeditor5/src/utils';import{isElement as _0x21a448}from'lodash-es';export default class p{constructor({view:_0x2d9e2a,target:_0x49949e,type:_0x3450b8,isVisible:_0x1f3f8e=!0x0}){this['view']=_0x2d9e2a,this[_0x4101('0x4')][_0x4101('0x6')]||this[_0x4101('0x4')][_0x4101('0xa')](),this['_type']=_0x3450b8,this[_0x4101('0x17')]=_0x49949e,this[_0x4101('0x5')](),this['focusableElements']=new _0x365ed9([this[_0x4101('0x4')][_0x4101('0x6')]],{'idProperty':_0x4101('0xc')}),this[_0x4101('0x18')]['on'](_0x4101('0x11'),(_0x1fb597,_0x9073fd)=>{this[_0x4101('0x4')][_0x4101('0x3')][_0x4101('0x11')](_0x9073fd);}),this[_0x4101('0x18')]['on'](_0x4101('0xf'),(_0x2d4b8a,_0x47b53d)=>{this[_0x4101('0x4')][_0x4101('0x3')]['remove'](_0x47b53d);}),this['set'](_0x4101('0x15'),_0x1f3f8e);}get['type'](){return _0x4101('0x9')==typeof this[_0x4101('0x13')]?this['_type']():this[_0x4101('0x13')];}get['innerView'](){return this[_0x4101('0x4')][_0x4101('0x8')];}get[_0x4101('0xb')](){return'function'==typeof this[_0x4101('0x17')]?this['_target']():this['_target'];}get[_0x4101('0x16')](){const _0x20aba9=this['target'];return this[_0x4101('0x5')](),null!==_0x20aba9&&this[_0x4101('0xe')]()?new _0xd51009(_0x20aba9):null;}get[_0x4101('0x12')](){return this[_0x4101('0x4')][_0x4101('0x12')];}set[_0x4101('0x12')](_0x2a69a4){this['view'][_0x4101('0x12')]=_0x2a69a4,this[_0x4101('0x4')][_0x4101('0x8')]['isActive']=_0x2a69a4;}['updateTargetRect'](){this['view'][_0x4101('0x16')]=this[_0x4101('0x16')];}[_0x4101('0x0')](){this[_0x4101('0x18')][_0x4101('0x10')](),this[_0x4101('0x18')][_0x4101('0x2')](),this[_0x4101('0x10')]();}[_0x4101('0x14')](){this[_0x4101('0x15')]=this[_0x4101('0xe')]();}[_0x4101('0xe')](){const _0xf869e6=this[_0x4101('0xb')];if(_0x21a448(_0xf869e6)){const _0x1f6e99=_0xf869e6[_0x4101('0x1')]()[_0x4101('0xd')](0x0),_0x1e5de6=_0xf869e6[_0x4101('0x7')];if(!_0x1f6e99||!_0x1e5de6)return!0x1;}return!0x0;}[_0x4101('0x5')](){const _0x43c9e2=this[_0x4101('0xb')];if(!(null===_0x43c9e2||_0x43c9e2 instanceof _0xd51009||_0x21a448(_0x43c9e2)))throw new _0x1d16c9('annotation-invalid-target',null,{'target':_0x43c9e2});}}_0x2df483(p,_0x2edda8);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, 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 _0x179d=['stopListening','length','delete','getByInnerView','focusableElements','change:isFocused','isFocused','from','getByView','annotationcollection-not-existing-item','innerView','view','get','focusTracker','_items','_getOrderInContent','annotationcollection-duplicated-item','remove','clear','listenTo','_innerViewToAnnotation','has','refreshPositioning','set','add','fire','left','sort','targetRect','top','getIndex','_viewToAnnotation','updateTargetRect','focus','_focusTracker'];(function(_0x33e300,_0x179ddd){const _0x3ecfa2=function(_0x5ba055){while(--_0x5ba055){_0x33e300['push'](_0x33e300['shift']());}};_0x3ecfa2(++_0x179ddd);}(_0x179d,0x13e));const _0x3ecf=function(_0x33e300,_0x179ddd){_0x33e300=_0x33e300-0x0;let _0x3ecfa2=_0x179d[_0x33e300];return _0x3ecfa2;};import{CKEditorError as _0x36332e,Collection as _0x214faf,FocusTracker as _0x1b3679}from'ckeditor5/src/utils';export default class x extends _0x214faf{constructor(_0x286a02=[]){super(),this[_0x3ecf('0x11')]=new Map(),this[_0x3ecf('0x1c')]=new Map(),this[_0x3ecf('0x1f')]=new _0x1b3679(),this[_0x3ecf('0x1f')]['on'](_0x3ecf('0x2'),(_0x36c84a,_0x7a54a,_0x13eed5)=>{_0x13eed5||this['fire']('blur');});for(const _0x29ec6f of _0x286a02)this['add'](_0x29ec6f);}get[_0x3ecf('0x3')](){return this[_0x3ecf('0x1f')][_0x3ecf('0x3')];}[_0x3ecf('0x15')](_0x318c4d){if(this[_0x3ecf('0x12')](_0x318c4d))throw new _0x36332e(_0x3ecf('0xd'),null);this[_0x3ecf('0x11')]['set'](_0x318c4d[_0x3ecf('0x7')],_0x318c4d),this[_0x3ecf('0x1c')][_0x3ecf('0x14')](_0x318c4d[_0x3ecf('0x8')],_0x318c4d);for(const _0x153b4b of _0x318c4d[_0x3ecf('0x1')])this['_focusTracker']['add'](_0x153b4b);this[_0x3ecf('0x10')](_0x318c4d[_0x3ecf('0x1')],'add',(_0x12af1c,_0x532e83)=>{this[_0x3ecf('0x1f')][_0x3ecf('0x15')](_0x532e83);}),this[_0x3ecf('0x10')](_0x318c4d[_0x3ecf('0x1')],_0x3ecf('0xe'),(_0x33a585,_0xc7274a)=>{this['_focusTracker'][_0x3ecf('0xe')](_0xc7274a);}),this[_0x3ecf('0x10')](_0x318c4d[_0x3ecf('0x8')]['focusTracker'],_0x3ecf('0x2'),(_0x1707a3,_0x41c5cf,_0x4f40f8)=>{_0x4f40f8&&this[_0x3ecf('0x16')](_0x3ecf('0x1e'),_0x318c4d);});const _0x1d97f5=this[_0x3ecf('0xc')](_0x318c4d);super['add'](_0x318c4d,_0x1d97f5),_0x318c4d[_0x3ecf('0x1d')]();}[_0x3ecf('0xe')](_0x13e9c7){if(!this[_0x3ecf('0x12')](_0x13e9c7))throw new _0x36332e(_0x3ecf('0x6'),null);this[_0x3ecf('0x20')](_0x13e9c7[_0x3ecf('0x8')][_0x3ecf('0xa')]),this[_0x3ecf('0x20')](_0x13e9c7[_0x3ecf('0x1')]);for(const _0x1a95ad of _0x13e9c7['focusableElements'])this['_focusTracker'][_0x3ecf('0xe')](_0x1a95ad);this[_0x3ecf('0x1c')][_0x3ecf('0x22')](_0x13e9c7[_0x3ecf('0x8')]),this['_innerViewToAnnotation'][_0x3ecf('0x22')](_0x13e9c7[_0x3ecf('0x7')]),super[_0x3ecf('0xe')](_0x13e9c7);}[_0x3ecf('0x0')](_0x11f7b6){return this['_innerViewToAnnotation'][_0x3ecf('0x9')](_0x11f7b6);}[_0x3ecf('0x5')](_0x968906){return this['_viewToAnnotation']['get'](_0x968906);}['destroy'](){super[_0x3ecf('0xf')](),this[_0x3ecf('0x20')](),this[_0x3ecf('0x11')][_0x3ecf('0xf')](),this[_0x3ecf('0x1c')][_0x3ecf('0xf')](),this[_0x3ecf('0x1f')]['destroy']();}[_0x3ecf('0x13')](){for(const _0x2af30b of this)_0x2af30b[_0x3ecf('0x1d')]();this['_sort']();}['_sort'](){const _0x2dac65=Array[_0x3ecf('0x4')](this)[_0x3ecf('0x18')]((_0x4bc007,_0x8f89d8)=>y(_0x4bc007['targetRect'],_0x8f89d8[_0x3ecf('0x19')]));for(let _0x185c40=_0x2dac65[_0x3ecf('0x21')]-0x1;_0x185c40>0x0;_0x185c40--){const _0x1d2cc0=_0x2dac65[_0x185c40];_0x185c40!==this[_0x3ecf('0x1b')](_0x1d2cc0)&&(this[_0x3ecf('0xe')](_0x1d2cc0),this['add'](_0x1d2cc0,_0x185c40));}}[_0x3ecf('0xc')](_0x4f1d5e){let _0x56bbeb=0x0;const _0x2d0574=_0x4f1d5e[_0x3ecf('0x19')];if(!_0x2d0574)return this[_0x3ecf('0xb')][_0x3ecf('0x21')];for(const _0x2f7368 of this){const _0x16555b=_0x2f7368[_0x3ecf('0x19')];if(_0x16555b){if(y(_0x2d0574,_0x16555b)<0x0)return _0x56bbeb;_0x56bbeb++;}}return _0x56bbeb;}}export function bindAnnotationCollections({source:_0x890f07,target:_0x25349b,filter:_0x389ef3}){for(const _0x2be3cb of _0x890f07)_0x389ef3(_0x2be3cb)&&_0x25349b[_0x3ecf('0x15')](_0x2be3cb);_0x25349b[_0x3ecf('0x10')](_0x890f07,_0x3ecf('0x15'),(_0xc089eb,_0x498a84)=>{_0x389ef3(_0x498a84)&&_0x25349b['add'](_0x498a84);}),_0x25349b[_0x3ecf('0x10')](_0x890f07,'remove',(_0x1da88e,_0x34f992)=>{_0x25349b['has'](_0x34f992)&&_0x25349b[_0x3ecf('0xe')](_0x34f992);});}function y(_0x5508b3,_0x3353c5){if(null===_0x5508b3&&null===_0x3353c5)return 0x0;if(null===_0x5508b3)return-0x1;if(null===_0x3353c5)return 0x1;const _0x5e3bbe=_0x5508b3[_0x3ecf('0x1a')]-_0x3353c5[_0x3ecf('0x1a')];return 0x0==_0x5e3bbe?_0x5508b3[_0x3ecf('0x17')]-_0x3353c5[_0x3ecf('0x17')]:_0x5e3bbe;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, 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 _0x387a=['stopListening','_deactivateAllAnnotations','isVisible','refreshVisibility','Annotations','activate','_activateAnnotation','has','add','listenTo','change:isVisible','activeAnnotations','collection','source','pluginName','getByInnerView','_visibleAnnotations','destroy','_bindAnnotationsToVisibleAnnotations','remove','delete','_addActiveAnnotation','deactivateAll','refreshPositioning'];(function(_0x1d826a,_0x387a93){const _0x4d9dfb=function(_0x11c1b5){while(--_0x11c1b5){_0x1d826a['push'](_0x1d826a['shift']());}};_0x4d9dfb(++_0x387a93);}(_0x387a,0xe0));const _0x4d9d=function(_0x1d826a,_0x387a93){_0x1d826a=_0x1d826a-0x0;let _0x4d9dfb=_0x387a[_0x1d826a];return _0x4d9dfb;};import{ContextPlugin as _0x47cd74}from'ckeditor5/src/core';import _0x2cf3c9 from'./annotationcollection';export default class v extends _0x47cd74{static get[_0x4d9d('0x6')](){return _0x4d9d('0x14');}constructor(_0x2c5303){super(_0x2c5303),this[_0x4d9d('0x4')]=new _0x2cf3c9(),this[_0x4d9d('0x8')]=new _0x2cf3c9(),this['set'](_0x4d9d('0x3'),new Set()),this[_0x4d9d('0xa')]();}[_0x4d9d('0x0')](_0x2bfeba){this[_0x4d9d('0x4')][_0x4d9d('0x0')](_0x2bfeba);}[_0x4d9d('0xb')](_0x21a693){this['collection'][_0x4d9d('0xb')](_0x21a693),_0x21a693[_0x4d9d('0x9')]();}[_0x4d9d('0x13')](){for(const _0x41ba30 of this['collection'])_0x41ba30[_0x4d9d('0x13')]();}[_0x4d9d('0xf')](){this[_0x4d9d('0x8')]['refreshPositioning']();}[_0x4d9d('0x7')](_0x4e07dc){return this[_0x4d9d('0x4')][_0x4d9d('0x7')](_0x4e07dc);}[_0x4d9d('0xe')](){this['fire'](_0x4d9d('0x11'));}['destroy'](){for(const _0x20e9f5 of this[_0x4d9d('0x4')])_0x20e9f5['destroy']();this['_visibleAnnotations'][_0x4d9d('0x9')](),this[_0x4d9d('0x4')]['destroy'](),super[_0x4d9d('0x9')]();}[_0x4d9d('0x15')](_0x4c84f3){this['fire'](_0x4d9d('0x16'),_0x4c84f3);}[_0x4d9d('0xd')](_0xedf333){const _0x3a2bb7=new Set(this[_0x4d9d('0x3')]);_0x3a2bb7[_0x4d9d('0x0')](_0xedf333),this['activeAnnotations']=_0x3a2bb7;}['_removeActiveAnnotation'](_0x3c2624){const _0x1e893d=new Set(this['activeAnnotations']);_0x1e893d[_0x4d9d('0xc')](_0x3c2624),this[_0x4d9d('0x3')]=_0x1e893d;}[_0x4d9d('0xa')](){const _0x15c3a0=this[_0x4d9d('0x4')],_0x48f05c=this['_visibleAnnotations'];function _0x191d29(_0x226060){const _0x7f8814=_0x226060[_0x4d9d('0x5')];_0x7f8814[_0x4d9d('0x12')]&&!_0x48f05c[_0x4d9d('0x17')](_0x7f8814)?_0x48f05c['add'](_0x7f8814):!_0x7f8814[_0x4d9d('0x12')]&&_0x48f05c[_0x4d9d('0x17')](_0x7f8814)&&_0x48f05c[_0x4d9d('0xb')](_0x7f8814);}this[_0x4d9d('0x1')](_0x15c3a0,_0x4d9d('0x0'),(_0x16088b,_0x5da884)=>{_0x5da884['isVisible']&&_0x48f05c[_0x4d9d('0x0')](_0x5da884),this[_0x4d9d('0x1')](_0x5da884,_0x4d9d('0x2'),_0x191d29);}),this[_0x4d9d('0x1')](_0x15c3a0,_0x4d9d('0xb'),(_0x31eab0,_0x2846fe)=>{_0x48f05c['has'](_0x2846fe)&&_0x48f05c['remove'](_0x2846fe),this[_0x4d9d('0x10')](_0x2846fe,_0x4d9d('0x2'),_0x191d29);});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, 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 _0x5b6e=['from','deactivateAll','add','isActive','collection','has','filter','annotationsuis-register-invalid-interface','destroy','set','push','annotationsuis-register-already-registered','type','context','plugins','annotationsuis-annotation-mismatch','activate','requires','listenTo','attach','activeAnnotations','hasActive','_assertAnnotationDoesNotBelongToMultipleUIs','activeUIs','_uisData','get','size','change:activeAnnotation','find','AnnotationsUIs','length','function','delete','_addActiveAnnotation','_uis','switchTo','setActiveAnnotation','detach','_setSelectedAnnotations','_activateAnnotation','deactivate','_visibleAnnotations','pluginName'];(function(_0x9aded0,_0x5b6e1b){const _0x1399fa=function(_0x295531){while(--_0x295531){_0x9aded0['push'](_0x9aded0['shift']());}};_0x1399fa(++_0x5b6e1b);}(_0x5b6e,0x8c));const _0x1399=function(_0x9aded0,_0x5b6e1b){_0x9aded0=_0x9aded0-0x0;let _0x1399fa=_0x5b6e[_0x9aded0];return _0x1399fa;};import{ContextPlugin as _0x19a17c}from'ckeditor5/src/core';import{CKEditorError as _0x38106e}from'ckeditor5/src/utils';import _0x19f427,{bindAnnotationCollections as _0x4eb783}from'./annotationcollection';import _0x285315 from'./annotations';export default class I extends _0x19a17c{static get[_0x1399('0x6')](){return[_0x285315];}static get[_0x1399('0x1f')](){return _0x1399('0x12');}constructor(_0x39e8f5){super(_0x39e8f5),this['activeUIs']=new Set(),this['_uis']=new Map(),this[_0x1399('0xd')]=new Map();}['init'](){const _0x334d52=this[_0x1399('0x2')][_0x1399('0x3')][_0x1399('0xe')](_0x285315);this[_0x1399('0x7')](_0x334d52,_0x1399('0x1c'),(_0x4448a2,_0x2415ed)=>{for(const _0x405fd8 of this[_0x1399('0xc')]){const _0x3bd9be=this['_uis'][_0x1399('0xe')](_0x405fd8);(0x0,this['_uisData'][_0x1399('0xe')](_0x405fd8)['filter'])(_0x2415ed)&&_0x3bd9be['setActiveAnnotation'](_0x2415ed);}}),this[_0x1399('0x7')](_0x334d52,'_deactivateAllAnnotations',()=>{for(const _0x3c8f80 of this[_0x1399('0xc')]){this[_0x1399('0x17')][_0x1399('0xe')](_0x3c8f80)['setActiveAnnotation'](null);}}),this['listenTo'](_0x334d52[_0x1399('0x1e')],'add',(_0x240b1d,_0x50101e)=>{this[_0x1399('0xb')](_0x50101e);});}[_0x1399('0xa')](){return this['activeUIs'][_0x1399('0xf')]>0x0;}[_0x1399('0x23')](_0x342495){return this['activeUIs']['has'](_0x342495);}[_0x1399('0x5')](_0x4436e4,_0x5057b4=()=>!0x0){const _0x561f4b=this[_0x1399('0x2')]['plugins'][_0x1399('0xe')](_0x285315);if(!this[_0x1399('0x17')][_0x1399('0x25')](_0x4436e4))throw new _0x38106e('annotationsuis-activate-missing-ui',this,{'uiName':_0x4436e4});this['isActive'](_0x4436e4)&&this['deactivate'](_0x4436e4),this[_0x1399('0xc')]['add'](_0x4436e4);const _0xe3ce5e=new _0x19f427(),_0x3a6746=_0x561f4b[_0x1399('0x1e')];_0x4eb783({'source':_0x3a6746,'target':_0xe3ce5e,'filter':_0x5057b4}),this[_0x1399('0xd')][_0x1399('0x29')](_0x4436e4,{'collection':_0xe3ce5e,'filter':_0x5057b4});const _0x484771=this[_0x1399('0x17')][_0x1399('0xe')](_0x4436e4);_0x484771[_0x1399('0x8')](_0xe3ce5e),this[_0x1399('0x7')](_0x484771,_0x1399('0x10'),(_0x295fd0,_0x504fe3,_0x4f2a4d,_0xec7f55)=>{_0xec7f55&&_0x561f4b['_removeActiveAnnotation'](_0xec7f55),_0x4f2a4d&&_0x561f4b[_0x1399('0x16')](_0x4f2a4d);});}['deactivate'](_0x1063b8){this[_0x1399('0xc')][_0x1399('0x15')](_0x1063b8);const _0x2361e6=this[_0x1399('0x17')]['get'](_0x1063b8);_0x2361e6[_0x1399('0x1a')](),this['stopListening'](_0x2361e6),this[_0x1399('0xd')][_0x1399('0xe')](_0x1063b8)[_0x1399('0x24')][_0x1399('0x28')](),this['_uisData'][_0x1399('0x15')](_0x1063b8);}[_0x1399('0x18')](_0x10bfc4){const _0x32369f=this[_0x1399('0x2')][_0x1399('0x3')][_0x1399('0xe')](_0x285315),_0x593d75=Array[_0x1399('0x20')](_0x32369f[_0x1399('0x9')])[0x0]||null;this['deactivateAll'](),this[_0x1399('0x5')](_0x10bfc4);const _0x17d9ef=this[_0x1399('0x17')]['get'](_0x10bfc4);_0x17d9ef[_0x1399('0x19')](_0x593d75),_0x17d9ef[_0x1399('0x1b')]&&_0x593d75&&_0x17d9ef[_0x1399('0x1b')]([_0x593d75]);}[_0x1399('0x21')](){for(const _0x1bfa92 of this[_0x1399('0xc')])this[_0x1399('0x1d')](_0x1bfa92);}['register'](_0x3bfea7,_0x2111f7){if(this[_0x1399('0x17')][_0x1399('0x25')](_0x3bfea7))throw new _0x38106e(_0x1399('0x0'));if(_0x1399('0x14')!=typeof _0x2111f7[_0x1399('0x8')]||_0x1399('0x14')!=typeof _0x2111f7['detach']||'function'!=typeof _0x2111f7[_0x1399('0x19')])throw new _0x38106e(_0x1399('0x27'),null);this[_0x1399('0x17')][_0x1399('0x29')](_0x3bfea7,_0x2111f7);}['refilterAnnotations'](){const _0x2bacc6=this[_0x1399('0x2')][_0x1399('0x3')]['get'](_0x285315)['collection'],_0x3a9497=new Map(),_0x67e443=Array[_0x1399('0x20')](this[_0x1399('0xc')]);for(const _0x230ce7 of this['activeUIs']){const _0x3e5f10=this[_0x1399('0xd')][_0x1399('0xe')](_0x230ce7)[_0x1399('0x24')];for(const _0x55113b of _0x3e5f10)_0x3a9497[_0x1399('0x29')](_0x55113b,_0x230ce7);}for(const _0x56f044 of _0x2bacc6){const _0x67c3a6=_0x3a9497['get'](_0x56f044);this[_0x1399('0xb')](_0x56f044);const _0x33ff1a=_0x67e443[_0x1399('0x11')](_0x2d0c4d=>this[_0x1399('0xd')]['get'](_0x2d0c4d)[_0x1399('0x26')](_0x56f044));_0x67c3a6!==_0x33ff1a&&(_0x67c3a6&&this[_0x1399('0xd')][_0x1399('0xe')](_0x67c3a6)[_0x1399('0x24')]['remove'](_0x56f044),_0x33ff1a&&this[_0x1399('0xd')]['get'](_0x33ff1a)[_0x1399('0x24')][_0x1399('0x22')](_0x56f044));}}[_0x1399('0x28')](){this[_0x1399('0x21')](),super[_0x1399('0x28')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xd14a90){const _0x291396=[];for(const _0x1b3b2e of this[_0x1399('0xc')]){(0x0,this[_0x1399('0xd')][_0x1399('0xe')](_0x1b3b2e)[_0x1399('0x26')])(_0xd14a90)&&_0x291396[_0x1399('0x2a')](_0x1b3b2e);}if(_0x291396[_0x1399('0x13')]>0x1)throw new _0x38106e(_0x1399('0x4'),null,{'matchedUIs':_0x291396,'annotationType':_0xd14a90[_0x1399('0x1')]});}}
|