@ckeditor/ckeditor5-comments 29.2.0 → 32.0.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 +2 -2
- package/README.md +2 -2
- package/lang/translations/bs.po +80 -0
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +79 -0
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +78 -0
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +8 -8
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.js +2 -2
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments/ui/view/confirmmixin.js +2 -2
- package/src/comments/ui/view/confirmview.js +2 -2
- package/src/comments.js +2 -2
- package/src/commentsonly.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.js +2 -2
- package/src/utils/getdatetimeformatter.js +2 -2
- package/src/utils/getmarkerdomelement.js +2 -2
- package/src/utils/trim-html.js +2 -2
- package/theme/annotation-inline.css +1 -1
- package/theme/annotation.css +1 -1
- package/theme/comment.css +1 -1
- package/theme/commentinput.css +1 -1
- package/theme/commentmarker.css +1 -1
- package/theme/commentthread.css +1 -1
- package/theme/icons/add-comment.svg +2 -2
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +3 -3
- package/theme/sidebar.css +1 -1
- package/theme/icons/add-comment-inverted.svg +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a5f=['change:placeholder','_updatePlaceholder','change','initPlugins','placeholder','init','set','fire','childCount','then','config','get','name','focus','editing','defaultPlugins','ready','initialData','placeholderElement','document','getChild','plugins','createRoot','getRoot','view','model','destroy','setSelection','low','create'];(function(_0x3bd43a,_0x2a5ffb){const _0x2aec2b=function(_0xf2df31){while(--_0xf2df31){_0x3bd43a['push'](_0x3bd43a['shift']());}};_0x2aec2b(++_0x2a5ffb);}(_0x2a5f,0x15f));const _0x2aec=function(_0x3bd43a,_0x2a5ffb){_0x3bd43a=_0x3bd43a-0x0;let _0x2aec2b=_0x2a5f[_0x3bd43a];return _0x2aec2b;};import{Editor as _0x1c62ec,DataApiMixin as _0x6a872e}from'ckeditor5/src/core';import _0x5cd13f from'./commenteditorui';import{mix as _0x3e502b,ObservableMixin as _0x1fce07}from'ckeditor5/src/utils';import{enablePlaceholder as _0x188e55,disablePlaceholder as _0x32f855}from'ckeditor5/src/engine';import _0x18fc2a from'@ckeditor/ckeditor5-essentials/src/essentials';import{Paragraph as _0x4aa726}from'ckeditor5/src/paragraph';import _0x5e7276 from'@ckeditor/ckeditor5-basic-styles/src/bold';import _0x2c0a55 from'@ckeditor/ckeditor5-basic-styles/src/italic';import _0x1809f2 from'@ckeditor/ckeditor5-list/src/list';import _0x23651c from'@ckeditor/ckeditor5-autoformat/src/autoformat';export default class zt extends _0x1c62ec{constructor(_0x5b6808={}){(_0x5b6808=Object['assign']({},_0x5b6808))[_0x2aec('0x0')]||(_0x5b6808[_0x2aec('0x0')]=zt[_0x2aec('0x18')]),super(_0x5b6808),this['ui']=new _0x5cd13f(this),this[_0x2aec('0xf')](_0x2aec('0xd'),''),this[_0x2aec('0x4')][_0x2aec('0x1c')]['on'](_0x2aec('0xb'),()=>this[_0x2aec('0xa')](),{'priority':_0x2aec('0x7')}),this['on'](_0x2aec('0x9'),()=>this[_0x2aec('0xa')]()),this[_0x2aec('0x4')]['document'][_0x2aec('0x1')]();}[_0x2aec('0x8')](){const _0x3f25b2=this[_0x2aec('0x13')][_0x2aec('0x14')](_0x2aec('0x1a'))||'';return this[_0x2aec('0xc')]()[_0x2aec('0x12')](()=>this['ui'][_0x2aec('0xe')]())[_0x2aec('0x12')](()=>this['data'][_0x2aec('0xe')](_0x3f25b2))[_0x2aec('0x12')](()=>this[_0x2aec('0x10')](_0x2aec('0x19')));}[_0x2aec('0x5')](){return super['destroy']()[_0x2aec('0x12')](()=>this['ui'][_0x2aec('0x5')]());}[_0x2aec('0x16')](){this[_0x2aec('0x4')][_0x2aec('0xb')](_0x32571d=>{const _0x3b2b3c=this['model'][_0x2aec('0x1c')][_0x2aec('0x2')](),_0xc07dcd=_0x3b2b3c[_0x2aec('0x1d')](_0x3b2b3c[_0x2aec('0x11')]-0x1);_0x32571d[_0x2aec('0x6')](_0xc07dcd,'end'),this[_0x2aec('0x17')]['view'][_0x2aec('0x16')]();});}[_0x2aec('0xa')](){const _0x1a2b65=this[_0x2aec('0x17')][_0x2aec('0x3')],_0x257383=_0x1a2b65[_0x2aec('0x1c')][_0x2aec('0x2')](),_0x3300e5=_0x257383[_0x2aec('0x1d')](0x0);_0x257383[_0x2aec('0x11')]>0x1||!_0x3300e5||'p'!=_0x3300e5[_0x2aec('0x15')]?this[_0x2aec('0x1b')]&&(_0x32f855(_0x1a2b65,this[_0x2aec('0x1b')]),this[_0x2aec('0x1b')]=void 0x0):(_0x188e55({'view':_0x1a2b65,'element':_0x3300e5,'text':this['placeholder'],'keepOnFocus':!0x0}),this[_0x2aec('0x1b')]=_0x3300e5);}}_0x3e502b(zt,_0x1fce07),_0x3e502b(zt,_0x6a872e),zt[_0x2aec('0x18')]=[_0x18fc2a,_0x23651c,_0x4aa726,_0x5e7276,_0x2c0a55,_0x1809f2];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c77=['add','focusTracker','rootName','destroy','setEditableElement','editing','attachDomRoot','bind','locale','isFocused','document','getRoot','init','ready','element','name','view','editable'];(function(_0x49a80f,_0x1c7714){const _0x894dce=function(_0xe0da67){while(--_0xe0da67){_0x49a80f['push'](_0x49a80f['shift']());}};_0x894dce(++_0x1c7714);}(_0x1c77,0x77));const _0x894d=function(_0x49a80f,_0x1c7714){_0x49a80f=_0x49a80f-0x0;let _0x894dce=_0x1c77[_0x49a80f];return _0x894dce;};import{EditorUI as _0xfd774f}from'ckeditor5/src/core';import _0x19c8a2 from'./commenteditoruiview';export default class wt extends _0xfd774f{constructor(_0x4e02fe){super(_0x4e02fe),this['view']=new _0x19c8a2(_0x4e02fe[_0x894d('0xf')],_0x4e02fe[_0x894d('0xc')][_0x894d('0x5')]);}get['element'](){return this[_0x894d('0x5')][_0x894d('0x3')];}[_0x894d('0x1')](){const _0x10b922=this['editor'][_0x894d('0xc')]['view'],_0x56fc05=this['view'][_0x894d('0x6')],_0x33ff11=_0x10b922[_0x894d('0x11')][_0x894d('0x0')]();_0x56fc05[_0x894d('0x4')]=_0x33ff11[_0x894d('0x9')],this[_0x894d('0x5')]['render']();const _0x4522fc=_0x56fc05[_0x894d('0x3')];this[_0x894d('0xb')](_0x56fc05[_0x894d('0x4')],_0x4522fc),this[_0x894d('0x8')][_0x894d('0x7')](_0x4522fc),this[_0x894d('0x5')][_0x894d('0x6')][_0x894d('0xe')](_0x894d('0x10'))['to'](this['focusTracker']),_0x10b922[_0x894d('0xd')](_0x4522fc),this['fire'](_0x894d('0x2'));}[_0x894d('0xa')](){this[_0x894d('0x5')][_0x894d('0xa')](),super[_0x894d('0xa')]();}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as
|
|
23
|
+
import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as _0x433281}from'ckeditor5/src/utils';export default class Bt extends Ct{constructor(_0x377f72,_0x19efa){super(_0x377f72);const _0x42001e=_0x433281();this['main']=this['createCollection'](),this['editable']=new $t(_0x377f72,_0x19efa),this['_voiceLabelView']=this['_createVoiceLabel'](_0x42001e,_0x377f72),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x377f72['uiLanguageDirection'],'lang':_0x377f72['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x42001e},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['_createVoiceLabel'](_0x35e66a,_0x4bb2d7){const _0x479681=new Lt(),{t:t}=_0x4bb2d7;return _0x479681['text']=t('Comment\x20editor'),_0x479681['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x35e66a,'class':'ck-voice-label'}}),_0x479681;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x187b=['destroy','_localUser','removeCommentThread','update','removeComment','_isAttached','updateComment','remove','model','view','addComment','getComment','listenTo'];(function(_0x31c852,_0x187b39){var _0x3be023=function(_0x3dbf3e){while(--_0x3dbf3e){_0x31c852['push'](_0x31c852['shift']());}};_0x3be023(++_0x187b39);}(_0x187b,0x135));var _0x3be0=function(_0x31c852,_0x187b39){_0x31c852=_0x31c852-0x0;var _0x3be023=_0x187b[_0x31c852];return _0x3be023;};import{ObservableMixin as _0x156dcc,mix as _0x453135}from'ckeditor5/src/utils';export default class K{constructor(_0x12b2fa,_0x1dc874){this[_0x3be0('0xb')]=_0x12b2fa,this[_0x3be0('0xb')]['_isAttached']=!0x0,this[_0x3be0('0xc')]=_0x1dc874,this[_0x3be0('0x2')](_0x1dc874,_0x3be0('0x5'),()=>this[_0x3be0('0xa')]()),this['listenTo'](_0x1dc874,_0x3be0('0x0'),(_0x4bac96,_0x306015)=>this[_0x3be0('0x0')](_0x306015)),this[_0x3be0('0x2')](_0x1dc874,_0x3be0('0x9'),(_0x333337,_0xc9f561,_0xd2c549)=>this['updateComment'](_0xc9f561,_0xd2c549)),this['listenTo'](_0x1dc874,_0x3be0('0x7'),(_0x385a55,_0x2492d9)=>this[_0x3be0('0x7')](_0x2492d9));}[_0x3be0('0xa')](){this[_0x3be0('0xb')][_0x3be0('0xa')]();}[_0x3be0('0x0')](_0x197e0a){this[_0x3be0('0xb')][_0x3be0('0x0')]({'content':_0x197e0a,'authorId':this[_0x3be0('0xc')][_0x3be0('0x4')]['id']});}[_0x3be0('0x9')](_0x3b7f7b,_0x1a1637){this['model'][_0x3be0('0x1')](_0x3b7f7b)[_0x3be0('0x6')]({'content':_0x1a1637});}['removeComment'](_0x360970){this['model'][_0x3be0('0x1')](_0x360970)['remove']();}[_0x3be0('0x3')](){this['stopListening'](),this['model'][_0x3be0('0x8')]=!0x1;}}_0x453135(K,_0x156dcc);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as bt}from'ckeditor5/src/ui';import Rt from'./commentthreadinputview';import Tt from'./commentslistview';export default class It extends bt{constructor(
|
|
23
|
+
import{View as bt}from'ckeditor5/src/ui';import Rt from'./commentthreadinputview';import Tt from'./commentslistview';export default class It extends bt{constructor(_0x55f2de,_0x3ed642,_0x4b2aec,_0x1f0641){super(_0x55f2de),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x3ed642,this['_localUser']=_0x4b2aec,this['_config']=_0x1f0641,this['commentsListView']=new Tt(_0x55f2de,_0x3ed642,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1f0641)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x373e54,_0x5c16a7)=>_0x373e54||!!_0x5c16a7);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x51a550=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xcf2b09=_0x51a550['commentInputView'];return _0x51a550['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0xcf2b09,'value',(_0xdd8f8b,_0x58dd20,_0x14e9df)=>!!_0x14e9df||_0xdd8f8b&&!_0x58dd20),_0xcf2b09['bind']('placeholder')['to'](this,'length',_0xaf01c4=>t(_0xaf01c4?'Reply...':'Write\x20a\x20comment...')),_0xcf2b09['on']('submit',(_0x3676b2,_0x11a57a)=>{this['fire']('addComment',_0x11a57a);}),_0xcf2b09['on']('cancel',()=>{this['focus']();}),_0xcf2b09['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xcf2b09['on']('cancel',_0x2c8fd7=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2c8fd7['stop']());}),this['on']('change:isActive',(_0x148298,_0x164e27,_0x54d79c)=>{_0x54d79c||this['length']||_0xcf2b09['value']||this['fire']('removeCommentThread');}),_0x51a550;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49a2=['focus','set','isReadOnly','add','remove','editorConfig','_model','isCollapsed','disabledSubmit','once','submit','_createCommentInputView','isEditMode','switchToDisplayMode','destroy','content','locale','value','_config','visibleView','fire','maxCommentCharsWhenCollapsed','get','cancel','switchToEditMode'];(function(_0x18cd00,_0x49a2d7){const _0x15d093=function(_0x4dbe7b){while(--_0x4dbe7b){_0x18cd00['push'](_0x18cd00['shift']());}};_0x15d093(++_0x49a2d7);}(_0x49a2,0xcc));const _0x15d0=function(_0x18cd00,_0x49a2d7){_0x18cd00=_0x18cd00-0x0;let _0x15d093=_0x49a2[_0x18cd00];return _0x15d093;};import{View as _0x323ebd}from'ckeditor5/src/ui';import _0x194189 from'./commentcontentview';import _0x22459a from'./commentinputview';import _0x5909af from'../../../utils/trim-html';export default class Vt extends _0x323ebd{constructor(_0xf26880,_0x9814ae,_0x3b0ebf){super(_0xf26880),this[_0x15d0('0x2')]=_0x9814ae,this['_config']=_0x3b0ebf,this[_0x15d0('0x16')](_0x15d0('0x8'),!0x1),this[_0x15d0('0x16')](_0x15d0('0x3'),!0x0),this['visibleView']=this['createCollection'](),this[_0x15d0('0xf')][_0x15d0('0x18')](this['_createCommentContentView']());}['expand'](){this[_0x15d0('0x3')]=!0x1;}['collapse'](){this[_0x15d0('0x8')]||(this[_0x15d0('0x3')]=!0x0);}[_0x15d0('0x15')](){this['element'][_0x15d0('0x15')]();}async[_0x15d0('0xa')](){await this[_0x15d0('0xf')][_0x15d0('0x12')](0x0)['destroy'](),super['destroy']();}[_0x15d0('0x14')](){this[_0x15d0('0x8')]||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)[_0x15d0('0xa')](),this[_0x15d0('0xf')]['add'](this[_0x15d0('0x7')]()));}[_0x15d0('0x9')](){this['isEditMode']&&(this[_0x15d0('0x8')]=!0x1,this[_0x15d0('0xf')][_0x15d0('0x0')](0x0)[_0x15d0('0xa')](),this[_0x15d0('0xf')]['add'](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x224417=new _0x194189(this[_0x15d0('0xc')]);return _0x224417['bind'](_0x15d0('0xb'))['to'](this[_0x15d0('0x2')],'content',this,'isCollapsed',(_0x1a6047,_0x47705d)=>_0x47705d?_0x5909af(_0x1a6047,{'limit':this[_0x15d0('0xe')][_0x15d0('0x11')]}):_0x1a6047),_0x224417;}[_0x15d0('0x7')](){this[_0x15d0('0xe')][_0x15d0('0x1')]||(this['_config'][_0x15d0('0x1')]={}),this['_config'][_0x15d0('0x1')]['initialData']=this['_model']['content'];const _0x4ddaf9=new _0x22459a(this['locale'],this[_0x15d0('0xe')][_0x15d0('0x1')]);return _0x4ddaf9[_0x15d0('0xd')]=this[_0x15d0('0x2')]['content'],_0x4ddaf9['bind'](_0x15d0('0x4'))['to'](this[_0x15d0('0x2')],_0x15d0('0x17')),_0x4ddaf9['on'](_0x15d0('0x6'),(_0x1c6ee2,_0x1fee0a)=>{this[_0x15d0('0x10')]('updateComment',this[_0x15d0('0x2')]['id'],_0x1fee0a),this[_0x15d0('0x9')](),this[_0x15d0('0x15')]();}),_0x4ddaf9['on'](_0x15d0('0x13'),()=>{this[_0x15d0('0x9')](),this['focus']();}),_0x4ddaf9[_0x15d0('0x5')]('editorReady',()=>{_0x4ddaf9['focus']();}),_0x4ddaf9;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as bt}from'ckeditor5/src/ui';export default class Nt extends bt{constructor(
|
|
23
|
+
import{View as bt}from'ckeditor5/src/ui';export default class Nt extends bt{constructor(_0x5d0056){super(_0x5d0056);const {t:t}=_0x5d0056,_0x15606f=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x15606f['to']('count',_0x54a251=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x54a251))}]});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x167f=['render','ck-annotation__content','element','setTemplate','ck-comment__content','content','div'];(function(_0x1022b5,_0x167f8b){var _0x3409f2=function(_0x2716c5){while(--_0x2716c5){_0x1022b5['push'](_0x1022b5['shift']());}};_0x3409f2(++_0x167f8b);}(_0x167f,0xa7));var _0x3409=function(_0x1022b5,_0x167f8b){_0x1022b5=_0x1022b5-0x0;var _0x3409f2=_0x167f[_0x1022b5];return _0x3409f2;};import{View as _0xe2d9bc}from'ckeditor5/src/ui';export default class Mt extends _0xe2d9bc{constructor(_0x421983){super(_0x421983),this['set'](_0x3409('0x6'),''),this[_0x3409('0x4')]({'tag':_0x3409('0x0'),'attributes':{'class':[_0x3409('0x5'),_0x3409('0x2')]}});}[_0x3409('0x1')](){super['render'](),this['on']('change:content',(_0x160991,_0x576bef,_0x1d775e)=>{this[_0x3409('0x3')]['innerHTML']=_0x1d775e;}),this[_0x3409('0x3')]['innerHTML']=this[_0x3409('0x6')];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as bt,ViewCollection as St,FocusCycler as Gt,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as
|
|
23
|
+
import{View as bt,ViewCollection as St,FocusCycler as Gt,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x12e664,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Yt}from'ckeditor5/src/core';import zt from'../commenteditor/commenteditor';export default class Et extends bt{constructor(_0x3c56ac,_0x4aa112={}){super(_0x3c56ac);const {t:t}=_0x3c56ac;this['editor']=new zt(_0x4aa112),this['keystrokes']=new pt(),this['focusTracker']=new _0x12e664(),this['set']('value',_0x4aa112['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x4a6bfe,_0x3ad865)=>{this['cancelButtonView']['fire']('execute'),_0x3ad865();}),this['on']('submit',(_0x10d305,_0x288d33)=>{_0x288d33['length']>0xfde8?(alert(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'},[_0x288d33['length'],0xfde8])),_0x10d305['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x1195bb,element:_0x5c648d}=this;this['keystrokes']['listenTo'](_0x5c648d),this['focusTracker']['add'](_0x5c648d),this['_editorCreationPromise']=_0x1195bb['create']()['then'](()=>{_0x5c648d['insertBefore'](_0x1195bb['ui']['element'],_0x5c648d['firstChild']),_0x1195bb['model']['document']['on']('change',()=>this['value']=_0x1195bb['getData']()),_0x1195bb['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x1195bb),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['isRendered']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}['_createSubmitButton'](){const _0x4544ec=new mt(this['locale']),{t:t}=this['locale'];return _0x4544ec['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4544ec['label']=t('Submit'),_0x4544ec['icon']=Yt['check'],_0x4544ec['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4544ec['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xf6b131,_0x51e3a9)=>!_0x51e3a9&&!!_0xf6b131['trim']()),_0x4544ec;}['_createCancelButton'](){const _0x2ca9a7=new mt(this['locale']),{t:t}=this['locale'];return _0x2ca9a7['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2ca9a7['label']=t('Cancel'),_0x2ca9a7['icon']=Yt['cancel'],_0x2ca9a7['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2ca9a7;}['_initializeFocusCycling'](_0x2fe984){const _0x57f86b=this['focusTracker'],_0x356343=new St();[_0x2fe984['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x57b799=>{_0x356343['add'](_0x57b799),_0x57f86b['add'](_0x57b799['element']);});const _0x45f615=new Gt({'focusables':_0x356343,'focusTracker':_0x57f86b});this['keystrokes']['set']('tab',(_0x187ff4,_0xeba78d)=>{_0x45f615['focusNext'](),_0xeba78d();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x2fe8a2,_0x3913ad)=>{_0x45f615['focusPrevious'](),_0x3913ad();},{'priority':'low'});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f19=['destroy','refreshVisibleViews','hasDirtyComment','_rearrangeExpand','_updateHasDirtyComment','ck-thread__comments','remove','insert','_model','visibleViews','createCollection','delegate','from','element','isEditMode','commentViews','comments','count','CommentView','editorConfig','_config','_collapsedCommentsView','set','isActive','_shouldCollapse','some','maxCommentsWhenCollapsed','formatDateTime','expand','commentUpdated','_handleNewCommentModel','weight','maxCommentCharsWhenCollapsed','listenTo','_rearrangeCollapse','_handleRemoveCommentModel','equal','viewUid','length','focus','add','delete','render','updateComment'];(function(_0x29a391,_0x3f19d3){const _0x114998=function(_0x2e327a){while(--_0x2e327a){_0x29a391['push'](_0x29a391['shift']());}};_0x114998(++_0x3f19d3);}(_0x3f19,0x113));const _0x1149=function(_0x29a391,_0x3f19d3){_0x29a391=_0x29a391-0x0;let _0x114998=_0x3f19[_0x29a391];return _0x114998;};import{View as _0x1d559b}from'ckeditor5/src/ui';import{diff as _0x485b0a,Collection as _0x531cb6}from'ckeditor5/src/utils';import _0x143800 from'./collapsedcommentsview';export default class Tt extends _0x1d559b{constructor(_0x283575,_0x1727a5,_0x5d9572){super(_0x283575),this[_0x1149('0xb')]('hasDirtyComment',!0x1),this[_0x1149('0xb')](_0x1149('0x1b'),_0x1727a5[_0x1149('0x5')][_0x1149('0x1b')]),this[_0x1149('0xb')](_0x1149('0xc'),!0x1),this['_model']=_0x1727a5,this['_config']=_0x5d9572,this['commentViews']=this[_0x1149('0x2b')](),this[_0x1149('0x2a')]=this['createCollection'](),this[_0x1149('0xa')]=new _0x143800(_0x283575),this['_collapsedCommentsView']['bind'](_0x1149('0x6'))['to'](this,_0x1149('0x1b'),_0x3aec51=>_0x3aec51-this[_0x1149('0x9')][_0x1149('0xf')]);for(const _0x4796ba of _0x1727a5[_0x1149('0x5')])this[_0x1149('0x13')](_0x4796ba);this[_0x1149('0x16')](_0x1727a5[_0x1149('0x5')],_0x1149('0x1d'),(_0x2eb5b6,_0x30933f)=>{this[_0x1149('0x1b')]++,this[_0x1149('0x13')](_0x30933f),this[_0x1149('0x22')]();}),this[_0x1149('0x16')](_0x1727a5[_0x1149('0x5')],_0x1149('0x27'),(_0x39c2dc,_0x30c6ae)=>{this[_0x1149('0x1b')]--,this[_0x1149('0x18')](_0x30c6ae),this[_0x1149('0x22')]();}),this[_0x1149('0x16')](_0x1727a5,_0x1149('0x12'),()=>this['refreshVisibleViews']()),this['on']('change:isActive',()=>this[_0x1149('0x22')]()),this['on']('change:hasDirtyComment',()=>this[_0x1149('0x22')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x1149('0x26')]},'children':this[_0x1149('0x2a')]});}get[_0x1149('0xd')](){return this[_0x1149('0x29')][_0x1149('0x14')]>this[_0x1149('0x9')]['maxThreadTotalWeight']&&!this[_0x1149('0xc')]&&!this[_0x1149('0x23')];}[_0x1149('0x1f')](){super[_0x1149('0x1f')](),this[_0x1149('0x22')]();}[_0x1149('0x1c')](){this[_0x1149('0x2')][_0x1149('0x1c')]();}[_0x1149('0x21')](){this['_collapsedCommentsView'][_0x1149('0x21')]();for(const _0x7390fb of this[_0x1149('0x4')])_0x7390fb['destroy']();super[_0x1149('0x21')]();}[_0x1149('0x22')](){this[_0x1149('0xd')]?this[_0x1149('0x17')]():this['_rearrangeExpand']();}[_0x1149('0x13')](_0x37f6e4){const _0x2d8254=new this[(_0x1149('0x9'))][(_0x1149('0x7'))](this['locale'],_0x37f6e4,{'maxCommentCharsWhenCollapsed':this[_0x1149('0x9')][_0x1149('0x15')],'formatDateTime':this[_0x1149('0x9')][_0x1149('0x10')],'editorConfig':this[_0x1149('0x9')][_0x1149('0x8')]});_0x2d8254[_0x1149('0x1a')]=_0x37f6e4['id'],_0x2d8254[_0x1149('0x0')]('removeComment')['to'](this),_0x2d8254[_0x1149('0x0')](_0x1149('0x20'))['to'](this),this[_0x1149('0x16')](_0x2d8254,'change:isEditMode',()=>this[_0x1149('0x25')]()),this['commentViews'][_0x1149('0x1d')](_0x2d8254);}[_0x1149('0x18')](_0x25d2df){const _0x2ca23c=this[_0x1149('0x4')][_0x1149('0x27')](_0x25d2df['id']);this['stopListening'](_0x2ca23c),_0x2ca23c[_0x1149('0x3')]&&this[_0x1149('0x25')](),_0x2ca23c[_0x1149('0x21')]();}[_0x1149('0x25')](){this[_0x1149('0x23')]=Array[_0x1149('0x1')](this[_0x1149('0x4')])[_0x1149('0xe')](_0x4c7fab=>_0x4c7fab['isEditMode']);}[_0x1149('0x17')](){const _0x2dfcbc=function(_0x5a2975){const _0x1e14aa=new _0x531cb6();for(const _0x3a6b9a of _0x5a2975)_0x1e14aa[_0x1149('0x1d')](_0x3a6b9a);return _0x1e14aa;}(this[_0x1149('0x4')]),_0x5b6c6f=this[_0x1149('0xa')][_0x1149('0x6')];for(let _0x405df7=0x1;_0x405df7<=_0x5b6c6f;_0x405df7++)_0x2dfcbc[_0x1149('0x27')](0x1);for(const _0x482ed5 of _0x2dfcbc)_0x482ed5['collapse']();_0x5b6c6f>0x0&&_0x2dfcbc['add'](this[_0x1149('0xa')],0x1),Ut(_0x485b0a(Array['from'](this[_0x1149('0x2a')]),Array[_0x1149('0x1')](_0x2dfcbc)),this[_0x1149('0x2a')],_0x2dfcbc);}[_0x1149('0x24')](){Ut(_0x485b0a(Array[_0x1149('0x1')](this[_0x1149('0x2a')]),Array[_0x1149('0x1')](this['commentViews'])),this[_0x1149('0x2a')],this[_0x1149('0x4')]);for(const _0x41d41b of this[_0x1149('0x2a')])_0x41d41b[_0x1149('0x11')]();}}function Ut(_0x3923f1,_0x2ef5cc,_0xcf1225){let _0x346e05=0x0;for(const _0x4372c1 of _0x3923f1)switch(_0x4372c1){case _0x1149('0x28'):_0x2ef5cc[_0x1149('0x1d')](_0xcf1225['get'](_0x346e05),_0x346e05),_0x346e05++;break;case _0x1149('0x1e'):_0x2ef5cc[_0x1149('0x27')](_0x346e05);break;case _0x1149('0x19'):_0x346e05++;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2d72=['bind','ck-thread__input','then','extendTemplate','showButtons','bindTemplate','setTemplate','destroy','focusTracker','userView','showInput','commentInputView','ck-comment__input-container','ck-thread__user','isFocused'];(function(_0x29d91d,_0x2d7288){var _0x1c17ec=function(_0x1f5f27){while(--_0x1f5f27){_0x29d91d['push'](_0x29d91d['shift']());}};_0x1c17ec(++_0x2d7288);}(_0x2d72,0x113));var _0x1c17=function(_0x29d91d,_0x2d7288){_0x29d91d=_0x29d91d-0x0;var _0x1c17ec=_0x2d72[_0x29d91d];return _0x1c17ec;};import{View as _0x34ab32}from'ckeditor5/src/ui';import _0x1ba69a from'./commentinputview';import _0x3c5abe from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x34ab32{constructor(_0xe5c80a,_0x52ec41,_0x532375){super(_0xe5c80a),this[_0x1c17('0x6')]=new _0x1ba69a(_0xe5c80a,_0x532375),this[_0x1c17('0x6')][_0x1c17('0xa')](_0x1c17('0xe'))['to'](this['commentInputView'][_0x1c17('0x3')],_0x1c17('0x9'),this['commentInputView'],'value',(_0x430e4e,_0x44a93b)=>_0x430e4e||!!_0x44a93b),this['set'](_0x1c17('0x5'),!0x1),this[_0x1c17('0x4')]=new _0x3c5abe(_0xe5c80a,_0x52ec41),this[_0x1c17('0x4')][_0x1c17('0xd')]({'attributes':{'class':_0x1c17('0x8')}}),this[_0x1c17('0x6')][_0x1c17('0xd')]({'attributes':{'class':_0x1c17('0xb')}}),this[_0x1c17('0x1')]({'tag':'div','attributes':{'class':[_0x1c17('0x7'),this[_0x1c17('0x0')]['if']('showInput','ck-comment__input-container--active')]},'children':[this[_0x1c17('0x4')],this['commentInputView']]});}['destroy'](){return this[_0x1c17('0x6')]['destroy']()[_0x1c17('0xc')](()=>super[_0x1c17('0x2')]());}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import It from'./basecommentthreadview';import{mix as
|
|
23
|
+
import It from'./basecommentthreadview';import{mix as _0x246230}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x3abf28,_0x50137,_0x5b7664,_0x503741){super(_0x3abf28,_0x50137,_0x5b7664,_0x503741),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x3abf28,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x37dadc,_0x28e99b,_0x51fe94)=>{_0x51fe94||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4d5950,_0x4cf501,_0x111431)=>{_0x111431&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x3e3e14=>{this['_bindFirstCommentView'](),_0x3e3e14['off']();});}['getTemplate'](){const _0x3ad0f1=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x3ad0f1['if']('isActive','ck-thread--active'),_0x3ad0f1['if']('isConfirm','ck-thread--remove-confirmation'),_0x3ad0f1['to']('actionIndicator',_0x4e338c=>_0x4e338c?'ck-thread--'+_0x4e338c:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x22c15d of this['commentsListView']['commentViews'])_0x22c15d['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x37da15=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x37da15,'actionIndicator',_0x18de38=>'remove'===_0x18de38?'remove':null),_0x37da15['placeholder']=t('Write\x20a\x20comment...'),_0x37da15['removeButton']['on']('execute',_0x32d7e2=>{_0x32d7e2['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x246230(et,Wt);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{mix as
|
|
23
|
+
import{mix as _0x1a659b}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import Jt from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{icons as Yt}from'ckeditor5/src/core';import Kt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class nt extends Vt{constructor(_0x4ac9a3,_0x3ed53d,_0x2b97da){super(_0x4ac9a3,_0x3ed53d,_0x2b97da);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x3ed53d),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x4ac9a3,_0x3ed53d['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x3ed53d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x49a9a1=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x49a9a1['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x49a9a1['if']('isEditMode','ck-comment--edit'),_0x49a9a1['to']('actionIndicator',_0x1a435c=>_0x1a435c?'ck-comment--'+_0x1a435c:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x49a9a1['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49a9a1['to']('createdAt',_0x4a3a0a=>this['_config']['formatDateTime'](_0x4a3a0a))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x49a9a1['if']('isEditMode','ck-comment__actions--hidden'),_0x49a9a1['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x2dd167=new mt(this['locale']);return _0x2dd167['label']=t('Edit'),_0x2dd167['icon']=Yt['pencil'],_0x2dd167['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2dd167['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x233b22=>!_0x233b22),_0x2dd167['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2dd167['on']('execute',()=>this['switchToEditMode']()),_0x2dd167;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x3ab081=new mt(this['locale']);return _0x3ab081['label']=t('Remove'),_0x3ab081['icon']=Kt,_0x3ab081['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3ab081['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4424be=>!_0x4424be),_0x3ab081['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3ab081['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3ab081;}['_attachActions'](_0x33efe1,_0x3d9ccc){this['listenTo'](_0x33efe1,'mouseenter',()=>this['actionIndicator']=_0x3d9ccc),this['listenTo'](_0x33efe1,'focus',()=>this['actionIndicator']=_0x3d9ccc),this['listenTo'](_0x33efe1,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x33efe1,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0xe45473=super['_createCommentInputView']();return _0xe45473['bind']('placeholder')['to'](this),_0xe45473;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x1a659b(nt,Wt);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5bb6=['destroy','set','once','element','cancel','deregisterChild','appendChild','locale','isConfirm','submit','confirmView','render','message','_removeConfirm','registerChild','fire'];(function(_0x5e7e7f,_0x5bb6be){var _0x145478=function(_0x34b9cd){while(--_0x34b9cd){_0x5e7e7f['push'](_0x5e7e7f['shift']());}};_0x145478(++_0x5bb6be);}(_0x5bb6,0x1f1));var _0x1454=function(_0x5e7e7f,_0x5bb6be){_0x5e7e7f=_0x5e7e7f-0x0;var _0x145478=_0x5bb6[_0x5e7e7f];return _0x145478;};import _0x3c6497 from'./confirmview';export default{'showConfirm'(_0xb94a4c,_0xb250ff){return this[_0x1454('0x9')]=new _0x3c6497(this[_0x1454('0x6')]),this['confirmView'][_0x1454('0xa')](),this['confirmView'][_0x1454('0xb')]=_0xb94a4c,this[_0x1454('0x9')][_0x1454('0x1')](_0x1454('0x3'),()=>{this[_0x1454('0xc')]();}),this[_0x1454('0x9')][_0x1454('0x1')](_0x1454('0x8'),()=>{this['_removeConfirm']();}),_0xb250ff[_0x1454('0x5')](this[_0x1454('0x9')]['element']),this[_0x1454('0xd')](this['confirmView']),this[_0x1454('0x0')](_0x1454('0x7'),!0x0),new Promise(_0x336210=>this[_0x1454('0x9')]['on'](_0x1454('0x8'),_0x336210));},'cancelConfirm'(){this[_0x1454('0x7')]&&this['confirmView'][_0x1454('0xe')](_0x1454('0x3'));},'_removeConfirm'(){this[_0x1454('0x9')][_0x1454('0x2')]['remove'](),this[_0x1454('0x4')](this[_0x1454('0x9')]),this['isConfirm']=!0x1,this[_0x1454('0x9')][_0x1454('0xf')](),delete this[_0x1454('0x9')];}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as bt,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(
|
|
23
|
+
import{View as bt,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(_0x3ec896){super(_0x3ec896);const {t:t}=_0x3ec896,_0x8213cc=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3ec896,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3ec896,t('No'),Yt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x8213cc['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x3dc72a,_0x5c34b0,_0x2da2ec,_0xb4f420){const _0x6a9146=new mt(_0x3dc72a);return _0x6a9146['label']=_0x5c34b0,_0x6a9146['icon']=_0x2da2ec,_0x6a9146['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0xb4f420}}),_0x6a9146['on']('execute',()=>this['fire'](_0xb4f420)),_0x6a9146;}}
|
package/src/comments.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x20ae=['Comments','pluginName'];(function(_0x411ad8,_0x20aee6){var _0x4506d7=function(_0x36fc05){while(--_0x36fc05){_0x411ad8['push'](_0x411ad8['shift']());}};_0x4506d7(++_0x20aee6);}(_0x20ae,0x75));var _0x4506=function(_0x411ad8,_0x20aee6){_0x411ad8=_0x411ad8-0x0;var _0x4506d7=_0x20ae[_0x411ad8];return _0x4506d7;};import{Plugin as _0x3189f8}from'ckeditor5/src/core';import _0x5ea630 from'./comments/commentsrepository';import _0x269700 from'./comments/commentsediting';import _0x2c7a03 from'./comments/commentsui';import _0x1f475e from'./commentsonly';import _0x5e718c from'./annotations/widesidebar';import _0x491040 from'./annotations/narrowsidebar';import _0x5b88b5 from'./annotations/inlineannotations';export default class c extends _0x3189f8{static get['requires'](){return[_0x5ea630,_0x269700,_0x2c7a03,_0x1f475e,_0x5e718c,_0x491040,_0x5b88b5];}static get[_0x4506('0x0')](){return _0x4506('0x1');}}
|
package/src/commentsonly.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1db8=['isEnabled','stopListening','forceDisabled','commentsOnly','clipboardInput','afterInit','has','get','_disableCommentsOnlyMode','listenTo','commentsOnlyMode','CommentsOnly','addCommentThread','commands','cut','highest','DragDrop','requires','clearForceDisabled','delete','editing','stop','view','editor','document','_enableCommentsOnlyMode','affectsData'];(function(_0x577baf,_0x1db819){const _0x15cf44=function(_0x30b068){while(--_0x30b068){_0x577baf['push'](_0x577baf['shift']());}};_0x15cf44(++_0x1db819);}(_0x1db8,0x1d3));const _0x15cf=function(_0x577baf,_0x1db819){_0x577baf=_0x577baf-0x0;let _0x15cf44=_0x1db8[_0x577baf];return _0x15cf44;};import{Plugin as _0x2f7ac0}from'ckeditor5/src/core';import _0x2b09f3 from'./comments/commentsediting';export default class e extends _0x2f7ac0{static get['pluginName'](){return _0x15cf('0x3');}static get[_0x15cf('0x9')](){return[_0x2b09f3];}constructor(_0x4369b3){super(_0x4369b3),this['set']('isEnabled',null),this['on']('change:isEnabled',(_0x18e100,_0x250b49,_0x4c9d46)=>{_0x4c9d46?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x15cf('0x18')](){null===this[_0x15cf('0x13')]&&(this[_0x15cf('0x13')]=!!this[_0x15cf('0xf')]['config']['get'](_0x15cf('0x16')));}[_0x15cf('0x11')](){for(const [_0x2a1134,_0x545e4b]of this['editor']['commands'])_0x545e4b[_0x15cf('0x12')]&&_0x15cf('0x4')!==_0x2a1134&&_0x545e4b[_0x15cf('0x15')](_0x15cf('0x2'));this[_0x15cf('0xf')]['plugins'][_0x15cf('0x19')](_0x15cf('0x8'))&&this[_0x15cf('0xf')]['plugins'][_0x15cf('0x1a')](_0x15cf('0x8'))['forceDisabled']('commentsOnlyMode');const _0x350c3d=this[_0x15cf('0xf')]['editing']['view'][_0x15cf('0x10')];this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0x6'),_0x158b9b=>_0x158b9b[_0x15cf('0xd')](),{'priority':_0x15cf('0x7')}),this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0x17'),_0x1e8b0=>_0x1e8b0['stop'](),{'priority':_0x15cf('0x7')}),this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0xb'),_0x2fd473=>_0x2fd473['stop'](),{'priority':_0x15cf('0x7')});}[_0x15cf('0x0')](){for(const [_0x48754c,_0x2181d7]of this['editor'][_0x15cf('0x5')])_0x2181d7['affectsData']&&_0x15cf('0x4')!==_0x48754c&&_0x2181d7[_0x15cf('0xa')](_0x15cf('0x2'));this[_0x15cf('0x14')](this['editor'][_0x15cf('0xc')][_0x15cf('0xe')][_0x15cf('0x10')]);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x308992,_0x342cef){const t=_0x308992['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x342cef)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e98=['type','class','childList','attributeName','disconnect','attributes','observe'];(function(_0x544637,_0x1e98c3){const _0x185431=function(_0x19b706){while(--_0x19b706){_0x544637['push'](_0x544637['shift']());}};_0x185431(++_0x1e98c3);}(_0x1e98,0x1c6));const _0x1854=function(_0x544637,_0x1e98c3){_0x544637=_0x544637-0x0;let _0x185431=_0x1e98[_0x544637];return _0x185431;};import{throttle as _0x230b13}from'lodash-es';export default function ct(_0x36122e){const _0x392a30=_0x230b13(_0x36122e,0x1e),_0x595ed1=new MutationObserver(_0x527adb=>{for(const _0x2848c9 of _0x527adb)(_0x1854('0x6')==_0x2848c9[_0x1854('0x1')]&&_0x1854('0x2')==_0x2848c9[_0x1854('0x4')]||_0x1854('0x3')==_0x2848c9['type'])&&_0x392a30();});return{'attach'(_0x3ea022){_0x595ed1[_0x1854('0x0')](_0x3ea022,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x595ed1[_0x1854('0x5')](),_0x392a30['cancel']();}};}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5029=['\x27Last\x27\x20EEEE\x20hh:mma','string','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format'];(function(_0x7dd93e,_0x502904){const _0x46dd56=function(_0x5e4e1b){while(--_0x5e4e1b){_0x7dd93e['push'](_0x7dd93e['shift']());}};_0x46dd56(++_0x502904);}(_0x5029,0x85));const _0x46dd=function(_0x7dd93e,_0x502904){_0x7dd93e=_0x7dd93e-0x0;let _0x46dd56=_0x5029[_0x7dd93e];return _0x46dd56;};import _0xb7463c from'date-fns/format';import _0x157396 from'date-fns/parseISO';import _0x265157 from'date-fns/differenceInCalendarDays';import _0x4c1e6c from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function Q(_0x30dee3={}){if(void 0x0!==_0x30dee3['dateTimeFormat']&&'function'!=typeof _0x30dee3[_0x46dd('0x3')])throw new _0x4c1e6c(_0x46dd('0x4'));return _0x2807a8=>{const _0x19816b=_0x46dd('0x0')==typeof _0x2807a8?_0x157396(_0x2807a8):_0x2807a8,_0x569b65=new Date(),_0x29537b=_0x265157(_0x569b65,_0x19816b);return _0x30dee3[_0x46dd('0x3')]?_0x30dee3[_0x46dd('0x3')](_0x19816b):_0xb7463c(_0x19816b,0x0===_0x29537b?_0x46dd('0x2'):0x1===_0x29537b?'\x27Yesterday\x27\x20hh:mma':_0x29537b<0x7?_0x46dd('0x5'):_0x46dd('0x1'));};}
|