@ckeditor/ckeditor5-comments 29.2.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 +79 -0
- 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 +78 -0
- 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 +2 -2
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +3 -3
- package/theme/sidebar.css +1 -1
- package/theme/icons/add-comment-inverted.svg +0 -11
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
|
@@ -0,0 +1,79 @@
|
|
|
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: Danish (https://www.transifex.com/ckeditor/teams/11143/da/)\n"
|
|
16
|
+
"Language: da\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr "Kommentarer"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label for the number of comments."
|
|
24
|
+
msgid "NUMBER_OF_COMMENTS"
|
|
25
|
+
msgid_plural "%0 Comments"
|
|
26
|
+
msgstr[0] "%0 kommentar."
|
|
27
|
+
msgstr[1] "%0 kommentarer."
|
|
28
|
+
|
|
29
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
30
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
31
|
+
msgstr "Kommentar er for lang. Din kommentar indeholder %0 tegn, men grænsen er %1 tegn."
|
|
32
|
+
|
|
33
|
+
msgctxt "The placeholder for the reply field."
|
|
34
|
+
msgid "Reply..."
|
|
35
|
+
msgstr "Besvar..."
|
|
36
|
+
|
|
37
|
+
msgctxt "The placeholder for the new commend field."
|
|
38
|
+
msgid "Write a comment..."
|
|
39
|
+
msgstr "Skriv en kommentar..."
|
|
40
|
+
|
|
41
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
42
|
+
msgid "Edit"
|
|
43
|
+
msgstr "Rediger"
|
|
44
|
+
|
|
45
|
+
msgctxt "The label for the button that deletes a comment."
|
|
46
|
+
msgid "Remove"
|
|
47
|
+
msgstr "Slet"
|
|
48
|
+
|
|
49
|
+
msgctxt "The label for for the button that submits a comment."
|
|
50
|
+
msgid "Submit"
|
|
51
|
+
msgstr "Send"
|
|
52
|
+
|
|
53
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
54
|
+
msgid "Delete comment?"
|
|
55
|
+
msgstr "Slet kommentar?"
|
|
56
|
+
|
|
57
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
58
|
+
msgid "Delete comment thread?"
|
|
59
|
+
msgstr "Slet kommentartråd?"
|
|
60
|
+
|
|
61
|
+
msgctxt "The label for confirming an action."
|
|
62
|
+
msgid "Yes"
|
|
63
|
+
msgstr "Ja"
|
|
64
|
+
|
|
65
|
+
msgctxt "The label for rejecting an action."
|
|
66
|
+
msgid "No"
|
|
67
|
+
msgstr "Nej"
|
|
68
|
+
|
|
69
|
+
msgctxt "The label for confirming a dangerous action."
|
|
70
|
+
msgid "Are you sure?"
|
|
71
|
+
msgstr "Er du sikker?"
|
|
72
|
+
|
|
73
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
74
|
+
msgid "Comment"
|
|
75
|
+
msgstr "Kommentar"
|
|
76
|
+
|
|
77
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
78
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
79
|
+
msgstr "Ikke gemte ændringer i kommentartråd."
|
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
|
@@ -0,0 +1,78 @@
|
|
|
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: Indonesian (https://www.transifex.com/ckeditor/teams/11143/id/)\n"
|
|
16
|
+
"Language: id\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The label for the comment editor."
|
|
20
|
+
msgid "Comment editor"
|
|
21
|
+
msgstr "Editor komentar"
|
|
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
|
+
|
|
28
|
+
msgctxt "The alert displayed for a comment that is too long."
|
|
29
|
+
msgid "TOO_LONG_COMMENT_ALERT"
|
|
30
|
+
msgstr "Komentar terlalu panjang. Komentar Anda berisi %0 karakter tapi batas maksimalnya adalah %1 karakter."
|
|
31
|
+
|
|
32
|
+
msgctxt "The placeholder for the reply field."
|
|
33
|
+
msgid "Reply..."
|
|
34
|
+
msgstr "Balas..."
|
|
35
|
+
|
|
36
|
+
msgctxt "The placeholder for the new commend field."
|
|
37
|
+
msgid "Write a comment..."
|
|
38
|
+
msgstr "Tulis sebuah komentar..."
|
|
39
|
+
|
|
40
|
+
msgctxt "The label for the button that enables editing a comment."
|
|
41
|
+
msgid "Edit"
|
|
42
|
+
msgstr "Ubah"
|
|
43
|
+
|
|
44
|
+
msgctxt "The label for the button that deletes a comment."
|
|
45
|
+
msgid "Remove"
|
|
46
|
+
msgstr "Hapus"
|
|
47
|
+
|
|
48
|
+
msgctxt "The label for for the button that submits a comment."
|
|
49
|
+
msgid "Submit"
|
|
50
|
+
msgstr "Kirim"
|
|
51
|
+
|
|
52
|
+
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
53
|
+
msgid "Delete comment?"
|
|
54
|
+
msgstr "Hapus komentar?"
|
|
55
|
+
|
|
56
|
+
msgctxt "The confirmation message shown after pressing the delete comment thread button."
|
|
57
|
+
msgid "Delete comment thread?"
|
|
58
|
+
msgstr "Hapus utas komentar?"
|
|
59
|
+
|
|
60
|
+
msgctxt "The label for confirming an action."
|
|
61
|
+
msgid "Yes"
|
|
62
|
+
msgstr "Ya"
|
|
63
|
+
|
|
64
|
+
msgctxt "The label for rejecting an action."
|
|
65
|
+
msgid "No"
|
|
66
|
+
msgstr "Tidak"
|
|
67
|
+
|
|
68
|
+
msgctxt "The label for confirming a dangerous action."
|
|
69
|
+
msgid "Are you sure?"
|
|
70
|
+
msgstr "Apakah Anda yakin?"
|
|
71
|
+
|
|
72
|
+
msgctxt "The tooltip for the comment toolbar button."
|
|
73
|
+
msgid "Comment"
|
|
74
|
+
msgstr "Komentar"
|
|
75
|
+
|
|
76
|
+
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
77
|
+
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
78
|
+
msgstr "Perubahan tidak tersimpar di utas komentar"
|
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;}
|