@ckeditor/ckeditor5-comments 45.2.1 → 46.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/dist/index-editor.css +69 -67
- package/dist/index.css +80 -78
- package/dist/index.js +11 -9
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +19 -19
- package/src/annotations/annotation.d.ts +4 -4
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +2 -2
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +4 -4
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +4 -4
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +4 -4
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +5 -5
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +5 -5
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +14 -13
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +1 -1
- package/src/annotations/view/sidebaritemview.js +2 -1
- package/src/annotations/view/sidebarview.d.ts +4 -4
- package/src/annotations/view/sidebarview.js +2 -1
- package/src/annotations/widesidebar.d.ts +5 -5
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +2 -2
- package/src/comments/addcommentthreadcommand.d.ts +48 -9
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +3 -3
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +4 -4
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +7 -7
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +14 -6
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.d.ts +5 -5
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.d.ts +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/integrations/showcommenthighlights.d.ts +1 -1
- package/src/comments/integrations/showcommenthighlights.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +4 -4
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +4 -4
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +2 -2
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +2 -2
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +3 -3
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +10 -10
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +2 -2
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +3 -3
- package/src/index.d.ts +29 -25
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +2 -1
- package/theme/commentinput.css +2 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x246125=>{const {zh:{dictionary:_0x18f513,getPluralForm:_0xf7bd52}}={'zh':{'dictionary':{'Comment\x20editor':'留言編輯器','NUMBER_OF_COMMENTS':'%0\x20則留言','TOO_LONG_COMMENT_ALERT':'留言內容太長。你的留言有\x20%0\x20個字,上限字數為\x20%1。','Reply...':'回覆...','Reply\x20to\x20reopen\x20discussion...':'回覆以重新開啟討論...','Write\x20a\x20comment...':'撰寫留言...','Comment\x20was\x20made\x20on\x20an\x20element':'對元件進行的留言','Edit':'編輯','Resolve':'解決','Reopen':'重新開啟','Remove':'刪除','Reply':'回覆','Delete\x20comment?':'刪除留言?','Delete\x20comment\x20thread?':'刪除討論串?','Marked\x20as\x20resolved':'已標記為解決','Comment':'留言','Annotations\x20sidebar':'註釋側邊欄','Annotations\x20list':'註釋清單','Thread\x20comments':'討論串留言','THREAD_CONTEXT_LABEL':'討論串脈絡:%0','COMMENT_THREAD_LABEL':'留言討論串發起人:%1。%1\x20則回覆。','COMMENT_THREAD_DESCRIPTION':'按\x20Enter\x20鍵可取得更多選項。按\x20Esc\x20鍵即可退出。','COMMENT_ARIA_LABEL':'留言者:%0。建立時間:%1。%2。%3','COMMENTS_ARCHIVE_LIST_LABEL':'留言清單','ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':'能夠與註釋討論串互動的按鍵輸入(例如留言、追蹤變更建議)','ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':'當選取範圍錨定於其標記處時,將焦點移至討論串','ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':'離開註釋並將焦點移回已編輯的內容','ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':'瀏覽已聚焦的註釋討論串或討論串留言','ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':'在註釋討論串內部移動','ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':'在撰寫留言時提交回覆','ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':'移至註釋側邊欄或留言封存中的上一個或下一個討論串','ENTER_COMMENT_ANNOUNCEMENT':'正在進入含有留言的內容。按\x20%0\x20即可前往討論區。','LEAVE_COMMENT_ANNOUNCEMENT':'正在離開含有留言的內容。','PENDING_ACTION_COMMENT_THREAD':'討論串尚未儲存。','EXTERNAL_COMMENT':'此留言來自外部來源。','EXTERNAL_IMPORT_WORD_COMMENT':'此留言來自匯入的\x20Word\x20檔案。','EXTERNAL_AVATAR':'顯示的作者名稱來自外部來源(由\x20%0\x20新增)','EXTERNAL_IMPORT_WORD_AVATAR':'顯示的作者名稱來自由\x20%0\x20匯入的\x20Word\x20文件','COMMENTS_ARCHIVE':'留言封存紀錄','EMPTY_COMMENTS_ARCHIVE':'無封存的留言串。'},'getPluralForm':_0x4b6f80=>0x0}};_0x246125['zh']||={'dictionary':{},'getPluralForm':null},_0x246125['zh']['dictionary']=Object['assign'](_0x246125['zh']['dictionary'],_0x18f513),_0x246125['zh']['getPluralForm']=_0xf7bd52;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "46.0.0-alpha.1",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -45,24 +45,24 @@
|
|
|
45
45
|
"CHANGELOG.md"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@ckeditor/ckeditor5-clipboard": "
|
|
49
|
-
"@ckeditor/ckeditor5-collaboration-core": "
|
|
50
|
-
"@ckeditor/ckeditor5-core": "
|
|
51
|
-
"@ckeditor/ckeditor5-engine": "
|
|
52
|
-
"@ckeditor/ckeditor5-enter": "
|
|
53
|
-
"@ckeditor/ckeditor5-icons": "
|
|
54
|
-
"@ckeditor/ckeditor5-paragraph": "
|
|
55
|
-
"@ckeditor/ckeditor5-select-all": "
|
|
56
|
-
"@ckeditor/ckeditor5-source-editing": "
|
|
57
|
-
"@ckeditor/ckeditor5-theme-lark": "
|
|
58
|
-
"@ckeditor/ckeditor5-typing": "
|
|
59
|
-
"@ckeditor/ckeditor5-ui": "
|
|
60
|
-
"@ckeditor/ckeditor5-undo": "
|
|
61
|
-
"@ckeditor/ckeditor5-utils": "
|
|
62
|
-
"@ckeditor/ckeditor5-widget": "
|
|
63
|
-
"ckeditor5": "
|
|
64
|
-
"ckeditor5-collaboration": "
|
|
65
|
-
"es-toolkit": "1.
|
|
48
|
+
"@ckeditor/ckeditor5-clipboard": "46.0.0-alpha.1",
|
|
49
|
+
"@ckeditor/ckeditor5-collaboration-core": "46.0.0-alpha.1",
|
|
50
|
+
"@ckeditor/ckeditor5-core": "46.0.0-alpha.1",
|
|
51
|
+
"@ckeditor/ckeditor5-engine": "46.0.0-alpha.1",
|
|
52
|
+
"@ckeditor/ckeditor5-enter": "46.0.0-alpha.1",
|
|
53
|
+
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.1",
|
|
54
|
+
"@ckeditor/ckeditor5-paragraph": "46.0.0-alpha.1",
|
|
55
|
+
"@ckeditor/ckeditor5-select-all": "46.0.0-alpha.1",
|
|
56
|
+
"@ckeditor/ckeditor5-source-editing": "46.0.0-alpha.1",
|
|
57
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.0-alpha.1",
|
|
58
|
+
"@ckeditor/ckeditor5-typing": "46.0.0-alpha.1",
|
|
59
|
+
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.1",
|
|
60
|
+
"@ckeditor/ckeditor5-undo": "46.0.0-alpha.1",
|
|
61
|
+
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.1",
|
|
62
|
+
"@ckeditor/ckeditor5-widget": "46.0.0-alpha.1",
|
|
63
|
+
"ckeditor5": "46.0.0-alpha.1",
|
|
64
|
+
"ckeditor5-collaboration": "46.0.0-alpha.1",
|
|
65
|
+
"es-toolkit": "1.39.5"
|
|
66
66
|
},
|
|
67
67
|
"types": "src/index.d.ts",
|
|
68
68
|
"exports": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Rect, Collection } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import type { View } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import type AnnotationView from './view/annotationview.js';
|
|
11
|
+
import { type AnnotationView } from './view/annotationview.js';
|
|
12
12
|
import type { AnnotationOptions } from './annotations.js';
|
|
13
13
|
declare const Annotation_base: {
|
|
14
14
|
new (): import("ckeditor5/src/utils.js").Observable;
|
|
@@ -20,7 +20,7 @@ declare const Annotation_base: {
|
|
|
20
20
|
* Annotation is an entity that combines an {@link module:comments/annotations/view/annotationview~AnnotationView}
|
|
21
21
|
* and an annotation target (a DOM element or a {@link module:utils/dom/rect~Rect}) to which the annotation is bound.
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export declare class Annotation extends /* #__PURE__ -- @preserve */ Annotation_base {
|
|
24
24
|
/**
|
|
25
25
|
* The visibility of the annotation. Annotations that are not visible, are filtered from Annotation UI collections.
|
|
26
26
|
*
|
|
@@ -85,8 +85,8 @@ export default class Annotation extends /* #__PURE__ -- @preserve */ Annotation_
|
|
|
85
85
|
*/
|
|
86
86
|
refreshVisibility(): void;
|
|
87
87
|
}
|
|
88
|
-
type
|
|
89
|
-
export type AnnotationTarget =
|
|
88
|
+
export type AnnotationTargetBase = Rect | HTMLElement | null;
|
|
89
|
+
export type AnnotationTarget = AnnotationTargetBase | (() => AnnotationTargetBase | Array<AnnotationTargetBase>);
|
|
90
90
|
/**
|
|
91
91
|
* An event fired when the user pressed Escape key while the annotation view was focused.
|
|
92
92
|
*/
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x1760(){const _0xb4bb66=['focusTracker','function','450dfItCv','299AEesGg','set','_getNormalizedTarget','view','element','type','updateTargetRect','every','158ynjTEP','annotation-invalid-target','isActive','item','remove','_target','_type','mainView','stopListening','destroy','getClientRects','nodeType','render','refreshVisibility','456579GllQqD','2032591hDMtmK','isVisible','clear','focusableElements','230SVFRfa','19864gGvUzn','offsetParent','134ceNuDE','isArray','innerView','530742NfMLHz','_assertCorrectTarget','targetRect','_id','21lqrmmu','add','28240LYXCMj','123492DAxxQA','filter','length','object','target','10KUdUhV'];_0x1760=function(){return _0xb4bb66;};return _0x1760();}const _0x10034c=_0x5706;(function(_0x4fb0ae,_0x207cad){const _0x359f7b=_0x5706,_0xd0ce6f=_0x4fb0ae();while(!![]){try{const _0x14bced=parseInt(_0x359f7b(0x14a))/0x1*(parseInt(_0x359f7b(0x12f))/0x2)+-parseInt(_0x359f7b(0x127))/0x3+-parseInt(_0x359f7b(0x12d))/0x4*(parseInt(_0x359f7b(0x12c))/0x5)+parseInt(_0x359f7b(0x132))/0x6*(parseInt(_0x359f7b(0x136))/0x7)+parseInt(_0x359f7b(0x138))/0x8*(-parseInt(_0x359f7b(0x141))/0x9)+parseInt(_0x359f7b(0x13e))/0xa*(parseInt(_0x359f7b(0x128))/0xb)+-parseInt(_0x359f7b(0x139))/0xc*(-parseInt(_0x359f7b(0x142))/0xd);if(_0x14bced===_0x207cad)break;else _0xd0ce6f['push'](_0xd0ce6f['shift']());}catch(_0x11ea14){_0xd0ce6f['push'](_0xd0ce6f['shift']());}}}(_0x1760,0x2240e));import{CKEditorError as _0x498052,Rect as _0x1b1eb9,Collection as _0xa1f030,ObservableMixin as _0x497811}from'ckeditor5/src/utils.js';function _0x5706(_0x48ee30,_0x553110){const _0x1760e9=_0x1760();return _0x5706=function(_0x57062a,_0x363106){_0x57062a=_0x57062a-0x127;let _0x72e154=_0x1760e9[_0x57062a];return _0x72e154;},_0x5706(_0x48ee30,_0x553110);}export class Annotation extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x497811(){[_0x10034c(0x145)];[_0x10034c(0x12b)];[_0x10034c(0x150)];[_0x10034c(0x14f)];constructor({view:_0x3a4a7c,target:_0x31a87c,type:_0x43397e,isVisible:_0x590998=!0x0}){const _0x1ae686=_0x10034c;super(),this[_0x1ae686(0x145)]=_0x3a4a7c,this[_0x1ae686(0x145)][_0x1ae686(0x146)]||this[_0x1ae686(0x145)][_0x1ae686(0x156)](),this[_0x1ae686(0x150)]=_0x43397e,this[_0x1ae686(0x14f)]=_0x31a87c,Annotation[_0x1ae686(0x133)](this[_0x1ae686(0x144)]()),this[_0x1ae686(0x12b)]=new _0xa1f030([this[_0x1ae686(0x145)][_0x1ae686(0x146)]],{'idProperty':_0x1ae686(0x135)}),this[_0x1ae686(0x12b)]['on'](_0x1ae686(0x137),(_0x445a50,_0x59df74)=>{const _0x1820a3=_0x1ae686;this[_0x1820a3(0x145)][_0x1820a3(0x13f)][_0x1820a3(0x137)](_0x59df74);}),this[_0x1ae686(0x12b)]['on'](_0x1ae686(0x14e),(_0x3b252f,_0x36172a)=>{const _0x56a487=_0x1ae686;this[_0x56a487(0x145)][_0x56a487(0x13f)][_0x56a487(0x14e)](_0x36172a);}),this[_0x1ae686(0x143)](_0x1ae686(0x129),_0x590998);}get[_0x10034c(0x147)](){const _0x1e6c4d=_0x10034c;return _0x1e6c4d(0x140)==typeof this[_0x1e6c4d(0x150)]?this[_0x1e6c4d(0x150)]():this[_0x1e6c4d(0x150)];}get[_0x10034c(0x131)](){const _0x48900d=_0x10034c;return this[_0x48900d(0x145)][_0x48900d(0x151)];}get[_0x10034c(0x13d)](){const _0x2e1239=_0x10034c,_0x42c4bc=this[_0x2e1239(0x144)]();return Annotation[_0x2e1239(0x133)](_0x42c4bc),_0x42c4bc;}get[_0x10034c(0x134)](){const _0x253990=_0x10034c,_0x53e22c=this[_0x253990(0x13d)];if(null===_0x53e22c)return null;if(_0x53e22c instanceof _0x1b1eb9)return _0x53e22c;const _0x4a6ee3=_0x53e22c[_0x253990(0x13a)](_0x3a3500=>function(_0x2210ef){const _0x44cbf2=_0x253990,_0x203bbf=_0x2210ef[_0x44cbf2(0x12e)];if(_0x203bbf)return!0x0;const _0x87038d=_0x2210ef[_0x44cbf2(0x154)]()[_0x44cbf2(0x14d)](0x0);return!!_0x87038d;}(_0x3a3500));return 0x0===_0x4a6ee3[_0x253990(0x13b)]?null:new _0x1b1eb9(_0x4a6ee3[0x0][_0x253990(0x154)]()[_0x253990(0x14d)](0x0));}get[_0x10034c(0x14c)](){const _0x3a432a=_0x10034c;return this[_0x3a432a(0x145)][_0x3a432a(0x14c)];}set[_0x10034c(0x14c)](_0x503f18){const _0x306171=_0x10034c;this[_0x306171(0x145)][_0x306171(0x14c)]=_0x503f18,this[_0x306171(0x145)][_0x306171(0x151)][_0x306171(0x14c)]=_0x503f18;}[_0x10034c(0x148)](){const _0x2764d2=_0x10034c;this[_0x2764d2(0x145)][_0x2764d2(0x134)]=this[_0x2764d2(0x134)];}[_0x10034c(0x153)](){const _0x3069bb=_0x10034c;this[_0x3069bb(0x12b)][_0x3069bb(0x152)](),this[_0x3069bb(0x12b)][_0x3069bb(0x12a)](),this[_0x3069bb(0x152)]();}[_0x10034c(0x157)](){const _0x5626b6=_0x10034c;this[_0x5626b6(0x129)]=!!this[_0x5626b6(0x134)];}static[_0x10034c(0x133)](_0x25629b){const _0x38aa2d=_0x10034c;if(!(null===_0x25629b||_0x25629b instanceof _0x1b1eb9||Array[_0x38aa2d(0x130)](_0x25629b)&&_0x25629b[_0x38aa2d(0x149)](_0x44034d=>g(_0x44034d))))throw new _0x498052(_0x38aa2d(0x14b),null,{'target':_0x25629b});}[_0x10034c(0x144)](){const _0x1f76cb=_0x10034c,_0xea0af0=_0x1f76cb(0x140)==typeof this[_0x1f76cb(0x14f)]?this[_0x1f76cb(0x14f)]():this[_0x1f76cb(0x14f)];return g(_0xea0af0)?[_0xea0af0]:_0xea0af0;}}function g(_0x1de64b){const _0x326d75=_0x10034c;return null!==_0x1de64b&&_0x326d75(0x13c)==typeof _0x1de64b&&_0x326d75(0x155)in _0x1de64b&&0x1===_0x1de64b[_0x326d75(0x155)];}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Collection } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import type { View } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import type Annotation from './annotation.js';
|
|
11
|
+
import { type Annotation } from './annotation.js';
|
|
12
12
|
/**
|
|
13
13
|
* A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
14
14
|
*
|
|
@@ -19,7 +19,7 @@ import type Annotation from './annotation.js';
|
|
|
19
19
|
* becomes focused and {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:blur} when all annotations
|
|
20
20
|
* lose focus.
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export declare class AnnotationCollection extends Collection<Annotation> {
|
|
23
23
|
/**
|
|
24
24
|
* @param annotations Initial annotations.
|
|
25
25
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29856e=_0xe935;function _0x2d71(){const _0x1896ba=['length','getIndex','2CBdaAO','368zpRbaX','top','_getOrderInContent','targetRect','blur','focus','focusableElements','_focusTracker','sort','clear','getByView','left','set','view','has','updateTargetRect','annotationcollection-not-existing-item','_sort','destroy','add','innerView','stopListening','21721480BSFNqW','11BRCLLn','5451650MZwMPe','60282edgNZP','annotationcollection-duplicated-item','2034908MEBwCn','2938596ufINMP','get','refreshPositioning','remove','listenTo','getByInnerView','5201xxkNxp','focusTracker','fire','5970nyIUFx','_viewToAnnotation','delete','change:isFocused','isFocused','from','1073953dHanQj','_innerViewToAnnotation'];_0x2d71=function(){return _0x1896ba;};return _0x2d71();}function _0xe935(_0x4734dd,_0x5927db){const _0x2d7175=_0x2d71();return _0xe935=function(_0xe9350e,_0x3c10ad){_0xe9350e=_0xe9350e-0x1ce;let _0x2c6a80=_0x2d7175[_0xe9350e];return _0x2c6a80;},_0xe935(_0x4734dd,_0x5927db);}(function(_0x124026,_0x2be45b){const _0x14280c=_0xe935,_0x5de6e6=_0x124026();while(!![]){try{const _0x219922=parseInt(_0x14280c(0x1d1))/0x1*(-parseInt(_0x14280c(0x1d5))/0x2)+-parseInt(_0x14280c(0x1f2))/0x3+parseInt(_0x14280c(0x1f1))/0x4+parseInt(_0x14280c(0x1ee))/0x5+-parseInt(_0x14280c(0x1fb))/0x6*(parseInt(_0x14280c(0x1f8))/0x7)+parseInt(_0x14280c(0x1d6))/0x8*(-parseInt(_0x14280c(0x1ef))/0x9)+parseInt(_0x14280c(0x1ec))/0xa*(parseInt(_0x14280c(0x1ed))/0xb);if(_0x219922===_0x2be45b)break;else _0x5de6e6['push'](_0x5de6e6['shift']());}catch(_0x10e745){_0x5de6e6['push'](_0x5de6e6['shift']());}}}(_0x2d71,0xa3a77));import{CKEditorError as _0xe521ea,Collection as _0x3b72a5,FocusTracker as _0x2488ac}from'ckeditor5/src/utils.js';export class AnnotationCollection extends _0x3b72a5{[_0x29856e(0x1d2)];[_0x29856e(0x1fc)];[_0x29856e(0x1dd)];constructor(_0x9e3f7a=[]){const _0x437f6c=_0x29856e;super(),this[_0x437f6c(0x1d2)]=new Map(),this[_0x437f6c(0x1fc)]=new Map(),this[_0x437f6c(0x1dd)]=new _0x2488ac(),this[_0x437f6c(0x1dd)]['on'](_0x437f6c(0x1ce),(_0x157824,_0x597550,_0x406d8c)=>{const _0x3dacfc=_0x437f6c;_0x406d8c||this[_0x3dacfc(0x1fa)](_0x3dacfc(0x1da));});for(const _0xefdb7a of _0x9e3f7a)this[_0x437f6c(0x1e9)](_0xefdb7a);}get[_0x29856e(0x1cf)](){const _0x24b46c=_0x29856e;return this[_0x24b46c(0x1dd)][_0x24b46c(0x1cf)];}[_0x29856e(0x1e9)](_0x1d5bbc){const _0x4b141a=_0x29856e;if(this[_0x4b141a(0x1e4)](_0x1d5bbc))throw new _0xe521ea(_0x4b141a(0x1f0),null);this[_0x4b141a(0x1d2)][_0x4b141a(0x1e2)](_0x1d5bbc[_0x4b141a(0x1ea)],_0x1d5bbc),this[_0x4b141a(0x1fc)][_0x4b141a(0x1e2)](_0x1d5bbc[_0x4b141a(0x1e3)],_0x1d5bbc);for(const _0x50eb36 of _0x1d5bbc[_0x4b141a(0x1dc)])this[_0x4b141a(0x1dd)][_0x4b141a(0x1e9)](_0x50eb36);this[_0x4b141a(0x1f6)](_0x1d5bbc[_0x4b141a(0x1dc)],_0x4b141a(0x1e9),(_0x28f949,_0x3d23ab)=>{const _0x2c4cd8=_0x4b141a;this[_0x2c4cd8(0x1dd)][_0x2c4cd8(0x1e9)](_0x3d23ab);}),this[_0x4b141a(0x1f6)](_0x1d5bbc[_0x4b141a(0x1dc)],_0x4b141a(0x1f5),(_0x2d6959,_0x4712f2)=>{const _0x4ca270=_0x4b141a;this[_0x4ca270(0x1dd)][_0x4ca270(0x1f5)](_0x4712f2);}),this[_0x4b141a(0x1f6)](_0x1d5bbc[_0x4b141a(0x1e3)][_0x4b141a(0x1f9)],_0x4b141a(0x1ce),(_0x514d4b,_0x1afa78,_0x578124)=>{const _0x1f6856=_0x4b141a;_0x578124&&this[_0x1f6856(0x1fa)](_0x1f6856(0x1db),_0x1d5bbc);}),_0x1d5bbc[_0x4b141a(0x1e5)]();const _0x38c333=this[_0x4b141a(0x1d8)](_0x1d5bbc[_0x4b141a(0x1e3)][_0x4b141a(0x1d9)]);return super[_0x4b141a(0x1e9)](_0x1d5bbc,_0x38c333);}[_0x29856e(0x1f5)](_0x4e0aef){const _0x35a9e0=_0x29856e;if(!this[_0x35a9e0(0x1e4)](_0x4e0aef))throw new _0xe521ea(_0x35a9e0(0x1e6),null);this[_0x35a9e0(0x1eb)](_0x4e0aef[_0x35a9e0(0x1e3)][_0x35a9e0(0x1f9)]),this[_0x35a9e0(0x1eb)](_0x4e0aef[_0x35a9e0(0x1dc)]);for(const _0x4bb446 of _0x4e0aef[_0x35a9e0(0x1dc)])this[_0x35a9e0(0x1dd)][_0x35a9e0(0x1f5)](_0x4bb446);return this[_0x35a9e0(0x1fc)][_0x35a9e0(0x1fd)](_0x4e0aef[_0x35a9e0(0x1e3)]),this[_0x35a9e0(0x1d2)][_0x35a9e0(0x1fd)](_0x4e0aef[_0x35a9e0(0x1ea)]),super[_0x35a9e0(0x1f5)](_0x4e0aef);}[_0x29856e(0x1f7)](_0x1b5fbe){const _0x481cbd=_0x29856e;return this[_0x481cbd(0x1d2)][_0x481cbd(0x1f3)](_0x1b5fbe);}[_0x29856e(0x1e0)](_0x4628a4){const _0x11014d=_0x29856e;return this[_0x11014d(0x1fc)][_0x11014d(0x1f3)](_0x4628a4);}[_0x29856e(0x1e8)](){const _0x3caef3=_0x29856e;super[_0x3caef3(0x1df)](),this[_0x3caef3(0x1eb)](),this[_0x3caef3(0x1d2)][_0x3caef3(0x1df)](),this[_0x3caef3(0x1fc)][_0x3caef3(0x1df)](),this[_0x3caef3(0x1dd)][_0x3caef3(0x1e8)]();}[_0x29856e(0x1f4)](){const _0x25d42a=_0x29856e;for(const _0x5c4aa9 of this)_0x5c4aa9[_0x25d42a(0x1e5)]();this[_0x25d42a(0x1e7)]();}[_0x29856e(0x1e7)](){const _0x1a9fb4=_0x29856e,_0x27f772=Array[_0x1a9fb4(0x1d0)](this)[_0x1a9fb4(0x1de)]((_0x1a3455,_0x55c3e7)=>w(_0x1a3455[_0x1a9fb4(0x1e3)][_0x1a9fb4(0x1d9)],_0x55c3e7[_0x1a9fb4(0x1e3)][_0x1a9fb4(0x1d9)]));for(let _0x2274e6=_0x27f772[_0x1a9fb4(0x1d3)]-0x1;_0x2274e6>0x0;_0x2274e6--){const _0x507eb5=_0x27f772[_0x2274e6];_0x2274e6!==this[_0x1a9fb4(0x1d4)](_0x507eb5)&&(this[_0x1a9fb4(0x1f5)](_0x507eb5),this[_0x1a9fb4(0x1e9)](_0x507eb5));}}[_0x29856e(0x1d8)](_0x45c41f){const _0x15ed80=_0x29856e;let _0x21581c=0x0;if(!_0x45c41f)return this[_0x15ed80(0x1d3)];for(const _0x282c90 of this){const _0x48ff6a=_0x282c90[_0x15ed80(0x1e3)][_0x15ed80(0x1d9)];if(_0x48ff6a){if(w(_0x45c41f,_0x48ff6a)<0x0)return _0x21581c;_0x21581c++;}}return _0x21581c;}}export function bindAnnotationCollections({source:_0x4eaa81,target:_0x45f912,filter:_0xd73c80}){const _0x22c131=_0x29856e;for(const _0x4c5968 of _0x4eaa81)_0xd73c80(_0x4c5968)&&_0x45f912[_0x22c131(0x1e9)](_0x4c5968);_0x45f912[_0x22c131(0x1f6)](_0x4eaa81,_0x22c131(0x1e9),(_0x422b9e,_0x515a11)=>{const _0x3b1c99=_0x22c131;_0xd73c80(_0x515a11)&&_0x45f912[_0x3b1c99(0x1e9)](_0x515a11);}),_0x45f912[_0x22c131(0x1f6)](_0x4eaa81,_0x22c131(0x1f5),(_0x438b9e,_0x4c8245)=>{const _0x4a5e0f=_0x22c131;_0x45f912[_0x4a5e0f(0x1e4)](_0x4c8245)&&_0x45f912[_0x4a5e0f(0x1f5)](_0x4c8245);});}function w(_0x5ea649,_0x276f5d){const _0x16c7ec=_0x29856e;if(null===_0x5ea649&&null===_0x276f5d)return 0x0;if(null===_0x5ea649)return-0x1;if(null===_0x276f5d)return 0x1;const _0x156525=_0x5ea649[_0x16c7ec(0x1d7)]-_0x276f5d[_0x16c7ec(0x1d7)];return 0x0==_0x156525?_0x5ea649[_0x16c7ec(0x1e1)]-_0x276f5d[_0x16c7ec(0x1e1)]:_0x156525;}
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
import { ContextPlugin, Editor, type Context } from 'ckeditor5/src/core.js';
|
|
10
10
|
import type { View } from 'ckeditor5/src/ui.js';
|
|
11
11
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
12
|
-
import Annotation,
|
|
13
|
-
import AnnotationCollection from './annotationcollection.js';
|
|
14
|
-
import AnnotationView,
|
|
12
|
+
import { Annotation, type AnnotationTarget } from './annotation.js';
|
|
13
|
+
import { AnnotationCollection } from './annotationcollection.js';
|
|
14
|
+
import { AnnotationView, type AnnotationMainView } from './view/annotationview.js';
|
|
15
15
|
/**
|
|
16
16
|
* Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
|
|
17
17
|
* for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
|
|
@@ -29,7 +29,7 @@ import AnnotationView, { type AnnotationMainView } from './view/annotationview.j
|
|
|
29
29
|
* `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
|
|
30
30
|
* `Annotations` and propagates information to and from annotations UI plugins.
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export declare class Annotations extends ContextPlugin {
|
|
33
33
|
/**
|
|
34
34
|
* A set of currently active annotations.
|
|
35
35
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x429a(_0x51a4b8,_0x32069f){const _0x4a463a=_0x4a46();return _0x429a=function(_0x429aaf,_0x2e1ea4){_0x429aaf=_0x429aaf-0x13d;let _0x3c0682=_0x4a463a[_0x429aaf];return _0x3c0682;},_0x429a(_0x51a4b8,_0x32069f);}const _0x18e9e5=_0x429a;(function(_0x2137e4,_0x316914){const _0xd41347=_0x429a,_0x1faf08=_0x2137e4();while(!![]){try{const _0x3c8c0a=parseInt(_0xd41347(0x17e))/0x1*(parseInt(_0xd41347(0x178))/0x2)+parseInt(_0xd41347(0x185))/0x3+-parseInt(_0xd41347(0x17c))/0x4*(parseInt(_0xd41347(0x172))/0x5)+-parseInt(_0xd41347(0x189))/0x6*(parseInt(_0xd41347(0x175))/0x7)+-parseInt(_0xd41347(0x15a))/0x8*(-parseInt(_0xd41347(0x167))/0x9)+parseInt(_0xd41347(0x174))/0xa*(-parseInt(_0xd41347(0x168))/0xb)+-parseInt(_0xd41347(0x171))/0xc*(-parseInt(_0xd41347(0x143))/0xd);if(_0x3c8c0a===_0x316914)break;else _0x1faf08['push'](_0x1faf08['shift']());}catch(_0x27bebd){_0x1faf08['push'](_0x1faf08['shift']());}}}(_0x4a46,0x661d7));import{ContextPlugin as _0x5c90ce,Editor as _0x5e9ae2}from'ckeditor5/src/core.js';import{first as _0x45d1fe}from'ckeditor5/src/utils.js';import{Annotation as _0x5f54aa}from'./annotation.js';function _0x4a46(){const _0x5be193=['300gOkeNj','530zZoXLO','deactivateAll','5658830EeFgvd','14ZzyxDi','activeAnnotations','ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO','4VPrXaU','ACCESSIBILITY_HELP_ANNOTATIONS_EXIT','Arrowup','focusTracker','19844EoEApR','change:isVisible','195371tCIJZa','_addActiveAnnotation','addKeystrokeInfoGroup','keystrokes','set','editing','focus','389049htukDE','destroy','refreshVisibility','locale','817098NxJHrw','listenTo','Ctrl+Shift+E','pluginName','view','target','low','isVisible','delete','createAnnotation','ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS','values','609947sKWdjc','_removeActiveAnnotation','source','context','element','_deactivateAllAnnotations','accessibility','editors','ACCESSIBILITY_HELP_ANNOTATIONS_ENTER','createAnnotationView','has','Arrowdown','refreshPositioning','add','Esc','contains','domRoots','isPremiumPlugin','push','collection','ready','isOfficialPlugin','Shift+Tab','16cvXGcX','remove','_setupEscapeAnnotationHandling','ACCESSIBILITY_HELP_ANNOTATIONS_GROUP','ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT','isArray','ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS','Tab','_bindAnnotationsToVisibleAnnotations','getByInnerView','activate','Enter','_visibleAnnotations','400401QjNOKP','11DFhXKV','annotations','_setupEnterAnnotationKeystroke','_activateAnnotation','escape','stopListening','Ctrl+Enter','fire','Annotations'];_0x4a46=function(){return _0x5be193;};return _0x4a46();}import{AnnotationCollection as _0x59aa14}from'./annotationcollection.js';import{AnnotationView as _0x205e6e}from'./view/annotationview.js';import{getTranslation as _0x17aa55}from'../utils/common-translations.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x1caba3}from'@ckeditor/ckeditor5-collaboration-core';export class Annotations extends _0x5c90ce{[_0x18e9e5(0x156)];[_0x18e9e5(0x166)];static get[_0x18e9e5(0x18c)](){const _0x2a0c0b=_0x18e9e5;return _0x2a0c0b(0x170);}static get[_0x18e9e5(0x158)](){return!0x0;}static get[_0x18e9e5(0x154)](){return!0x0;}constructor(_0x160aeb){const _0x3c14d9=_0x18e9e5;if(super(_0x160aeb),this[_0x3c14d9(0x156)]=new _0x59aa14(),this[_0x3c14d9(0x166)]=new _0x59aa14(),this[_0x3c14d9(0x182)](_0x3c14d9(0x176),new Set()),this[_0x3c14d9(0x162)](),_0x160aeb instanceof _0x5e9ae2){const _0x6135e4=_0x160aeb[_0x3c14d9(0x188)];_0x160aeb[_0x3c14d9(0x149)][_0x3c14d9(0x180)]({'id':_0x3c14d9(0x169),'label':_0x17aa55(_0x6135e4,_0x3c14d9(0x15d)),'keystrokes':[{'label':_0x17aa55(_0x6135e4,_0x3c14d9(0x177)),'keystroke':_0x3c14d9(0x18b)},{'label':_0x17aa55(_0x6135e4,_0x3c14d9(0x179)),'keystroke':_0x3c14d9(0x151)},{'label':_0x17aa55(_0x6135e4,_0x3c14d9(0x14b)),'keystroke':_0x3c14d9(0x165)},{'label':_0x17aa55(_0x6135e4,_0x3c14d9(0x160)),'keystroke':[[_0x3c14d9(0x161)],[_0x3c14d9(0x159)]]},{'label':_0x17aa55(_0x6135e4,_0x3c14d9(0x15e)),'keystroke':[_0x3c14d9(0x16e)]},{'label':_0x17aa55(_0x6135e4,_0x3c14d9(0x141)),'keystroke':[[_0x3c14d9(0x17a)],[_0x3c14d9(0x14e)]]}]});}this[_0x3c14d9(0x16a)](),this[_0x3c14d9(0x15c)]();}[_0x18e9e5(0x150)](_0x5752cf){const _0x2c0f3e=_0x18e9e5;this[_0x2c0f3e(0x156)][_0x2c0f3e(0x150)](_0x5752cf);}[_0x18e9e5(0x15b)](_0x5a8922){const _0x3962d0=_0x18e9e5;this[_0x3962d0(0x156)][_0x3962d0(0x15b)](_0x5a8922),_0x5a8922[_0x3962d0(0x186)]();}[_0x18e9e5(0x187)](){const _0x27628c=_0x18e9e5;for(const _0x185507 of this[_0x27628c(0x156)])_0x185507[_0x27628c(0x187)]();}[_0x18e9e5(0x14f)](){const _0x1811a6=_0x18e9e5;this[_0x1811a6(0x166)][_0x1811a6(0x14f)]();}[_0x18e9e5(0x163)](_0x32ef17){const _0x2e2f84=_0x18e9e5;return this[_0x2e2f84(0x156)][_0x2e2f84(0x163)](_0x32ef17);}[_0x18e9e5(0x173)](){const _0x54ab74=_0x18e9e5;this[_0x54ab74(0x16f)](_0x54ab74(0x148));}[_0x18e9e5(0x186)](){const _0xcd86c6=_0x18e9e5;for(const _0x28486f of this[_0xcd86c6(0x156)])_0x28486f[_0xcd86c6(0x186)]();this[_0xcd86c6(0x166)][_0xcd86c6(0x186)](),this[_0xcd86c6(0x156)][_0xcd86c6(0x186)](),super[_0xcd86c6(0x186)]();}[_0x18e9e5(0x164)](_0x74f8c0){const _0x47b074=_0x18e9e5;this[_0x47b074(0x16f)](_0x47b074(0x16b),_0x74f8c0);}[_0x18e9e5(0x140)](_0x48a1ef){return new _0x5f54aa(_0x48a1ef);}[_0x18e9e5(0x14c)](_0x5a6703,_0x13420a){return new _0x205e6e(_0x5a6703,_0x13420a);}[_0x18e9e5(0x17f)](_0x2b8039){const _0x204806=_0x18e9e5,_0x162ab9=new Set(this[_0x204806(0x176)]);_0x162ab9[_0x204806(0x150)](_0x2b8039),this[_0x204806(0x176)]=_0x162ab9;}[_0x18e9e5(0x144)](_0x22e841){const _0x351230=_0x18e9e5,_0xb1bd01=new Set(this[_0x351230(0x176)]);_0xb1bd01[_0x351230(0x13f)](_0x22e841),this[_0x351230(0x176)]=_0xb1bd01;}[_0x18e9e5(0x162)](){const _0x516c28=_0x18e9e5,_0x653851=this[_0x516c28(0x156)],_0x46e9c3=this[_0x516c28(0x166)];function _0x535698(_0x5df0c7){const _0xcaf9c=_0x516c28,_0x20ddce=_0x5df0c7[_0xcaf9c(0x145)];_0x20ddce[_0xcaf9c(0x13e)]&&!_0x46e9c3[_0xcaf9c(0x14d)](_0x20ddce)?_0x46e9c3[_0xcaf9c(0x150)](_0x20ddce):!_0x20ddce[_0xcaf9c(0x13e)]&&_0x46e9c3[_0xcaf9c(0x14d)](_0x20ddce)&&_0x46e9c3[_0xcaf9c(0x15b)](_0x20ddce),_0x20ddce[_0xcaf9c(0x18d)][_0xcaf9c(0x17b)][_0xcaf9c(0x15b)](_0x20ddce[_0xcaf9c(0x18d)][_0xcaf9c(0x147)]),_0x20ddce[_0xcaf9c(0x18d)][_0xcaf9c(0x17b)][_0xcaf9c(0x150)](_0x20ddce[_0xcaf9c(0x18d)][_0xcaf9c(0x147)]);}this[_0x516c28(0x18a)](_0x653851,_0x516c28(0x150),(_0x4c6cd0,_0x594643)=>{const _0x173a26=_0x516c28;_0x594643[_0x173a26(0x13e)]&&_0x46e9c3[_0x173a26(0x150)](_0x594643),this[_0x173a26(0x18a)](_0x594643,_0x173a26(0x17d),_0x535698);}),this[_0x516c28(0x18a)](_0x653851,_0x516c28(0x15b),(_0x31f758,_0x1dd9fc)=>{const _0x930797=_0x516c28;_0x46e9c3[_0x930797(0x14d)](_0x1dd9fc)&&_0x46e9c3[_0x930797(0x15b)](_0x1dd9fc),this[_0x930797(0x16d)](_0x1dd9fc,_0x930797(0x17d),_0x535698);});}[_0x18e9e5(0x16a)](){const _0x1bb9c7=_0x18e9e5,_0xe41b=_0x2fbe70=>{const _0x574908=_0x429a;_0x2fbe70['on'](_0x574908(0x157),()=>{const _0x178bf0=_0x574908;_0x2fbe70[_0x178bf0(0x181)][_0x178bf0(0x182)](_0x1caba3,(_0x448e82,_0x462c42)=>{const _0x312673=_0x178bf0,_0x33fcbb=_0x45d1fe(this[_0x312673(0x176)][_0x312673(0x142)]());_0x33fcbb&&(_0x33fcbb[_0x312673(0x18d)][_0x312673(0x184)](),_0x462c42());});});};this[_0x1bb9c7(0x146)]instanceof _0x5e9ae2?_0xe41b(this[_0x1bb9c7(0x146)]):this[_0x1bb9c7(0x146)][_0x1bb9c7(0x14a)]&&this[_0x1bb9c7(0x146)][_0x1bb9c7(0x14a)]['on'](_0x1bb9c7(0x150),(_0x70d638,_0x36581d)=>{_0xe41b(_0x36581d);});}[_0x18e9e5(0x15c)](){const _0x4a168e=_0x18e9e5,_0x58eefb=_0x39f7c8=>{const _0x2d4411=_0x429a,_0x496531=_0x39f7c8[_0x2d4411(0x145)],_0x2d78af=[];let _0x19bb4b;if(Array[_0x2d4411(0x15f)](_0x496531[_0x2d4411(0x18e)])){_0x19bb4b=_0x496531[_0x2d4411(0x18e)][0x0],this[_0x2d4411(0x146)]instanceof _0x5e9ae2?_0x2d78af[_0x2d4411(0x155)](this[_0x2d4411(0x146)]):this[_0x2d4411(0x146)][_0x2d4411(0x14a)]&&_0x2d78af[_0x2d4411(0x155)](...this[_0x2d4411(0x146)][_0x2d4411(0x14a)]);for(const _0x3e2435 of _0x2d78af)for(const _0x1f247a of _0x3e2435[_0x2d4411(0x183)][_0x2d4411(0x18d)][_0x2d4411(0x153)][_0x2d4411(0x142)]())if(_0x1f247a[_0x2d4411(0x152)](_0x19bb4b))return void _0x3e2435[_0x2d4411(0x183)][_0x2d4411(0x18d)][_0x2d4411(0x184)]();_0x19bb4b[_0x2d4411(0x184)]();}};this[_0x4a168e(0x18a)](this[_0x4a168e(0x156)],_0x4a168e(0x150),(_0x4f5ce0,_0x43a1a9)=>{const _0x7c0ec8=_0x4a168e;this[_0x7c0ec8(0x18a)](_0x43a1a9,_0x7c0ec8(0x16c),_0x58eefb,{'priority':_0x7c0ec8(0x13d)});}),this[_0x4a168e(0x18a)](this[_0x4a168e(0x156)],_0x4a168e(0x15b),(_0x2be159,_0x1dc5b3)=>{const _0x174da6=_0x4a168e;this[_0x174da6(0x16d)](_0x1dc5b3,_0x174da6(0x16c),_0x58eefb);});}}
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { ContextPlugin, type Plugin, type Editor, type Context } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { type Emitter } from 'ckeditor5/src/utils.js';
|
|
11
|
-
import AnnotationCollection from './annotationcollection.js';
|
|
12
|
-
import Annotations from './annotations.js';
|
|
13
|
-
import type Annotation from './annotation.js';
|
|
11
|
+
import { AnnotationCollection } from './annotationcollection.js';
|
|
12
|
+
import { Annotations } from './annotations.js';
|
|
13
|
+
import { type Annotation } from './annotation.js';
|
|
14
14
|
/**
|
|
15
15
|
* A repository of annotations UIs.
|
|
16
16
|
*
|
|
@@ -50,7 +50,7 @@ import type Annotation from './annotation.js';
|
|
|
50
50
|
* time.
|
|
51
51
|
* * It is not possible to display the same annotation in two different annotations UIs. In this scenario an error will be thrown.
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export declare class AnnotationsUIs extends ContextPlugin {
|
|
54
54
|
/**
|
|
55
55
|
* A set of names of the active annotations UIs.
|
|
56
56
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x521bfe=_0x407c;function _0x407c(_0x5a5586,_0x1628df){const _0x9fbe12=_0x9fbe();return _0x407c=function(_0x407cfb,_0x580581){_0x407cfb=_0x407cfb-0x105;let _0x1b4ef8=_0x9fbe12[_0x407cfb];return _0x1b4ef8;},_0x407c(_0x5a5586,_0x1628df);}(function(_0x4c87c3,_0x2bd92d){const _0x38122a=_0x407c,_0x58cfba=_0x4c87c3();while(!![]){try{const _0x1a283e=parseInt(_0x38122a(0x123))/0x1+parseInt(_0x38122a(0x114))/0x2+parseInt(_0x38122a(0x10c))/0x3*(parseInt(_0x38122a(0x129))/0x4)+parseInt(_0x38122a(0x113))/0x5+parseInt(_0x38122a(0x13f))/0x6*(-parseInt(_0x38122a(0x124))/0x7)+parseInt(_0x38122a(0x11b))/0x8+-parseInt(_0x38122a(0x127))/0x9*(parseInt(_0x38122a(0x126))/0xa);if(_0x1a283e===_0x2bd92d)break;else _0x58cfba['push'](_0x58cfba['shift']());}catch(_0xf4ab1e){_0x58cfba['push'](_0x58cfba['shift']());}}}(_0x9fbe,0xeb8e8));import{ContextPlugin as _0x5c935b}from'ckeditor5/src/core.js';import{CKEditorError as _0x73909e}from'ckeditor5/src/utils.js';import{AnnotationCollection as _0x1a6fa2,bindAnnotationCollections as _0x2da327}from'./annotationcollection.js';function _0x9fbe(){const _0x22f6bf=['function','annotationsuis-register-invalid-interface','_uis','deactivate','hasActive','requires','remove','has','isOfficialPlugin','6EjGMdQ','isPremiumPlugin','init','_activateAnnotation','plugins','length','stopListening','switchTo','refilterAnnotations','attach','delete','deactivateAll','pluginName','3381747fQliLd','uisData','_addActiveAnnotation','destroy','_deactivateAllAnnotations','activeAnnotations','annotationsuis-missing-ui','3630860pbMcrs','3498950wLNtna','filter','add','collection','get','_assertAnnotationDoesNotBelongToMultipleUIs','find','14650248XVhFxP','detach','AnnotationsUIs','defaultFilter','isActive','_visibleAnnotations','type','annotationsuis-annotation-mismatch','416252WuNpiL','12591019DfZJKf','from','40sSZUzn','6945462OPshrf','register','4XMUyFk','push','annotationsuis-register-already-registered','activate','_removeActiveAnnotation','listenTo','context','size','setActiveAnnotation','activeUIs','change:activeAnnotation','_setSelectedAnnotations','set'];_0x9fbe=function(){return _0x22f6bf;};return _0x9fbe();}import{Annotations as _0x193202}from'./annotations.js';export class AnnotationsUIs extends _0x5c935b{[_0x521bfe(0x132)];[_0x521bfe(0x10d)];[_0x521bfe(0x138)];static get[_0x521bfe(0x13b)](){return[_0x193202];}static get[_0x521bfe(0x10b)](){const _0x183157=_0x521bfe;return _0x183157(0x11d);}static get[_0x521bfe(0x13e)](){return!0x0;}static get[_0x521bfe(0x140)](){return!0x0;}constructor(_0x169a4f){const _0x37b137=_0x521bfe;super(_0x169a4f),this[_0x37b137(0x132)]=new Set(),this[_0x37b137(0x138)]=new Map(),this[_0x37b137(0x10d)]=new Map();}[_0x521bfe(0x141)](){const _0x191597=_0x521bfe,_0x32a10e=this[_0x191597(0x12f)][_0x191597(0x143)][_0x191597(0x118)](_0x193202);this[_0x191597(0x12e)](_0x32a10e,_0x191597(0x142),(_0x3be044,_0x5c944b)=>{const _0x14b3d=_0x191597;for(const _0x438cf6 of this[_0x14b3d(0x132)]){const _0x394ca9=this[_0x14b3d(0x138)][_0x14b3d(0x118)](_0x438cf6);(0x0,this[_0x14b3d(0x10d)][_0x14b3d(0x118)](_0x438cf6)[_0x14b3d(0x115)])(_0x5c944b)&&_0x394ca9[_0x14b3d(0x131)](_0x5c944b);}}),this[_0x191597(0x12e)](_0x32a10e,_0x191597(0x110),()=>{const _0x47b9a4=_0x191597;for(const _0xd3339c of this[_0x47b9a4(0x132)]){this[_0x47b9a4(0x138)][_0x47b9a4(0x118)](_0xd3339c)[_0x47b9a4(0x131)](null);}}),this[_0x191597(0x12e)](_0x32a10e[_0x191597(0x120)],_0x191597(0x116),(_0x9fb609,_0x277a89)=>{const _0x69b394=_0x191597;this[_0x69b394(0x119)](_0x277a89);});}[_0x521bfe(0x13a)](){const _0x4a6b67=_0x521bfe;return this[_0x4a6b67(0x132)][_0x4a6b67(0x130)]>0x0;}[_0x521bfe(0x11f)](_0x66552c){const _0x3e4256=_0x521bfe;return this[_0x3e4256(0x132)][_0x3e4256(0x13d)](_0x66552c);}[_0x521bfe(0x12c)](_0xfa1371,_0x366880=this[_0x521bfe(0x11e)]){const _0xc4b472=_0x521bfe,_0x1bfdf2=this[_0xc4b472(0x12f)][_0xc4b472(0x143)][_0xc4b472(0x118)](_0x193202);if(!this[_0xc4b472(0x138)][_0xc4b472(0x13d)](_0xfa1371))throw new _0x73909e(_0xc4b472(0x112),this,{'uiName':_0xfa1371});this[_0xc4b472(0x11f)](_0xfa1371)&&this[_0xc4b472(0x139)](_0xfa1371),this[_0xc4b472(0x132)][_0xc4b472(0x116)](_0xfa1371);const _0x49d519=new _0x1a6fa2(),_0x10e6e8=_0x1bfdf2[_0xc4b472(0x120)];_0x2da327({'source':_0x10e6e8,'target':_0x49d519,'filter':_0x366880}),this[_0xc4b472(0x10d)][_0xc4b472(0x135)](_0xfa1371,{'collection':_0x49d519,'filter':_0x366880});const _0x1dc342=this[_0xc4b472(0x138)][_0xc4b472(0x118)](_0xfa1371);_0x1dc342[_0xc4b472(0x108)](_0x49d519),this[_0xc4b472(0x12e)](_0x1dc342,_0xc4b472(0x133),(_0x12c4e5,_0x290fba,_0x10794c,_0x31d8aa)=>{const _0x446cb0=_0xc4b472;_0x31d8aa&&_0x1bfdf2[_0x446cb0(0x12d)](_0x31d8aa),_0x10794c&&_0x1bfdf2[_0x446cb0(0x10e)](_0x10794c);});}[_0x521bfe(0x139)](_0x46a4af){const _0x20d087=_0x521bfe;if(this[_0x20d087(0x132)][_0x20d087(0x109)](_0x46a4af),!this[_0x20d087(0x138)][_0x20d087(0x13d)](_0x46a4af))throw new _0x73909e(_0x20d087(0x112),this,{'uiName':_0x46a4af});const _0x470b49=this[_0x20d087(0x138)][_0x20d087(0x118)](_0x46a4af);_0x470b49[_0x20d087(0x11c)](),this[_0x20d087(0x105)](_0x470b49),this[_0x20d087(0x10d)][_0x20d087(0x118)](_0x46a4af)[_0x20d087(0x117)][_0x20d087(0x10f)](),this[_0x20d087(0x10d)][_0x20d087(0x109)](_0x46a4af);}[_0x521bfe(0x106)](_0x5d62ea){const _0x1c3cbb=_0x521bfe;if(!this[_0x1c3cbb(0x138)][_0x1c3cbb(0x13d)](_0x5d62ea))throw new _0x73909e(_0x1c3cbb(0x112),this,{'uiName':_0x5d62ea});const _0x29eaca=this[_0x1c3cbb(0x12f)][_0x1c3cbb(0x143)][_0x1c3cbb(0x118)](_0x193202),_0x4eb024=Array[_0x1c3cbb(0x125)](_0x29eaca[_0x1c3cbb(0x111)])[0x0]||null;this[_0x1c3cbb(0x10a)](),this[_0x1c3cbb(0x12c)](_0x5d62ea);const _0x148b2e=this[_0x1c3cbb(0x138)][_0x1c3cbb(0x118)](_0x5d62ea);_0x148b2e[_0x1c3cbb(0x131)](_0x4eb024),_0x148b2e[_0x1c3cbb(0x134)]&&_0x4eb024&&_0x148b2e[_0x1c3cbb(0x134)]([_0x4eb024]);}[_0x521bfe(0x10a)](){const _0x6b6a94=_0x521bfe;for(const _0x99b18e of this[_0x6b6a94(0x132)])this[_0x6b6a94(0x139)](_0x99b18e);}[_0x521bfe(0x128)](_0x58fe41,_0x4f65a4){const _0x22405a=_0x521bfe;if(this[_0x22405a(0x138)][_0x22405a(0x13d)](_0x58fe41))throw new _0x73909e(_0x22405a(0x12b));if(_0x22405a(0x136)!=typeof _0x4f65a4[_0x22405a(0x108)]||_0x22405a(0x136)!=typeof _0x4f65a4[_0x22405a(0x11c)]||_0x22405a(0x136)!=typeof _0x4f65a4[_0x22405a(0x131)])throw new _0x73909e(_0x22405a(0x137),null);this[_0x22405a(0x138)][_0x22405a(0x135)](_0x58fe41,_0x4f65a4);}[_0x521bfe(0x107)](){const _0xf59adf=_0x521bfe,_0x554cab=this[_0xf59adf(0x12f)][_0xf59adf(0x143)][_0xf59adf(0x118)](_0x193202)[_0xf59adf(0x117)],_0x564ee2=new Map(),_0x475441=Array[_0xf59adf(0x125)](this[_0xf59adf(0x132)]);for(const _0x15ab0f of this[_0xf59adf(0x132)]){const _0x5355b2=this[_0xf59adf(0x10d)][_0xf59adf(0x118)](_0x15ab0f)[_0xf59adf(0x117)];for(const _0x5aab28 of _0x5355b2)_0x564ee2[_0xf59adf(0x135)](_0x5aab28,_0x15ab0f);}for(const _0x43dc45 of _0x554cab){const _0x5500fe=_0x564ee2[_0xf59adf(0x118)](_0x43dc45);this[_0xf59adf(0x119)](_0x43dc45);const _0x8e1214=_0x475441[_0xf59adf(0x11a)](_0x210dc5=>this[_0xf59adf(0x10d)][_0xf59adf(0x118)](_0x210dc5)[_0xf59adf(0x115)](_0x43dc45));_0x5500fe!==_0x8e1214&&(_0x5500fe&&this[_0xf59adf(0x10d)][_0xf59adf(0x118)](_0x5500fe)[_0xf59adf(0x117)][_0xf59adf(0x13c)](_0x43dc45),_0x8e1214&&this[_0xf59adf(0x10d)][_0xf59adf(0x118)](_0x8e1214)[_0xf59adf(0x117)][_0xf59adf(0x116)](_0x43dc45));}}[_0x521bfe(0x10f)](){const _0x9f2364=_0x521bfe;this[_0x9f2364(0x10a)](),super[_0x9f2364(0x10f)]();}[_0x521bfe(0x11e)](){return!0x0;}[_0x521bfe(0x119)](_0xd0bd1){const _0x1e0a48=_0x521bfe,_0x25a504=[];for(const _0x3f8cf6 of this[_0x1e0a48(0x132)]){(0x0,this[_0x1e0a48(0x10d)][_0x1e0a48(0x118)](_0x3f8cf6)[_0x1e0a48(0x115)])(_0xd0bd1)&&_0x25a504[_0x1e0a48(0x12a)](_0x3f8cf6);}if(_0x25a504[_0x1e0a48(0x144)]>0x1)throw new _0x73909e(_0x1e0a48(0x122),null,{'matchedUIs':_0x25a504,'annotationType':_0xd0bd1[_0x1e0a48(0x121)]});}}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import Annotations from './annotations.js';
|
|
11
|
-
import type Annotation from './annotation.js';
|
|
12
|
-
import type AnnotationCollection from './annotationcollection.js';
|
|
10
|
+
import { Annotations } from './annotations.js';
|
|
11
|
+
import { type Annotation } from './annotation.js';
|
|
12
|
+
import { type AnnotationCollection } from './annotationcollection.js';
|
|
13
13
|
/**
|
|
14
14
|
* Integrates {@link module:comments/annotations/annotations~Annotations annotations} with the editor to provide proper behavior
|
|
15
15
|
* for annotations created through the editor features.
|
|
@@ -23,7 +23,7 @@ import type AnnotationCollection from './annotationcollection.js';
|
|
|
23
23
|
* {@link module:comments/annotations/editorannotations~EditorAnnotations#addSourceCollector register a callback}
|
|
24
24
|
* in which it will check whether given annotation should be marked as selected.
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export declare class EditorAnnotations extends Plugin {
|
|
27
27
|
/**
|
|
28
28
|
* @inheritDoc
|
|
29
29
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2aedfd=_0x2645;function _0x2645(_0x5d8250,_0x36e1d9){const _0x5aa759=_0x5aa7();return _0x2645=function(_0x26459e,_0x2199eb){_0x26459e=_0x26459e-0x174;let _0x21ef35=_0x5aa759[_0x26459e];return _0x21ef35;},_0x2645(_0x5d8250,_0x36e1d9);}(function(_0x3e6a16,_0x49f447){const _0x885209=_0x2645,_0x541fda=_0x3e6a16();while(!![]){try{const _0x12fe4a=-parseInt(_0x885209(0x19b))/0x1*(parseInt(_0x885209(0x191))/0x2)+-parseInt(_0x885209(0x17d))/0x3+-parseInt(_0x885209(0x175))/0x4*(-parseInt(_0x885209(0x1ac))/0x5)+parseInt(_0x885209(0x1b5))/0x6*(-parseInt(_0x885209(0x19e))/0x7)+parseInt(_0x885209(0x197))/0x8+-parseInt(_0x885209(0x1aa))/0x9*(-parseInt(_0x885209(0x192))/0xa)+-parseInt(_0x885209(0x1ad))/0xb;if(_0x12fe4a===_0x49f447)break;else _0x541fda['push'](_0x541fda['shift']());}catch(_0x626c45){_0x541fda['push'](_0x541fda['shift']());}}}(_0x5aa7,0x9b9a5));import{Plugin as _0x32a302}from'ckeditor5/src/core.js';import{CKEditorError as _0x58eebc}from'ckeditor5/src/utils.js';import{debounce as _0x1b5eac}from'es-toolkit/compat';function _0x5aa7(){const _0x4f8f02=['15919574PVFVri','has','sort','getByInnerView','fire','add','addSourceCollector','isCollapsed','84ELYEzK','hasDomSelection','9452eWGbly','refresh','uiUpdate','document','EditorAnnotations','isReadOnly','annotation','from','632616yHHqhf','function','delete','push','editor','_editorAnnotations','registerAnnotation','change:range','remove','isOfficialPlugin','refreshSelectedViews','map','view','get','pluginName','_dataCollectors','editorannotations-invalid-source-callback','set','focusTracker','blur','125422JPxRNp','40fETMPf','innerView','containsRange','getOrderedSelectedAnnotations','listenTo','7162784xdbJKw','getRanges','collection','update','4Kuiiqs','requires','_editorAnnotationsData','106946DaNGtv','isEqual','editing','range','model','cancel','element','change:isFocused','init','plugins','selection','isPremiumPlugin','2319084xbpLaU','directChange','1765fXjdIz'];_0x5aa7=function(){return _0x4f8f02;};return _0x5aa7();}import{Annotations as _0x4f7491}from'./annotations.js';export class EditorAnnotations extends _0x32a302{[_0x2aedfd(0x18c)];[_0x2aedfd(0x182)];static get[_0x2aedfd(0x19c)](){return[_0x4f7491];}static get[_0x2aedfd(0x18b)](){const _0x22bbeb=_0x2aedfd;return _0x22bbeb(0x179);}static get[_0x2aedfd(0x186)](){return!0x0;}static get[_0x2aedfd(0x1a9)](){return!0x0;}constructor(_0x58b163){const _0x48a5ac=_0x2aedfd;super(_0x58b163),this[_0x48a5ac(0x18c)]=new Set(),this[_0x48a5ac(0x182)]=new Set();}[_0x2aedfd(0x1a6)](){const _0x471382=_0x2aedfd,_0x14f897=this[_0x471382(0x181)],_0x30da1c=_0x14f897[_0x471382(0x1a2)][_0x471382(0x178)][_0x471382(0x1a8)],_0x532a80=_0x1b5eac(()=>this[_0x471382(0x187)](),0xa);_0x30da1c['on'](_0x471382(0x184),(_0x8f2561,_0x224f68)=>{const _0x29cbce=_0x471382;_0x224f68[_0x29cbce(0x1ab)]&&(_0x532a80[_0x29cbce(0x1a3)](),this[_0x29cbce(0x187)]());}),this[_0x471382(0x196)](_0x14f897[_0x471382(0x1a0)][_0x471382(0x189)][_0x471382(0x178)],_0x471382(0x1a5),(_0x4a1de7,_0x2759f1,_0x1870e2)=>{_0x1870e2&&_0x532a80();}),this[_0x471382(0x196)](_0x14f897['ui'][_0x471382(0x18f)],_0x471382(0x1a5),(_0x4e9261,_0x54313c,_0x266052)=>{const _0x3a7b8c=_0x471382;_0x266052||_0x14f897[_0x3a7b8c(0x17a)]||this[_0x3a7b8c(0x1b1)](_0x3a7b8c(0x190),{'isAnnotationTracked':_0x5cf581=>this[_0x3a7b8c(0x19d)][_0x3a7b8c(0x1ae)](_0x5cf581[_0x3a7b8c(0x193)])});}),this[_0x471382(0x196)](this[_0x471382(0x181)]['ui'],_0x471382(0x19a),()=>this[_0x471382(0x1b1)](_0x471382(0x177)));}[_0x2aedfd(0x183)](_0x27e3fb){const _0x30d67e=_0x2aedfd;if(this[_0x30d67e(0x182)][_0x30d67e(0x1ae)](_0x27e3fb[_0x30d67e(0x189)]))return;this[_0x30d67e(0x182)][_0x30d67e(0x1b2)](_0x27e3fb[_0x30d67e(0x189)]),this[_0x30d67e(0x181)]['ui'][_0x30d67e(0x18f)][_0x30d67e(0x1b2)](_0x27e3fb[_0x30d67e(0x189)][_0x30d67e(0x1a4)]);const _0x3d8c7a=this[_0x30d67e(0x181)][_0x30d67e(0x1a7)][_0x30d67e(0x18a)](_0x4f7491);this[_0x30d67e(0x196)](_0x3d8c7a[_0x30d67e(0x199)],_0x30d67e(0x185),(_0x20864e,_0x356e73)=>{const _0x19f5e0=_0x30d67e;this[_0x19f5e0(0x181)]['ui'][_0x19f5e0(0x18f)][_0x19f5e0(0x185)](_0x356e73[_0x19f5e0(0x189)][_0x19f5e0(0x1a4)]),this[_0x19f5e0(0x182)][_0x19f5e0(0x17f)](_0x356e73[_0x19f5e0(0x189)]);});}[_0x2aedfd(0x174)](){const _0x16d92b=_0x2aedfd;return this[_0x16d92b(0x181)][_0x16d92b(0x1a0)][_0x16d92b(0x189)][_0x16d92b(0x174)];}[_0x2aedfd(0x1b3)](_0x5f0ad0){const _0x2cfa3e=_0x2aedfd;if(_0x2cfa3e(0x17e)!=typeof _0x5f0ad0)throw new _0x58eebc(_0x2cfa3e(0x18d));this[_0x2cfa3e(0x18c)][_0x2cfa3e(0x1b2)](_0x5f0ad0);}[_0x2aedfd(0x187)](){const _0x1a4f72=_0x2aedfd;this[_0x1a4f72(0x1b1)](_0x1a4f72(0x176));}[_0x2aedfd(0x195)]({activeAnnotation:_0x36cb01,annotations:_0xbb21bb}){const _0x828bb8=_0x2aedfd,_0x1a872e=[],_0x23236=this[_0x828bb8(0x181)][_0x828bb8(0x1a2)][_0x828bb8(0x178)][_0x828bb8(0x1a8)],_0xdf0912=Array[_0x828bb8(0x17c)](_0x23236[_0x828bb8(0x198)]());for(const [_0x6baff8,_0x5322db]of this[_0x828bb8(0x19d)]){const _0x206fdb=_0x2826ed(_0x5322db),_0x5f0b2e=_0xbb21bb[_0x828bb8(0x1b0)](_0x6baff8);_0x206fdb&&_0x5f0b2e&&_0x1a872e[_0x828bb8(0x180)]({'annotation':_0x5f0b2e,'range':_0x206fdb});}function _0x2826ed(_0x21823d){const _0x4cf1a5=_0x828bb8;for(const _0x36c151 of _0x21823d)for(const _0x43342a of _0xdf0912)if(_0x36c151[_0x4cf1a5(0x194)](_0x43342a,!_0x23236[_0x4cf1a5(0x1b4)]))return _0x36c151;return null;}return _0x1a872e[_0x828bb8(0x1af)]((_0x30f7ac,_0x4692c9)=>{const _0xca2277=_0x828bb8,_0x24681b=_0x30f7ac[_0xca2277(0x1a1)],_0x2706a3=_0x4692c9[_0xca2277(0x1a1)];if(!_0x24681b[_0xca2277(0x19f)](_0x2706a3)){if(_0x24681b[_0xca2277(0x194)](_0x2706a3,!0x0))return 0x1;if(_0x2706a3[_0xca2277(0x194)](_0x24681b,!0x0))return-0x1;}return _0x30f7ac[_0xca2277(0x17b)]==_0x36cb01?-0x1:_0x4692c9[_0xca2277(0x17b)]==_0x36cb01?0x1:0x0;})[_0x828bb8(0x188)](_0x1fa4ed=>_0x1fa4ed[_0x828bb8(0x17b)]);}get[_0x2aedfd(0x19d)](){const _0x2956ba=_0x2aedfd,_0x386871=new Map();for(const _0x1105c1 of Array[_0x2956ba(0x17c)](this[_0x2956ba(0x18c)]))for(const [_0x266f3a,_0x204173]of _0x1105c1())_0x386871[_0x2956ba(0x18e)](_0x266f3a,_0x204173);return _0x386871;}}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import AnnotationsUIs,
|
|
11
|
-
import EditorAnnotations from './editorannotations.js';
|
|
10
|
+
import { AnnotationsUIs, type AnnotationsUI } from './annotationsuis.js';
|
|
11
|
+
import { EditorAnnotations } from './editorannotations.js';
|
|
12
12
|
import { ContextualBalloon } from 'ckeditor5/src/ui.js';
|
|
13
13
|
import './../../theme/annotation-inline.css';
|
|
14
|
-
import type Annotation from './annotation.js';
|
|
15
|
-
import type AnnotationCollection from './annotationcollection.js';
|
|
14
|
+
import { type Annotation } from './annotation.js';
|
|
15
|
+
import { type AnnotationCollection } from './annotationcollection.js';
|
|
16
16
|
/**
|
|
17
17
|
* The popup-style UI for displaying annotations next to editor target elements.
|
|
18
18
|
*
|
|
@@ -34,7 +34,7 @@ import type AnnotationCollection from './annotationcollection.js';
|
|
|
34
34
|
*
|
|
35
35
|
* See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
37
|
+
export declare class InlineAnnotations extends Plugin implements AnnotationsUI<Plugin> {
|
|
38
38
|
/**
|
|
39
39
|
* An active annotation tracked by this UI.
|
|
40
40
|
*
|