@ckeditor/ckeditor5-comments 35.2.1 → 35.3.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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +4 -1
- package/lang/translations/af.po +12 -0
- package/lang/translations/ar.po +12 -0
- package/lang/translations/bg.po +12 -0
- package/lang/translations/bn.po +12 -0
- package/lang/translations/bs.po +12 -0
- package/lang/translations/ca.po +12 -0
- package/lang/translations/cs.po +12 -0
- package/lang/translations/da.po +12 -0
- package/lang/translations/de-ch.po +12 -0
- package/lang/translations/de.po +12 -0
- package/lang/translations/el.po +12 -0
- package/lang/translations/en-au.po +12 -0
- package/lang/translations/en.po +12 -0
- package/lang/translations/es-co.po +12 -0
- package/lang/translations/es.po +12 -0
- package/lang/translations/et.po +12 -0
- package/lang/translations/fa.po +12 -0
- package/lang/translations/fi.po +12 -0
- package/lang/translations/fr.po +12 -0
- package/lang/translations/gl.po +12 -0
- package/lang/translations/he.po +12 -0
- package/lang/translations/hi.po +12 -0
- package/lang/translations/hr.po +12 -0
- package/lang/translations/hu.po +12 -0
- package/lang/translations/id.po +12 -0
- package/lang/translations/it.po +12 -0
- package/lang/translations/ja.po +12 -0
- package/lang/translations/jv.po +12 -0
- package/lang/translations/ko.po +12 -0
- package/lang/translations/lt.po +12 -0
- package/lang/translations/lv.po +12 -0
- package/lang/translations/ms.po +12 -0
- package/lang/translations/nl.po +12 -0
- package/lang/translations/no.po +12 -0
- package/lang/translations/pl.po +12 -0
- package/lang/translations/pt-br.po +12 -0
- package/lang/translations/pt.po +12 -0
- package/lang/translations/ro.po +12 -0
- package/lang/translations/ru.po +12 -0
- package/lang/translations/sk.po +12 -0
- package/lang/translations/sr-latn.po +12 -0
- package/lang/translations/sr.po +12 -0
- package/lang/translations/sv.po +12 -0
- package/lang/translations/th.po +12 -0
- package/lang/translations/tk.po +12 -0
- package/lang/translations/tr.po +12 -0
- package/lang/translations/tt.po +12 -0
- package/lang/translations/ug.po +12 -0
- package/lang/translations/uk.po +12 -0
- package/lang/translations/ur.po +12 -0
- package/lang/translations/vi.po +12 -0
- package/lang/translations/zh-cn.po +12 -0
- package/lang/translations/zh.po +12 -0
- package/package.json +3 -3
- 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/integrations/importword.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.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x345b=['value','isEditMode','add','locale','fire','destroy','isCollapsed','_createCommentContentView','_model','remove','collapse','bind','set','get','focus','_createCommentInputView','createCollection','editorConfig','isReadOnly','initialData','visibleView','createEditor','switchToEditMode','content','_config','switchToDisplayMode','cancel','element'];(function(_0x53e2df,_0x345bd6){const _0x5a02dd=function(_0x340618){while(--_0x340618){_0x53e2df['push'](_0x53e2df['shift']());}};_0x5a02dd(++_0x345bd6);}(_0x345b,0x1c4));const _0x5a02=function(_0x53e2df,_0x345bd6){_0x53e2df=_0x53e2df-0x0;let _0x5a02dd=_0x345b[_0x53e2df];return _0x5a02dd;};import{View as _0x272c6e}from'ckeditor5/src/ui';import{trimHtml as _0x4b0f79}from'ckeditor5-collaboration/src/collaboration-core';import _0x1554c9 from'./commentcontentview';import _0x158ec9 from'./commentinputview';export default class St extends _0x272c6e{constructor(_0x529480,_0xb0dc66,_0x3c91ee){super(_0x529480),this['_model']=_0xb0dc66,this[_0x5a02('0x14')]=_0x3c91ee,this[_0x5a02('0x8')](_0x5a02('0x19'),!0x1),this[_0x5a02('0x8')](_0x5a02('0x2'),!0x0),this[_0x5a02('0x10')]=this[_0x5a02('0xc')](),this[_0x5a02('0x10')]['add'](this[_0x5a02('0x3')]());}['expand'](){this['isCollapsed']=!0x1;}[_0x5a02('0x6')](){this[_0x5a02('0x19')]||(this[_0x5a02('0x2')]=!0x0);}['focus'](){this[_0x5a02('0x17')][_0x5a02('0xa')]();}async[_0x5a02('0x1')](){await this[_0x5a02('0x10')][_0x5a02('0x9')](0x0)['destroy'](),super[_0x5a02('0x1')]();}[_0x5a02('0x12')](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView'][_0x5a02('0x5')](0x0)[_0x5a02('0x1')](),this[_0x5a02('0x10')][_0x5a02('0x1a')](this[_0x5a02('0xb')]()));}[_0x5a02('0x15')](){this['isEditMode']&&(this[_0x5a02('0x19')]=!0x1,this[_0x5a02('0x10')][_0x5a02('0x5')](0x0)['destroy'](),this[_0x5a02('0x10')][_0x5a02('0x1a')](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x491649=new _0x1554c9(this[_0x5a02('0x1b')]);return _0x491649['bind'](_0x5a02('0x13'))['to'](this[_0x5a02('0x4')],_0x5a02('0x13'),this,_0x5a02('0x2'),(_0x11c481,_0x2e3f20)=>_0x2e3f20?_0x4b0f79(_0x11c481,{'limit':this[_0x5a02('0x14')]['maxCommentCharsWhenCollapsed']}):_0x11c481),_0x491649;}[_0x5a02('0xb')](){this[_0x5a02('0x14')]['editorConfig']||(this['_config'][_0x5a02('0xd')]={}),this['_config'][_0x5a02('0xd')][_0x5a02('0xf')]=this[_0x5a02('0x4')][_0x5a02('0x13')];const _0x13bb38=new _0x158ec9(this[_0x5a02('0x1b')],this[_0x5a02('0x14')][_0x5a02('0xd')]);return _0x13bb38[_0x5a02('0x18')]=this[_0x5a02('0x4')][_0x5a02('0x13')],_0x13bb38[_0x5a02('0x7')]('disabledSubmit')['to'](this[_0x5a02('0x4')],_0x5a02('0xe')),_0x13bb38['on']('submit',(_0x417aa0,_0x19b59d)=>{this[_0x5a02('0x0')]('updateComment',this[_0x5a02('0x4')]['id'],_0x19b59d),this[_0x5a02('0x15')](),this[_0x5a02('0xa')]();}),_0x13bb38['on'](_0x5a02('0x16'),()=>{this['switchToDisplayMode'](),this[_0x5a02('0xa')]();}),_0x13bb38['once']('editorReady',()=>{_0x13bb38[_0x5a02('0xa')]();}),_0x13bb38[_0x5a02('0x11')](),_0x13bb38;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6200=['set','bindTemplate','count','NUMBER_OF_COMMENTS'];(function(_0x36a845,_0x62003f){const _0x45c0d4=function(_0x36e1eb){while(--_0x36e1eb){_0x36a845['push'](_0x36a845['shift']());}};_0x45c0d4(++_0x62003f);}(_0x6200,0x149));const _0x45c0=function(_0x36a845,_0x62003f){_0x36a845=_0x36a845-0x0;let _0x45c0d4=_0x6200[_0x36a845];return _0x45c0d4;};import{View as _0xa275c1}from'ckeditor5/src/ui';import{getTranslation as _0x9b89c1}from'../../../utils/common-translations';export default class Nt extends _0xa275c1{constructor(_0x2c2b9e){super(_0x2c2b9e);const _0x12f9c6=this[_0x45c0('0x0')];this[_0x45c0('0x3')](_0x45c0('0x1')),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x12f9c6['to']('count',_0x5e2a65=>_0x9b89c1(_0x2c2b9e,_0x45c0('0x2'),_0x5e2a65))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x22be=['content','ck-annotation__content','change:content','innerHTML','set','setTemplate','render','ck-comment__content','element'];(function(_0x1b1fe6,_0x22be54){var _0x2387e1=function(_0x264771){while(--_0x264771){_0x1b1fe6['push'](_0x1b1fe6['shift']());}};_0x2387e1(++_0x22be54);}(_0x22be,0xd6));var _0x2387=function(_0x1b1fe6,_0x22be54){_0x1b1fe6=_0x1b1fe6-0x0;var _0x2387e1=_0x22be[_0x1b1fe6];return _0x2387e1;};import{View as _0x348ec9}from'ckeditor5/src/ui';export default class Et extends _0x348ec9{constructor(_0x211241){super(_0x211241),this[_0x2387('0x6')](_0x2387('0x2'),''),this[_0x2387('0x7')]({'tag':'div','attributes':{'class':[_0x2387('0x0'),_0x2387('0x3')]}});}[_0x2387('0x8')](){super[_0x2387('0x8')](),this['on'](_0x2387('0x4'),(_0x1afd65,_0x161921,_0x4ed49f)=>{this[_0x2387('0x1')]['innerHTML']=_0x4ed49f;}),this[_0x2387('0x1')][_0x2387('0x5')]=this[_0x2387('0x2')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x354d=['_editorCreationPromise','model','destroy','insertBefore','createEditor','editor','placeholder','focusNext','TOO_LONG_COMMENT_ALERT','ck-comment__input-actions--submit','isEnabled','extendTemplate','submitButtonView','_isDestroyed','setData','_createSubmitButton','label','then','value','Esc','set','tab','focusTracker','add','_initializeFocusCycling','_createCancelButton','fire','div','disabledSubmit','stop','cancelButtonView','cancel','showButtons','bind','ck-comment__input-wrapper','forEach','render','submit','focus','view','Reply...','initialData','keystrokes','length','icon','element','change','editorReady','ck-comment__input-actions--active','bindTemplate','_editorConfig','low','execute','ck-comment__input-actions--cancel'];(function(_0x58c40d,_0x354d6a){const _0x2c4f27=function(_0x196314){while(--_0x196314){_0x58c40d['push'](_0x58c40d['shift']());}};_0x2c4f27(++_0x354d6a);}(_0x354d,0x1d9));const _0x2c4f=function(_0x58c40d,_0x354d6a){_0x58c40d=_0x58c40d-0x0;let _0x2c4f27=_0x354d[_0x58c40d];return _0x2c4f27;};import{View as _0x9ab1d8,ViewCollection as _0x2afe00,FocusCycler as _0x34f251,ButtonView as _0x1f1a43}from'ckeditor5/src/ui';import{FocusTracker as _0x24739f,KeystrokeHandler as _0x25ab13}from'ckeditor5/src/utils';import{icons as _0x3e1bf9}from'ckeditor5/src/core';import _0x1eb332 from'../commenteditor/commenteditor';import{getTranslation as _0x21df32}from'../../../utils/common-translations';export default class Tt extends _0x9ab1d8{constructor(_0x46b3e3,_0x207159={}){super(_0x46b3e3),this[_0x2c4f('0x12')]=null,this[_0x2c4f('0x9')]=_0x207159,this[_0x2c4f('0x1')]=new _0x25ab13(),this[_0x2c4f('0x23')]=new _0x24739f(),this['set'](_0x2c4f('0x1f'),_0x207159[_0x2c4f('0x0')]||''),this[_0x2c4f('0x21')](_0x2c4f('0x29'),!0x1),this[_0x2c4f('0x21')](_0x2c4f('0x2d'),!0x0),this[_0x2c4f('0x21')](_0x2c4f('0x13'),_0x21df32(_0x46b3e3,_0x2c4f('0x35'))),this[_0x2c4f('0x19')]=this['_createSubmitButton'](),this['cancelButtonView']=this[_0x2c4f('0x26')](),this['setTemplate']({'tag':_0x2c4f('0x28'),'attributes':{'class':[_0x2c4f('0x2f')]},'children':[{'tag':_0x2c4f('0x28'),'attributes':{'class':['ck-comment__input-actions',this[_0x2c4f('0x8')]['if'](_0x2c4f('0x2d'),_0x2c4f('0x7'))]},'children':[this[_0x2c4f('0x19')],this[_0x2c4f('0x2b')]]}]}),this[_0x2c4f('0x1')][_0x2c4f('0x21')](_0x2c4f('0x20'),(_0x1c67bc,_0x182867)=>{this[_0x2c4f('0x2b')][_0x2c4f('0x27')](_0x2c4f('0xb')),_0x182867();}),this['on'](_0x2c4f('0x32'),(_0x24c6da,_0x4874c8)=>{_0x4874c8[_0x2c4f('0x2')]>0xfde8?(alert(_0x21df32(_0x46b3e3,_0x2c4f('0x15'),[_0x4874c8[_0x2c4f('0x2')],0xfde8])),_0x24c6da[_0x2c4f('0x2a')]()):this[_0x2c4f('0x12')][_0x2c4f('0x1b')]('');},{'priority':'high'});}[_0x2c4f('0x31')](){super[_0x2c4f('0x31')](),this['keystrokes']['listenTo'](this[_0x2c4f('0x4')]),this[_0x2c4f('0x23')][_0x2c4f('0x24')](this['element']);}[_0x2c4f('0x11')](){return this[_0x2c4f('0x12')]||(this[_0x2c4f('0x12')]=new _0x1eb332(this[_0x2c4f('0x9')]),this['_editorCreationPromise']=this[_0x2c4f('0x12')]['create']()[_0x2c4f('0x1e')](()=>{this['_isDestroyed']||(this[_0x2c4f('0x4')][_0x2c4f('0x10')](this['editor']['ui'][_0x2c4f('0x4')],this[_0x2c4f('0x4')]['firstChild']),this[_0x2c4f('0x12')][_0x2c4f('0xe')]['document']['on'](_0x2c4f('0x5'),()=>this[_0x2c4f('0x1f')]=this['editor']['getData']()),this[_0x2c4f('0x12')][_0x2c4f('0x2e')](_0x2c4f('0x13'))['to'](this),this[_0x2c4f('0x25')](this[_0x2c4f('0x12')]),this[_0x2c4f('0x27')](_0x2c4f('0x6')));})),this[_0x2c4f('0xd')];}['focus'](){this['editor']&&this['editor'][_0x2c4f('0x33')]();}async[_0x2c4f('0xf')](){this[_0x2c4f('0x1a')]||(this[_0x2c4f('0x1a')]=!0x0,this['editor']&&(await this[_0x2c4f('0xd')],await this[_0x2c4f('0x12')][_0x2c4f('0xf')]()),await super['destroy']());}[_0x2c4f('0x1c')](){const {locale:_0x25bf37}=this,_0x1dc8c7=new _0x1f1a43(_0x25bf37);return _0x1dc8c7[_0x2c4f('0x18')]({'attributes':{'class':[_0x2c4f('0x16')]}}),_0x1dc8c7['label']=_0x21df32(_0x25bf37,'Submit'),_0x1dc8c7['icon']=_0x3e1bf9['check'],_0x1dc8c7['on'](_0x2c4f('0xb'),()=>{this[_0x2c4f('0x27')](_0x2c4f('0x32'),this[_0x2c4f('0x1f')]);}),_0x1dc8c7[_0x2c4f('0x2e')](_0x2c4f('0x17'))['to'](this,_0x2c4f('0x1f'),this,'disabledSubmit',(_0x139004,_0xef87a9)=>!_0xef87a9&&!!_0x139004['trim']()),_0x1dc8c7;}['_createCancelButton'](){const {locale:_0x1fe643}=this,_0x54ba64=new _0x1f1a43(_0x1fe643);return _0x54ba64[_0x2c4f('0x18')]({'attributes':{'class':[_0x2c4f('0xc')]}}),_0x54ba64[_0x2c4f('0x1d')]=_0x21df32(_0x1fe643,'Cancel'),_0x54ba64[_0x2c4f('0x3')]=_0x3e1bf9[_0x2c4f('0x2c')],_0x54ba64['on'](_0x2c4f('0xb'),()=>{this[_0x2c4f('0x12')][_0x2c4f('0x1b')](''),this['fire'](_0x2c4f('0x2c'));}),_0x54ba64;}[_0x2c4f('0x25')](_0xb25cea){const _0x10d23c=this[_0x2c4f('0x23')],_0x99a17e=new _0x2afe00();[_0xb25cea['ui'][_0x2c4f('0x34')],this['submitButtonView'],this['cancelButtonView']][_0x2c4f('0x30')](_0x47c83c=>{_0x99a17e[_0x2c4f('0x24')](_0x47c83c),_0x10d23c[_0x2c4f('0x24')](_0x47c83c[_0x2c4f('0x4')]);});const _0x58aa6f=new _0x34f251({'focusables':_0x99a17e,'focusTracker':_0x10d23c});this[_0x2c4f('0x1')]['set'](_0x2c4f('0x22'),(_0x212466,_0x1e42d5)=>{_0x58aa6f[_0x2c4f('0x14')](),_0x1e42d5();},{'priority':_0x2c4f('0xa')}),this['keystrokes'][_0x2c4f('0x21')]('shift\x20+\x20tab',(_0x5572ad,_0x2f3a52)=>{_0x58aa6f['focusPrevious'](),_0x2f3a52();},{'priority':_0x2c4f('0xa')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25ce=['_shouldCollapse','createCollection','change:isActive','equal','remove','viewUid','maxCommentCharsWhenCollapsed','set','_rearrangeCollapse','insert','removeComment','from','expand','isEditMode','comments','delegate','add','bind','_rearrangeExpand','commentViews','isActive','CommentView','ck-thread__comments','_updateHasDirtyComment','maxThreadTotalWeight','_handleRemoveCommentModel','editorConfig','setTemplate','locale','_handleNewCommentModel','formatDateTime','delete','change:isEditMode','render','destroy','refreshVisibleViews','hasDirtyComment','count','listenTo','commentUpdated','_model','_config','some','length','change:hasDirtyComment','_collapsedCommentsView','focus','stopListening','collapse','visibleViews','weight','get'];(function(_0x275926,_0x25ce51){const _0x5ca771=function(_0x7fe068){while(--_0x7fe068){_0x275926['push'](_0x275926['shift']());}};_0x5ca771(++_0x25ce51);}(_0x25ce,0x109));const _0x5ca7=function(_0x275926,_0x25ce51){_0x275926=_0x275926-0x0;let _0x5ca771=_0x25ce[_0x275926];return _0x5ca771;};import{View as _0xee7359}from'ckeditor5/src/ui';import{diff as _0x58b884,Collection as _0x47010f}from'ckeditor5/src/utils';import _0x194bcd from'./collapsedcommentsview';export default class dt extends _0xee7359{constructor(_0x974c7e,_0x44a0b6,_0x704d60){super(_0x974c7e),this[_0x5ca7('0x2')](_0x5ca7('0x1f'),!0x1),this[_0x5ca7('0x2')](_0x5ca7('0x26'),_0x44a0b6[_0x5ca7('0x9')][_0x5ca7('0x26')]),this[_0x5ca7('0x2')](_0x5ca7('0xf'),!0x1),this[_0x5ca7('0x23')]=_0x44a0b6,this[_0x5ca7('0x24')]=_0x704d60,this['commentViews']=this['createCollection'](),this[_0x5ca7('0x2c')]=this[_0x5ca7('0x30')](),this[_0x5ca7('0x28')]=new _0x194bcd(_0x974c7e),this[_0x5ca7('0x28')][_0x5ca7('0xc')](_0x5ca7('0x20'))['to'](this,'length',_0x15a765=>_0x15a765-this[_0x5ca7('0x24')]['maxCommentsWhenCollapsed']);for(const _0x4f8557 of _0x44a0b6[_0x5ca7('0x9')])this['_handleNewCommentModel'](_0x4f8557);this[_0x5ca7('0x21')](_0x44a0b6[_0x5ca7('0x9')],'add',(_0x4e7dd6,_0x3b2bb7)=>{this[_0x5ca7('0x26')]++,this[_0x5ca7('0x18')](_0x3b2bb7),this['refreshVisibleViews']();}),this[_0x5ca7('0x21')](_0x44a0b6[_0x5ca7('0x9')],_0x5ca7('0x33'),(_0x3425e4,_0x3bd207)=>{this['length']--,this[_0x5ca7('0x14')](_0x3bd207),this['refreshVisibleViews']();}),this[_0x5ca7('0x21')](_0x44a0b6,_0x5ca7('0x22'),()=>this[_0x5ca7('0x1e')]()),this['on'](_0x5ca7('0x31'),()=>this[_0x5ca7('0x1e')]()),this['on'](_0x5ca7('0x27'),()=>this['refreshVisibleViews']()),this[_0x5ca7('0x16')]({'tag':'ul','attributes':{'class':[_0x5ca7('0x11')]},'children':this[_0x5ca7('0x2c')]});}get[_0x5ca7('0x2f')](){return this[_0x5ca7('0x23')][_0x5ca7('0x2d')]>this[_0x5ca7('0x24')][_0x5ca7('0x13')]&&!this[_0x5ca7('0xf')]&&!this[_0x5ca7('0x1f')];}[_0x5ca7('0x1c')](){super[_0x5ca7('0x1c')](),this[_0x5ca7('0x1e')]();}[_0x5ca7('0x29')](){this['element'][_0x5ca7('0x29')]();}[_0x5ca7('0x1d')](){this[_0x5ca7('0x28')][_0x5ca7('0x1d')]();for(const _0x4c113a of this['commentViews'])_0x4c113a[_0x5ca7('0x1d')]();super[_0x5ca7('0x1d')]();}[_0x5ca7('0x1e')](){this[_0x5ca7('0x2f')]?this[_0x5ca7('0x3')]():this['_rearrangeExpand']();}[_0x5ca7('0x18')](_0x30260f){const _0x2ac071=new this[(_0x5ca7('0x24'))][(_0x5ca7('0x10'))](this[_0x5ca7('0x17')],_0x30260f,{'maxCommentCharsWhenCollapsed':this['_config'][_0x5ca7('0x1')],'formatDateTime':this[_0x5ca7('0x24')][_0x5ca7('0x19')],'editorConfig':this['_config'][_0x5ca7('0x15')]});_0x2ac071[_0x5ca7('0x0')]=_0x30260f['id'],_0x2ac071[_0x5ca7('0xa')](_0x5ca7('0x5'))['to'](this),_0x2ac071[_0x5ca7('0xa')]('updateComment')['to'](this),this[_0x5ca7('0x21')](_0x2ac071,_0x5ca7('0x1b'),()=>this[_0x5ca7('0x12')]()),this[_0x5ca7('0xe')]['add'](_0x2ac071);}[_0x5ca7('0x14')](_0xca9da3){const _0x2e083d=this['commentViews'][_0x5ca7('0x33')](_0xca9da3['id']);this[_0x5ca7('0x2a')](_0x2e083d),_0x2e083d[_0x5ca7('0x8')]&&this['_updateHasDirtyComment'](),_0x2e083d[_0x5ca7('0x1d')]();}[_0x5ca7('0x12')](){this[_0x5ca7('0x1f')]=Array['from'](this['commentViews'])[_0x5ca7('0x25')](_0x460d2d=>_0x460d2d[_0x5ca7('0x8')]);}['_rearrangeCollapse'](){const _0x574530=function(_0xdfdea4){const _0x5273f3=new _0x47010f();for(const _0x340702 of _0xdfdea4)_0x5273f3[_0x5ca7('0xb')](_0x340702);return _0x5273f3;}(this[_0x5ca7('0xe')]),_0x49a8d5=this[_0x5ca7('0x28')][_0x5ca7('0x20')];for(let _0x284b3c=0x1;_0x284b3c<=_0x49a8d5;_0x284b3c++)_0x574530[_0x5ca7('0x33')](0x1);for(const _0x1fde0e of _0x574530)_0x1fde0e[_0x5ca7('0x2b')]();_0x49a8d5>0x0&&_0x574530[_0x5ca7('0xb')](this['_collapsedCommentsView'],0x1),Wt(_0x58b884(Array[_0x5ca7('0x6')](this['visibleViews']),Array['from'](_0x574530)),this[_0x5ca7('0x2c')],_0x574530);}[_0x5ca7('0xd')](){Wt(_0x58b884(Array['from'](this[_0x5ca7('0x2c')]),Array[_0x5ca7('0x6')](this[_0x5ca7('0xe')])),this['visibleViews'],this['commentViews']);for(const _0x4afaae of this[_0x5ca7('0x2c')])_0x4afaae[_0x5ca7('0x7')]();}}function Wt(_0x20fbc7,_0x1da03c,_0x69e660){let _0x4db9fe=0x0;for(const _0x1b7dea of _0x20fbc7)switch(_0x1b7dea){case _0x5ca7('0x4'):_0x1da03c[_0x5ca7('0xb')](_0x69e660[_0x5ca7('0x2e')](_0x4db9fe),_0x4db9fe),_0x4db9fe++;break;case _0x5ca7('0x1a'):_0x1da03c[_0x5ca7('0x33')](_0x4db9fe);break;case _0x5ca7('0x32'):_0x4db9fe++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1876=['then','ck-thread__user','ck-comment__input-container--active','showButtons','editor','extendTemplate','set','createEditor','change:showInput','commentInputView','isFocused','ck-comment__input-container','div','focusTracker','setTemplate','bind','showInput','userView','destroy'];(function(_0x6757de,_0x1876db){var _0x1046f2=function(_0x513f1f){while(--_0x513f1f){_0x6757de['push'](_0x6757de['shift']());}};_0x1046f2(++_0x1876db);}(_0x1876,0x7f));var _0x1046=function(_0x6757de,_0x1876db){_0x6757de=_0x6757de-0x0;var _0x1046f2=_0x1876[_0x6757de];return _0x1046f2;};import{View as _0x380b59}from'ckeditor5/src/ui';import _0x542d0d from'./commentinputview';import{UserView as _0x59079d}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0x380b59{constructor(_0x36815d,_0x97d2e7,_0x1cec5e){super(_0x36815d),this['commentInputView']=new _0x542d0d(_0x36815d,_0x1cec5e),this[_0x1046('0xf')][_0x1046('0x2')](_0x1046('0x9'))['to'](this[_0x1046('0xf')][_0x1046('0x0')],_0x1046('0x10'),this[_0x1046('0xf')],'value',(_0x2d6c79,_0x4a70aa)=>_0x2d6c79||!!_0x4a70aa),this[_0x1046('0xc')](_0x1046('0x3'),!0x1),this['on'](_0x1046('0xe'),()=>{this[_0x1046('0x3')]&&!this[_0x1046('0xf')][_0x1046('0xa')]&&this[_0x1046('0xf')][_0x1046('0xd')]();}),this[_0x1046('0x4')]=new _0x59079d(_0x36815d,_0x97d2e7),this[_0x1046('0x4')]['extendTemplate']({'attributes':{'class':_0x1046('0x7')}}),this[_0x1046('0xf')][_0x1046('0xb')]({'attributes':{'class':'ck-thread__input'}}),this[_0x1046('0x1')]({'tag':_0x1046('0x12'),'attributes':{'class':[_0x1046('0x11'),this['bindTemplate']['if']('showInput',_0x1046('0x8'))]},'children':[this[_0x1046('0x4')],this[_0x1046('0xf')]]});}['destroy'](){return this[_0x1046('0xf')]['destroy']()[_0x1046('0x6')](()=>super[_0x1046('0x5')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d74=['_bindFirstCommentView','fire','ck-thread--remove-confirmation','.ck-thread__container','set','listenTo','removeCommentThread','locale','_cancelAllConfirms','bind','element','length','change:isReadOnly','Delete\x20comment\x20thread?','div','getTemplate','ck-thread','render','containerElement','ck-thread__container','setTemplate','commentsListView','actionIndicator','remove','stop','commentThreadInputView','placeholder','bindTemplate','removeButton','_model','cancelConfirm','get','_boundFirstCommentView','commentViews','change:isActive','isActive','high'];(function(_0x77dff7,_0x2d7427){const _0x43a23c=function(_0x2ceef8){while(--_0x2ceef8){_0x77dff7['push'](_0x77dff7['shift']());}};_0x43a23c(++_0x2d7427);}(_0x2d74,0x83));const _0x43a2=function(_0x77dff7,_0x2d7427){_0x77dff7=_0x77dff7-0x0;let _0x43a23c=_0x2d74[_0x77dff7];return _0x43a23c;};import{mix as _0x57b2da}from'ckeditor5/src/utils';import{ConfirmMixin as _0x1ced57}from'ckeditor5-collaboration/src/collaboration-core';import _0x55b3b6 from'./basecommentthreadview';import{getTranslation as _0x3c34bb}from'../../../utils/common-translations';export default class ot extends _0x55b3b6{constructor(_0x50d3c4,_0x342482,_0x1ad6d6,_0x5c74ca){super(_0x50d3c4,_0x342482,_0x1ad6d6,_0x5c74ca),this[_0x43a2('0x15')](_0x43a2('0x2'),null),this['containerElement']=null,this[_0x43a2('0xc')]=null,this[_0x43a2('0x18')]=_0x50d3c4,this[_0x43a2('0x0')](this[_0x43a2('0x20')]()),this['on'](_0x43a2('0xe'),(_0x7f0281,_0x25e899,_0x5ecb6e)=>{_0x5ecb6e||this[_0x43a2('0x19')]();}),this[_0x43a2('0x16')](this[_0x43a2('0x9')],_0x43a2('0x1d'),(_0x3c35d0,_0xde4288,_0x1f8bd4)=>{_0x1f8bd4&&this[_0x43a2('0x19')]();}),this[_0x43a2('0x1c')]>0x0&&this[_0x43a2('0x11')](),this[_0x43a2('0x16')](this['commentsListView'][_0x43a2('0xd')],'add',()=>{this[_0x43a2('0x11')]();});}[_0x43a2('0x20')](){const _0x1993ec=this[_0x43a2('0x7')];return{'tag':_0x43a2('0x1f'),'attributes':{'class':[_0x43a2('0x21'),_0x1993ec['if'](_0x43a2('0xf'),'ck-thread--active'),_0x1993ec['if']('isConfirm',_0x43a2('0x13')),_0x1993ec['to'](_0x43a2('0x2'),_0x379f1e=>_0x379f1e?'ck-thread--'+_0x379f1e:'')],'data-thread-id':this[_0x43a2('0x9')]['id'],'tabindex':-0x1},'children':[{'tag':_0x43a2('0x1f'),'attributes':{'class':_0x43a2('0x24')},'children':[this[_0x43a2('0x1')],this[_0x43a2('0x5')]]}]};}[_0x43a2('0x22')](){super[_0x43a2('0x22')](),this[_0x43a2('0x23')]=this[_0x43a2('0x1b')]['querySelector'](_0x43a2('0x14'));}[_0x43a2('0x19')](){this[_0x43a2('0xa')]();for(const _0x26ec91 of this[_0x43a2('0x1')]['commentViews'])_0x26ec91[_0x43a2('0xa')]();}[_0x43a2('0x11')](){const {locale:_0xdefeeb}=this,_0x467042=this[_0x43a2('0x1')][_0x43a2('0xd')][_0x43a2('0xb')](0x0);_0x467042!==this['_boundFirstCommentView']&&(this[_0x43a2('0xc')]=_0x467042,this['unbind']('actionIndicator'),this[_0x43a2('0x1a')](_0x43a2('0x2'))['to'](_0x467042,_0x43a2('0x2'),_0x4c80c7=>_0x43a2('0x3')===_0x4c80c7?'remove':null),_0x467042[_0x43a2('0x6')]=_0x3c34bb(_0xdefeeb,'Write\x20a\x20comment...'),_0x467042[_0x43a2('0x8')]['on']('execute',_0x297e6d=>{_0x297e6d[_0x43a2('0x4')](),this['showConfirm'](_0x3c34bb(_0xdefeeb,_0x43a2('0x1e')),this[_0x43a2('0x23')])['then'](()=>{this[_0x43a2('0x12')](_0x43a2('0x17'));});},{'priority':_0x43a2('0x10')}));}}_0x57b2da(ot,_0x1ced57);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x486c=['ck-comment__actions--hidden','render','isVisible','EXTERNAL_IMPORT_WORD_COMMENT','focus','isRemovable','bindTemplate','getTemplate','_attachActions','edit','switchToEditMode','ck-annotation__user','change:isRemovable','name','then','ck-annotation__info','ck-comment__main','getExternalCommentNote','removeButton','set','removeComment','listenTo','attributes','@external','getUserViewNotificationText','showConfirm','Remove','isEditable','ck-annotation__info-time','extendTemplate','setTemplate','ck-comment--edit','ck-annotation','element','isExternal','actionIndicator','icon','EXTERNAL_AVATAR','_createRemoveButton','author','importWord','ck-comment__actions','Reply...','label','source','isEditMode','userView','bind','ck-comment__info-time','authoredAt','div','ck-comment__external','isConfirm','span','mouseenter','EXTERNAL_COMMENT','isEnabled','cancelConfirm','locale','blur','Delete\x20comment?','isReadOnly','fire','pencil','_model','ck-comment__wrapper','ck-comment','_createCommentInputView','creator','mouseleave','time','ck-comment--remove-confirmation','ck-comment__user','editButton','placeholder','formatDateTime','push'];(function(_0x4dc1c3,_0x486c60){const _0x2fa61b=function(_0x4ba944){while(--_0x4ba944){_0x4dc1c3['push'](_0x4dc1c3['shift']());}};_0x2fa61b(++_0x486c60);}(_0x486c,0x1aa));const _0x2fa6=function(_0x4dc1c3,_0x486c60){_0x4dc1c3=_0x4dc1c3-0x0;let _0x2fa61b=_0x486c[_0x4dc1c3];return _0x2fa61b;};import{mix as _0x3fcee8}from'ckeditor5/src/utils';import{ButtonView as _0x36956f}from'ckeditor5/src/ui';import{icons as _0x4aec82}from'ckeditor5/src/core';import{UserView as _0x5257a2,ConfirmMixin as _0x4d5e87}from'ckeditor5-collaboration/src/collaboration-core';import _0x584a4a from'./basecommentview';import _0x3a163d from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x4fb91c}from'../../../utils/common-translations';export default class it extends _0x584a4a{constructor(_0x206738,_0x34b06d,_0x436773){super(_0x206738,_0x34b06d,_0x436773),this['set'](_0x2fa6('0x47'),null),this[_0x2fa6('0x37')](_0x2fa6('0x21'),_0x4fb91c(_0x206738,_0x2fa6('0x1'))),this[_0x2fa6('0x37')]('authoredAt',null),this[_0x2fa6('0x6')](_0x2fa6('0x8'))['to'](_0x34b06d),this[_0x2fa6('0x20')]=this['_createEditButton'](),this[_0x2fa6('0x36')]=this[_0x2fa6('0x4a')](),this[_0x2fa6('0x5')]=new _0x5257a2(_0x206738,_0x34b06d['author'],this[_0x2fa6('0x3c')]()),this[_0x2fa6('0x5')]['extendTemplate']({'attributes':{'class':[_0x2fa6('0x1f'),_0x2fa6('0x2f')]}}),this[_0x2fa6('0x39')](_0x34b06d,_0x2fa6('0x30'),()=>this[_0x2fa6('0x10')]()),this[_0x2fa6('0x42')](this[_0x2fa6('0x2b')]());}[_0x2fa6('0x2b')](){const _0x482d97=this[_0x2fa6('0x2a')],_0x3b764e=[{'tag':'div','attributes':{'class':['ck-comment__info',_0x2fa6('0x33')]},'children':[{'tag':_0x2fa6('0xc'),'children':[{'text':this['userView'][_0x2fa6('0x31')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0x2fa6('0x1d'),'attributes':{'datetime':_0x482d97['to'](_0x2fa6('0x8')),'class':[_0x2fa6('0x7'),_0x2fa6('0x40')]},'children':[{'text':_0x482d97['to'](_0x2fa6('0x8'),_0x1253a4=>this['_config'][_0x2fa6('0x22')](_0x1253a4))}]}]},{'tag':_0x2fa6('0x9'),'attributes':{'class':[_0x2fa6('0x0'),'ck-annotation__actions',_0x482d97['if'](_0x2fa6('0x4'),_0x2fa6('0x24')),_0x482d97['if'](_0x2fa6('0x4'),'ck-annotation__actions--hidden')]},'children':[this[_0x2fa6('0x20')],this[_0x2fa6('0x36')]]},{'tag':_0x2fa6('0x9'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}];return this[_0x2fa6('0x17')][_0x2fa6('0x46')]&&_0x3b764e[_0x2fa6('0x23')]({'tag':'div','attributes':{'class':[_0x2fa6('0xa')]},'children':[{'text':this[_0x2fa6('0x35')]()}]}),{'tag':'li','attributes':{'class':[_0x2fa6('0x18'),_0x482d97['if'](_0x2fa6('0xb'),_0x2fa6('0x1e'))],'tabindex':-0x1},'children':[{'tag':_0x2fa6('0x9'),'attributes':{'class':[_0x2fa6('0x19'),_0x2fa6('0x44'),_0x482d97['if'](_0x2fa6('0x4'),_0x2fa6('0x43')),_0x482d97['to'](_0x2fa6('0x47'),_0x5d26fd=>_0x5d26fd?'ck-comment--'+_0x5d26fd:'')],'data-author-id':this[_0x2fa6('0x17')][_0x2fa6('0x4b')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x2fa6('0x5')],{'tag':_0x2fa6('0x9'),'attributes':{'class':[_0x2fa6('0x34'),'ck-annotation__main']},'children':_0x3b764e}]}]};}['_createEditButton'](){const _0x3895d0=new _0x36956f(this[_0x2fa6('0x11')]);return _0x3895d0[_0x2fa6('0x2')]=_0x4fb91c(this[_0x2fa6('0x11')],'Edit'),_0x3895d0[_0x2fa6('0x48')]=_0x4aec82[_0x2fa6('0x16')],_0x3895d0[_0x2fa6('0x41')]({'attributes':{'class':_0x2fa6('0x43')}}),_0x3895d0[_0x2fa6('0x6')]('isEnabled')['to'](this[_0x2fa6('0x17')],_0x2fa6('0x14'),_0x556fd0=>!_0x556fd0),_0x3895d0[_0x2fa6('0x6')]('isVisible')['to'](this[_0x2fa6('0x17')],_0x2fa6('0x3f')),_0x3895d0['on']('execute',()=>this[_0x2fa6('0x2e')]()),_0x3895d0;}[_0x2fa6('0x4a')](){const _0x4708af=new _0x36956f(this[_0x2fa6('0x11')]);return _0x4708af[_0x2fa6('0x2')]=_0x4fb91c(this[_0x2fa6('0x11')],_0x2fa6('0x3e')),_0x4708af[_0x2fa6('0x48')]=_0x3a163d,_0x4708af['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4708af['bind'](_0x2fa6('0xf'))['to'](this[_0x2fa6('0x17')],'isReadOnly',_0x2798ef=>!_0x2798ef),_0x4708af[_0x2fa6('0x6')](_0x2fa6('0x26'))['to'](this['_model'],_0x2fa6('0x29')),_0x4708af['on']('execute',()=>{this[_0x2fa6('0x3d')](_0x4fb91c(this[_0x2fa6('0x11')],_0x2fa6('0x13')),this[_0x2fa6('0x45')])[_0x2fa6('0x32')](()=>{this[_0x2fa6('0x15')](_0x2fa6('0x38'),this[_0x2fa6('0x17')]['id']);});}),_0x4708af;}['_attachActions'](_0x2fb726,_0x39299c){this[_0x2fa6('0x39')](_0x2fb726,_0x2fa6('0xd'),()=>this[_0x2fa6('0x47')]=_0x39299c),this['listenTo'](_0x2fb726,_0x2fa6('0x28'),()=>this['actionIndicator']=_0x39299c),this[_0x2fa6('0x39')](_0x2fb726,_0x2fa6('0x1c'),()=>this[_0x2fa6('0x47')]=null),this[_0x2fa6('0x39')](_0x2fb726,_0x2fa6('0x12'),()=>this[_0x2fa6('0x47')]=null);}[_0x2fa6('0x1a')](){const _0x59e097=super[_0x2fa6('0x1a')]();return _0x59e097[_0x2fa6('0x6')]('placeholder')['to'](this),_0x59e097;}[_0x2fa6('0x35')](){return'importWord'===this[_0x2fa6('0x17')][_0x2fa6('0x3a')]['@external']['source']?_0x4fb91c(this[_0x2fa6('0x11')],_0x2fa6('0x27')):_0x4fb91c(this[_0x2fa6('0x11')],_0x2fa6('0xe'));}[_0x2fa6('0x3c')](){return this[_0x2fa6('0x17')]['isExternal']?_0x2fa6('0x4c')===this[_0x2fa6('0x17')][_0x2fa6('0x3a')][_0x2fa6('0x3b')][_0x2fa6('0x3')]?_0x4fb91c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator'][_0x2fa6('0x31')]):_0x4fb91c(this[_0x2fa6('0x11')],_0x2fa6('0x49'),this[_0x2fa6('0x17')][_0x2fa6('0x1b')][_0x2fa6('0x31')]):null;}[_0x2fa6('0x25')](){super[_0x2fa6('0x25')](),this[_0x2fa6('0x2c')](this['editButton'][_0x2fa6('0x45')],_0x2fa6('0x2d')),this[_0x2fa6('0x2c')](this[_0x2fa6('0x36')][_0x2fa6('0x45')],'remove');}}_0x3fcee8(it,_0x4d5e87);
|
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x49da=['requires','pluginName'];(function(_0xef981d,_0x49da00){var _0x5c25ff=function(_0x16a0d3){while(--_0x16a0d3){_0xef981d['push'](_0xef981d['shift']());}};_0x5c25ff(++_0x49da00);}(_0x49da,0xa2));var _0x5c25=function(_0xef981d,_0x49da00){_0xef981d=_0xef981d-0x0;var _0x5c25ff=_0x49da[_0xef981d];return _0x5c25ff;};import{Plugin as _0x14fa7e}from'ckeditor5/src/core';import _0x3cdb47 from'./comments/commentsrepository';import _0x1de8af from'./comments/commentsediting';import _0xcb100d from'./comments/commentsui';import _0x16c2ea from'./commentsonly';import _0x172eda from'./annotations/widesidebar';import _0x12d2fa from'./annotations/narrowsidebar';import _0xb8b32a from'./annotations/inlineannotations';export default class c extends _0x14fa7e{static get[_0x5c25('0x0')](){return[_0x3cdb47,_0x1de8af,_0xcb100d,_0x16c2ea,_0x172eda,_0x12d2fa,_0xb8b32a];}static get[_0x5c25('0x1')](){return'Comments';}}
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa525=['affectsData','_enableCommentsOnlyMode','has','delete','pluginName','config','requires','document','editor','view','set','stop','plugins','clipboardInput','get','commentsOnly','clearForceDisabled','commands','forceDisabled','commentsOnlyMode','isEnabled','highest','_disableCommentsOnlyMode','listenTo','stopListening','addCommentThread','DragDrop','CommentsOnly','editing','cut','afterInit'];(function(_0x33db97,_0xa525cb){const _0x5de92e=function(_0x387c10){while(--_0x387c10){_0x33db97['push'](_0x33db97['shift']());}};_0x5de92e(++_0xa525cb);}(_0xa525,0x13e));const _0x5de9=function(_0x33db97,_0xa525cb){_0x33db97=_0x33db97-0x0;let _0x5de92e=_0xa525[_0x33db97];return _0x5de92e;};import{Plugin as _0x5527e1}from'ckeditor5/src/core';import _0x31aa2d from'./comments/commentsediting';export default class e extends _0x5527e1{static get[_0x5de9('0x1b')](){return _0x5de9('0x13');}static get[_0x5de9('0x1d')](){return[_0x31aa2d];}constructor(_0x3ba066){super(_0x3ba066),this[_0x5de9('0x2')](_0x5de9('0xc'),null),this['on']('change:isEnabled',(_0xac74de,_0x355300,_0x543d5d)=>{_0x543d5d?this[_0x5de9('0x18')]():this[_0x5de9('0xe')]();});}[_0x5de9('0x16')](){null===this[_0x5de9('0xc')]&&(this[_0x5de9('0xc')]=!!this[_0x5de9('0x0')][_0x5de9('0x1c')]['get'](_0x5de9('0x7')));}[_0x5de9('0x18')](){for(const [_0x5c37ef,_0x4ab5c7]of this[_0x5de9('0x0')][_0x5de9('0x9')])_0x4ab5c7[_0x5de9('0x17')]&&_0x5de9('0x11')!==_0x5c37ef&&_0x4ab5c7[_0x5de9('0xa')](_0x5de9('0xb'));this[_0x5de9('0x0')][_0x5de9('0x4')][_0x5de9('0x19')](_0x5de9('0x12'))&&this[_0x5de9('0x0')][_0x5de9('0x4')][_0x5de9('0x6')](_0x5de9('0x12'))['forceDisabled'](_0x5de9('0xb'));const _0x3c8c37=this[_0x5de9('0x0')][_0x5de9('0x14')][_0x5de9('0x1')][_0x5de9('0x1e')];this[_0x5de9('0xf')](_0x3c8c37,_0x5de9('0x15'),_0x400420=>_0x400420[_0x5de9('0x3')](),{'priority':_0x5de9('0xd')}),this[_0x5de9('0xf')](_0x3c8c37,_0x5de9('0x5'),_0xa330b4=>_0xa330b4[_0x5de9('0x3')](),{'priority':_0x5de9('0xd')}),this['listenTo'](_0x3c8c37,_0x5de9('0x1a'),_0x21aec8=>_0x21aec8[_0x5de9('0x3')](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x17af56,_0x3f3d28]of this[_0x5de9('0x0')]['commands'])_0x3f3d28[_0x5de9('0x17')]&&_0x5de9('0x11')!==_0x17af56&&_0x3f3d28[_0x5de9('0x8')](_0x5de9('0xb'));this[_0x5de9('0x10')](this['editor']['editing'][_0x5de9('0x1')]['document']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2fad4d,_0x4c6693,_0x35d668){const t=_0x2fad4d['t'];switch(_0x4c6693){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x35d668);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x35d668);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x35d668);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x35d668);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2112=['observe','disconnect','class','type','cancel','attributeName'];(function(_0x5ce3e8,_0x211255){const _0x2f7271=function(_0x2c30a4){while(--_0x2c30a4){_0x5ce3e8['push'](_0x5ce3e8['shift']());}};_0x2f7271(++_0x211255);}(_0x2112,0x1ea));const _0x2f72=function(_0x5ce3e8,_0x211255){_0x5ce3e8=_0x5ce3e8-0x0;let _0x2f7271=_0x2112[_0x5ce3e8];return _0x2f7271;};import{throttle as _0x576fe4}from'lodash-es';export default function ht(_0x414edb){const _0x51aa95=_0x576fe4(_0x414edb,0x1e),_0x254063=new MutationObserver(_0xa2e602=>{for(const _0xb191b6 of _0xa2e602)('attributes'==_0xb191b6[_0x2f72('0x5')]&&_0x2f72('0x4')==_0xb191b6[_0x2f72('0x1')]||'childList'==_0xb191b6[_0x2f72('0x5')])&&_0x51aa95();});return{'attach'(_0x27f921){_0x254063[_0x2f72('0x2')](_0x27f921,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x254063[_0x2f72('0x3')](),_0x51aa95[_0x2f72('0x0')]();}};}
|
package/theme/comment.css
CHANGED
|
@@ -127,6 +127,6 @@ We are styling resetting list-style because of parent <ul> element. */
|
|
|
127
127
|
.ck .ck-comment__external {
|
|
128
128
|
font-style: italic;
|
|
129
129
|
color: var(--ck-color-annotation-info);
|
|
130
|
-
font-size: var(--ck-font-size-
|
|
130
|
+
font-size: var(--ck-font-size-tiny);
|
|
131
131
|
margin-top: var(--ck-spacing-standard);
|
|
132
132
|
}
|