@ckeditor/ckeditor5-comments 40.0.0 → 40.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 +3 -3
- 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 +8 -0
- 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 +8 -0
- 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 +1129 -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 _0x1958=['model','hasCommentThread','view','find','requires','CommentsListView','hasMarkerForId','push','editor','innerView','focus','listenTo','map','getAllMarkersForId','icon','commands','addComment','_threadToController','plugins','addCommentThread','activeMarker','comment:','_createUIButton','bind','has','execute','focusTracker','addSourceCollector','isFocused','Comment','locale','componentFactory','editing','CommentThreadInputView','getRange','low','from','add','highest','length','get','stop','_viewToController'];(function(_0x290ccf,_0x1958a6){const _0x200ae5=function(_0x4689b6){while(--_0x4689b6){_0x290ccf['push'](_0x290ccf['shift']());}};_0x200ae5(++_0x1958a6);}(_0x1958,0x110));const _0x200a=function(_0x290ccf,_0x1958a6){_0x290ccf=_0x290ccf-0x0;let _0x200ae5=_0x1958[_0x290ccf];return _0x200ae5;};import{Plugin as _0x410035}from'ckeditor5/src/core';import _0x19e975 from'./commentsrepository';import _0x21b95c from'./commentsediting';import _0x34aafe from'../annotations/editorannotations';import{ButtonView as _0x5c19dd}from'ckeditor5/src/ui';import _0x3bd3b0 from'../../theme/icons/add-comment.svg';import _0x53f6a2 from'../annotations/annotations';import _0x17be22 from'./ui/view/commentslistview';import _0x1c61e3 from'./ui/view/commentthreadinputview';import{getTranslation as _0x533631}from'../utils/common-translations';export default class e extends _0x410035{static get['pluginName'](){return'CommentsUI';}static get[_0x200a('0x21')](){return[_0x19e975,_0x21b95c,_0x34aafe,_0x53f6a2];}get[_0x200a('0x22')](){return _0x17be22;}get[_0x200a('0x13')](){return _0x1c61e3;}['init'](){const _0x1c1021=this[_0x200a('0x25')],_0x47d3dd=_0x1c1021['plugins'][_0x200a('0x1a')](_0x19e975),_0x182b90=_0x1c1021[_0x200a('0x4')][_0x200a('0x1a')](_0x21b95c),_0x48d56e=_0x1c1021['plugins'][_0x200a('0x1a')](_0x53f6a2),_0x59ecf7=_0x1c1021[_0x200a('0x4')]['get'](_0x34aafe);_0x1c1021['ui'][_0x200a('0x11')][_0x200a('0x17')]('comment',()=>this['_createUIButton']()),_0x59ecf7[_0x200a('0xd')](()=>{const _0x58ffc6=[];for(const [_0x5e172c,_0x302587]of _0x47d3dd[_0x200a('0x3')]){const _0x122e31=_0x182b90[_0x200a('0x2a')](_0x5e172c['id']),_0x652921=_0x122e31[_0x200a('0x29')](_0x2bf302=>_0x2bf302[_0x200a('0x14')]());_0x122e31[_0x200a('0x19')]>0x0&&_0x58ffc6[_0x200a('0x24')]([_0x302587[_0x200a('0x1f')],_0x652921]);}return _0x58ffc6;}),this[_0x200a('0x28')](_0x48d56e,'change:activeAnnotations',(_0x37aba1,_0x37a43d,_0x115852)=>{const _0x2fe695=Array[_0x200a('0x16')](_0x115852)[_0x200a('0x29')](_0x4316c4=>_0x4316c4[_0x200a('0x26')])[_0x200a('0x20')](_0x2424b5=>_0x47d3dd[_0x200a('0x1c')][_0x200a('0xa')](_0x2424b5));if(!_0x2fe695)return void(_0x182b90[_0x200a('0x6')]=null);const _0x57076a=_0x47d3dd['_viewToController'][_0x200a('0x1a')](_0x2fe695)[_0x200a('0x1d')]['id'],_0x5d30c6=_0x200a('0x7')+_0x57076a;_0x57076a&&_0x182b90[_0x200a('0x23')](_0x57076a)?_0x182b90[_0x200a('0x6')]=_0x5d30c6:_0x182b90[_0x200a('0x6')]&&(_0x182b90[_0x200a('0x6')]=null);}),this[_0x200a('0x28')](_0x47d3dd,'removeCommentThread',(_0x2219e1,{threadId:_0x5656b6,isFromAdapter:_0x37dd8a})=>{!_0x37dd8a&&_0x1c1021['ui'][_0x200a('0xc')][_0x200a('0xe')]&&_0x182b90['hasMarkerForId'](_0x5656b6)&&_0x1c1021[_0x200a('0x12')][_0x200a('0x1f')]['focus']();},{'priority':_0x200a('0x18')}),this[_0x200a('0x28')](_0x47d3dd,_0x200a('0x2'),(_0x2ec25c,{threadId:_0x163f8d,isFromAdapter:_0x22d847})=>{if(_0x22d847||!_0x182b90[_0x200a('0x23')](_0x163f8d)||!_0x47d3dd[_0x200a('0x1e')](_0x163f8d))return;0x1===_0x47d3dd['getCommentThread'](_0x163f8d)[_0x200a('0x19')]&&(_0x1c1021[_0x200a('0x12')][_0x200a('0x1f')][_0x200a('0x27')](),_0x2ec25c[_0x200a('0x1b')]());},{'priority':_0x200a('0x15')});}[_0x200a('0x8')](){const _0x1a045f=this[_0x200a('0x25')],_0x14a41f=new _0x5c19dd(_0x1a045f[_0x200a('0x10')]),_0x5a73c8=_0x1a045f[_0x200a('0x1')][_0x200a('0x1a')](_0x200a('0x5'));return _0x14a41f['label']=_0x533631(_0x1a045f[_0x200a('0x10')],'Comment'),_0x14a41f['tooltip']=_0x533631(_0x1a045f[_0x200a('0x10')],_0x200a('0xf')),_0x14a41f[_0x200a('0x0')]=_0x3bd3b0,_0x14a41f[_0x200a('0x9')]('isEnabled')['to'](_0x5a73c8),this[_0x200a('0x28')](_0x14a41f,_0x200a('0xb'),()=>_0x5a73c8[_0x200a('0xb')]()),_0x14a41f;}}
|
|
@@ -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 _0xdbe3=['editor','afterInit','addCommentThread','plugins','has','get'];(function(_0x9ee861,_0xdbe378){const _0x436e1d=function(_0x5c64eb){while(--_0x5c64eb){_0x9ee861['push'](_0x9ee861['shift']());}};_0x436e1d(++_0xdbe378);}(_0xdbe3,0x8d));const _0x436e=function(_0x9ee861,_0xdbe378){_0x9ee861=_0x9ee861-0x0;let _0x436e1d=_0xdbe3[_0x9ee861];return _0x436e1d;};import{Plugin as _0x154b80}from'ckeditor5/src/core';export default class Y extends _0x154b80{[_0x436e('0x4')](){const _0x17e383=this[_0x436e('0x3')];if(!_0x17e383[_0x436e('0x0')][_0x436e('0x1')]('RestrictedEditingModeEditing'))return;_0x17e383[_0x436e('0x0')][_0x436e('0x2')]('RestrictedEditingModeEditing')['enableCommand'](_0x436e('0x5'));}}
|
|
@@ -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 _0x1975=['config','editor','map','get','_handleImportedData','high','importWord','plugins','addCommentThread','execute','importWord.formatting.comments','commands','collaboration_features','dataInsert','collaboration.channelId','listenTo','basic'];(function(_0x5b15da,_0x197525){const _0x221a04=function(_0x5ac613){while(--_0x5ac613){_0x5b15da['push'](_0x5b15da['shift']());}};_0x221a04(++_0x197525);}(_0x1975,0x1e2));const _0x221a=function(_0x5b15da,_0x197525){_0x5b15da=_0x5b15da-0x0;let _0x221a04=_0x1975[_0x5b15da];return _0x221a04;};import{Plugin as _0x2ac094}from'ckeditor5/src/core';import{priorities as _0x5ca1f2}from'ckeditor5/src/utils';import{Users as _0x5d1a79}from'ckeditor5-collaboration/src/collaboration-core';import _0x3bdd61 from'../commentsrepository';export default class Z extends _0x2ac094{constructor(_0x5951f7){super(_0x5951f7),this[_0x221a('0xc')][_0x221a('0xb')]['define'](_0x221a('0x4'),_0x221a('0xa'));}['afterInit'](){const _0x51891b=this['editor'],_0x38ac4c=_0x51891b[_0x221a('0x5')][_0x221a('0xe')](_0x221a('0x0')),_0x586d53=_0x51891b['plugins'][_0x221a('0xe')](_0x5d1a79);_0x38ac4c&&(_0x38ac4c['on'](_0x221a('0x3'),(_0x88601c,[,_0x492f8d])=>{_0x492f8d[_0x221a('0x6')]={'comments':!0x0,'user_id':_0x586d53['me']['id']};},{'priority':_0x5ca1f2[_0x221a('0x10')]+0xa}),this[_0x221a('0x9')](_0x38ac4c,_0x221a('0x7'),this[_0x221a('0xf')]));}[_0x221a('0xf')](_0x17c48e,_0x5c15fd){const {comment_threads:_0x39e458}=_0x5c15fd;_0x39e458&&_0x39e458['forEach'](({thread_id:_0x5282ee,comments:_0x3e9a70,is_resolved:_0x38c251})=>{const _0x486a32=new Date(),_0x32590b=_0x3e9a70[_0x221a('0xd')](({author:_0x1003fd,content:_0x5254ee,created_at:_0x1e3b30})=>({'content':_0x5254ee,'authorId':this['editor'][_0x221a('0x1')][_0x221a('0xe')](_0x5d1a79)['me']['id'],'createdAt':_0x486a32,'attributes':{'@external':{'authorName':_0x1003fd,'createdAt':_0x1e3b30?new Date(_0x1e3b30):new Date(),'source':'importWord'}}})),_0x5261e7=this[_0x221a('0xc')][_0x221a('0xb')]['get'](_0x221a('0x8'));this['editor'][_0x221a('0x1')]['get'](_0x3bdd61)[_0x221a('0x2')]({'channelId':_0x5261e7,'threadId':_0x5282ee,'comments':_0x32590b,'resolvedAt':_0x38c251?_0x486a32: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 _0x2988=['defaultPlugins','placeholderElement','getChild','initialData','assign','destroy','end','getRoot','set','fire','editing','then','childCount','createRoot','model','init','view','document','config','setSelection','placeholder','change:placeholder','data','low','name','_updatePlaceholder','focus','plugins','change'];(function(_0x41187b,_0x298867){const _0x3262c8=function(_0x3d2840){while(--_0x3d2840){_0x41187b['push'](_0x41187b['shift']());}};_0x3262c8(++_0x298867);}(_0x2988,0x175));const _0x3262=function(_0x41187b,_0x298867){_0x41187b=_0x41187b-0x0;let _0x3262c8=_0x2988[_0x41187b];return _0x3262c8;};import{Editor as _0x4a8be0,DataApiMixin as _0x5048f3}from'ckeditor5/src/core';import _0x389358 from'./commenteditorui';import{ObservableMixin as _0x2a6208}from'ckeditor5/src/utils';import{enablePlaceholder as _0x25d72a,disablePlaceholder as _0x10b38b}from'ckeditor5/src/engine';import{Clipboard as _0x1bb419}from'ckeditor5/src/clipboard';import{Enter as _0x1909d7,ShiftEnter as _0x5c010a}from'ckeditor5/src/enter';import{SelectAll as _0x2d0d39}from'ckeditor5/src/select-all';import{Typing as _0x3465cf}from'ckeditor5/src/typing';import{Undo as _0x224af4}from'ckeditor5/src/undo';import{Paragraph as _0x3d7583}from'ckeditor5/src/paragraph';const Mt=[_0x1bb419,_0x1909d7,_0x5c010a,_0x2d0d39,_0x3465cf,_0x224af4,_0x3d7583];export default class Nt extends _0x2a6208(_0x5048f3(_0x4a8be0)){constructor(_0x55fb55={}){(_0x55fb55=Object[_0x3262('0x8')]({},_0x55fb55))['plugins']||(_0x55fb55[_0x3262('0x2')]=Nt[_0x3262('0x4')]),super(_0x55fb55),this['ui']=new _0x389358(this),this[_0x3262('0xc')](_0x3262('0x18'),''),this[_0x3262('0x12')][_0x3262('0x15')]['on'](_0x3262('0x3'),()=>this[_0x3262('0x0')](),{'priority':_0x3262('0x1b')}),this['on'](_0x3262('0x19'),()=>this[_0x3262('0x0')]()),this[_0x3262('0x12')]['document'][_0x3262('0x11')]();}['create'](){const _0x50feae=this[_0x3262('0x16')]['get'](_0x3262('0x7'))||'';return this['initPlugins']()[_0x3262('0xf')](()=>this['ui'][_0x3262('0x13')]())[_0x3262('0xf')](()=>this[_0x3262('0x1a')][_0x3262('0x13')](_0x50feae))[_0x3262('0xf')](()=>this[_0x3262('0xd')]('ready'));}[_0x3262('0x9')](){return super[_0x3262('0x9')]()['then'](()=>this['ui'][_0x3262('0x9')]());}[_0x3262('0x1')](){this['model']['change'](_0x471d9f=>{const _0x1e4338=this[_0x3262('0x12')]['document'][_0x3262('0xb')](),_0x45f0fc=_0x1e4338&&_0x1e4338[_0x3262('0x6')](_0x1e4338['childCount']-0x1);_0x471d9f[_0x3262('0x17')](_0x45f0fc,_0x3262('0xa')),this['editing'][_0x3262('0x14')][_0x3262('0x1')]();});}[_0x3262('0x0')](){const _0x57620f=this[_0x3262('0xe')][_0x3262('0x14')],_0x2ca724=_0x57620f[_0x3262('0x15')][_0x3262('0xb')](),_0x5e961c=_0x2ca724[_0x3262('0x6')](0x0);_0x2ca724[_0x3262('0x10')]>0x1||!_0x5e961c||'p'!=_0x5e961c[_0x3262('0x1c')]?this[_0x3262('0x5')]&&this[_0x3262('0x5')][_0x3262('0x18')]&&(_0x10b38b(_0x57620f,this[_0x3262('0x5')]),this[_0x3262('0x5')]=void 0x0):(this[_0x3262('0x18')]&&(_0x5e961c[_0x3262('0x18')]=this[_0x3262('0x18')]),_0x25d72a({'view':_0x57620f,'element':_0x5e961c,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5e961c);}}Nt[_0x3262('0x4')]=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 _0xbe2b=['isFocused','locale','view','ready','editing','init','destroy','attachDomRoot','editable','name','focusTracker','getRoot','bind','element','setEditableElement'];(function(_0x2d214f,_0xbe2b81){const _0x511069=function(_0x165a28){while(--_0x165a28){_0x2d214f['push'](_0x2d214f['shift']());}};_0x511069(++_0xbe2b81);}(_0xbe2b,0x121));const _0x5110=function(_0x2d214f,_0xbe2b81){_0x2d214f=_0x2d214f-0x0;let _0x511069=_0xbe2b[_0x2d214f];return _0x511069;};import{EditorUI as _0x78e2fa}from'ckeditor5/src/ui';import _0x1ec093 from'./commenteditoruiview';export default class Ft extends _0x78e2fa{constructor(_0x4bf406){super(_0x4bf406),this[_0x5110('0xd')]=new _0x1ec093(_0x4bf406[_0x5110('0xc')],_0x4bf406[_0x5110('0x0')][_0x5110('0xd')]);}get['element'](){return this[_0x5110('0xd')]['element'];}[_0x5110('0x1')](){const _0x473dcf=this['editor'][_0x5110('0x0')][_0x5110('0xd')],_0x235be7=this['view'][_0x5110('0x4')],_0x227c92=_0x473dcf['document'][_0x5110('0x7')]();_0x235be7['name']=_0x227c92['rootName'],this[_0x5110('0xd')]['render']();const _0x52f009=_0x235be7[_0x5110('0x9')];this[_0x5110('0xa')](_0x235be7[_0x5110('0x5')],_0x52f009),this[_0x5110('0xd')][_0x5110('0x4')][_0x5110('0x8')](_0x5110('0xb'))['to'](this[_0x5110('0x6')]),_0x473dcf[_0x5110('0x3')](_0x52f009),this['fire'](_0x5110('0xe'));}[_0x5110('0x2')](){super[_0x5110('0x2')](),this['view'][_0x5110('0x2')]();}}
|
|
@@ -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 _0x3113=['comment','ck-voice-label','uiLanguageDirection','_createVoiceLabel','_voiceLabelView','presentation','ck-comment__input','text','div','Comment\x20editor','extendTemplate','main','ck-rounded-corners','ck-editor__main','editable','uiLanguage','render','element','createCollection','add','ck-reset','cke-editor__aria-label_','setTemplate'];(function(_0x226cf5,_0x3113c0){const _0x4c3059=function(_0x350565){while(--_0x350565){_0x226cf5['push'](_0x226cf5['shift']());}};_0x4c3059(++_0x3113c0);}(_0x3113,0xf4));const _0x4c30=function(_0x226cf5,_0x3113c0){_0x226cf5=_0x226cf5-0x0;let _0x4c3059=_0x3113[_0x226cf5];return _0x4c3059;};import{InlineEditableUIView as _0x41e79a,EditorUIView as _0x5e8fb5,LabelView as _0x44f30b}from'ckeditor5/src/ui';import{uid as _0x2aa947}from'ckeditor5/src/utils';import{getTranslation as _0x5c9154}from'../../../utils/common-translations';export default class Rt extends _0x5e8fb5{constructor(_0x43367d,_0x52cdda){super(_0x43367d);const _0x4c2057=_0x2aa947();this['main']=this[_0x4c30('0x4')](),this['editable']=new _0x41e79a(_0x43367d,_0x52cdda),this[_0x4c30('0xd')]=this[_0x4c30('0xc')](_0x4c2057,_0x43367d),this[_0x4c30('0x8')]({'tag':_0x4c30('0x11'),'attributes':{'class':[_0x4c30('0x6'),'ck-editor',_0x4c30('0x15'),_0x4c30('0xf')],'role':_0x4c30('0x9'),'dir':_0x43367d[_0x4c30('0xb')],'lang':_0x43367d[_0x4c30('0x1')],'aria-labelledby':_0x4c30('0x7')+_0x4c2057},'children':[this[_0x4c30('0xd')],{'tag':_0x4c30('0x11'),'attributes':{'class':_0x4c30('0x16'),'role':_0x4c30('0xe')},'children':this[_0x4c30('0x14')]}]});}['render'](){super[_0x4c30('0x2')](),this['main'][_0x4c30('0x5')](this['editable']);}['focus'](){this[_0x4c30('0x0')][_0x4c30('0x3')]['focus']();}[_0x4c30('0xc')](_0xd9ac6e,_0x1df17e){const _0x37516a=new _0x44f30b();return _0x37516a[_0x4c30('0x10')]=_0x5c9154(_0x1df17e,_0x4c30('0x12')),_0x37516a[_0x4c30('0x13')]({'attributes':{'id':'ck-editor__aria-label_'+_0xd9ac6e,'class':_0x4c30('0xa')}}),_0x37516a;}}
|
|
@@ -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 _0x3a78=['remove','submit','submitCommentThread','updateComment','listenTo','model','stopListening','removeComment','view','_isAttached','resolve','addComment','removeCommentThread','getComment','isResolved','update','reopen'];(function(_0x183683,_0x3a7814){var _0x48708f=function(_0x1b4de1){while(--_0x1b4de1){_0x183683['push'](_0x183683['shift']());}};_0x48708f(++_0x3a7814);}(_0x3a78,0x6a));var _0x4870=function(_0x183683,_0x3a7814){_0x183683=_0x183683-0x0;var _0x48708f=_0x3a78[_0x183683];return _0x48708f;};import{ObservableMixin as _0x45f445}from'ckeditor5/src/utils';export default class ut extends _0x45f445(){constructor(_0x48c6c5,_0x1158c3){super(),this['model']=_0x48c6c5,this['model'][_0x4870('0x5')]=!0x0,this[_0x4870('0x4')]=_0x1158c3,this[_0x4870('0x0')](_0x1158c3,_0x4870('0xf'),()=>this[_0x4870('0xe')]()),this['listenTo'](_0x1158c3,_0x4870('0x8'),()=>this[_0x4870('0xd')]()),this[_0x4870('0x0')](_0x1158c3,'resolveCommentThread',()=>this[_0x4870('0x6')]()),this[_0x4870('0x0')](_0x1158c3,'reopenCommentThread',()=>this[_0x4870('0xc')]()),this[_0x4870('0x0')](_0x1158c3,_0x4870('0x7'),(_0x343c13,_0x18614e)=>this['addComment'](_0x18614e)),this[_0x4870('0x0')](_0x1158c3,'updateComment',(_0x881c1f,_0x4f8430,_0x53d054)=>this['updateComment'](_0x4f8430,_0x53d054)),this[_0x4870('0x0')](_0x1158c3,_0x4870('0x3'),(_0x56b6a3,_0x20c5d5)=>this[_0x4870('0x3')](_0x20c5d5));}[_0x4870('0xe')](){this['model']['submit']();}[_0x4870('0xd')](){this['model']['remove']();}[_0x4870('0x6')](){this['model'][_0x4870('0xa')]||this['model'][_0x4870('0x6')]();}[_0x4870('0xc')](){this['model'][_0x4870('0xa')]&&this['model'][_0x4870('0xc')]();}[_0x4870('0x7')](_0x16dc5e){this[_0x4870('0x1')]['addComment']({'content':_0x16dc5e,'authorId':this[_0x4870('0x4')]['_localUser']['id']});}[_0x4870('0x10')](_0x1a2b73,_0x1652dc){this[_0x4870('0x1')]['getComment'](_0x1a2b73)[_0x4870('0xb')]({'content':_0x1652dc});}[_0x4870('0x3')](_0x286950){this['model'][_0x4870('0x9')](_0x286950)[_0x4870('0xd')]();}['destroy'](){this[_0x4870('0x2')](),this['model'][_0x4870('0x5')]=!0x1;}}
|