@ckeditor/ckeditor5-comments 38.2.0-alpha.0 → 38.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.d.ts +6 -6
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +3 -3
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +6 -6
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +5 -5
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +4 -4
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +6 -6
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +6 -6
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +5 -5
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +2 -2
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +2 -2
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +2 -2
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +2 -2
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +5 -5
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +4 -4
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +5 -5
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +6 -6
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +11 -11
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +5 -5
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +3 -3
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +3 -3
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +4 -4
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +8 -8
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +4 -4
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +2 -2
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +2 -2
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +4 -4
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +3 -3
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +5 -5
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +3 -3
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +5 -5
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +7 -7
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +8 -8
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +10 -10
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +2 -2
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +7 -7
- package/src/index.d.ts +21 -21
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1050=['from','weight','locale','expand','resolveCommentThread','set','delete','isEditMode','commentUpdated','isActive','commentViews','element','resolvedAt','maxThreadTotalWeight','editorConfig','insert','add','updateComment','render','_collapsedCommentsView','setTemplate','CommentView','remove','comments','_model','formatDateTime','_findOptimalIndex','_calculatePosition','maxCommentCharsWhenCollapsed','change:isEditMode','refreshVisibleViews','listenTo','_updateHasDirtyComment','bind','ck-thread__comments','resolvedCommentView','editorDestroyed','resolvedBy','visibleViews','length','_handleRemoveCommentModel','_handleNewCommentModel','destroy','_rearrangeCollapse','change:isResolved','delegate','hasDirtyComment','authoredAt','count','_config','resolved','createCollection','_handleInfoComment','focus','removeComment','maxCommentsWhenCollapsed','_rearrangeExpand','collapse'];(function(_0x537031,_0x105044){const _0x1f54ab=function(_0xbed12a){while(--_0xbed12a){_0x537031['push'](_0x537031['shift']());}};_0x1f54ab(++_0x105044);}(_0x1050,0x1c2));const _0x1f54=function(_0x537031,_0x105044){_0x537031=_0x537031-0x0;let _0x1f54ab=_0x1050[_0x537031];return _0x1f54ab;};import{View as _0x44b6bc}from'ckeditor5/src/ui.js';import{diff as _0xd6848a,Collection as _0x14eb67}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b16e7}from'../../../utils/common-translations.js';import _0x2a3d54 from'./collapsedcommentsview.js';export default class vt extends _0x44b6bc{constructor(_0x11de42,_0x5765c4,_0x1a8e8e){super(_0x11de42),this['set'](_0x1f54('0x2'),!0x1),this[_0x1f54('0x13')](_0x1f54('0x35'),_0x5765c4[_0x1f54('0x25')][_0x1f54('0x35')]),this[_0x1f54('0x13')]('isActive',!0x1),this['_model']=_0x5765c4,this[_0x1f54('0x5')]=_0x1a8e8e,this[_0x1f54('0x18')]=this['createCollection'](),this[_0x1f54('0x34')]=this[_0x1f54('0x7')](),this[_0x1f54('0x31')]=null,this[_0x1f54('0x21')]=new _0x2a3d54(_0x11de42),this[_0x1f54('0x21')][_0x1f54('0x2f')](_0x1f54('0x4'))['to'](this,_0x1f54('0x35'),_0x283f0c=>_0x283f0c-this[_0x1f54('0x5')][_0x1f54('0xb')]);for(const _0x2eaac2 of _0x5765c4[_0x1f54('0x25')])this[_0x1f54('0x37')](_0x2eaac2);this[_0x1f54('0x8')](),this[_0x1f54('0x2d')](_0x5765c4[_0x1f54('0x25')],_0x1f54('0x1e'),(_0xc442cd,_0x5d076a)=>{const _0x235f39=this[_0x1f54('0x29')](_0x5d076a);this['length']++,this['_handleNewCommentModel'](_0x5d076a,_0x235f39),this[_0x1f54('0x2c')]();}),this[_0x1f54('0x2d')](_0x5765c4[_0x1f54('0x25')],_0x1f54('0x24'),(_0x4949ad,_0x1357b3)=>{this[_0x1f54('0x35')]--,this[_0x1f54('0x36')](_0x1357b3),this[_0x1f54('0x2c')]();}),this['listenTo'](_0x5765c4,_0x1f54('0x16'),()=>this['refreshVisibleViews']()),this['listenTo'](_0x5765c4,_0x1f54('0x0'),()=>this[_0x1f54('0x8')]()),this['on']('change:isActive',()=>this[_0x1f54('0x2c')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x1f54('0x22')]({'tag':'ul','attributes':{'class':[_0x1f54('0x30')]},'children':this[_0x1f54('0x34')]});}get['_shouldCollapse'](){return this[_0x1f54('0x26')][_0x1f54('0xf')]>this[_0x1f54('0x5')][_0x1f54('0x1b')]&&!this[_0x1f54('0x17')]&&!this[_0x1f54('0x2')];}[_0x1f54('0x20')](){super[_0x1f54('0x20')](),this[_0x1f54('0x2c')]();}['focus'](){this[_0x1f54('0x19')][_0x1f54('0x9')]();}[_0x1f54('0x38')](){this[_0x1f54('0x21')][_0x1f54('0x38')]();for(const _0x2e7f72 of this[_0x1f54('0x18')])_0x2e7f72[_0x1f54('0x38')]();super[_0x1f54('0x38')]();}[_0x1f54('0x2c')](){this['_shouldCollapse']?this[_0x1f54('0x39')]():this[_0x1f54('0xc')]();}['_handleNewCommentModel'](_0x4139fb,_0x3f3e14){const _0x442dea=new this['_config'][(_0x1f54('0x23'))](this['locale'],_0x4139fb,{'maxCommentCharsWhenCollapsed':this[_0x1f54('0x5')][_0x1f54('0x2a')],'formatDateTime':this[_0x1f54('0x5')][_0x1f54('0x27')],'editorConfig':this[_0x1f54('0x5')][_0x1f54('0x1c')]});_0x442dea['viewUid']=_0x4139fb['id'],_0x442dea[_0x1f54('0x1')](_0x1f54('0xa'))['to'](this),_0x442dea['delegate'](_0x1f54('0x1f'))['to'](this),_0x442dea[_0x1f54('0x1')](_0x1f54('0x12'))['to'](this),_0x442dea[_0x1f54('0x1')]('editorReady')['to'](this),_0x442dea[_0x1f54('0x1')](_0x1f54('0x32'))['to'](this),this[_0x1f54('0x2d')](_0x442dea,_0x1f54('0x2b'),()=>this[_0x1f54('0x2e')]()),this[_0x1f54('0x18')][_0x1f54('0x1e')](_0x442dea,_0x3f3e14);}[_0x1f54('0x29')](_0x5dbd37){const _0x5e30da=this[_0x1f54('0x26')][_0x1f54('0x28')](_0x5dbd37);return this[_0x1f54('0x31')]?this[_0x1f54('0x31')]['authoredAt']>_0x5dbd37[_0x1f54('0x3')]?_0x5e30da-0x1:_0x5e30da:_0x5e30da-0x1;}[_0x1f54('0x8')](){if(this[_0x1f54('0x26')][_0x1f54('0x33')]&&this[_0x1f54('0x26')][_0x1f54('0x1a')]){const _0x31de3e={'id':_0x1f54('0x6'),'author':this[_0x1f54('0x26')][_0x1f54('0x33')],'authoredAt':this[_0x1f54('0x26')][_0x1f54('0x1a')],'content':_0x3b16e7(this[_0x1f54('0x10')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x1f54('0x31')]=new this['_config'][(_0x1f54('0x23'))](this[_0x1f54('0x10')],_0x31de3e,{'maxCommentCharsWhenCollapsed':this[_0x1f54('0x5')][_0x1f54('0x2a')],'formatDateTime':this[_0x1f54('0x5')]['formatDateTime'],'editorConfig':this['_config'][_0x1f54('0x1c')],'isSystemComment':!0x0}),this[_0x1f54('0x18')][_0x1f54('0x1e')](this[_0x1f54('0x31')],this[_0x1f54('0x26')]['_findOptimalIndex'](_0x31de3e));}else this[_0x1f54('0x31')]&&(this[_0x1f54('0x18')][_0x1f54('0x24')](this[_0x1f54('0x31')]),this[_0x1f54('0x31')]['destroy'](),this[_0x1f54('0x31')]=null);this[_0x1f54('0x2c')]();}[_0x1f54('0x36')](_0x4e625a){const _0xa6b6b0=this[_0x1f54('0x18')][_0x1f54('0x24')](_0x4e625a['id']);this['stopListening'](_0xa6b6b0),_0xa6b6b0[_0x1f54('0x15')]&&this[_0x1f54('0x2e')](),_0xa6b6b0[_0x1f54('0x38')]();}[_0x1f54('0x2e')](){this['hasDirtyComment']=Array[_0x1f54('0xe')](this[_0x1f54('0x18')])['some'](_0x567966=>_0x567966[_0x1f54('0x15')]);}[_0x1f54('0x39')](){const _0x4462a9=function(_0x1a9010){const _0x19b24d=new _0x14eb67();for(const _0x4d89bc of _0x1a9010)_0x19b24d[_0x1f54('0x1e')](_0x4d89bc);return _0x19b24d;}(this[_0x1f54('0x18')]),_0x47691f=this['_collapsedCommentsView'][_0x1f54('0x4')];for(let _0x3b4511=0x1;_0x3b4511<=_0x47691f;_0x3b4511++)_0x4462a9[_0x1f54('0x24')](0x1);for(const _0x560ee2 of _0x4462a9)_0x560ee2[_0x1f54('0xd')]();_0x47691f>0x0&&_0x4462a9[_0x1f54('0x1e')](this[_0x1f54('0x21')],0x1),ss(_0xd6848a(Array[_0x1f54('0xe')](this[_0x1f54('0x34')]),Array[_0x1f54('0xe')](_0x4462a9)),this['visibleViews'],_0x4462a9);}[_0x1f54('0xc')](){ss(_0xd6848a(Array[_0x1f54('0xe')](this[_0x1f54('0x34')]),Array['from'](this[_0x1f54('0x18')])),this[_0x1f54('0x34')],this[_0x1f54('0x18')]);for(const _0x46d44a of this[_0x1f54('0x34')])_0x46d44a[_0x1f54('0x11')]();}}function ss(_0x1ca2a9,_0x3d42c1,_0x599b90){let _0x56eaa8=0x0;for(const _0x4885cc of _0x1ca2a9)switch(_0x4885cc){case _0x1f54('0x1d'):_0x3d42c1[_0x1f54('0x1e')](_0x599b90['get'](_0x56eaa8),_0x56eaa8),_0x56eaa8++;break;case _0x1f54('0x14'):_0x3d42c1[_0x1f54('0x24')](_0x56eaa8);break;case'equal':_0x56eaa8++;}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module comments/comments/ui/view/commentthreadheaderview
|
|
3
3
|
*/
|
|
4
|
-
import { View, ButtonView } from 'ckeditor5/src/ui';
|
|
5
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
-
import type { CommentThread } from '../../commentsrepository';
|
|
4
|
+
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
5
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import type { CommentThread } from '../../commentsrepository.js';
|
|
7
7
|
export declare const MAX_CONTENT_LENGTH = 150;
|
|
8
8
|
/**
|
|
9
9
|
* A view for the comment thread header.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5082=['classList','icon','ck-annotation__actions','reopenCommentThread','listenTo','bind','lastIndexOf','querySelector','render','tooltip','mouseleave','substring','div','length','_trimContextValue','ck-context','reopenButtonView','ck-context-wrapper','overlay','fire','remove','context','span','locale','_createReopenButton','isReadOnly','ck-context--quotes','bindTemplate','value','.ck-context__value','...','hasContext','contextValue','_attachContextActions','.ck-context','label','_model','ck-context__value','Reopen'];(function(_0x20d351,_0x508277){const _0x16be7d=function(_0x41fbe0){while(--_0x41fbe0){_0x20d351['push'](_0x20d351['shift']());}};_0x16be7d(++_0x508277);}(_0x5082,0xed));const _0x16be=function(_0x20d351,_0x508277){_0x20d351=_0x20d351-0x0;let _0x16be7d=_0x5082[_0x20d351];return _0x16be7d;};import{View as _0x2364ef,ButtonView as _0x59fa77}from'ckeditor5/src/ui.js';import{getTranslation as _0x36b754}from'../../../utils/common-translations.js';import _0x4b2b34 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x2364ef{constructor(_0x314303,_0xd3df4d){super(_0x314303);const _0x35bdb8=this[_0x16be('0x18')];this[_0x16be('0x21')]=_0xd3df4d,this[_0x16be('0xd')]=this[_0x16be('0x15')](),this[_0x16be('0x2')](_0x16be('0x1c'))['to'](this['_model'],_0x16be('0x12'),_0x2f9b44=>!!_0x2f9b44),this[_0x16be('0x2')](_0x16be('0x1d'))['to'](this[_0x16be('0x21')],_0x16be('0x12'),_0x139c59=>_0x139c59&&_0x139c59[_0x16be('0x19')]?this[_0x16be('0xb')](_0x139c59[_0x16be('0x19')]):_0x36b754(this[_0x16be('0x14')],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':_0x16be('0x9'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0x16be('0x9'),'attributes':{'class':[_0x16be('0xe')]},'children':[{'tag':_0x16be('0x9'),'attributes':{'class':[_0x16be('0xc'),_0x35bdb8['if'](_0x16be('0x1c'),_0x16be('0x17'))]},'children':[{'tag':_0x16be('0x13'),'attributes':{'class':[_0x16be('0x22')]},'children':[{'text':_0x35bdb8['to']('contextValue')}]}]}]},{'tag':_0x16be('0x9'),'attributes':{'class':[_0x16be('0x26')]},'children':[this[_0x16be('0xd')]]}]});}[_0x16be('0x5')](){super[_0x16be('0x5')](),this[_0x16be('0x1e')]();}[_0x16be('0x15')](){const _0x30af88=new _0x59fa77(this[_0x16be('0x14')]);return _0x30af88[_0x16be('0x20')]=_0x36b754(this[_0x16be('0x14')],_0x16be('0x23')),_0x30af88[_0x16be('0x6')]=_0x36b754(this[_0x16be('0x14')],_0x16be('0x23')),_0x30af88[_0x16be('0x25')]=_0x4b2b34,_0x30af88['bind']('isEnabled')['to'](this[_0x16be('0x21')],_0x16be('0x16'),_0x56a1a9=>!_0x56a1a9),_0x30af88[_0x16be('0x2')]('isVisible')['to'](this[_0x16be('0x21')],'isResolvable'),_0x30af88['on']('execute',()=>{this[_0x16be('0x10')](_0x16be('0x0'),this[_0x16be('0x21')]['id']);}),_0x30af88;}['_trimContextValue'](_0x105748){if(_0x105748[_0x16be('0xa')]<0x96)return _0x105748;const _0x11a864=_0x105748[_0x16be('0x3')]('\x20',0x93);return _0x105748[_0x16be('0x8')](0x0,_0x11a864>-0x1?_0x11a864:0x93)+_0x16be('0x1b');}[_0x16be('0x1e')](){const _0x3b7d99=this['element'][_0x16be('0x4')](_0x16be('0x1f')),_0x47b09d=_0x3b7d99[_0x16be('0x4')](_0x16be('0x1a'));this['listenTo'](_0x3b7d99,'mouseenter',()=>{_0x47b09d['offsetWidth']<_0x47b09d['scrollWidth']&&_0x3b7d99[_0x16be('0x24')]['add'](_0x16be('0xf'));}),this[_0x16be('0x1')](_0x3b7d99,_0x16be('0x7'),()=>{_0x3b7d99[_0x16be('0x24')][_0x16be('0x11')](_0x16be('0xf'));});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module comments/comments/ui/view/commentthreadinputview
|
|
3
3
|
*/
|
|
4
|
-
import { View } from 'ckeditor5/src/ui';
|
|
5
|
-
import CommentInputView from './commentinputview';
|
|
6
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
7
|
-
import type { EditorConfig } from 'ckeditor5/src/core';
|
|
8
|
-
import { UserView, type User } from 'ckeditor5-collaboration
|
|
4
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
5
|
+
import CommentInputView from './commentinputview.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
|
+
import type { EditorConfig } from 'ckeditor5/src/core.js';
|
|
8
|
+
import { UserView, type User } from 'ckeditor5-collaboration';
|
|
9
9
|
/**
|
|
10
10
|
* View that represents comment input area for a comment thread. Includes editor, user view and buttons.
|
|
11
11
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x214b=['ck-comment__input-container','destroy','commentInputView','delegate','isFocused','editorReady','set','showInput','userView','ck-thread__input','then','setTemplate','bindTemplate','value','ck-thread__user','ck-comment__input-container--active','showButtons','extendTemplate','createEditor','focusTracker','bind'];(function(_0x54bd99,_0x214b9c){var _0x3d9d63=function(_0x530353){while(--_0x530353){_0x54bd99['push'](_0x54bd99['shift']());}};_0x3d9d63(++_0x214b9c);}(_0x214b,0x1c8));var _0x3d9d=function(_0x54bd99,_0x214b9c){_0x54bd99=_0x54bd99-0x0;var _0x3d9d63=_0x214b[_0x54bd99];return _0x3d9d63;};import{View as _0x324c2c}from'ckeditor5/src/ui.js';import _0x237cf5 from'./commentinputview.js';import{UserView as _0x552bf1}from'ckeditor5-collaboration';export default class wt extends _0x324c2c{constructor(_0x7f9254,_0x54457b,_0xa77a9f){super(_0x7f9254),this[_0x3d9d('0x8')]=new _0x237cf5(_0x7f9254,_0xa77a9f),this[_0x3d9d('0x8')][_0x3d9d('0x5')](_0x3d9d('0x1'))['to'](this[_0x3d9d('0x8')][_0x3d9d('0x4')],_0x3d9d('0xa'),this['commentInputView'],_0x3d9d('0x13'),(_0x5e6250,_0x11f928)=>_0x5e6250||!!_0x11f928),this[_0x3d9d('0xc')](_0x3d9d('0xd'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0x3d9d('0x8')]['editor']&&this[_0x3d9d('0x8')][_0x3d9d('0x3')]();}),this[_0x3d9d('0x8')][_0x3d9d('0x9')](_0x3d9d('0xb'))['to'](this),this[_0x3d9d('0x8')][_0x3d9d('0x9')]('editorDestroyed')['to'](this),this[_0x3d9d('0xe')]=new _0x552bf1(_0x7f9254,_0x54457b),this[_0x3d9d('0xe')][_0x3d9d('0x2')]({'attributes':{'class':_0x3d9d('0x14')}}),this[_0x3d9d('0x8')][_0x3d9d('0x2')]({'attributes':{'class':_0x3d9d('0xf')}}),this[_0x3d9d('0x11')]({'tag':'div','attributes':{'class':[_0x3d9d('0x6'),this[_0x3d9d('0x12')]['if'](_0x3d9d('0xd'),_0x3d9d('0x0'))]},'children':[this[_0x3d9d('0xe')],this[_0x3d9d('0x8')]]});}[_0x3d9d('0x7')](){return this[_0x3d9d('0x8')][_0x3d9d('0x7')]()[_0x3d9d('0x10')](()=>super['destroy']());}}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @module comments/comments/ui/view/commentthreadview
|
|
3
3
|
* @publicApi
|
|
4
4
|
*/
|
|
5
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
6
|
-
import { type User } from 'ckeditor5-collaboration
|
|
7
|
-
import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui';
|
|
8
|
-
import BaseCommentThreadView from './basecommentthreadview';
|
|
9
|
-
import type { CommentThread } from '../../commentsrepository';
|
|
10
|
-
import type { CommentThreadConfig } from '../../../config';
|
|
11
|
-
declare const CommentThreadView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
|
|
5
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import { type User } from 'ckeditor5-collaboration';
|
|
7
|
+
import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
8
|
+
import BaseCommentThreadView from './basecommentthreadview.js';
|
|
9
|
+
import type { CommentThread } from '../../commentsrepository.js';
|
|
10
|
+
import type { CommentThreadConfig } from '../../../config.js';
|
|
11
|
+
declare const CommentThreadView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
|
|
12
12
|
/**
|
|
13
13
|
* The default view for comment thread.
|
|
14
14
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1001=['isEnabled','showConfirm','getTemplate','setTemplate','commentViews','containerElement','commentsListView','bind','createCollection','remove','isActive','icon','ck-thread--remove-confirmation','ck-thread--','change:isReadOnly','isReadOnly','actionIndicator','_boundFirstCommentView','resolveButton','isResolvable','set','tooltip','commentThreadChildren','check','change:isResolved','listenTo','_createResolveButton','querySelector','add','commentThreadInputView','ck-comment--resolve','render','isSystemComment','Delete\x20comment\x20thread?','locale','execute','_bindFirstCommentView','get','bindTemplate','div','ck-reset_all-excluded','Resolve','_model','actionBar','ck-thread--active','addMany','cancelConfirm','commentThreadHeaderView','length','stop','_cancelAllConfirms','isResolved','removeButton','change:isActive','extendTemplate'];(function(_0x196cd3,_0x1001a9){const _0x1ceeba=function(_0x52a0f2){while(--_0x52a0f2){_0x196cd3['push'](_0x196cd3['shift']());}};_0x1ceeba(++_0x1001a9);}(_0x1001,0xce));const _0x1cee=function(_0x196cd3,_0x1001a9){_0x196cd3=_0x196cd3-0x0;let _0x1ceeba=_0x1001[_0x196cd3];return _0x1ceeba;};import{ConfirmMixin as _0x300966}from'ckeditor5-collaboration';import{ButtonView as _0x318935}from'ckeditor5/src/ui.js';import{icons as _0x3f9481}from'ckeditor5/src/core.js';import _0x5bd235 from'./basecommentthreadview.js';import{getTranslation as _0x3aaf3b}from'../../../utils/common-translations.js';export default class lt extends _0x300966(_0x5bd235){constructor(_0x22bf68,_0x9e1b52,_0xaa2923,_0x2a3eb1){super(_0x22bf68,_0x9e1b52,_0xaa2923,_0x2a3eb1),this['commentThreadChildren']=this[_0x1cee('0x16')](),this[_0x1cee('0x24')][_0x1cee('0x4')]([this[_0x1cee('0x14')],this[_0x1cee('0x2b')]]),this['_model'][_0x1cee('0xa')]&&this['commentThreadChildren'][_0x1cee('0x2a')](this['commentThreadHeaderView'],0x0),this[_0x1cee('0x1')]['on'](_0x1cee('0x26'),(_0x437204,_0x2ea199,_0x4a746c)=>{_0x4a746c?this[_0x1cee('0x24')]['add'](this[_0x1cee('0x6')],0x0):this[_0x1cee('0x24')]['remove'](this[_0x1cee('0x6')]);}),this[_0x1cee('0x22')]('actionIndicator',null),this['containerElement']=null,this[_0x1cee('0x1f')]=null,this[_0x1cee('0x30')]=_0x22bf68,this['resolveButton']=this[_0x1cee('0x28')](),this[_0x1cee('0x11')](this['getTemplate']()),this['on'](_0x1cee('0xc'),(_0x4208c4,_0x1ee72a,_0x31a214)=>{_0x31a214||this[_0x1cee('0x9')]();}),this[_0x1cee('0x27')](this['_model'],_0x1cee('0x1c'),(_0x31aca5,_0x2a312f,_0x5bd1e6)=>{_0x5bd1e6&&this['_cancelAllConfirms']();}),this[_0x1cee('0x7')]>0x0&&this['_bindFirstCommentView'](),this[_0x1cee('0x27')](this[_0x1cee('0x14')][_0x1cee('0x12')],_0x1cee('0x2a'),()=>{this['_bindFirstCommentView']();});}[_0x1cee('0x10')](){const _0x4e66f9=this[_0x1cee('0x34')];return{'tag':_0x1cee('0x35'),'attributes':{'class':['ck-thread',_0x1cee('0x36'),_0x4e66f9['if'](_0x1cee('0x18'),_0x1cee('0x3')),_0x4e66f9['if']('isConfirm',_0x1cee('0x1a')),_0x4e66f9['to']('actionIndicator',_0x59fe82=>_0x59fe82?_0x1cee('0x1b')+_0x59fe82:'')],'data-thread-id':this[_0x1cee('0x1')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1cee('0x35'),'attributes':{'class':'ck-thread__container'},'children':this[_0x1cee('0x24')]}]};}[_0x1cee('0x2d')](){super[_0x1cee('0x2d')](),this['containerElement']=this['element'][_0x1cee('0x29')]('.ck-thread__container');}[_0x1cee('0x9')](){this[_0x1cee('0x5')]();for(const _0x49fd89 of this[_0x1cee('0x14')][_0x1cee('0x12')])_0x49fd89['cancelConfirm']();}[_0x1cee('0x32')](){const {locale:_0x4ef5af}=this,_0x579fff=this['commentsListView']['commentViews'][_0x1cee('0x33')](0x0);_0x579fff===this[_0x1cee('0x1f')]||_0x579fff[_0x1cee('0x2e')]||(this[_0x1cee('0x1f')]=_0x579fff,this['unbind'](_0x1cee('0x1e')),this[_0x1cee('0x15')](_0x1cee('0x1e'))['to'](_0x579fff,_0x1cee('0x1e'),_0x1f9842=>_0x1cee('0x17')===_0x1f9842?'remove':null),_0x579fff['placeholder']=_0x3aaf3b(_0x4ef5af,'Write\x20a\x20comment...'),_0x579fff[_0x1cee('0xb')]['on'](_0x1cee('0x31'),_0xfc897f=>{_0xfc897f[_0x1cee('0x8')](),this[_0x1cee('0xf')](_0x3aaf3b(_0x4ef5af,_0x1cee('0x2f')),this[_0x1cee('0x13')])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),_0x579fff[_0x1cee('0x2')]['add'](this[_0x1cee('0x20')],0x0));}[_0x1cee('0x28')](){const _0x508793=new _0x318935(this[_0x1cee('0x30')]);return _0x508793['label']=_0x3aaf3b(this[_0x1cee('0x30')],_0x1cee('0x0')),_0x508793[_0x1cee('0x23')]=_0x3aaf3b(this['locale'],'Resolve'),_0x508793[_0x1cee('0x19')]=_0x3f9481[_0x1cee('0x25')],_0x508793[_0x1cee('0xd')]({'attributes':{'class':_0x1cee('0x2c')}}),_0x508793[_0x1cee('0x15')](_0x1cee('0xe'))['to'](this[_0x1cee('0x1')],_0x1cee('0x1d'),_0x386624=>!_0x386624),_0x508793[_0x1cee('0x15')]('isVisible')['to'](this['_model'],_0x1cee('0x21'),this[_0x1cee('0x1')],_0x1cee('0xa'),(_0x120f0d,_0x463368)=>_0x120f0d&&!_0x463368),_0x508793['on'](_0x1cee('0x31'),()=>{this['fire']('resolveCommentThread',this[_0x1cee('0x1')]['id']);}),_0x508793;}}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* @module comments/comments/ui/view/commentview
|
|
3
3
|
* @publicApi
|
|
4
4
|
*/
|
|
5
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
6
|
-
import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui';
|
|
7
|
-
import { UserView } from 'ckeditor5-collaboration
|
|
8
|
-
import BaseCommentView from './basecommentview';
|
|
9
|
-
import type { Comment } from '../../commentsrepository';
|
|
10
|
-
import type CommentInputView from './commentinputview';
|
|
11
|
-
import type { CommentViewConfig } from '../../../config';
|
|
12
|
-
declare const CommentView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
|
|
5
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui.js';
|
|
7
|
+
import { UserView } from 'ckeditor5-collaboration';
|
|
8
|
+
import BaseCommentView from './basecommentview.js';
|
|
9
|
+
import type { Comment } from '../../commentsrepository.js';
|
|
10
|
+
import type CommentInputView from './commentinputview.js';
|
|
11
|
+
import type { CommentViewConfig } from '../../../config.js';
|
|
12
|
+
declare const CommentView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
|
|
13
13
|
/**
|
|
14
14
|
* The default view for comment.
|
|
15
15
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a88=['bind','EXTERNAL_COMMENT','isRemovable','pencil','ck-comment--edit','Delete\x20comment?','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__user','isSystemComment','author','mouseleave','isExternal','isEditable','ck-comment__info','panelPosition','_createDropdown','Reply...','ck-comment--remove-confirmation','removeButton','ck-comment__main','getUserViewNotificationText','_attachActions','ck-comment__info-name','listenTo','fire','ck-comment__external','label','attributes','ck-annotation__info','ck-annotation__info-time','authoredAt','div','focus','addMany','resolvedAt','name','children','ck-comment--','@external','locale','importWord','removeComment','_model','createCollection','span','edit','isEnabled','add','buttonView','isVisible','creator','extendTemplate','_config','ck-annotation__main','Show\x20more\x20items','placeholder','icon','remove','change:isRemovable','ck-comment__actions','withText','change:isEnabled','panelView','EXTERNAL_IMPORT_WORD_COMMENT','set','cancelConfirm','actionBar','setTemplate','element','ck-comment__user','EXTERNAL_AVATAR','actionIndicator','dropdown','ck-annotation__actions--hidden','change:isVisible','_createRemoveButton','render','visibleView','isReadOnly','items','blur','userView','Edit','_createCommentInputView','isConfirm','Remove','some','push','mouseenter','editButton','getExternalCommentNote','getTemplate','time','switchToEditMode','isEditMode','execute','_createEditButton'];(function(_0x267ab3,_0x1a880f){const _0x5eea3d=function(_0x2374a0){while(--_0x2374a0){_0x267ab3['push'](_0x267ab3['shift']());}};_0x5eea3d(++_0x1a880f);}(_0x1a88,0x105));const _0x5eea=function(_0x267ab3,_0x1a880f){_0x267ab3=_0x267ab3-0x0;let _0x5eea3d=_0x1a88[_0x267ab3];return _0x5eea3d;};import{ButtonView as _0x1bdbc3,createDropdown as _0x402a1d,ListView as _0x5e0c85,ListItemView as _0x40c5bf}from'ckeditor5/src/ui.js';import{icons as _0x37d64b}from'ckeditor5/src/core.js';import{UserView as _0x136cc0,ConfirmMixin as _0x31c7cb}from'ckeditor5-collaboration';import _0x4cf623 from'./basecommentview.js';import _0x5974f5 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x2df098}from'../../../utils/common-translations.js';export default class ut extends _0x31c7cb(_0x4cf623){constructor(_0x1d64f4,_0x166890,_0x41b862){super(_0x1d64f4,_0x166890,_0x41b862),this[_0x5eea('0x5e')](_0x5eea('0x4'),null),this['set'](_0x5eea('0x55'),_0x2df098(_0x1d64f4,_0x5eea('0x2e'))),this[_0x5eea('0x1e')](_0x5eea('0x3c'))['to'](_0x166890),this[_0x5eea('0x1e')](_0x5eea('0x40'))['to'](_0x166890),this[_0x5eea('0x60')]=this[_0x5eea('0x49')](),this[_0x5eea('0x26')]||(this[_0x5eea('0x16')]=this[_0x5eea('0x1d')](),this[_0x5eea('0x30')]=this[_0x5eea('0x8')](),this['items']=this[_0x5eea('0x49')](),this[_0x5eea('0xc')][_0x5eea('0x3f')]([this[_0x5eea('0x16')],this[_0x5eea('0x30')]]),this[_0x5eea('0x5')]=this[_0x5eea('0x2d')](),this[_0x5eea('0x60')]['add'](this[_0x5eea('0x5')])),this['userView']=new _0x136cc0(_0x1d64f4,_0x166890[_0x5eea('0x27')],this[_0x5eea('0x32')]()),this[_0x5eea('0xe')][_0x5eea('0x51')]({'attributes':{'class':[_0x5eea('0x2'),_0x5eea('0x25')]}}),this[_0x5eea('0x35')](_0x166890,_0x5eea('0x58'),()=>this[_0x5eea('0x5f')]()),this[_0x5eea('0x0')](this[_0x5eea('0x18')]());}[_0x5eea('0x18')](){const _0x23a0e9=this['bindTemplate'],_0x5a7927=[{'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x2b'),_0x5eea('0x3a')]},'children':[{'tag':_0x5eea('0x4a'),'children':[{'text':this[_0x5eea('0xe')][_0x5eea('0x41')]}],'attributes':{'class':[_0x5eea('0x34'),'ck-annotation__info-name']}},{'tag':_0x5eea('0x19'),'attributes':{'datetime':_0x23a0e9['to'](_0x5eea('0x3c')),'class':['ck-comment__info-time',_0x5eea('0x3b')]},'children':[{'text':_0x23a0e9['to'](_0x5eea('0x3c'),_0xc2ccd1=>this[_0x5eea('0x52')]['formatDateTime'](_0xc2ccd1))}]}]},{'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x59'),'ck-annotation__actions',_0x23a0e9['if'](_0x5eea('0x1b'),'ck-comment__actions--hidden'),_0x23a0e9['if'](_0x5eea('0x1b'),_0x5eea('0x6'))]},'children':this[_0x5eea('0x60')]},{'tag':_0x5eea('0x3d'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0x5eea('0xa')]}];return this[_0x5eea('0x48')][_0x5eea('0x29')]&&_0x5a7927[_0x5eea('0x14')]({'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x37')]},'children':[{'text':this[_0x5eea('0x17')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x23a0e9['if'](_0x5eea('0x11'),_0x5eea('0x2f'))],'tabindex':-0x1},'children':[{'tag':_0x5eea('0x3d'),'attributes':{'class':['ck-comment','ck-annotation',_0x23a0e9['if'](_0x5eea('0x1b'),_0x5eea('0x22')),_0x23a0e9['if']('isSystemComment','ck-comment--info'),_0x23a0e9['to'](_0x5eea('0x4'),_0x4bb351=>_0x4bb351?_0x5eea('0x43')+_0x4bb351:'')],'data-author-id':this[_0x5eea('0x48')][_0x5eea('0x27')]['id'],'data-comment-id':this[_0x5eea('0x48')]['id']},'children':[this[_0x5eea('0xe')],{'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x31'),_0x5eea('0x53')]},'children':_0x5a7927}]}]};}[_0x5eea('0x1d')](){const _0x1a9fbb=new _0x1bdbc3(this[_0x5eea('0x45')]);return _0x1a9fbb[_0x5eea('0x38')]=_0x2df098(this[_0x5eea('0x45')],_0x5eea('0xf')),_0x1a9fbb['icon']=_0x37d64b[_0x5eea('0x21')],_0x1a9fbb[_0x5eea('0x5a')]=!0x0,_0x1a9fbb[_0x5eea('0x51')]({'attributes':{'class':'ck-comment--edit'}}),_0x1a9fbb[_0x5eea('0x1e')](_0x5eea('0x4c'))['to'](this[_0x5eea('0x48')],'isReadOnly',_0x5bb990=>!_0x5bb990),_0x1a9fbb[_0x5eea('0x1e')]('isVisible')['to'](this[_0x5eea('0x48')],_0x5eea('0x2a')),_0x1a9fbb['on'](_0x5eea('0x1c'),()=>this[_0x5eea('0x1a')]()),_0x1a9fbb;}[_0x5eea('0x8')](){const _0x9c33ca=new _0x1bdbc3(this['locale']);return _0x9c33ca[_0x5eea('0x38')]=_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x12')),_0x9c33ca[_0x5eea('0x56')]=_0x5974f5,_0x9c33ca['withText']=!0x0,_0x9c33ca[_0x5eea('0x51')]({'attributes':{'class':'ck-comment--remove'}}),_0x9c33ca[_0x5eea('0x1e')](_0x5eea('0x4c'))['to'](this[_0x5eea('0x48')],_0x5eea('0xb'),_0x190493=>!_0x190493),_0x9c33ca[_0x5eea('0x1e')](_0x5eea('0x4f'))['to'](this['_model'],_0x5eea('0x20')),_0x9c33ca['on']('execute',()=>{this['showConfirm'](_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x23')),this[_0x5eea('0x1')])['then'](()=>{this[_0x5eea('0x36')](_0x5eea('0x47'),this[_0x5eea('0x48')]['id']);});}),_0x9c33ca;}[_0x5eea('0x2d')](){const _0x363ab2=_0x402a1d(this[_0x5eea('0x45')]),_0x5270b5=_0x363ab2[_0x5eea('0x5c')][_0x5eea('0x42')],_0x36627f=new _0x5e0c85(this[_0x5eea('0x45')]),_0x5004aa=(_0x2ae64f,_0x4013f2=-0x1)=>{const _0xa7ba50=new _0x40c5bf(this[_0x5eea('0x45')]);_0xa7ba50[_0x5eea('0x42')]['add'](_0x2ae64f);const _0x24f74e=_0x4013f2>-0x1?_0x4013f2:_0x36627f[_0x5eea('0xc')]['length'];_0x36627f[_0x5eea('0xc')][_0x5eea('0x4d')](_0xa7ba50,_0x24f74e),_0x363ab2['listenTo'](_0x2ae64f,_0x5eea('0x5b'),()=>{_0x363ab2[_0x5eea('0x4c')]=[...this[_0x5eea('0xc')]][_0x5eea('0x13')](_0x4441a7=>_0x4441a7[_0x5eea('0x4c')]);}),_0x363ab2[_0x5eea('0x35')](_0x2ae64f,_0x5eea('0x7'),()=>{_0x363ab2['buttonView'][_0x5eea('0x4f')]=[...this['items']][_0x5eea('0x13')](_0x22fabd=>_0x22fabd[_0x5eea('0x4f')]);});};_0x363ab2[_0x5eea('0x2c')]='sw',_0x363ab2[_0x5eea('0x4e')]['set']({'label':_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x54')),'icon':_0x37d64b['threeVerticalDots']}),_0x363ab2['isEnabled']=[...this['items']][_0x5eea('0x13')](_0x4b4a90=>_0x4b4a90[_0x5eea('0x4c')]),_0x363ab2[_0x5eea('0x4e')]['isVisible']=[...this['items']]['some'](_0x3ae07a=>_0x3ae07a[_0x5eea('0x4f')]);for(const _0x12b2ab of this[_0x5eea('0xc')])_0x5004aa(_0x12b2ab);return _0x5270b5['add'](_0x36627f),_0x363ab2[_0x5eea('0x35')](this[_0x5eea('0xc')],_0x5eea('0x4d'),(_0x1eab5a,_0x1f26c6,_0x114793)=>{_0x5004aa(_0x1f26c6,_0x114793);}),_0x363ab2[_0x5eea('0x35')](this[_0x5eea('0xc')],_0x5eea('0x57'),(_0x3d4c6d,_0x110200,_0x38c20e)=>{_0x36627f['items'][_0x5eea('0x57')](_0x38c20e);}),_0x363ab2;}[_0x5eea('0x33')](_0x1d664b,_0x2d9a69){const _0x5061f8=_0x1d664b&&_0x1d664b[_0x5eea('0x1')];_0x5061f8&&(this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0x15'),()=>this['actionIndicator']=_0x2d9a69),this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0x3e'),()=>this[_0x5eea('0x4')]=_0x2d9a69),this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0x28'),()=>this[_0x5eea('0x4')]=null),this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0xd'),()=>this[_0x5eea('0x4')]=null));}['_createCommentInputView'](){const _0x2a7f87=super[_0x5eea('0x10')]();return _0x2a7f87[_0x5eea('0x1e')](_0x5eea('0x55'))['to'](this),_0x2a7f87;}[_0x5eea('0x17')](){return _0x5eea('0x46')===this['_model']['attributes'][_0x5eea('0x44')]['source']?_0x2df098(this['locale'],_0x5eea('0x5d')):_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x1f'));}[_0x5eea('0x32')](){return this['_model'][_0x5eea('0x29')]?_0x5eea('0x46')===this['_model'][_0x5eea('0x39')][_0x5eea('0x44')]['source']?_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x24'),this['_model'][_0x5eea('0x50')][_0x5eea('0x41')]):_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x3'),this[_0x5eea('0x48')]['creator'][_0x5eea('0x41')]):null;}[_0x5eea('0x9')](){super[_0x5eea('0x9')](),this[_0x5eea('0x33')](this['editButton'],_0x5eea('0x4b')),this[_0x5eea('0x33')](this[_0x5eea('0x30')],'remove');}}
|
package/src/comments.d.ts
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* @module comments/comments
|
|
3
3
|
* @publicApi
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
import CommentsRepository from './comments/commentsrepository';
|
|
7
|
-
import CommentsEditing from './comments/commentsediting';
|
|
8
|
-
import CommentsUI from './comments/commentsui';
|
|
9
|
-
import CommentsOnly from './commentsonly';
|
|
10
|
-
import WideSidebar from './annotations/widesidebar';
|
|
11
|
-
import NarrowSidebar from './annotations/narrowsidebar';
|
|
12
|
-
import InlineAnnotations from './annotations/inlineannotations';
|
|
13
|
-
import CommentsArchiveUI from './comments/commentsarchiveui';
|
|
14
|
-
import CommentsArchive from './comments/commentsarchive';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import CommentsRepository from './comments/commentsrepository.js';
|
|
7
|
+
import CommentsEditing from './comments/commentsediting.js';
|
|
8
|
+
import CommentsUI from './comments/commentsui.js';
|
|
9
|
+
import CommentsOnly from './commentsonly.js';
|
|
10
|
+
import WideSidebar from './annotations/widesidebar.js';
|
|
11
|
+
import NarrowSidebar from './annotations/narrowsidebar.js';
|
|
12
|
+
import InlineAnnotations from './annotations/inlineannotations.js';
|
|
13
|
+
import CommentsArchiveUI from './comments/commentsarchiveui.js';
|
|
14
|
+
import CommentsArchive from './comments/commentsarchive.js';
|
|
15
15
|
/**
|
|
16
16
|
* The comments plugin, which brings both the UI part and the editing part of this feature.
|
|
17
17
|
*
|
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x268d=['pluginName','Comments','requires'];(function(_0x26a609,_0x268df6){var _0x30bea5=function(_0x2aa15d){while(--_0x2aa15d){_0x26a609['push'](_0x26a609['shift']());}};_0x30bea5(++_0x268df6);}(_0x268d,0x106));var _0x30be=function(_0x26a609,_0x268df6){_0x26a609=_0x26a609-0x0;var _0x30bea5=_0x268d[_0x26a609];return _0x30bea5;};import{Plugin as _0x43619f}from'ckeditor5/src/core.js';import _0x382f88 from'./comments/commentsrepository.js';import _0x4d6d36 from'./comments/commentsediting.js';import _0x4652d0 from'./comments/commentsui.js';import _0x30c05e from'./commentsonly.js';import _0x350844 from'./annotations/widesidebar.js';import _0x45a26b from'./annotations/narrowsidebar.js';import _0x434cc5 from'./annotations/inlineannotations.js';import _0x411446 from'./comments/commentsarchiveui.js';import _0x7dedad from'./comments/commentsarchive.js';export default class f extends _0x43619f{static get[_0x30be('0x1')](){return[_0x382f88,_0x4d6d36,_0x4652d0,_0x7dedad,_0x411446,_0x30c05e,_0x350844,_0x45a26b,_0x434cc5];}static get[_0x30be('0x2')](){return _0x30be('0x0');}}
|
package/src/commentsonly.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @module comments/commentsonly
|
|
3
3
|
* @publicApi
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
6
|
-
import CommentsEditing from './comments/commentsediting';
|
|
5
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
6
|
+
import CommentsEditing from './comments/commentsediting.js';
|
|
7
7
|
/**
|
|
8
8
|
* The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
|
|
9
9
|
*
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2168=['clearForceDisabled','get','commentsOnly','commands','cut','listenTo','has','config','view','forceDisabled','DragDrop','document','afterInit','commentsOnlyMode','highest','_enableCommentsOnlyMode','plugins','_disableCommentsOnlyMode','editor','delete','requires','set','isEnabled','editing','stopListening','pluginName','addCommentThread','affectsData','stop'];(function(_0x3dc518,_0x2168a4){const _0x3a6e9e=function(_0x689bf2){while(--_0x689bf2){_0x3dc518['push'](_0x3dc518['shift']());}};_0x3a6e9e(++_0x2168a4);}(_0x2168,0x167));const _0x3a6e=function(_0x3dc518,_0x2168a4){_0x3dc518=_0x3dc518-0x0;let _0x3a6e9e=_0x2168[_0x3dc518];return _0x3a6e9e;};import{Plugin as _0xc8e170}from'ckeditor5/src/core.js';import _0x1e27ee from'./comments/commentsediting.js';export default class e extends _0xc8e170{static get[_0x3a6e('0xe')](){return'CommentsOnly';}static get[_0x3a6e('0x9')](){return[_0x1e27ee];}constructor(_0x3d8e86){super(_0x3d8e86),this[_0x3a6e('0xa')](_0x3a6e('0xb'),!0x1),this['on']('change:isEnabled',(_0x162f63,_0x41b419,_0x3f2cd5)=>{_0x3f2cd5?this[_0x3a6e('0x4')]():this[_0x3a6e('0x6')]();});}[_0x3a6e('0x1')](){!this[_0x3a6e('0xb')]&&this[_0x3a6e('0x7')][_0x3a6e('0x19')][_0x3a6e('0x13')](_0x3a6e('0x14'))&&(this[_0x3a6e('0xb')]=!0x0);}[_0x3a6e('0x4')](){for(const [_0x1f2728,_0x5d37ee]of this['editor'][_0x3a6e('0x15')])_0x5d37ee[_0x3a6e('0x10')]&&_0x3a6e('0xf')!==_0x1f2728&&_0x5d37ee[_0x3a6e('0x1b')](_0x3a6e('0x2'));this[_0x3a6e('0x7')][_0x3a6e('0x5')][_0x3a6e('0x18')](_0x3a6e('0x1c'))&&this[_0x3a6e('0x7')][_0x3a6e('0x5')]['get']('DragDrop')[_0x3a6e('0x1b')]('commentsOnlyMode');const _0x2fd749=this['editor'][_0x3a6e('0xc')]['view'][_0x3a6e('0x0')];this['listenTo'](_0x2fd749,_0x3a6e('0x16'),_0x3f2df0=>_0x3f2df0[_0x3a6e('0x11')](),{'priority':_0x3a6e('0x3')}),this['listenTo'](_0x2fd749,'clipboardInput',_0x3ea680=>_0x3ea680[_0x3a6e('0x11')](),{'priority':_0x3a6e('0x3')}),this[_0x3a6e('0x17')](_0x2fd749,_0x3a6e('0x8'),_0x3184c=>_0x3184c[_0x3a6e('0x11')](),{'priority':_0x3a6e('0x3')});}[_0x3a6e('0x6')](){for(const [_0x397296,_0x187f31]of this[_0x3a6e('0x7')][_0x3a6e('0x15')])_0x187f31[_0x3a6e('0x10')]&&_0x3a6e('0xf')!==_0x397296&&_0x187f31[_0x3a6e('0x12')](_0x3a6e('0x2'));this[_0x3a6e('0xd')](this[_0x3a6e('0x7')][_0x3a6e('0xc')][_0x3a6e('0x1a')][_0x3a6e('0x0')]);}}
|
package/src/config.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @module comments/config
|
|
3
3
|
* @publicApi
|
|
4
4
|
*/
|
|
5
|
-
import type { EditorConfig } from 'ckeditor5/src/core';
|
|
6
|
-
import type CommentView from './comments/ui/view/commentview';
|
|
7
|
-
import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview';
|
|
5
|
+
import type { EditorConfig } from 'ckeditor5/src/core.js';
|
|
6
|
+
import type CommentView from './comments/ui/view/commentview.js';
|
|
7
|
+
import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview.js';
|
|
8
8
|
/**
|
|
9
9
|
* The configuration of the comments feature.
|
|
10
10
|
*
|
|
@@ -85,10 +85,10 @@ export interface CommentsConfig {
|
|
|
85
85
|
* To provide a better experience, you may add more plugins, that will extend the default editor configuration.
|
|
86
86
|
*
|
|
87
87
|
* ```ts
|
|
88
|
-
* import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
|
|
89
|
-
* import List from '@ckeditor/ckeditor5-list/src/list';
|
|
90
|
-
* import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
|
|
91
|
-
* import Italic from '@ckeditor/ckeditor5-italic/src/italic';
|
|
88
|
+
* import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat.js';
|
|
89
|
+
* import List from '@ckeditor/ckeditor5-list/src/list.js';
|
|
90
|
+
* import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
|
|
91
|
+
* import Italic from '@ckeditor/ckeditor5-italic/src/italic.js';
|
|
92
92
|
*
|
|
93
93
|
* ClassicEditor
|
|
94
94
|
* .create( {
|
package/src/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { default as Comments } from './comments';
|
|
2
|
-
export { default as CommentsOnly } from './commentsonly';
|
|
3
|
-
export { default as CommentsUI } from './comments/commentsui';
|
|
4
|
-
export { default as CommentsRepository, CommentThread, Comment } from './comments/commentsrepository';
|
|
5
|
-
export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
|
|
6
|
-
export { default as Annotations } from './annotations/annotations';
|
|
7
|
-
export { default as AnnotationsUIs } from './annotations/annotationsuis';
|
|
8
|
-
export { default as EditorAnnotations } from './annotations/editorannotations';
|
|
9
|
-
export { default as InlineAnnotations } from './annotations/inlineannotations';
|
|
10
|
-
export { default as WideSidebar } from './annotations/widesidebar';
|
|
11
|
-
export { default as NarrowSidebar } from './annotations/narrowsidebar';
|
|
12
|
-
export { default as AnnotationView } from './annotations/view/annotationview';
|
|
13
|
-
export { default as BaseCommentView } from './comments/ui/view/basecommentview';
|
|
14
|
-
export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview';
|
|
15
|
-
export { default as CommentsListView } from './comments/ui/view/commentslistview';
|
|
16
|
-
export { default as CommentView } from './comments/ui/view/commentview';
|
|
17
|
-
export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
|
|
18
|
-
export type { CommentsConfig, SidebarConfig } from './config';
|
|
19
|
-
export type { default as CommentsEditing } from './comments/commentsediting';
|
|
20
|
-
export type { CommentDataJSON, CommentThreadContext } from './comments/commentsrepository';
|
|
21
|
-
import './augmentation';
|
|
1
|
+
export { default as Comments } from './comments.js';
|
|
2
|
+
export { default as CommentsOnly } from './commentsonly.js';
|
|
3
|
+
export { default as CommentsUI } from './comments/commentsui.js';
|
|
4
|
+
export { default as CommentsRepository, CommentThread, Comment } from './comments/commentsrepository.js';
|
|
5
|
+
export { default as CommentThreadController } from './comments/ui/commentthreadcontroller.js';
|
|
6
|
+
export { default as Annotations } from './annotations/annotations.js';
|
|
7
|
+
export { default as AnnotationsUIs } from './annotations/annotationsuis.js';
|
|
8
|
+
export { default as EditorAnnotations } from './annotations/editorannotations.js';
|
|
9
|
+
export { default as InlineAnnotations } from './annotations/inlineannotations.js';
|
|
10
|
+
export { default as WideSidebar } from './annotations/widesidebar.js';
|
|
11
|
+
export { default as NarrowSidebar } from './annotations/narrowsidebar.js';
|
|
12
|
+
export { default as AnnotationView } from './annotations/view/annotationview.js';
|
|
13
|
+
export { default as BaseCommentView } from './comments/ui/view/basecommentview.js';
|
|
14
|
+
export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview.js';
|
|
15
|
+
export { default as CommentsListView } from './comments/ui/view/commentslistview.js';
|
|
16
|
+
export { default as CommentView } from './comments/ui/view/commentview.js';
|
|
17
|
+
export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview.js';
|
|
18
|
+
export type { CommentsConfig, SidebarConfig } from './config.js';
|
|
19
|
+
export type { default as CommentsEditing } from './comments/commentsediting.js';
|
|
20
|
+
export type { CommentDataJSON, CommentThreadContext } from './comments/commentsrepository.js';
|
|
21
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export{default as Comments}from'./comments';export{default as CommentsOnly}from'./commentsonly';export{default as CommentsUI}from'./comments/commentsui';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as EditorAnnotations}from'./annotations/editorannotations';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as AnnotationView}from'./annotations/view/annotationview';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';export{default as CommentsListView}from'./comments/ui/view/commentslistview';export{default as CommentView}from'./comments/ui/view/commentview';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview';import'./augmentation';
|
|
23
|
+
export{default as Comments}from'./comments.js';export{default as CommentsOnly}from'./commentsonly.js';export{default as CommentsUI}from'./comments/commentsui.js';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository.js';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller.js';export{default as Annotations}from'./annotations/annotations.js';export{default as AnnotationsUIs}from'./annotations/annotationsuis.js';export{default as EditorAnnotations}from'./annotations/editorannotations.js';export{default as InlineAnnotations}from'./annotations/inlineannotations.js';export{default as WideSidebar}from'./annotations/widesidebar.js';export{default as NarrowSidebar}from'./annotations/narrowsidebar.js';export{default as AnnotationView}from'./annotations/view/annotationview.js';export{default as BaseCommentView}from'./comments/ui/view/basecommentview.js';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview.js';export{default as CommentsListView}from'./comments/ui/view/commentslistview.js';export{default as CommentView}from'./comments/ui/view/commentview.js';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview.js';import'./augmentation.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module comments/utils/common-translations
|
|
3
3
|
*/
|
|
4
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
4
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
5
5
|
export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3565df,_0x13bb13,_0x3d24bd){const t=_0x3565df['t'];switch(_0x13bb13){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3d24bd);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x3d24bd);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3d24bd);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3d24bd);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
|