@ckeditor/ckeditor5-comments 31.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 +2 -2
- package/README.md +2 -2
- 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/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/el.po +79 -0
- 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 +4 -9
- 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/getmarkerdomelement.js → index.js} +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.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 +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
|
@@ -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
|
|
23
|
+
import{View as ht}from'ckeditor5/src/ui';export default class Nt extends ht{constructor(_0x2c47db){super(_0x2c47db);const {t:t}=_0x2c47db,_0x4253db=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4253db['to']('count',_0x4bb268=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4bb268))}]});}}
|
|
@@ -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 _0x57c2=['innerHTML','ck-annotation__content','element','setTemplate','change:content','content','ck-comment__content','render'];(function(_0x22f568,_0x57c2d7){var _0x3a9c38=function(_0x365fbd){while(--_0x365fbd){_0x22f568['push'](_0x22f568['shift']());}};_0x3a9c38(++_0x57c2d7);}(_0x57c2,0xf6));var _0x3a9c=function(_0x22f568,_0x57c2d7){_0x22f568=_0x22f568-0x0;var _0x3a9c38=_0x57c2[_0x22f568];return _0x3a9c38;};import{View as _0x1df3a4}from'ckeditor5/src/ui';export default class Et extends _0x1df3a4{constructor(_0x240cca){super(_0x240cca),this['set'](_0x3a9c('0x7'),''),this[_0x3a9c('0x5')]({'tag':'div','attributes':{'class':[_0x3a9c('0x0'),_0x3a9c('0x3')]}});}['render'](){super[_0x3a9c('0x1')](),this['on'](_0x3a9c('0x6'),(_0x293978,_0x4ffe5b,_0x1bf013)=>{this[_0x3a9c('0x4')][_0x3a9c('0x2')]=_0x1bf013;}),this[_0x3a9c('0x4')][_0x3a9c('0x2')]=this[_0x3a9c('0x7')];}}
|
|
@@ -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
|
|
23
|
+
import{View as ht,ViewCollection as Bt,FocusCycler as St,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x183981,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Gt}from'ckeditor5/src/core';import qt from'../commenteditor/commenteditor';export default class Tt extends ht{constructor(_0x2e88a5,_0x264e34={}){super(_0x2e88a5);const {t:t}=_0x2e88a5;this['editor']=new qt(_0x264e34),this['keystrokes']=new pt(),this['focusTracker']=new _0x183981(),this['set']('value',_0x264e34['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',(_0x1cb92c,_0x4d1c4c)=>{this['cancelButtonView']['fire']('execute'),_0x4d1c4c();}),this['on']('submit',(_0x205e8f,_0x960e44)=>{_0x960e44['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'},[_0x960e44['length'],0xfde8])),_0x205e8f['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x1952f7,element:_0x163d84}=this;this['keystrokes']['listenTo'](_0x163d84),this['focusTracker']['add'](_0x163d84),this['_editorCreationPromise']=_0x1952f7['create']()['then'](()=>{_0x163d84['insertBefore'](_0x1952f7['ui']['element'],_0x163d84['firstChild']),_0x1952f7['model']['document']['on']('change',()=>this['value']=_0x1952f7['getData']()),_0x1952f7['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x1952f7),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 _0x2da0ed=new mt(this['locale']),{t:t}=this['locale'];return _0x2da0ed['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2da0ed['label']=t('Submit'),_0x2da0ed['icon']=Gt['check'],_0x2da0ed['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2da0ed['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2888d7,_0x7d3a92)=>!_0x7d3a92&&!!_0x2888d7['trim']()),_0x2da0ed;}['_createCancelButton'](){const _0x1b21b8=new mt(this['locale']),{t:t}=this['locale'];return _0x1b21b8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1b21b8['label']=t('Cancel'),_0x1b21b8['icon']=Gt['cancel'],_0x1b21b8['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1b21b8;}['_initializeFocusCycling'](_0x3e83fd){const _0x28c33b=this['focusTracker'],_0x25a881=new Bt();[_0x3e83fd['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x26d4c9=>{_0x25a881['add'](_0x26d4c9),_0x28c33b['add'](_0x26d4c9['element']);});const _0x4cdec5=new St({'focusables':_0x25a881,'focusTracker':_0x28c33b});this['keystrokes']['set']('tab',(_0x3b1a5f,_0x6e0ca0)=>{_0x4cdec5['focusNext'](),_0x6e0ca0();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x445987,_0x16f99c)=>{_0x4cdec5['focusPrevious'](),_0x16f99c();},{'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 _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++;}}
|
|
@@ -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 _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')]());}}
|
|
@@ -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
|
|
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);
|
|
@@ -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 _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);
|
|
@@ -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 _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')];}};
|
|
@@ -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
|
|
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
|
@@ -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 _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
|
@@ -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 _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')]);}}
|
|
@@ -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
|
-
|
|
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';
|
|
@@ -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(_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'});}
|
|
@@ -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 _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 - 2021, CKSource - Frederico Knabben. 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 _0x5ed7=['invalid-date-time-format','dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma','function','\x27Today\x27\x20hh:mma'];(function(_0x4bcf8d,_0x5ed7af){const _0x505b48=function(_0xc36bcb){while(--_0xc36bcb){_0x4bcf8d['push'](_0x4bcf8d['shift']());}};_0x505b48(++_0x5ed7af);}(_0x5ed7,0x1a2));const _0x505b=function(_0x4bcf8d,_0x5ed7af){_0x4bcf8d=_0x4bcf8d-0x0;let _0x505b48=_0x5ed7[_0x4bcf8d];return _0x505b48;};import _0x57f122 from'date-fns/format';import _0x5eb0cd from'date-fns/parseISO';import _0x506666 from'date-fns/differenceInCalendarDays';import _0x6b54dc from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function J(_0x2a1ff0={}){if(void 0x0!==_0x2a1ff0[_0x505b('0x3')]&&_0x505b('0x0')!=typeof _0x2a1ff0[_0x505b('0x3')])throw new _0x6b54dc(_0x505b('0x2'));return _0x1b01b4=>{const _0x22873b='string'==typeof _0x1b01b4?_0x5eb0cd(_0x1b01b4):_0x1b01b4,_0x430fa9=new Date(),_0x18fa01=_0x506666(_0x430fa9,_0x22873b);return _0x2a1ff0[_0x505b('0x3')]?_0x2a1ff0[_0x505b('0x3')](_0x22873b):_0x57f122(_0x22873b,0x0===_0x18fa01?_0x505b('0x1'):0x1===_0x18fa01?'\x27Yesterday\x27\x20hh:mma':_0x18fa01<0x7?_0x505b('0x4'):'MM-dd-yyyy\x20hh:mma');};}
|
package/src/utils/trim-html.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. 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 _0x1f36=['slice','join','pop','replace','push','startsWith','length','match','indexOf','substring'];(function(_0x10f697,_0x1f36b8){const _0x5433d3=function(_0x119035){while(--_0x119035){_0x10f697['push'](_0x10f697['shift']());}};_0x5433d3(++_0x1f36b8);}(_0x1f36,0xab));const _0x5433=function(_0x10f697,_0x1f36b8){_0x10f697=_0x10f697-0x0;let _0x5433d3=_0x1f36[_0x10f697];return _0x5433d3;};export default function nn(_0x59488e,{limit:_0x5f478e,suffix:_0x199053='...'}){const _0x156d95=[];let _0x27c7cd=0x0;const _0x50c39f=_0x59488e['replace'](/</g,'\x0a<')[_0x5433('0x2')](/>/g,'>\x0a')[_0x5433('0x2')](/^\n/g,'')[_0x5433('0x2')](/\n$/g,'')['split']('\x0a');for(let _0x2623bc=0x0;_0x2623bc<_0x50c39f[_0x5433('0x5')];_0x2623bc++){let _0x431f5f=_0x50c39f[_0x2623bc];const _0x30fa99=tn(_0x431f5f);if(_0x431f5f[_0x5433('0x4')]('<')){if(_0x27c7cd>=_0x5f478e){const _0x3cb775=_0x431f5f[_0x5433('0x6')](/[a-zA-Z]+/)[0x0];_0x431f5f[_0x5433('0x4')]('</')?(_0x156d95[_0x5433('0x5')]&&(_0x431f5f=''),_0x156d95[_0x5433('0x1')]()):(_0x156d95['push'](_0x3cb775),_0x431f5f='');}}else{if(_0x27c7cd>=_0x5f478e)_0x431f5f='';else{if(_0x27c7cd+_0x30fa99['length']>=_0x5f478e){let _0x40285d=_0x5f478e-_0x27c7cd;if('\x20'===_0x30fa99[_0x40285d-0x1])_0x40285d--;else{const _0x2c0aa0=_0x30fa99[_0x5433('0x9')](_0x40285d)[_0x5433('0x7')]('\x20');-0x1!==_0x2c0aa0?_0x40285d+=_0x2c0aa0:_0x40285d=_0x431f5f['length'];}_0x431f5f=_0x30fa99[_0x5433('0x9')](0x0,_0x40285d)[_0x5433('0x0')]('')+_0x199053,_0x27c7cd=_0x5f478e;}else _0x27c7cd+=_0x30fa99[_0x5433('0x5')];}}_0x50c39f[_0x2623bc]=_0x431f5f;}return _0x50c39f[_0x5433('0x0')]('\x0a')[_0x5433('0x2')](/\n/g,'');}function tn(_0x21a7c3){const _0x1cbf43=[];for(let _0x39ec61=0x0;_0x39ec61<_0x21a7c3[_0x5433('0x5')];_0x39ec61++){const _0x155bd2=_0x21a7c3[_0x5433('0x8')](_0x39ec61)['match'](/^&[a-z0-9#]+;/);if(_0x155bd2){const _0x1af5d3=_0x155bd2[0x0];_0x1cbf43[_0x5433('0x3')](_0x1af5d3),_0x39ec61+=_0x1af5d3[_0x5433('0x5')]-0x1;}else _0x1cbf43['push'](_0x21a7c3[_0x39ec61]);}return _0x1cbf43;}
|