@ckeditor/ckeditor5-comments 40.2.0 → 41.1.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 +1 -1
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- 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/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.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/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.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/pt.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/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/annotations/annotation.d.ts +7 -7
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +4 -4
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +7 -7
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +6 -6
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +5 -5
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +7 -7
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +7 -7
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +6 -6
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +3 -3
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +3 -3
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +3 -3
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +3 -3
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +6 -6
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +2 -2
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +5 -5
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +6 -6
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +7 -7
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +12 -12
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.d.ts +6 -6
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +2 -2
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +5 -5
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -4
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +5 -5
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +5 -5
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +9 -9
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +5 -5
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +3 -3
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +3 -3
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +5 -5
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +4 -4
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +6 -6
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -4
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +6 -6
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +8 -8
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +9 -9
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +11 -11
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +3 -3
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +4 -4
- package/src/config.js +1 -1
- package/src/index.d.ts +21 -21
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +2 -2
- package/theme/annotation-inline.css +1 -1
- package/theme/annotation.css +5 -1
- package/theme/comment.css +1 -1
- package/theme/commentinput.css +1 -1
- package/theme/commentmarker.css +1 -1
- package/theme/commentsarchive.css +2 -2
- package/theme/commentthread.css +5 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/comments-archive.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/lang/translations/af.po
CHANGED
package/lang/translations/ar.po
CHANGED
package/lang/translations/bg.po
CHANGED
package/lang/translations/bn.po
CHANGED
package/lang/translations/bs.po
CHANGED
package/lang/translations/ca.po
CHANGED
package/lang/translations/cs.po
CHANGED
package/lang/translations/da.po
CHANGED
package/lang/translations/de.po
CHANGED
package/lang/translations/el.po
CHANGED
package/lang/translations/en.po
CHANGED
package/lang/translations/es.po
CHANGED
package/lang/translations/et.po
CHANGED
package/lang/translations/fa.po
CHANGED
package/lang/translations/fi.po
CHANGED
package/lang/translations/fr.po
CHANGED
package/lang/translations/gl.po
CHANGED
package/lang/translations/he.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/jv.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sq.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/tk.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/tt.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/vi.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": "41.1.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/)",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"discussion",
|
|
33
33
|
"discussions"
|
|
34
34
|
],
|
|
35
|
+
"type": "module",
|
|
35
36
|
"main": "src/index.js",
|
|
36
37
|
"files": [
|
|
37
38
|
"build",
|
|
@@ -43,8 +44,8 @@
|
|
|
43
44
|
"CHANGELOG.md"
|
|
44
45
|
],
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"ckeditor5": "
|
|
47
|
-
"ckeditor5-collaboration": "
|
|
47
|
+
"ckeditor5": "41.1.0",
|
|
48
|
+
"ckeditor5-collaboration": "41.1.0",
|
|
48
49
|
"lodash-es": "4.17.21"
|
|
49
50
|
},
|
|
50
51
|
"types": "src/index.d.ts",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/annotations/annotation
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Rect, Collection } from 'ckeditor5/src/utils';
|
|
10
|
-
import type { View } from 'ckeditor5/src/ui';
|
|
11
|
-
import type AnnotationView from './view/annotationview';
|
|
12
|
-
import type { AnnotationOptions } from './annotations';
|
|
9
|
+
import { Rect, Collection } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type { View } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import type AnnotationView from './view/annotationview.js';
|
|
12
|
+
import type { AnnotationOptions } from './annotations.js';
|
|
13
13
|
declare const Annotation_base: {
|
|
14
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
15
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
14
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
15
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Represents an annotation.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x109e=['destroy','isArray','annotation-invalid-target','stopListening','_type','_assertCorrectTarget','mainView','filter','view','offsetParent','isVisible','updateTargetRect','targetRect','add','render','item','target','_getNormalizedTarget','isActive','every','_target','getClientRects','focusableElements','nodeType','clear','element','remove','length','type','focusTracker','_id','object','function'];(function(_0x46a0bc,_0x109eac){const _0x498f1f=function(_0xb6f844){while(--_0xb6f844){_0x46a0bc['push'](_0x46a0bc['shift']());}};_0x498f1f(++_0x109eac);}(_0x109e,0x18c));const _0x498f=function(_0x46a0bc,_0x109eac){_0x46a0bc=_0x46a0bc-0x0;let _0x498f1f=_0x109e[_0x46a0bc];return _0x498f1f;};import{CKEditorError as _0x19bc25,Rect as _0x2ed40d,Collection as _0x350759,ObservableMixin as _0x153515}from'ckeditor5/src/utils.js';export default class d extends _0x153515(){constructor({view:_0x3d2052,target:_0x58d594,type:_0x26a3bc,isVisible:_0x4ccd32=!0x0}){super(),this[_0x498f('0x8')]=_0x3d2052,this[_0x498f('0x8')][_0x498f('0x19')]||this[_0x498f('0x8')][_0x498f('0xe')](),this['_type']=_0x26a3bc,this['_target']=_0x58d594,d[_0x498f('0x5')](this[_0x498f('0x11')]()),this[_0x498f('0x16')]=new _0x350759([this[_0x498f('0x8')]['element']],{'idProperty':_0x498f('0x1e')}),this[_0x498f('0x16')]['on']('add',(_0xcdd776,_0x37fcba)=>{this['view'][_0x498f('0x1d')][_0x498f('0xd')](_0x37fcba);}),this[_0x498f('0x16')]['on'](_0x498f('0x1a'),(_0x45b1fe,_0x2382bf)=>{this[_0x498f('0x8')][_0x498f('0x1d')][_0x498f('0x1a')](_0x2382bf);}),this['set'](_0x498f('0xa'),_0x4ccd32);}get[_0x498f('0x1c')](){return _0x498f('0x20')==typeof this[_0x498f('0x4')]?this[_0x498f('0x4')]():this['_type'];}get['innerView'](){return this[_0x498f('0x8')][_0x498f('0x6')];}get[_0x498f('0x10')](){const _0x330851=this[_0x498f('0x11')]();return d['_assertCorrectTarget'](_0x330851),_0x330851;}get[_0x498f('0xc')](){const _0x3128ff=this[_0x498f('0x10')];if(null===_0x3128ff)return null;if(_0x3128ff instanceof _0x2ed40d)return _0x3128ff;const _0x35bade=_0x3128ff[_0x498f('0x7')](_0x5503ce=>function(_0x49dad4){const _0xc0c2f6=_0x49dad4[_0x498f('0x9')];if(_0xc0c2f6)return!0x0;const _0x571e4f=_0x49dad4[_0x498f('0x15')]()['item'](0x0);return!!_0x571e4f;}(_0x5503ce));return 0x0===_0x35bade[_0x498f('0x1b')]?null:new _0x2ed40d(_0x35bade[0x0][_0x498f('0x15')]()[_0x498f('0xf')](0x0));}get[_0x498f('0x12')](){return this['view'][_0x498f('0x12')];}set[_0x498f('0x12')](_0xc3dfb1){this[_0x498f('0x8')][_0x498f('0x12')]=_0xc3dfb1,this[_0x498f('0x8')][_0x498f('0x6')]['isActive']=_0xc3dfb1;}[_0x498f('0xb')](){this[_0x498f('0x8')][_0x498f('0xc')]=this[_0x498f('0xc')];}[_0x498f('0x0')](){this['focusableElements'][_0x498f('0x3')](),this['focusableElements'][_0x498f('0x18')](),this[_0x498f('0x3')]();}['refreshVisibility'](){this[_0x498f('0xa')]=!!this[_0x498f('0xc')];}static[_0x498f('0x5')](_0x442a45){if(!(null===_0x442a45||_0x442a45 instanceof _0x2ed40d||Array[_0x498f('0x1')](_0x442a45)&&_0x442a45[_0x498f('0x13')](_0x1fdc7b=>y(_0x1fdc7b))))throw new _0x19bc25(_0x498f('0x2'),null,{'target':_0x442a45});}[_0x498f('0x11')](){const _0x58f52e=_0x498f('0x20')==typeof this[_0x498f('0x14')]?this[_0x498f('0x14')]():this[_0x498f('0x14')];return y(_0x58f52e)?[_0x58f52e]:_0x58f52e;}}function y(_0x4ce374){return null!==_0x4ce374&&_0x498f('0x1f')==typeof _0x4ce374&&_0x498f('0x17')in _0x4ce374&&0x1===_0x4ce374[_0x498f('0x17')];}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/annotations/annotationcollection
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Collection } from 'ckeditor5/src/utils';
|
|
10
|
-
import type { View } from 'ckeditor5/src/ui';
|
|
11
|
-
import type Annotation from './annotation';
|
|
9
|
+
import { Collection } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type { View } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import type Annotation from './annotation.js';
|
|
12
12
|
/**
|
|
13
13
|
* A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
14
14
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x36d2=['focusTracker','getIndex','left','innerView','blur','updateTargetRect','_focusTracker','delete','focusableElements','destroy','getByInnerView','add','length','_getOrderInContent','targetRect','annotationcollection-not-existing-item','refreshPositioning','change:isFocused','_innerViewToAnnotation','sort','listenTo','annotationcollection-duplicated-item','get','stopListening','isFocused','set','_sort','has','remove','_viewToAnnotation','fire','clear','view','from','top'];(function(_0x1d4d26,_0x36d250){const _0x29b06b=function(_0x55e32a){while(--_0x55e32a){_0x1d4d26['push'](_0x1d4d26['shift']());}};_0x29b06b(++_0x36d250);}(_0x36d2,0xdf));const _0x29b0=function(_0x1d4d26,_0x36d250){_0x1d4d26=_0x1d4d26-0x0;let _0x29b06b=_0x36d2[_0x1d4d26];return _0x29b06b;};import{CKEditorError as _0x57284f,Collection as _0x49aaa4,FocusTracker as _0x2b5702}from'ckeditor5/src/utils.js';export default class x extends _0x49aaa4{constructor(_0x217eaa=[]){super(),this[_0x29b0('0x5')]=new Map(),this[_0x29b0('0x10')]=new Map(),this['_focusTracker']=new _0x2b5702(),this['_focusTracker']['on'](_0x29b0('0x4'),(_0x205743,_0x489815,_0x579934)=>{_0x579934||this[_0x29b0('0x11')](_0x29b0('0x1a'));});for(const _0x5ec4e7 of _0x217eaa)this[_0x29b0('0x21')](_0x5ec4e7);}get[_0x29b0('0xb')](){return this[_0x29b0('0x1c')][_0x29b0('0xb')];}[_0x29b0('0x21')](_0x3e2448){if(this[_0x29b0('0xe')](_0x3e2448))throw new _0x57284f(_0x29b0('0x8'),null);this[_0x29b0('0x5')][_0x29b0('0xc')](_0x3e2448[_0x29b0('0x19')],_0x3e2448),this['_viewToAnnotation'][_0x29b0('0xc')](_0x3e2448[_0x29b0('0x13')],_0x3e2448);for(const _0x4d8a36 of _0x3e2448['focusableElements'])this[_0x29b0('0x1c')][_0x29b0('0x21')](_0x4d8a36);this[_0x29b0('0x7')](_0x3e2448[_0x29b0('0x1e')],'add',(_0x19e975,_0x4789a6)=>{this[_0x29b0('0x1c')]['add'](_0x4789a6);}),this[_0x29b0('0x7')](_0x3e2448[_0x29b0('0x1e')],'remove',(_0x55b051,_0x38069c)=>{this[_0x29b0('0x1c')]['remove'](_0x38069c);}),this['listenTo'](_0x3e2448[_0x29b0('0x13')][_0x29b0('0x16')],_0x29b0('0x4'),(_0x429a41,_0x4e33ab,_0x2adeb0)=>{_0x2adeb0&&this[_0x29b0('0x11')]('focus',_0x3e2448);}),_0x3e2448[_0x29b0('0x1b')]();const _0x122402=this[_0x29b0('0x0')](_0x3e2448['view'][_0x29b0('0x1')]);return super['add'](_0x3e2448,_0x122402);}['remove'](_0x5c7dcd){if(!this[_0x29b0('0xe')](_0x5c7dcd))throw new _0x57284f(_0x29b0('0x2'),null);this[_0x29b0('0xa')](_0x5c7dcd[_0x29b0('0x13')][_0x29b0('0x16')]),this[_0x29b0('0xa')](_0x5c7dcd[_0x29b0('0x1e')]);for(const _0x18632f of _0x5c7dcd['focusableElements'])this[_0x29b0('0x1c')]['remove'](_0x18632f);return this[_0x29b0('0x10')][_0x29b0('0x1d')](_0x5c7dcd[_0x29b0('0x13')]),this[_0x29b0('0x5')]['delete'](_0x5c7dcd[_0x29b0('0x19')]),super[_0x29b0('0xf')](_0x5c7dcd);}[_0x29b0('0x20')](_0xdbb88a){return this[_0x29b0('0x5')][_0x29b0('0x9')](_0xdbb88a);}['getByView'](_0x2ad585){return this[_0x29b0('0x10')]['get'](_0x2ad585);}[_0x29b0('0x1f')](){super[_0x29b0('0x12')](),this[_0x29b0('0xa')](),this[_0x29b0('0x5')][_0x29b0('0x12')](),this['_viewToAnnotation'][_0x29b0('0x12')](),this[_0x29b0('0x1c')][_0x29b0('0x1f')]();}[_0x29b0('0x3')](){for(const _0xe8e8fc of this)_0xe8e8fc[_0x29b0('0x1b')]();this[_0x29b0('0xd')]();}[_0x29b0('0xd')](){const _0x28153e=Array[_0x29b0('0x14')](this)[_0x29b0('0x6')]((_0x22beb4,_0x19256a)=>v(_0x22beb4[_0x29b0('0x13')][_0x29b0('0x1')],_0x19256a[_0x29b0('0x13')][_0x29b0('0x1')]));for(let _0x1628d7=_0x28153e[_0x29b0('0x22')]-0x1;_0x1628d7>0x0;_0x1628d7--){const _0x3e2b9a=_0x28153e[_0x1628d7];_0x1628d7!==this[_0x29b0('0x17')](_0x3e2b9a)&&(this[_0x29b0('0xf')](_0x3e2b9a),this[_0x29b0('0x21')](_0x3e2b9a));}}[_0x29b0('0x0')](_0x29cb10){let _0x285756=0x0;if(!_0x29cb10)return this['length'];for(const _0x967327 of this){const _0x544717=_0x967327[_0x29b0('0x13')][_0x29b0('0x1')];if(_0x544717){if(v(_0x29cb10,_0x544717)<0x0)return _0x285756;_0x285756++;}}return _0x285756;}}export function bindAnnotationCollections({source:_0x3dbe1a,target:_0x31f12d,filter:_0xf585bd}){for(const _0x19d806 of _0x3dbe1a)_0xf585bd(_0x19d806)&&_0x31f12d[_0x29b0('0x21')](_0x19d806);_0x31f12d[_0x29b0('0x7')](_0x3dbe1a,'add',(_0x192325,_0x19647d)=>{_0xf585bd(_0x19647d)&&_0x31f12d[_0x29b0('0x21')](_0x19647d);}),_0x31f12d['listenTo'](_0x3dbe1a,_0x29b0('0xf'),(_0x55c6a2,_0x5434ba)=>{_0x31f12d[_0x29b0('0xe')](_0x5434ba)&&_0x31f12d[_0x29b0('0xf')](_0x5434ba);});}function v(_0x1ebc79,_0x549e07){if(null===_0x1ebc79&&null===_0x549e07)return 0x0;if(null===_0x1ebc79)return-0x1;if(null===_0x549e07)return 0x1;const _0xae6194=_0x1ebc79['top']-_0x549e07[_0x29b0('0x15')];return 0x0==_0xae6194?_0x1ebc79['left']-_0x549e07[_0x29b0('0x18')]:_0xae6194;}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/annotations/annotations
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type { View } from 'ckeditor5/src/ui';
|
|
11
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
12
|
-
import Annotation, { type AnnotationTarget } from './annotation';
|
|
13
|
-
import AnnotationCollection from './annotationcollection';
|
|
14
|
-
import AnnotationView, { type AnnotationMainView } from './view/annotationview';
|
|
9
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type { View } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
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}.
|