@ckeditor/ckeditor5-comments 32.0.0 → 33.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 +1 -1
- package/README.md +1 -1
- package/build/comments.js +5 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/el.po +79 -0
- package/package.json +4 -9
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments/ui/view/confirmmixin.js +1 -1
- package/src/comments/ui/view/confirmview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/{utils/getmarkerdomelement.js → index.js} +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- 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 +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +1 -1
- package/theme/sidebar.css +1 -1
- package/src/utils/getdatetimeformatter.js +0 -23
- package/src/utils/trim-html.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2500=['createCollection','_updateHasDirtyComment','equal','length','listenTo','some','bind','expand','isEditMode','locale','remove','_config','collapse','stopListening','maxCommentsWhenCollapsed','comments','set','CommentView','visibleViews','hasDirtyComment','destroy','_shouldCollapse','count','focus','formatDateTime','weight','commentViews','maxCommentCharsWhenCollapsed','removeComment','get','insert','_handleRemoveCommentModel','viewUid','_handleNewCommentModel','_rearrangeCollapse','editorConfig','_collapsedCommentsView','add','commentUpdated','element','from','refreshVisibleViews','render','setTemplate','_rearrangeExpand','delegate','isActive'];(function(_0x588f0b,_0x250065){const _0x525bcc=function(_0xda124a){while(--_0xda124a){_0x588f0b['push'](_0x588f0b['shift']());}};_0x525bcc(++_0x250065);}(_0x2500,0x1d8));const _0x525b=function(_0x588f0b,_0x250065){_0x588f0b=_0x588f0b-0x0;let _0x525bcc=_0x2500[_0x588f0b];return _0x525bcc;};import{View as _0x5842d2}from'ckeditor5/src/ui';import{diff as _0x44c214,Collection as _0x3a4989}from'ckeditor5/src/utils';import _0x558647 from'./collapsedcommentsview';export default class ct extends _0x5842d2{constructor(_0x218c87,_0x1c68c8,_0x137d8c){super(_0x218c87),this['set'](_0x525b('0x11'),!0x1),this[_0x525b('0xe')]('length',_0x1c68c8[_0x525b('0xd')]['length']),this['set'](_0x525b('0x2c'),!0x1),this['_model']=_0x1c68c8,this[_0x525b('0x9')]=_0x137d8c,this['commentViews']=this['createCollection'](),this[_0x525b('0x10')]=this[_0x525b('0x2d')](),this[_0x525b('0x22')]=new _0x558647(_0x218c87),this['_collapsedCommentsView'][_0x525b('0x4')](_0x525b('0x14'))['to'](this,_0x525b('0x1'),_0x37ca35=>_0x37ca35-this[_0x525b('0x9')][_0x525b('0xc')]);for(const _0x3096b5 of _0x1c68c8['comments'])this[_0x525b('0x1f')](_0x3096b5);this[_0x525b('0x2')](_0x1c68c8[_0x525b('0xd')],_0x525b('0x23'),(_0x216391,_0x113a58)=>{this['length']++,this[_0x525b('0x1f')](_0x113a58),this[_0x525b('0x27')]();}),this[_0x525b('0x2')](_0x1c68c8[_0x525b('0xd')],'remove',(_0x1eb89d,_0x1defb4)=>{this[_0x525b('0x1')]--,this[_0x525b('0x1d')](_0x1defb4),this['refreshVisibleViews']();}),this['listenTo'](_0x1c68c8,_0x525b('0x24'),()=>this[_0x525b('0x27')]()),this['on']('change:isActive',()=>this[_0x525b('0x27')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x525b('0x29')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x525b('0x10')]});}get[_0x525b('0x13')](){return this['_model'][_0x525b('0x17')]>this[_0x525b('0x9')]['maxThreadTotalWeight']&&!this[_0x525b('0x2c')]&&!this['hasDirtyComment'];}['render'](){super[_0x525b('0x28')](),this[_0x525b('0x27')]();}['focus'](){this[_0x525b('0x25')][_0x525b('0x15')]();}[_0x525b('0x12')](){this[_0x525b('0x22')][_0x525b('0x12')]();for(const _0x4df196 of this[_0x525b('0x18')])_0x4df196[_0x525b('0x12')]();super[_0x525b('0x12')]();}['refreshVisibleViews'](){this[_0x525b('0x13')]?this[_0x525b('0x20')]():this[_0x525b('0x2a')]();}[_0x525b('0x1f')](_0x153d99){const _0xa8819f=new this[(_0x525b('0x9'))][(_0x525b('0xf'))](this[_0x525b('0x7')],_0x153d99,{'maxCommentCharsWhenCollapsed':this[_0x525b('0x9')][_0x525b('0x19')],'formatDateTime':this[_0x525b('0x9')][_0x525b('0x16')],'editorConfig':this[_0x525b('0x9')][_0x525b('0x21')]});_0xa8819f[_0x525b('0x1e')]=_0x153d99['id'],_0xa8819f['delegate'](_0x525b('0x1a'))['to'](this),_0xa8819f[_0x525b('0x2b')]('updateComment')['to'](this),this[_0x525b('0x2')](_0xa8819f,'change:isEditMode',()=>this[_0x525b('0x2e')]()),this['commentViews'][_0x525b('0x23')](_0xa8819f);}['_handleRemoveCommentModel'](_0x2036f4){const _0x14dd04=this['commentViews'][_0x525b('0x8')](_0x2036f4['id']);this[_0x525b('0xb')](_0x14dd04),_0x14dd04[_0x525b('0x6')]&&this[_0x525b('0x2e')](),_0x14dd04['destroy']();}[_0x525b('0x2e')](){this[_0x525b('0x11')]=Array['from'](this[_0x525b('0x18')])[_0x525b('0x3')](_0x41a3bf=>_0x41a3bf[_0x525b('0x6')]);}['_rearrangeCollapse'](){const _0x13d590=function(_0x4121a3){const _0x451437=new _0x3a4989();for(const _0x4c9314 of _0x4121a3)_0x451437[_0x525b('0x23')](_0x4c9314);return _0x451437;}(this[_0x525b('0x18')]),_0x2dd10c=this[_0x525b('0x22')][_0x525b('0x14')];for(let _0x55a34a=0x1;_0x55a34a<=_0x2dd10c;_0x55a34a++)_0x13d590['remove'](0x1);for(const _0x15b399 of _0x13d590)_0x15b399[_0x525b('0xa')]();_0x2dd10c>0x0&&_0x13d590[_0x525b('0x23')](this['_collapsedCommentsView'],0x1),Ut(_0x44c214(Array[_0x525b('0x26')](this[_0x525b('0x10')]),Array[_0x525b('0x26')](_0x13d590)),this[_0x525b('0x10')],_0x13d590);}['_rearrangeExpand'](){Ut(_0x44c214(Array[_0x525b('0x26')](this[_0x525b('0x10')]),Array['from'](this[_0x525b('0x18')])),this[_0x525b('0x10')],this[_0x525b('0x18')]);for(const _0x898436 of this[_0x525b('0x10')])_0x898436[_0x525b('0x5')]();}}function Ut(_0x4747f4,_0x157de8,_0x131c29){let _0x151bf0=0x0;for(const _0x125f35 of _0x4747f4)switch(_0x125f35){case _0x525b('0x1c'):_0x157de8['add'](_0x131c29[_0x525b('0x1b')](_0x151bf0),_0x151bf0),_0x151bf0++;break;case'delete':_0x157de8[_0x525b('0x8')](_0x151bf0);break;case _0x525b('0x0'):_0x151bf0++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c5f=['isFocused','bindTemplate','ck-comment__input-container--active','then','ck-thread__input','value','commentInputView','focusTracker','userView','showInput','destroy','extendTemplate'];(function(_0x3bf806,_0x5c5f42){var _0x495155=function(_0x501457){while(--_0x501457){_0x3bf806['push'](_0x3bf806['shift']());}};_0x495155(++_0x5c5f42);}(_0x5c5f,0x160));var _0x4951=function(_0x3bf806,_0x5c5f42){_0x3bf806=_0x3bf806-0x0;var _0x495155=_0x5c5f[_0x3bf806];return _0x495155;};import{View as _0x64d64d}from'ckeditor5/src/ui';import _0x1c50f2 from'./commentinputview';import{UserView as _0x3e5ce2}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x64d64d{constructor(_0x420bd4,_0x3cf3cf,_0x50cf5b){super(_0x420bd4),this[_0x4951('0x2')]=new _0x1c50f2(_0x420bd4,_0x50cf5b),this[_0x4951('0x2')]['bind']('showButtons')['to'](this[_0x4951('0x2')][_0x4951('0x3')],_0x4951('0x8'),this[_0x4951('0x2')],_0x4951('0x1'),(_0x4fe662,_0x7f47ae)=>_0x4fe662||!!_0x7f47ae),this['set'](_0x4951('0x5'),!0x1),this[_0x4951('0x4')]=new _0x3e5ce2(_0x420bd4,_0x3cf3cf),this[_0x4951('0x4')][_0x4951('0x7')]({'attributes':{'class':'ck-thread__user'}}),this[_0x4951('0x2')]['extendTemplate']({'attributes':{'class':_0x4951('0x0')}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this[_0x4951('0x9')]['if'](_0x4951('0x5'),_0x4951('0xa'))]},'children':[this[_0x4951('0x4')],this['commentInputView']]});}[_0x4951('0x6')](){return this['commentInputView'][_0x4951('0x6')]()[_0x4951('0xb')](()=>super[_0x4951('0x6')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import Rt from'./basecommentthreadview';import{mix as _0x241e02}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class nt extends Rt{constructor(_0x24b0af,_0x21d8d3,_0x9c0497,_0x751fc3){super(_0x24b0af,_0x21d8d3,_0x9c0497,_0x751fc3),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x24b0af,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3fe020,_0x332fb6,_0x441b88)=>{_0x441b88||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4f3a0d,_0x43b4d6,_0x26dfbb)=>{_0x26dfbb&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0xa6a161=>{this['_bindFirstCommentView'](),_0xa6a161['off']();});}['getTemplate'](){const _0x3671ed=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x3671ed['if']('isActive','ck-thread--active'),_0x3671ed['if']('isConfirm','ck-thread--remove-confirmation'),_0x3671ed['to']('actionIndicator',_0x476ce7=>_0x476ce7?'ck-thread--'+_0x476ce7:'')],'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 _0x43167f of this['commentsListView']['commentViews'])_0x43167f['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x26e65a=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x26e65a,'actionIndicator',_0x2b70b0=>'remove'===_0x2b70b0?'remove':null),_0x26e65a['placeholder']=t('Write\x20a\x20comment...'),_0x26e65a['removeButton']['on']('execute',_0x5e245b=>{_0x5e245b['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x241e02(nt,Wt);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{mix as
|
|
23
|
+
import{mix as _0x5e4b4d}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import{UserView as It}from'ckeditor5-collaboration/src/collaboration-core';import{icons as Gt}from'ckeditor5/src/core';import Jt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class ot extends Vt{constructor(_0x1902a4,_0x25ee1e,_0x15c4f0){super(_0x1902a4,_0x25ee1e,_0x15c4f0);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x25ee1e),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new It(_0x1902a4,_0x25ee1e['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x25ee1e,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x26adf4=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x26adf4['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x26adf4['if']('isEditMode','ck-comment--edit'),_0x26adf4['to']('actionIndicator',_0x1b12b8=>_0x1b12b8?'ck-comment--'+_0x1b12b8:'')],'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':_0x26adf4['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x26adf4['to']('createdAt',_0x3b8502=>this['_config']['formatDateTime'](_0x3b8502))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x26adf4['if']('isEditMode','ck-comment__actions--hidden'),_0x26adf4['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'],_0x2e3794=new mt(this['locale']);return _0x2e3794['label']=t('Edit'),_0x2e3794['icon']=Gt['pencil'],_0x2e3794['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2e3794['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5f2b87=>!_0x5f2b87),_0x2e3794['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2e3794['on']('execute',()=>this['switchToEditMode']()),_0x2e3794;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x276fba=new mt(this['locale']);return _0x276fba['label']=t('Remove'),_0x276fba['icon']=Jt,_0x276fba['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x276fba['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x305900=>!_0x305900),_0x276fba['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x276fba['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x276fba;}['_attachActions'](_0x529253,_0x47d857){this['listenTo'](_0x529253,'mouseenter',()=>this['actionIndicator']=_0x47d857),this['listenTo'](_0x529253,'focus',()=>this['actionIndicator']=_0x47d857),this['listenTo'](_0x529253,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x529253,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x1dac03=super['_createCommentInputView']();return _0x1dac03['bind']('placeholder')['to'](this),_0x1dac03;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x5e4b4d(ot,Wt);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x27ed=['fire','locale','element','set','destroy','cancel','confirmView','isConfirm','remove','message','submit','once','render','appendChild','_removeConfirm'];(function(_0x4cb737,_0x27eda6){var _0x6dce51=function(_0x28e0ac){while(--_0x28e0ac){_0x4cb737['push'](_0x4cb737['shift']());}};_0x6dce51(++_0x27eda6);}(_0x27ed,0x1a6));var _0x6dce=function(_0x4cb737,_0x27eda6){_0x4cb737=_0x4cb737-0x0;var _0x6dce51=_0x27ed[_0x4cb737];return _0x6dce51;};import _0x5c64d9 from'./confirmview';export default{'showConfirm'(_0x13d624,_0xc0636d){return this[_0x6dce('0x4')]=new _0x5c64d9(this[_0x6dce('0xe')]),this[_0x6dce('0x4')][_0x6dce('0xa')](),this[_0x6dce('0x4')][_0x6dce('0x7')]=_0x13d624,this[_0x6dce('0x4')][_0x6dce('0x9')]('cancel',()=>{this['_removeConfirm']();}),this['confirmView'][_0x6dce('0x9')](_0x6dce('0x8'),()=>{this[_0x6dce('0xc')]();}),_0xc0636d[_0x6dce('0xb')](this[_0x6dce('0x4')][_0x6dce('0x0')]),this['registerChild'](this['confirmView']),this[_0x6dce('0x1')](_0x6dce('0x5'),!0x0),new Promise(_0xe5191d=>this['confirmView']['on'](_0x6dce('0x8'),_0xe5191d));},'cancelConfirm'(){this[_0x6dce('0x5')]&&this[_0x6dce('0x4')][_0x6dce('0xd')](_0x6dce('0x3'));},'_removeConfirm'(){this['confirmView']['element'][_0x6dce('0x6')](),this['deregisterChild'](this[_0x6dce('0x4')]),this[_0x6dce('0x5')]=!0x1,this[_0x6dce('0x4')][_0x6dce('0x2')](),delete this[_0x6dce('0x4')];}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
import{View as ht,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Gt}from'ckeditor5/src/core';export default class ii extends ht{constructor(_0x3b5fa7){super(_0x3b5fa7);const {t:t}=_0x3b5fa7,_0x553810=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3b5fa7,t('Yes'),Gt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3b5fa7,t('No'),Gt['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':_0x553810['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x20ca34,_0x37b9ba,_0x2e9b67,_0x58a11c){const _0x55b52d=new mt(_0x20ca34);return _0x55b52d['label']=_0x37b9ba,_0x55b52d['icon']=_0x2e9b67,_0x55b52d['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x58a11c}}),_0x55b52d['on']('execute',()=>this['fire'](_0x58a11c)),_0x55b52d;}}
|
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2967=['requires','pluginName','Comments'];(function(_0x735e60,_0x2967b6){var _0x2d6222=function(_0x367482){while(--_0x367482){_0x735e60['push'](_0x735e60['shift']());}};_0x2d6222(++_0x2967b6);}(_0x2967,0x82));var _0x2d62=function(_0x735e60,_0x2967b6){_0x735e60=_0x735e60-0x0;var _0x2d6222=_0x2967[_0x735e60];return _0x2d6222;};import{Plugin as _0x157fae}from'ckeditor5/src/core';import _0x471551 from'./comments/commentsrepository';import _0x2608e2 from'./comments/commentsediting';import _0x5bcd3a from'./comments/commentsui';import _0x1df1fa from'./commentsonly';import _0x30d62b from'./annotations/widesidebar';import _0x31482b from'./annotations/narrowsidebar';import _0x528d98 from'./annotations/inlineannotations';export default class c extends _0x157fae{static get[_0x2d62('0x2')](){return[_0x471551,_0x2608e2,_0x5bcd3a,_0x1df1fa,_0x30d62b,_0x31482b,_0x528d98];}static get[_0x2d62('0x0')](){return _0x2d62('0x1');}}
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21a9=['_enableCommentsOnlyMode','get','DragDrop','highest','cut','plugins','commands','commentsOnlyMode','stop','has','forceDisabled','affectsData','stopListening','requires','delete','commentsOnly','isEnabled','listenTo','document','view','clearForceDisabled','editing','pluginName','change:isEnabled','clipboardInput','editor','set','addCommentThread'];(function(_0x5385b4,_0x21a9c8){const _0x5cf9bd=function(_0x449c7f){while(--_0x449c7f){_0x5385b4['push'](_0x5385b4['shift']());}};_0x5cf9bd(++_0x21a9c8);}(_0x21a9,0x1c3));const _0x5cf9=function(_0x5385b4,_0x21a9c8){_0x5385b4=_0x5385b4-0x0;let _0x5cf9bd=_0x21a9[_0x5385b4];return _0x5cf9bd;};import{Plugin as _0xa3ede1}from'ckeditor5/src/core';import _0x43bf87 from'./comments/commentsediting';export default class e extends _0xa3ede1{static get[_0x5cf9('0x13')](){return'CommentsOnly';}static get[_0x5cf9('0xa')](){return[_0x43bf87];}constructor(_0x1d2ab5){super(_0x1d2ab5),this[_0x5cf9('0x17')]('isEnabled',null),this['on'](_0x5cf9('0x14'),(_0x2275b9,_0x43c19d,_0x64fd8b)=>{_0x64fd8b?this[_0x5cf9('0x19')]():this['_disableCommentsOnlyMode']();});}['afterInit'](){null===this[_0x5cf9('0xd')]&&(this['isEnabled']=!!this[_0x5cf9('0x16')]['config'][_0x5cf9('0x1a')](_0x5cf9('0xc')));}[_0x5cf9('0x19')](){for(const [_0x10c387,_0x129b92]of this['editor'][_0x5cf9('0x3')])_0x129b92['affectsData']&&_0x5cf9('0x18')!==_0x10c387&&_0x129b92[_0x5cf9('0x7')](_0x5cf9('0x4'));this[_0x5cf9('0x16')][_0x5cf9('0x2')][_0x5cf9('0x6')](_0x5cf9('0x1b'))&&this[_0x5cf9('0x16')][_0x5cf9('0x2')][_0x5cf9('0x1a')](_0x5cf9('0x1b'))[_0x5cf9('0x7')]('commentsOnlyMode');const _0x244ebe=this[_0x5cf9('0x16')]['editing'][_0x5cf9('0x10')][_0x5cf9('0xf')];this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0x1'),_0x3b0354=>_0x3b0354[_0x5cf9('0x5')](),{'priority':'highest'}),this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0x15'),_0x51d6f8=>_0x51d6f8[_0x5cf9('0x5')](),{'priority':'highest'}),this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0xb'),_0x92681f=>_0x92681f['stop'](),{'priority':_0x5cf9('0x0')});}['_disableCommentsOnlyMode'](){for(const [_0x25f677,_0x538b79]of this[_0x5cf9('0x16')][_0x5cf9('0x3')])_0x538b79[_0x5cf9('0x8')]&&'addCommentThread'!==_0x25f677&&_0x538b79[_0x5cf9('0x11')]('commentsOnlyMode');this[_0x5cf9('0x9')](this[_0x5cf9('0x16')][_0x5cf9('0x12')]['view'][_0x5cf9('0xf')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
export{default as Comments}from'./comments';export{default as CommentsOnly}from'./comments';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x46e7b4,_0x1b566a){const t=_0x46e7b4['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x1b566a)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x377a=['observe','cancel','type','attributes','attributeName'];(function(_0x1ed5c7,_0x377a2d){const _0x3094ea=function(_0x14bf22){while(--_0x14bf22){_0x1ed5c7['push'](_0x1ed5c7['shift']());}};_0x3094ea(++_0x377a2d);}(_0x377a,0xe5));const _0x3094=function(_0x1ed5c7,_0x377a2d){_0x1ed5c7=_0x1ed5c7-0x0;let _0x3094ea=_0x377a[_0x1ed5c7];return _0x3094ea;};import{throttle as _0x584edc}from'lodash-es';export default function ut(_0x4025b2){const _0x35c76f=_0x584edc(_0x4025b2,0x1e),_0x2a4316=new MutationObserver(_0x2ee4a2=>{for(const _0x3fc623 of _0x2ee4a2)(_0x3094('0x4')==_0x3fc623[_0x3094('0x3')]&&'class'==_0x3fc623[_0x3094('0x0')]||'childList'==_0x3fc623[_0x3094('0x3')])&&_0x35c76f();});return{'attach'(_0x51096f){_0x2a4316[_0x3094('0x1')](_0x51096f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x2a4316['disconnect'](),_0x35c76f[_0x3094('0x2')]();}};}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/* Common styles for inline comment and inline suggestion. */
|
package/theme/annotation.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/* Common styles for single comment and single suggestion. */
|
package/theme/comment.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
:root {
|
package/theme/commentinput.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
.ck .ck-comment__input-container {
|
package/theme/commentmarker.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
:root {
|
package/theme/commentthread.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
:root {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
5
5
|
all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
6
6
|
|
|
7
|
-
Copyright (c) 2003-
|
|
7
|
+
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
5
5
|
all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
6
6
|
|
|
7
|
-
Copyright (c) 2003-
|
|
7
|
+
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
5
5
|
all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
6
6
|
|
|
7
|
-
Copyright (c) 2003-
|
|
7
|
+
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
package/theme/sidebar-narrow.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
:root {
|
package/theme/sidebar.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
:root {
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
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'));};}
|
package/src/utils/trim-html.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
const _0x1c71=['indexOf','push','split','slice','pop','substring','match','length','join','startsWith','replace'];(function(_0x223938,_0x1c712a){const _0x535f87=function(_0x505c7a){while(--_0x505c7a){_0x223938['push'](_0x223938['shift']());}};_0x535f87(++_0x1c712a);}(_0x1c71,0xf3));const _0x535f=function(_0x223938,_0x1c712a){_0x223938=_0x223938-0x0;let _0x535f87=_0x1c71[_0x223938];return _0x535f87;};export default function nn(_0x493643,{limit:_0x3c3d5e,suffix:_0x56369c='...'}){const _0x321e04=[];let _0x2b466d=0x0;const _0x3ce519=_0x493643[_0x535f('0x9')](/</g,'\x0a<')[_0x535f('0x9')](/>/g,'>\x0a')[_0x535f('0x9')](/^\n/g,'')[_0x535f('0x9')](/\n$/g,'')[_0x535f('0x1')]('\x0a');for(let _0x343a9b=0x0;_0x343a9b<_0x3ce519[_0x535f('0x6')];_0x343a9b++){let _0x4fad0d=_0x3ce519[_0x343a9b];const _0x42d1aa=tn(_0x4fad0d);if(_0x4fad0d[_0x535f('0x8')]('<')){if(_0x2b466d>=_0x3c3d5e){const _0x171217=_0x4fad0d[_0x535f('0x5')](/[a-zA-Z]+/)[0x0];_0x4fad0d['startsWith']('</')?(_0x321e04[_0x535f('0x6')]&&(_0x4fad0d=''),_0x321e04[_0x535f('0x3')]()):(_0x321e04[_0x535f('0x0')](_0x171217),_0x4fad0d='');}}else{if(_0x2b466d>=_0x3c3d5e)_0x4fad0d='';else{if(_0x2b466d+_0x42d1aa['length']>=_0x3c3d5e){let _0x49c6c0=_0x3c3d5e-_0x2b466d;if('\x20'===_0x42d1aa[_0x49c6c0-0x1])_0x49c6c0--;else{const _0x442cb7=_0x42d1aa[_0x535f('0x2')](_0x49c6c0)[_0x535f('0xa')]('\x20');-0x1!==_0x442cb7?_0x49c6c0+=_0x442cb7:_0x49c6c0=_0x4fad0d[_0x535f('0x6')];}_0x4fad0d=_0x42d1aa['slice'](0x0,_0x49c6c0)[_0x535f('0x7')]('')+_0x56369c,_0x2b466d=_0x3c3d5e;}else _0x2b466d+=_0x42d1aa[_0x535f('0x6')];}}_0x3ce519[_0x343a9b]=_0x4fad0d;}return _0x3ce519[_0x535f('0x7')]('\x0a')[_0x535f('0x9')](/\n/g,'');}function tn(_0x48e28b){const _0x506f3a=[];for(let _0x5df431=0x0;_0x5df431<_0x48e28b[_0x535f('0x6')];_0x5df431++){const _0x235e66=_0x48e28b[_0x535f('0x4')](_0x5df431)['match'](/^&[a-z0-9#]+;/);if(_0x235e66){const _0x3598c2=_0x235e66[0x0];_0x506f3a[_0x535f('0x0')](_0x3598c2),_0x5df431+=_0x3598c2[_0x535f('0x6')]-0x1;}else _0x506f3a[_0x535f('0x0')](_0x48e28b[_0x5df431]);}return _0x506f3a;}
|