@ckeditor/ckeditor5-comments 40.0.0 → 40.2.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/CHANGELOG.md +19 -19
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/af.po +8 -0
- package/lang/translations/ar.po +8 -0
- package/lang/translations/bg.po +8 -0
- package/lang/translations/bn.po +8 -0
- package/lang/translations/bs.po +8 -0
- package/lang/translations/ca.po +8 -0
- package/lang/translations/cs.po +8 -0
- package/lang/translations/da.po +8 -0
- package/lang/translations/de-ch.po +8 -0
- package/lang/translations/de.po +8 -0
- package/lang/translations/el.po +8 -0
- package/lang/translations/en-au.po +8 -0
- package/lang/translations/en.po +8 -0
- package/lang/translations/es-co.po +8 -0
- package/lang/translations/es.po +8 -0
- package/lang/translations/et.po +8 -0
- package/lang/translations/fa.po +8 -0
- package/lang/translations/fi.po +8 -0
- package/lang/translations/fr.po +8 -0
- package/lang/translations/gl.po +8 -0
- package/lang/translations/he.po +8 -0
- package/lang/translations/hi.po +8 -0
- package/lang/translations/hr.po +8 -0
- package/lang/translations/hu.po +8 -0
- package/lang/translations/id.po +8 -0
- package/lang/translations/it.po +8 -0
- package/lang/translations/ja.po +8 -0
- package/lang/translations/jv.po +8 -0
- package/lang/translations/ko.po +8 -0
- package/lang/translations/lt.po +8 -0
- package/lang/translations/lv.po +8 -0
- package/lang/translations/ms.po +8 -0
- package/lang/translations/nl.po +8 -0
- package/lang/translations/no.po +8 -0
- package/lang/translations/pl.po +8 -0
- package/lang/translations/pt-br.po +8 -0
- package/lang/translations/pt.po +8 -0
- package/lang/translations/ro.po +8 -0
- package/lang/translations/ru.po +8 -0
- package/lang/translations/sk.po +8 -0
- package/lang/translations/sq.po +8 -0
- package/lang/translations/sr-latn.po +9 -1
- package/lang/translations/sr.po +8 -0
- package/lang/translations/sv.po +8 -0
- package/lang/translations/th.po +8 -0
- package/lang/translations/tk.po +8 -0
- package/lang/translations/tr.po +8 -0
- package/lang/translations/tt.po +8 -0
- package/lang/translations/ug.po +16 -8
- package/lang/translations/uk.po +8 -0
- package/lang/translations/ur.po +8 -0
- package/lang/translations/vi.po +8 -0
- package/lang/translations/zh-cn.po +8 -0
- package/lang/translations/zh.po +8 -0
- package/package.json +3 -3
- package/src/annotations/annotation.d.ts +90 -90
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +98 -98
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +154 -154
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +232 -232
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +67 -67
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +90 -90
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +85 -85
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +100 -100
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +90 -90
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +55 -55
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +32 -32
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +77 -77
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +52 -52
- package/src/comments/addcommentthreadcommand.d.ts +35 -35
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +31 -31
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +38 -38
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +79 -79
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1130 -1129
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +33 -33
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +21 -21
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +112 -112
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +14 -14
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +86 -86
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +100 -100
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +118 -118
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +243 -243
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +35 -35
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +33 -33
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +176 -176
- package/src/index.d.ts +24 -24
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +14 -14
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18b2=['hasMarkerForId','execute','length','getCommentThread','add','map','editor','CommentThreadInputView','init','from','componentFactory','change:activeAnnotations','focus','_threadToController','has','CommentsUI','bind','commands','view','editing','get','low','hasCommentThread','Comment','push','_viewToController','activeMarker','innerView','_createUIButton','getRange','pluginName','addSourceCollector','comment:','addComment','model','focusTracker','addCommentThread','plugins','getAllMarkersForId','locale','isEnabled','listenTo','removeCommentThread','requires','stop','label','icon'];(function(_0x3913c6,_0x18b2a0){const _0x4aa71e=function(_0x5941cb){while(--_0x5941cb){_0x3913c6['push'](_0x3913c6['shift']());}};_0x4aa71e(++_0x18b2a0);}(_0x18b2,0x153));const _0x4aa7=function(_0x3913c6,_0x18b2a0){_0x3913c6=_0x3913c6-0x0;let _0x4aa71e=_0x18b2[_0x3913c6];return _0x4aa71e;};import{Plugin as _0x4dfc8e}from'ckeditor5/src/core';import _0x44dec1 from'./commentsrepository';import _0x1235c7 from'./commentsediting';import _0x19f431 from'../annotations/editorannotations';import{ButtonView as _0x350bdf}from'ckeditor5/src/ui';import _0x1e1bb4 from'../../theme/icons/add-comment.svg';import _0x51cc03 from'../annotations/annotations';import _0x1ac630 from'./ui/view/commentslistview';import _0x5713e0 from'./ui/view/commentthreadinputview';import{getTranslation as _0x490581}from'../utils/common-translations';export default class e extends _0x4dfc8e{static get[_0x4aa7('0x14')](){return _0x4aa7('0x5');}static get[_0x4aa7('0x21')](){return[_0x44dec1,_0x1235c7,_0x19f431,_0x51cc03];}get['CommentsListView'](){return _0x1ac630;}get[_0x4aa7('0x2c')](){return _0x5713e0;}[_0x4aa7('0x2d')](){const _0x29f077=this[_0x4aa7('0x2b')],_0xbab109=_0x29f077[_0x4aa7('0x1b')][_0x4aa7('0xa')](_0x44dec1),_0x946ccc=_0x29f077['plugins']['get'](_0x1235c7),_0x29023b=_0x29f077[_0x4aa7('0x1b')][_0x4aa7('0xa')](_0x51cc03),_0x44c010=_0x29f077[_0x4aa7('0x1b')][_0x4aa7('0xa')](_0x19f431);_0x29f077['ui'][_0x4aa7('0x0')][_0x4aa7('0x29')]('comment',()=>this[_0x4aa7('0x12')]()),_0x44c010[_0x4aa7('0x15')](()=>{const _0x680fe4=[];for(const [_0x4bba7f,_0xdb9e8a]of _0xbab109[_0x4aa7('0x3')]){const _0x4c13e6=_0x946ccc[_0x4aa7('0x1c')](_0x4bba7f['id']),_0x28900e=_0x4c13e6['map'](_0xbe504=>_0xbe504[_0x4aa7('0x13')]());_0x4c13e6[_0x4aa7('0x27')]>0x0&&_0x680fe4[_0x4aa7('0xe')]([_0xdb9e8a[_0x4aa7('0x8')],_0x28900e]);}return _0x680fe4;}),this[_0x4aa7('0x1f')](_0x29023b,_0x4aa7('0x1'),(_0x3dc788,_0x9a50f8,_0x224e23)=>{const _0x20c3ef=Array[_0x4aa7('0x2e')](_0x224e23)[_0x4aa7('0x2a')](_0x185dd2=>_0x185dd2[_0x4aa7('0x11')])['find'](_0x272b50=>_0xbab109[_0x4aa7('0xf')][_0x4aa7('0x4')](_0x272b50));if(!_0x20c3ef)return void(_0x946ccc[_0x4aa7('0x10')]=null);const _0x38c1d0=_0xbab109['_viewToController']['get'](_0x20c3ef)[_0x4aa7('0x18')]['id'],_0x50f3b8=_0x4aa7('0x16')+_0x38c1d0;_0x38c1d0&&_0x946ccc[_0x4aa7('0x25')](_0x38c1d0)?_0x946ccc[_0x4aa7('0x10')]=_0x50f3b8:_0x946ccc[_0x4aa7('0x10')]&&(_0x946ccc[_0x4aa7('0x10')]=null);}),this[_0x4aa7('0x1f')](_0xbab109,_0x4aa7('0x20'),(_0x4bf240,{threadId:_0x2b22e2,isFromAdapter:_0xfd3e2c})=>{!_0xfd3e2c&&_0x29f077['ui'][_0x4aa7('0x19')]['isFocused']&&_0x946ccc[_0x4aa7('0x25')](_0x2b22e2)&&_0x29f077[_0x4aa7('0x9')][_0x4aa7('0x8')]['focus']();},{'priority':'highest'}),this[_0x4aa7('0x1f')](_0xbab109,_0x4aa7('0x17'),(_0x12e7f7,{threadId:_0x51a37a,isFromAdapter:_0x472a19})=>{if(_0x472a19||!_0x946ccc['hasMarkerForId'](_0x51a37a)||!_0xbab109[_0x4aa7('0xc')](_0x51a37a))return;0x1===_0xbab109[_0x4aa7('0x28')](_0x51a37a)[_0x4aa7('0x27')]&&(_0x29f077['editing'][_0x4aa7('0x8')][_0x4aa7('0x2')](),_0x12e7f7[_0x4aa7('0x22')]());},{'priority':_0x4aa7('0xb')});}['_createUIButton'](){const _0x307f5b=this['editor'],_0x328d4e=new _0x350bdf(_0x307f5b[_0x4aa7('0x1d')]),_0x2ec8ba=_0x307f5b[_0x4aa7('0x7')]['get'](_0x4aa7('0x1a'));return _0x328d4e[_0x4aa7('0x23')]=_0x490581(_0x307f5b[_0x4aa7('0x1d')],'Comment'),_0x328d4e['tooltip']=_0x490581(_0x307f5b[_0x4aa7('0x1d')],_0x4aa7('0xd')),_0x328d4e[_0x4aa7('0x24')]=_0x1e1bb4,_0x328d4e[_0x4aa7('0x6')](_0x4aa7('0x1e'))['to'](_0x2ec8ba),this[_0x4aa7('0x1f')](_0x328d4e,'execute',()=>_0x2ec8ba[_0x4aa7('0x26')]()),_0x328d4e;}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/comments/integrations/commentsrestrictededitingmode
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides comments plugin integration for restricted editing mode feature from restricted editing package.
|
|
11
|
-
*/
|
|
12
|
-
export default class CommentsRestrictedEditingMode extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/comments/integrations/commentsrestrictededitingmode
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides comments plugin integration for restricted editing mode feature from restricted editing package.
|
|
11
|
+
*/
|
|
12
|
+
export default class CommentsRestrictedEditingMode extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c13=['plugins','enableCommand','get','editor','afterInit','RestrictedEditingModeEditing','has'];(function(_0x41b735,_0x4c1365){const _0x1fc13a=function(_0x1b313b){while(--_0x1b313b){_0x41b735['push'](_0x41b735['shift']());}};_0x1fc13a(++_0x4c1365);}(_0x4c13,0x178));const _0x1fc1=function(_0x41b735,_0x4c1365){_0x41b735=_0x41b735-0x0;let _0x1fc13a=_0x4c13[_0x41b735];return _0x1fc13a;};import{Plugin as _0x10eef2}from'ckeditor5/src/core';export default class Y extends _0x10eef2{[_0x1fc1('0x6')](){const _0x1d82c4=this[_0x1fc1('0x5')];if(!_0x1d82c4[_0x1fc1('0x2')][_0x1fc1('0x1')](_0x1fc1('0x0')))return;_0x1d82c4['plugins'][_0x1fc1('0x4')](_0x1fc1('0x0'))[_0x1fc1('0x3')]('addCommentThread');}}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/integrations/importword
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides comments plugin integration for the import from Word feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class CommentsImportWord extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
constructor(editor: Editor);
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
afterInit(): void;
|
|
21
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/integrations/importword
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides comments plugin integration for the import from Word feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class CommentsImportWord extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
constructor(editor: Editor);
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
afterInit(): void;
|
|
21
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1407=['define','plugins','commands','dataInsert','listenTo','high','execute','basic','addCommentThread','_handleImportedData','editor','afterInit','collaboration.channelId','get','collaboration_features','importWord','config'];(function(_0x17d205,_0x1407d6){const _0x5b0ffd=function(_0x12103c){while(--_0x12103c){_0x17d205['push'](_0x17d205['shift']());}};_0x5b0ffd(++_0x1407d6);}(_0x1407,0xc8));const _0x5b0f=function(_0x17d205,_0x1407d6){_0x17d205=_0x17d205-0x0;let _0x5b0ffd=_0x1407[_0x17d205];return _0x5b0ffd;};import{Plugin as _0x56a53b}from'ckeditor5/src/core';import{priorities as _0x20abe5}from'ckeditor5/src/utils';import{Users as _0x30f305}from'ckeditor5-collaboration/src/collaboration-core';import _0xf1e050 from'../commentsrepository';export default class Z extends _0x56a53b{constructor(_0x57eeac){super(_0x57eeac),this[_0x5b0f('0xe')]['config'][_0x5b0f('0x4')]('importWord.formatting.comments',_0x5b0f('0xb'));}[_0x5b0f('0xf')](){const _0x203bbb=this['editor'],_0x3a30fc=_0x203bbb[_0x5b0f('0x6')][_0x5b0f('0x0')](_0x5b0f('0x2')),_0x1e2a6b=_0x203bbb[_0x5b0f('0x5')][_0x5b0f('0x0')](_0x30f305);_0x3a30fc&&(_0x3a30fc['on'](_0x5b0f('0xa'),(_0x408384,[,_0x77c2e9])=>{_0x77c2e9[_0x5b0f('0x1')]={'comments':!0x0,'user_id':_0x1e2a6b['me']['id']};},{'priority':_0x20abe5[_0x5b0f('0x9')]+0xa}),this[_0x5b0f('0x8')](_0x3a30fc,_0x5b0f('0x7'),this[_0x5b0f('0xd')]));}['_handleImportedData'](_0x356e02,_0x19b2dd){const {comment_threads:_0x3c8ca0}=_0x19b2dd;_0x3c8ca0&&_0x3c8ca0['forEach'](({thread_id:_0x21afdd,comments:_0x43ac47,is_resolved:_0x44c234})=>{const _0x2cac7a=new Date(),_0x2acac9=_0x43ac47['map'](({author:_0x8cb219,content:_0x326d86,created_at:_0x2a1b1c})=>({'content':_0x326d86,'authorId':this[_0x5b0f('0xe')]['plugins'][_0x5b0f('0x0')](_0x30f305)['me']['id'],'createdAt':_0x2cac7a,'attributes':{'@external':{'authorName':_0x8cb219,'createdAt':_0x2a1b1c?new Date(_0x2a1b1c):new Date(),'source':_0x5b0f('0x2')}}})),_0x2389bb=this[_0x5b0f('0xe')][_0x5b0f('0x3')][_0x5b0f('0x0')](_0x5b0f('0x10'));this[_0x5b0f('0xe')][_0x5b0f('0x5')][_0x5b0f('0x0')](_0xf1e050)[_0x5b0f('0xc')]({'channelId':_0x2389bb,'threadId':_0x21afdd,'comments':_0x2acac9,'resolvedAt':_0x44c234?_0x2cac7a:null});});}}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/comments/ui/commenteditor/commenteditor
|
|
7
|
-
*/
|
|
8
|
-
import { Editor, type EditorConfig } from 'ckeditor5/src/core';
|
|
9
|
-
import CommentEditorUI from './commenteditorui';
|
|
10
|
-
import { type PlaceholderableElement } from 'ckeditor5/src/engine';
|
|
11
|
-
declare const CommentEditor_base: import("ckeditor5/src/utils").Mixed<import("ckeditor5/src/utils").Mixed<typeof Editor, import("ckeditor5/src/core").DataApi>, import("ckeditor5/src/utils").Observable>;
|
|
12
|
-
export default class CommentEditor extends CommentEditor_base {
|
|
13
|
-
static defaultPlugins: EditorConfig['plugins'];
|
|
14
|
-
/**
|
|
15
|
-
* The input placeholder.
|
|
16
|
-
*
|
|
17
|
-
* @observable
|
|
18
|
-
*/
|
|
19
|
-
placeholder: string;
|
|
20
|
-
placeholderElement: PlaceholderableElement | undefined;
|
|
21
|
-
ui: CommentEditorUI;
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
constructor(config?: EditorConfig);
|
|
26
|
-
create(): Promise<unknown>;
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
destroy(): Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* Place the selection at the end of the editor data and focus the editable.
|
|
33
|
-
*/
|
|
34
|
-
focus(): void;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/comments/ui/commenteditor/commenteditor
|
|
7
|
+
*/
|
|
8
|
+
import { Editor, type EditorConfig } from 'ckeditor5/src/core';
|
|
9
|
+
import CommentEditorUI from './commenteditorui';
|
|
10
|
+
import { type PlaceholderableElement } from 'ckeditor5/src/engine';
|
|
11
|
+
declare const CommentEditor_base: import("ckeditor5/src/utils").Mixed<import("ckeditor5/src/utils").Mixed<typeof Editor, import("ckeditor5/src/core").DataApi>, import("ckeditor5/src/utils").Observable>;
|
|
12
|
+
export default class CommentEditor extends CommentEditor_base {
|
|
13
|
+
static defaultPlugins: EditorConfig['plugins'];
|
|
14
|
+
/**
|
|
15
|
+
* The input placeholder.
|
|
16
|
+
*
|
|
17
|
+
* @observable
|
|
18
|
+
*/
|
|
19
|
+
placeholder: string;
|
|
20
|
+
placeholderElement: PlaceholderableElement | undefined;
|
|
21
|
+
ui: CommentEditorUI;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
constructor(config?: EditorConfig);
|
|
26
|
+
create(): Promise<unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
destroy(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Place the selection at the end of the editor data and focus the editable.
|
|
33
|
+
*/
|
|
34
|
+
focus(): void;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d62=['destroy','placeholder','name','fire','setSelection','ready','view','initPlugins','childCount','placeholderElement','init','then','createRoot','document','_updatePlaceholder','initialData','end','defaultPlugins','change:placeholder','plugins','config','focus','low','change','model','create','getRoot','getChild'];(function(_0x208d24,_0x3d6289){const _0x36e929=function(_0x353ef4){while(--_0x353ef4){_0x208d24['push'](_0x208d24['shift']());}};_0x36e929(++_0x3d6289);}(_0x3d62,0xec));const _0x36e9=function(_0x208d24,_0x3d6289){_0x208d24=_0x208d24-0x0;let _0x36e929=_0x3d62[_0x208d24];return _0x36e929;};import{Editor as _0x2d009c,DataApiMixin as _0x21f2f9}from'ckeditor5/src/core';import _0x544577 from'./commenteditorui';import{ObservableMixin as _0x5cefd7}from'ckeditor5/src/utils';import{enablePlaceholder as _0xcc9b70,disablePlaceholder as _0x297cf5}from'ckeditor5/src/engine';import{Clipboard as _0xdb3038}from'ckeditor5/src/clipboard';import{Enter as _0x1df91d,ShiftEnter as _0xa524bb}from'ckeditor5/src/enter';import{SelectAll as _0x7f2e8f}from'ckeditor5/src/select-all';import{Typing as _0x45fdb0}from'ckeditor5/src/typing';import{Undo as _0x27058c}from'ckeditor5/src/undo';import{Paragraph as _0x854ebe}from'ckeditor5/src/paragraph';const Mt=[_0xdb3038,_0x1df91d,_0xa524bb,_0x7f2e8f,_0x45fdb0,_0x27058c,_0x854ebe];export default class Nt extends _0x5cefd7(_0x21f2f9(_0x2d009c)){constructor(_0x203787={}){(_0x203787=Object['assign']({},_0x203787))[_0x36e9('0x7')]||(_0x203787[_0x36e9('0x7')]=Nt[_0x36e9('0x5')]),super(_0x203787),this['ui']=new _0x544577(this),this['set']('placeholder',''),this['model'][_0x36e9('0x1')]['on'](_0x36e9('0xb'),()=>this['_updatePlaceholder'](),{'priority':_0x36e9('0xa')}),this['on'](_0x36e9('0x6'),()=>this['_updatePlaceholder']()),this[_0x36e9('0xc')]['document'][_0x36e9('0x0')]();}[_0x36e9('0xd')](){const _0x297741=this[_0x36e9('0x8')]['get'](_0x36e9('0x3'))||'';return this[_0x36e9('0x17')]()[_0x36e9('0x1b')](()=>this['ui'][_0x36e9('0x1a')]())[_0x36e9('0x1b')](()=>this['data']['init'](_0x297741))[_0x36e9('0x1b')](()=>this[_0x36e9('0x13')](_0x36e9('0x15')));}['destroy'](){return super[_0x36e9('0x10')]()[_0x36e9('0x1b')](()=>this['ui'][_0x36e9('0x10')]());}[_0x36e9('0x9')](){this[_0x36e9('0xc')]['change'](_0x4cc7ac=>{const _0x4457ea=this[_0x36e9('0xc')][_0x36e9('0x1')][_0x36e9('0xe')](),_0x2f3291=_0x4457ea&&_0x4457ea[_0x36e9('0xf')](_0x4457ea['childCount']-0x1);_0x4cc7ac[_0x36e9('0x14')](_0x2f3291,_0x36e9('0x4')),this['editing'][_0x36e9('0x16')][_0x36e9('0x9')]();});}[_0x36e9('0x2')](){const _0x54696b=this['editing']['view'],_0x5a5266=_0x54696b['document'][_0x36e9('0xe')](),_0x2c7e69=_0x5a5266[_0x36e9('0xf')](0x0);_0x5a5266[_0x36e9('0x18')]>0x1||!_0x2c7e69||'p'!=_0x2c7e69[_0x36e9('0x12')]?this[_0x36e9('0x19')]&&this[_0x36e9('0x19')][_0x36e9('0x11')]&&(_0x297cf5(_0x54696b,this['placeholderElement']),this[_0x36e9('0x19')]=void 0x0):(this[_0x36e9('0x11')]&&(_0x2c7e69[_0x36e9('0x11')]=this[_0x36e9('0x11')]),_0xcc9b70({'view':_0x54696b,'element':_0x2c7e69,'keepOnFocus':!0x0}),this[_0x36e9('0x19')]=_0x2c7e69);}}Nt[_0x36e9('0x5')]=Mt;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/comments/ui/commenteditor/commenteditorui
|
|
7
|
-
*/
|
|
8
|
-
import { EditorUI } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import CommentEditorUIView from './commenteditoruiview';
|
|
11
|
-
export default class CommentEditorUI extends EditorUI {
|
|
12
|
-
/**
|
|
13
|
-
* The main (top–most) view of the editor UI.
|
|
14
|
-
*/
|
|
15
|
-
readonly view: CommentEditorUIView;
|
|
16
|
-
/**
|
|
17
|
-
* Creates an instance of the classic editor UI class.
|
|
18
|
-
*
|
|
19
|
-
* @param editor The editor instance.
|
|
20
|
-
*/
|
|
21
|
-
constructor(editor: Editor);
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
get element(): HTMLElement | null;
|
|
26
|
-
init(): void;
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
destroy(): void;
|
|
31
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/comments/ui/commenteditor/commenteditorui
|
|
7
|
+
*/
|
|
8
|
+
import { EditorUI } from 'ckeditor5/src/ui';
|
|
9
|
+
import type { Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import CommentEditorUIView from './commenteditoruiview';
|
|
11
|
+
export default class CommentEditorUI extends EditorUI {
|
|
12
|
+
/**
|
|
13
|
+
* The main (top–most) view of the editor UI.
|
|
14
|
+
*/
|
|
15
|
+
readonly view: CommentEditorUIView;
|
|
16
|
+
/**
|
|
17
|
+
* Creates an instance of the classic editor UI class.
|
|
18
|
+
*
|
|
19
|
+
* @param editor The editor instance.
|
|
20
|
+
*/
|
|
21
|
+
constructor(editor: Editor);
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
get element(): HTMLElement | null;
|
|
26
|
+
init(): void;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
destroy(): void;
|
|
31
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36f6=['view','element','editor','destroy','editing','ready','render','init','rootName','locale','editable','isFocused','focusTracker','attachDomRoot','fire','document'];(function(_0x4b0049,_0x36f672){const _0x5ab94b=function(_0x308973){while(--_0x308973){_0x4b0049['push'](_0x4b0049['shift']());}};_0x5ab94b(++_0x36f672);}(_0x36f6,0x19f));const _0x5ab9=function(_0x4b0049,_0x36f672){_0x4b0049=_0x4b0049-0x0;let _0x5ab94b=_0x36f6[_0x4b0049];return _0x5ab94b;};import{EditorUI as _0x87404b}from'ckeditor5/src/ui';import _0x384d56 from'./commenteditoruiview';export default class Ft extends _0x87404b{constructor(_0x135aaa){super(_0x135aaa),this[_0x5ab9('0x1')]=new _0x384d56(_0x135aaa[_0x5ab9('0xa')],_0x135aaa[_0x5ab9('0x5')][_0x5ab9('0x1')]);}get[_0x5ab9('0x2')](){return this[_0x5ab9('0x1')][_0x5ab9('0x2')];}[_0x5ab9('0x8')](){const _0x17f462=this[_0x5ab9('0x3')][_0x5ab9('0x5')][_0x5ab9('0x1')],_0x59fe0c=this['view'][_0x5ab9('0xb')],_0xd836b5=_0x17f462[_0x5ab9('0x0')]['getRoot']();_0x59fe0c['name']=_0xd836b5[_0x5ab9('0x9')],this[_0x5ab9('0x1')][_0x5ab9('0x7')]();const _0xbc1d97=_0x59fe0c[_0x5ab9('0x2')];this['setEditableElement'](_0x59fe0c['name'],_0xbc1d97),this[_0x5ab9('0x1')][_0x5ab9('0xb')]['bind'](_0x5ab9('0xc'))['to'](this[_0x5ab9('0xd')]),_0x17f462[_0x5ab9('0xe')](_0xbc1d97),this[_0x5ab9('0xf')](_0x5ab9('0x6'));}[_0x5ab9('0x4')](){super['destroy'](),this[_0x5ab9('0x1')]['destroy']();}}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/comments/ui/commenteditor/commenteditoruiview
|
|
7
|
-
*/
|
|
8
|
-
import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import type { View } from 'ckeditor5/src/engine';
|
|
11
|
-
export default class CommentEditorUIView extends EditorUIView {
|
|
12
|
-
/**
|
|
13
|
-
* Collection of the child views located in the main (`.ck-editor__main`)
|
|
14
|
-
* area of the UI.
|
|
15
|
-
*/
|
|
16
|
-
readonly main: ViewCollection;
|
|
17
|
-
/**
|
|
18
|
-
* Editable UI view.
|
|
19
|
-
*/
|
|
20
|
-
editable: InlineEditableUIView;
|
|
21
|
-
/**
|
|
22
|
-
* Creates an instance of the comments editor UI view.
|
|
23
|
-
*
|
|
24
|
-
* @param locale The locale instance.
|
|
25
|
-
* @param editingView The editing view instance this view is related to.
|
|
26
|
-
*/
|
|
27
|
-
constructor(locale: Locale, editingView: View);
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
render(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Focusable interface required by a FocusCycler.
|
|
34
|
-
*/
|
|
35
|
-
focus(): void;
|
|
36
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/comments/ui/commenteditor/commenteditoruiview
|
|
7
|
+
*/
|
|
8
|
+
import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import type { View } from 'ckeditor5/src/engine';
|
|
11
|
+
export default class CommentEditorUIView extends EditorUIView {
|
|
12
|
+
/**
|
|
13
|
+
* Collection of the child views located in the main (`.ck-editor__main`)
|
|
14
|
+
* area of the UI.
|
|
15
|
+
*/
|
|
16
|
+
readonly main: ViewCollection;
|
|
17
|
+
/**
|
|
18
|
+
* Editable UI view.
|
|
19
|
+
*/
|
|
20
|
+
editable: InlineEditableUIView;
|
|
21
|
+
/**
|
|
22
|
+
* Creates an instance of the comments editor UI view.
|
|
23
|
+
*
|
|
24
|
+
* @param locale The locale instance.
|
|
25
|
+
* @param editingView The editing view instance this view is related to.
|
|
26
|
+
*/
|
|
27
|
+
constructor(locale: Locale, editingView: View);
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
render(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Focusable interface required by a FocusCycler.
|
|
34
|
+
*/
|
|
35
|
+
focus(): void;
|
|
36
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9261=['text','ck-editor__main','ck-editor__aria-label_','ck-reset','presentation','uiLanguageDirection','element','focus','createCollection','Comment\x20editor','_voiceLabelView','main','render','add','editable','extendTemplate','setTemplate','comment','cke-editor__aria-label_','uiLanguage','_createVoiceLabel'];(function(_0x2b126d,_0x9261b8){const _0x2b69be=function(_0x2ea335){while(--_0x2ea335){_0x2b126d['push'](_0x2b126d['shift']());}};_0x2b69be(++_0x9261b8);}(_0x9261,0x119));const _0x2b69=function(_0x2b126d,_0x9261b8){_0x2b126d=_0x2b126d-0x0;let _0x2b69be=_0x9261[_0x2b126d];return _0x2b69be;};import{InlineEditableUIView as _0x10edc4,EditorUIView as _0x25a1c0,LabelView as _0x635612}from'ckeditor5/src/ui';import{uid as _0x1141c7}from'ckeditor5/src/utils';import{getTranslation as _0x43ea79}from'../../../utils/common-translations';export default class Rt extends _0x25a1c0{constructor(_0x133ba0,_0x39f4fc){super(_0x133ba0);const _0x158e91=_0x1141c7();this[_0x2b69('0x3')]=this[_0x2b69('0x0')](),this[_0x2b69('0x6')]=new _0x10edc4(_0x133ba0,_0x39f4fc),this[_0x2b69('0x2')]=this[_0x2b69('0xc')](_0x158e91,_0x133ba0),this[_0x2b69('0x8')]({'tag':'div','attributes':{'class':[_0x2b69('0x10'),'ck-editor','ck-rounded-corners','ck-comment__input'],'role':_0x2b69('0x9'),'dir':_0x133ba0[_0x2b69('0x12')],'lang':_0x133ba0[_0x2b69('0xb')],'aria-labelledby':_0x2b69('0xa')+_0x158e91},'children':[this[_0x2b69('0x2')],{'tag':'div','attributes':{'class':_0x2b69('0xe'),'role':_0x2b69('0x11')},'children':this[_0x2b69('0x3')]}]});}[_0x2b69('0x4')](){super[_0x2b69('0x4')](),this[_0x2b69('0x3')][_0x2b69('0x5')](this[_0x2b69('0x6')]);}[_0x2b69('0x14')](){this[_0x2b69('0x6')][_0x2b69('0x13')][_0x2b69('0x14')]();}[_0x2b69('0xc')](_0x416e29,_0x531322){const _0xd389d7=new _0x635612();return _0xd389d7[_0x2b69('0xd')]=_0x43ea79(_0x531322,_0x2b69('0x1')),_0xd389d7[_0x2b69('0x7')]({'attributes':{'id':_0x2b69('0xf')+_0x416e29,'class':'ck-voice-label'}}),_0xd389d7;}}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
import type { CommentThread } from '../commentsrepository';
|
|
6
|
-
import type { default as BaseCommentThreadView } from './view/basecommentthreadview';
|
|
7
|
-
declare const CommentThreadController_base: {
|
|
8
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
9
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Controller for a comment thread.
|
|
13
|
-
*
|
|
14
|
-
* It takes a comment thread view, listens to events fired by that view and based on them performs actions on a comment thread model.
|
|
15
|
-
*/
|
|
16
|
-
export default class CommentThreadController extends CommentThreadController_base {
|
|
17
|
-
model: CommentThread;
|
|
18
|
-
view: BaseCommentThreadView;
|
|
19
|
-
/**
|
|
20
|
-
* @param model Comment thread model.
|
|
21
|
-
* @param view Comment thread view.
|
|
22
|
-
*/
|
|
23
|
-
constructor(model: CommentThread, view: BaseCommentThreadView);
|
|
24
|
-
/**
|
|
25
|
-
* Submits the comment thread.
|
|
26
|
-
*/
|
|
27
|
-
submit(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Removes the comment thread.
|
|
30
|
-
*/
|
|
31
|
-
remove(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Resolves the comment thread.
|
|
34
|
-
*/
|
|
35
|
-
resolve(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Reopens the comment thread.
|
|
38
|
-
*/
|
|
39
|
-
reopen(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Adds a comment to the comment thread.
|
|
42
|
-
*
|
|
43
|
-
* @param commentContent Comment content.
|
|
44
|
-
*/
|
|
45
|
-
addComment(commentContent: string): void;
|
|
46
|
-
/**
|
|
47
|
-
* Updates a comment that belongs to the comment thread.
|
|
48
|
-
*
|
|
49
|
-
* @param commentId Id of the comment to update.
|
|
50
|
-
* @param commentContent Updated comment content.
|
|
51
|
-
*/
|
|
52
|
-
updateComment(commentId: string, commentContent: string): void;
|
|
53
|
-
/**
|
|
54
|
-
* Removes a comment from the comment thread.
|
|
55
|
-
*
|
|
56
|
-
* @param commentId Id of the comment to remove.
|
|
57
|
-
*/
|
|
58
|
-
removeComment(commentId: string): void;
|
|
59
|
-
/**
|
|
60
|
-
* Destroys `CommentThreadController` instance.
|
|
61
|
-
*/
|
|
62
|
-
destroy(): void;
|
|
63
|
-
}
|
|
64
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import type { CommentThread } from '../commentsrepository';
|
|
6
|
+
import type { default as BaseCommentThreadView } from './view/basecommentthreadview';
|
|
7
|
+
declare const CommentThreadController_base: {
|
|
8
|
+
new (): import("ckeditor5/src/utils").Observable;
|
|
9
|
+
prototype: import("ckeditor5/src/utils").Observable;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Controller for a comment thread.
|
|
13
|
+
*
|
|
14
|
+
* It takes a comment thread view, listens to events fired by that view and based on them performs actions on a comment thread model.
|
|
15
|
+
*/
|
|
16
|
+
export default class CommentThreadController extends CommentThreadController_base {
|
|
17
|
+
model: CommentThread;
|
|
18
|
+
view: BaseCommentThreadView;
|
|
19
|
+
/**
|
|
20
|
+
* @param model Comment thread model.
|
|
21
|
+
* @param view Comment thread view.
|
|
22
|
+
*/
|
|
23
|
+
constructor(model: CommentThread, view: BaseCommentThreadView);
|
|
24
|
+
/**
|
|
25
|
+
* Submits the comment thread.
|
|
26
|
+
*/
|
|
27
|
+
submit(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Removes the comment thread.
|
|
30
|
+
*/
|
|
31
|
+
remove(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Resolves the comment thread.
|
|
34
|
+
*/
|
|
35
|
+
resolve(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Reopens the comment thread.
|
|
38
|
+
*/
|
|
39
|
+
reopen(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Adds a comment to the comment thread.
|
|
42
|
+
*
|
|
43
|
+
* @param commentContent Comment content.
|
|
44
|
+
*/
|
|
45
|
+
addComment(commentContent: string): void;
|
|
46
|
+
/**
|
|
47
|
+
* Updates a comment that belongs to the comment thread.
|
|
48
|
+
*
|
|
49
|
+
* @param commentId Id of the comment to update.
|
|
50
|
+
* @param commentContent Updated comment content.
|
|
51
|
+
*/
|
|
52
|
+
updateComment(commentId: string, commentContent: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* Removes a comment from the comment thread.
|
|
55
|
+
*
|
|
56
|
+
* @param commentId Id of the comment to remove.
|
|
57
|
+
*/
|
|
58
|
+
removeComment(commentId: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* Destroys `CommentThreadController` instance.
|
|
61
|
+
*/
|
|
62
|
+
destroy(): void;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13be=['reopen','removeCommentThread','listenTo','model','reopenCommentThread','addComment','remove','updateComment','getComment','_localUser','removeComment','submit','_isAttached','update','submitCommentThread','resolve','destroy','view','isResolved','stopListening'];(function(_0x2cfb18,_0x13bea3){var _0x5d30a6=function(_0x3976f8){while(--_0x3976f8){_0x2cfb18['push'](_0x2cfb18['shift']());}};_0x5d30a6(++_0x13bea3);}(_0x13be,0x121));var _0x5d30=function(_0x2cfb18,_0x13bea3){_0x2cfb18=_0x2cfb18-0x0;var _0x5d30a6=_0x13be[_0x2cfb18];return _0x5d30a6;};import{ObservableMixin as _0x130664}from'ckeditor5/src/utils';export default class ut extends _0x130664(){constructor(_0x4801ca,_0x130731){super(),this['model']=_0x4801ca,this[_0x5d30('0xe')][_0x5d30('0x3')]=!0x0,this[_0x5d30('0x8')]=_0x130731,this[_0x5d30('0xd')](_0x130731,_0x5d30('0x5'),()=>this[_0x5d30('0x2')]()),this[_0x5d30('0xd')](_0x130731,_0x5d30('0xc'),()=>this['remove']()),this[_0x5d30('0xd')](_0x130731,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x130731,_0x5d30('0xf'),()=>this[_0x5d30('0xb')]()),this['listenTo'](_0x130731,_0x5d30('0x10'),(_0x34dd71,_0x507817)=>this[_0x5d30('0x10')](_0x507817)),this[_0x5d30('0xd')](_0x130731,_0x5d30('0x12'),(_0x45dc33,_0x25d75b,_0x2c265c)=>this['updateComment'](_0x25d75b,_0x2c265c)),this[_0x5d30('0xd')](_0x130731,_0x5d30('0x1'),(_0x5ca739,_0x2ff5b3)=>this[_0x5d30('0x1')](_0x2ff5b3));}[_0x5d30('0x2')](){this[_0x5d30('0xe')]['submit']();}[_0x5d30('0x11')](){this[_0x5d30('0xe')][_0x5d30('0x11')]();}[_0x5d30('0x6')](){this[_0x5d30('0xe')][_0x5d30('0x9')]||this[_0x5d30('0xe')][_0x5d30('0x6')]();}[_0x5d30('0xb')](){this['model'][_0x5d30('0x9')]&&this['model'][_0x5d30('0xb')]();}['addComment'](_0x3d0ebe){this[_0x5d30('0xe')][_0x5d30('0x10')]({'content':_0x3d0ebe,'authorId':this[_0x5d30('0x8')][_0x5d30('0x0')]['id']});}['updateComment'](_0x2f28cb,_0x13d5bc){this['model']['getComment'](_0x2f28cb)[_0x5d30('0x4')]({'content':_0x13d5bc});}[_0x5d30('0x1')](_0x3205c9){this[_0x5d30('0xe')][_0x5d30('0x13')](_0x3205c9)[_0x5d30('0x11')]();}[_0x5d30('0x7')](){this[_0x5d30('0xa')](),this[_0x5d30('0xe')][_0x5d30('0x3')]=!0x1;}}
|