@ckeditor/ckeditor5-comments 35.3.2 → 36.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/build/comments.js +3 -2
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.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-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.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/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.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/pt.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/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +4 -4
- package/lang/translations/bg.po +4 -4
- package/lang/translations/bn.po +4 -4
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +4 -4
- package/lang/translations/cs.po +4 -4
- package/lang/translations/da.po +4 -4
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +4 -4
- package/lang/translations/el.po +4 -4
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +4 -4
- package/lang/translations/et.po +4 -4
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +4 -4
- package/lang/translations/fr.po +4 -4
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +4 -4
- package/lang/translations/hi.po +4 -4
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +4 -4
- package/lang/translations/id.po +4 -4
- package/lang/translations/it.po +4 -4
- package/lang/translations/ja.po +4 -4
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +4 -4
- package/lang/translations/lt.po +4 -4
- package/lang/translations/lv.po +4 -4
- package/lang/translations/ms.po +4 -4
- package/lang/translations/nl.po +4 -4
- package/lang/translations/no.po +4 -4
- package/lang/translations/pl.po +4 -4
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/pt.po +4 -4
- package/lang/translations/ro.po +4 -4
- package/lang/translations/ru.po +4 -4
- package/lang/translations/sk.po +4 -4
- package/lang/translations/sr-latn.po +5 -5
- package/lang/translations/sr.po +5 -5
- package/lang/translations/sv.po +4 -4
- package/lang/translations/th.po +4 -4
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +4 -4
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +7 -7
- package/lang/translations/uk.po +4 -4
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +4 -4
- package/lang/translations/zh-cn.po +4 -4
- package/lang/translations/zh.po +4 -4
- package/package.json +3 -3
- 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/integrations/importword.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.js +2 -2
- package/src/commentsonly.js +2 -2
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.js +2 -2
- package/theme/annotation.css +23 -6
- package/theme/commentthread.css +7 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0xb577=['change:isActive','Write\x20a\x20comment...','fire','locale','commentInputView','commentsListView','element','disabledSubmit','cancel','length','bind','hasDirtyComment','addComment','value','_createCommentThreadInputView','isDirty','delegate','placeholder','stop','_config','destroy','focus','commentThreadInputView','set','CommentView','isActive','isReadOnly','_model','showInput','removeCommentThread','updateComment','_localUser','Reply...','removeComment','assign'];(function(_0x1a3c1c,_0xb57782){const _0x19f18c=function(_0x5766db){while(--_0x5766db){_0x1a3c1c['push'](_0x1a3c1c['shift']());}};_0x19f18c(++_0xb57782);}(_0xb577,0xd2));const _0x19f1=function(_0x1a3c1c,_0xb57782){_0x1a3c1c=_0x1a3c1c-0x0;let _0x19f18c=_0xb577[_0x1a3c1c];return _0x19f18c;};import{View as _0x5515ae}from'ckeditor5/src/ui';import _0x226e80 from'./commentthreadinputview';import _0x1d2b29 from'./commentslistview';import{getTranslation as _0x3e0570}from'../../../utils/common-translations';export default class Rt extends _0x5515ae{constructor(_0x1970c8,_0x30946d,_0x446d6a,_0x408d91){super(_0x1970c8),this[_0x19f1('0x17')](_0x19f1('0x19'),!0x1),this[_0x19f1('0x17')](_0x19f1('0xf'),!0x1),this[_0x19f1('0x1b')]=_0x30946d,this[_0x19f1('0x1f')]=_0x446d6a,this['_config']=_0x408d91,this['commentsListView']=new _0x1d2b29(_0x1970c8,_0x30946d,Object[_0x19f1('0x22')]({'CommentView':this[_0x19f1('0x13')][_0x19f1('0x18')]},_0x408d91)),this[_0x19f1('0x5')][_0x19f1('0x10')](_0x19f1('0x21'))['to'](this),this['commentsListView'][_0x19f1('0x10')](_0x19f1('0x1e'))['to'](this),this[_0x19f1('0x5')][_0x19f1('0xa')](_0x19f1('0x19'))['to'](this),this[_0x19f1('0x17')](_0x19f1('0x9'),this['commentsListView'][_0x19f1('0x9')]),this[_0x19f1('0xa')](_0x19f1('0x9'))['to'](this[_0x19f1('0x5')],_0x19f1('0x9')),this[_0x19f1('0x16')]=this[_0x19f1('0xe')](),this['on'](_0x19f1('0x21'),()=>this[_0x19f1('0x15')]()),this[_0x19f1('0xa')](_0x19f1('0xf'))['to'](this[_0x19f1('0x5')],_0x19f1('0xb'),this[_0x19f1('0x16')][_0x19f1('0x4')],'value',(_0x5b7dd8,_0x2db6b9)=>_0x5b7dd8||!!_0x2db6b9);}[_0x19f1('0x15')](){this[_0x19f1('0x6')]['focus']();}['destroy'](){this[_0x19f1('0xf')]=!0x1,this['commentsListView'][_0x19f1('0x14')](),this[_0x19f1('0x16')]['destroy'](),super[_0x19f1('0x14')]();}['_createCommentThreadInputView'](){const _0x4d7fa3=new _0x226e80(this['locale'],this[_0x19f1('0x1f')],this[_0x19f1('0x13')]['editorConfig']),_0x14647c=_0x4d7fa3[_0x19f1('0x4')];return _0x4d7fa3[_0x19f1('0xa')](_0x19f1('0x1c'))['to'](this,_0x19f1('0x19'),this['_model'],_0x19f1('0x1a'),_0x14647c,_0x19f1('0xd'),(_0x5d880d,_0x4f7674,_0x7a45e0)=>!!_0x7a45e0||_0x5d880d&&!_0x4f7674),_0x14647c[_0x19f1('0xa')](_0x19f1('0x11'))['to'](this,_0x19f1('0x9'),_0x7ad9b4=>_0x3e0570(this[_0x19f1('0x3')],_0x7ad9b4?_0x19f1('0x20'):_0x19f1('0x1'))),_0x14647c['on']('submit',(_0x115803,_0x3e7a45)=>{this['fire'](_0x19f1('0xc'),_0x3e7a45);}),_0x14647c['on'](_0x19f1('0x8'),()=>{this['focus']();}),_0x14647c[_0x19f1('0xa')](_0x19f1('0x7'))['to'](this[_0x19f1('0x1b')],'isReadOnly'),_0x14647c['on'](_0x19f1('0x8'),_0x11dca5=>{0x0==this[_0x19f1('0x9')]&&(this[_0x19f1('0x2')](_0x19f1('0x1d')),_0x11dca5[_0x19f1('0x12')]());}),this['on'](_0x19f1('0x0'),(_0x221967,_0x4f34d5,_0x88719b)=>{_0x88719b||this[_0x19f1('0x9')]||_0x14647c['value']||this[_0x19f1('0x2')]('removeCommentThread');}),_0x4d7fa3;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x5d79=['add','maxCommentCharsWhenCollapsed','editorReady','submit','switchToEditMode','visibleView','_model','expand','createCollection','_config','locale','_createCommentInputView','switchToDisplayMode','isCollapsed','createEditor','focus','fire','bind','destroy','isEditMode','content','updateComment','collapse','editorConfig','remove','disabledSubmit'];(function(_0x59f941,_0x5d79f4){const _0x2853d1=function(_0x5f2c64){while(--_0x5f2c64){_0x59f941['push'](_0x59f941['shift']());}};_0x2853d1(++_0x5d79f4);}(_0x5d79,0x7b));const _0x2853=function(_0x59f941,_0x5d79f4){_0x59f941=_0x59f941-0x0;let _0x2853d1=_0x5d79[_0x59f941];return _0x2853d1;};import{View as _0x403860}from'ckeditor5/src/ui';import{trimHtml as _0x186008}from'ckeditor5-collaboration/src/collaboration-core';import _0xd5e40d from'./commentcontentview';import _0xf335d from'./commentinputview';export default class Gt extends _0x403860{constructor(_0x22e8e7,_0x212064,_0x13f4b2){super(_0x22e8e7),this[_0x2853('0xd')]=_0x212064,this[_0x2853('0x10')]=_0x13f4b2,this['set'](_0x2853('0x0'),!0x1),this['set'](_0x2853('0x14'),!0x0),this[_0x2853('0xc')]=this[_0x2853('0xf')](),this[_0x2853('0xc')][_0x2853('0x7')](this['_createCommentContentView']());}[_0x2853('0xe')](){this[_0x2853('0x14')]=!0x1;}[_0x2853('0x3')](){this['isEditMode']||(this[_0x2853('0x14')]=!0x0);}[_0x2853('0x16')](){this['element'][_0x2853('0x16')]();}async[_0x2853('0x19')](){await this[_0x2853('0xc')]['get'](0x0)['destroy'](),super[_0x2853('0x19')]();}[_0x2853('0xb')](){this[_0x2853('0x0')]||(this['isEditMode']=!0x0,this[_0x2853('0xc')][_0x2853('0x5')](0x0)[_0x2853('0x19')](),this['visibleView'][_0x2853('0x7')](this['_createCommentInputView']()));}[_0x2853('0x13')](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x2853('0xc')][_0x2853('0x5')](0x0)[_0x2853('0x19')](),this[_0x2853('0xc')][_0x2853('0x7')](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x41f00b=new _0xd5e40d(this[_0x2853('0x11')]);return _0x41f00b[_0x2853('0x18')](_0x2853('0x1'))['to'](this[_0x2853('0xd')],'content',this,_0x2853('0x14'),(_0x36e065,_0x5a0705)=>_0x5a0705?_0x186008(_0x36e065,{'limit':this['_config'][_0x2853('0x8')]}):_0x36e065),_0x41f00b;}[_0x2853('0x12')](){this['_config']['editorConfig']||(this[_0x2853('0x10')]['editorConfig']={}),this['_config'][_0x2853('0x4')]['initialData']=this[_0x2853('0xd')][_0x2853('0x1')];const _0x2269d4=new _0xf335d(this[_0x2853('0x11')],this[_0x2853('0x10')][_0x2853('0x4')]);return _0x2269d4['value']=this[_0x2853('0xd')][_0x2853('0x1')],_0x2269d4[_0x2853('0x18')](_0x2853('0x6'))['to'](this[_0x2853('0xd')],'isReadOnly'),_0x2269d4['on'](_0x2853('0xa'),(_0x3bb3e7,_0x4b3243)=>{this[_0x2853('0x17')](_0x2853('0x2'),this['_model']['id'],_0x4b3243),this[_0x2853('0x13')](),this[_0x2853('0x16')]();}),_0x2269d4['on']('cancel',()=>{this[_0x2853('0x13')](),this['focus']();}),_0x2269d4['once'](_0x2853('0x9'),()=>{_0x2269d4[_0x2853('0x16')]();}),_0x2269d4[_0x2853('0x15')](),_0x2269d4;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x4f3a=['setTemplate'];(function(_0x5b9d58,_0x4f3ac9){const _0x2d2424=function(_0x54dae0){while(--_0x54dae0){_0x5b9d58['push'](_0x5b9d58['shift']());}};_0x2d2424(++_0x4f3ac9);}(_0x4f3a,0x1e5));const _0x2d24=function(_0x5b9d58,_0x4f3ac9){_0x5b9d58=_0x5b9d58-0x0;let _0x2d2424=_0x4f3a[_0x5b9d58];return _0x2d2424;};import{View as _0x8c1530}from'ckeditor5/src/ui';import{getTranslation as _0x5885fc}from'../../../utils/common-translations';export default class Nt extends _0x8c1530{constructor(_0x36b0f8){super(_0x36b0f8);const _0x4c9f98=this['bindTemplate'];this['set']('count'),this[_0x2d24('0x0')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4c9f98['to']('count',_0x26f0ec=>_0x5885fc(_0x36b0f8,'NUMBER_OF_COMMENTS',_0x26f0ec))}]});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x4161=['ck-comment__content','setTemplate','ck-annotation__content','set','render','content','innerHTML','div','element','change:content'];(function(_0x57c9b0,_0x416172){var _0x569973=function(_0xe95d0f){while(--_0xe95d0f){_0x57c9b0['push'](_0x57c9b0['shift']());}};_0x569973(++_0x416172);}(_0x4161,0x1d5));var _0x5699=function(_0x57c9b0,_0x416172){_0x57c9b0=_0x57c9b0-0x0;var _0x569973=_0x4161[_0x57c9b0];return _0x569973;};import{View as _0xfbcb12}from'ckeditor5/src/ui';export default class Tt extends _0xfbcb12{constructor(_0x2646a0){super(_0x2646a0),this[_0x5699('0x4')](_0x5699('0x6'),''),this[_0x5699('0x2')]({'tag':_0x5699('0x8'),'attributes':{'class':[_0x5699('0x1'),_0x5699('0x3')]}});}[_0x5699('0x5')](){super[_0x5699('0x5')](),this['on'](_0x5699('0x0'),(_0x32b3be,_0x43301e,_0x5d5e4a)=>{this['element']['innerHTML']=_0x5d5e4a;}),this[_0x5699('0x9')][_0x5699('0x7')]=this['content'];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x14d3=['isEnabled','createEditor','length','_editorConfig','_createCancelButton','listenTo','ck-comment__input-actions--active','fire','editor','TOO_LONG_COMMENT_ALERT','placeholder','getData','_editorCreationPromise','Submit','destroy','label','bindTemplate','focus','document','render','model','Esc','then','value','trim','initialData','stop','div','bind','_createSubmitButton','focusNext','create','extendTemplate','check','add','keystrokes','forEach','insertBefore','cancelButtonView','setData','icon','focusPrevious','element','low','set','_initializeFocusCycling','ck-comment__input-actions--cancel','focusTracker','execute','submit','submitButtonView','_isDestroyed','view','showButtons','ck-comment__input-wrapper','cancel','firstChild','disabledSubmit'];(function(_0x22d4ae,_0x14d374){const _0x1259b6=function(_0x4041d7){while(--_0x4041d7){_0x22d4ae['push'](_0x22d4ae['shift']());}};_0x1259b6(++_0x14d374);}(_0x14d3,0xf6));const _0x1259=function(_0x22d4ae,_0x14d374){_0x22d4ae=_0x22d4ae-0x0;let _0x1259b6=_0x14d3[_0x22d4ae];return _0x1259b6;};import{View as _0x5d0f5f,ViewCollection as _0x584e43,FocusCycler as _0x504c2f,ButtonView as _0x5b7371}from'ckeditor5/src/ui';import{FocusTracker as _0x7d6fe9,KeystrokeHandler as _0x38a999}from'ckeditor5/src/utils';import{icons as _0x5025cf}from'ckeditor5/src/core';import _0x2a435d from'../commenteditor/commenteditor';import{getTranslation as _0x4525fb}from'../../../utils/common-translations';export default class St extends _0x5d0f5f{constructor(_0x24f5b5,_0x5634dc={}){super(_0x24f5b5),this[_0x1259('0x34')]=null,this[_0x1259('0x2f')]=_0x5634dc,this[_0x1259('0x15')]=new _0x38a999(),this[_0x1259('0x21')]=new _0x7d6fe9(),this['set']('value',_0x5634dc[_0x1259('0xb')]||''),this[_0x1259('0x1e')](_0x1259('0x2b'),!0x1),this[_0x1259('0x1e')]('showButtons',!0x0),this[_0x1259('0x1e')](_0x1259('0x36'),_0x4525fb(_0x24f5b5,'Reply...')),this[_0x1259('0x24')]=this[_0x1259('0xf')](),this[_0x1259('0x18')]=this[_0x1259('0x30')](),this['setTemplate']({'tag':_0x1259('0xd'),'attributes':{'class':[_0x1259('0x28')]},'children':[{'tag':_0x1259('0xd'),'attributes':{'class':['ck-comment__input-actions',this[_0x1259('0x2')]['if'](_0x1259('0x27'),_0x1259('0x32'))]},'children':[this[_0x1259('0x24')],this[_0x1259('0x18')]]}]}),this[_0x1259('0x15')][_0x1259('0x1e')](_0x1259('0x7'),(_0x240215,_0xe9d149)=>{this['cancelButtonView'][_0x1259('0x33')](_0x1259('0x22')),_0xe9d149();}),this['on'](_0x1259('0x23'),(_0x59f5a0,_0x5c8660)=>{_0x5c8660['length']>0xfde8?(alert(_0x4525fb(_0x24f5b5,_0x1259('0x35'),[_0x5c8660[_0x1259('0x2e')],0xfde8])),_0x59f5a0[_0x1259('0xc')]()):this[_0x1259('0x34')][_0x1259('0x19')]('');},{'priority':'high'});}[_0x1259('0x5')](){super[_0x1259('0x5')](),this[_0x1259('0x15')][_0x1259('0x31')](this[_0x1259('0x1c')]),this[_0x1259('0x21')]['add'](this[_0x1259('0x1c')]);}[_0x1259('0x2d')](){return this['editor']||(this['editor']=new _0x2a435d(this[_0x1259('0x2f')]),this[_0x1259('0x38')]=this['editor'][_0x1259('0x11')]()[_0x1259('0x8')](()=>{this[_0x1259('0x25')]||(this[_0x1259('0x1c')][_0x1259('0x17')](this[_0x1259('0x34')]['ui'][_0x1259('0x1c')],this[_0x1259('0x1c')][_0x1259('0x2a')]),this[_0x1259('0x34')][_0x1259('0x6')][_0x1259('0x4')]['on']('change',()=>this[_0x1259('0x9')]=this[_0x1259('0x34')][_0x1259('0x37')]()),this[_0x1259('0x34')][_0x1259('0xe')](_0x1259('0x36'))['to'](this),this[_0x1259('0x1f')](this[_0x1259('0x34')]),this[_0x1259('0x33')]('editorReady'));})),this['_editorCreationPromise'];}['focus'](){this[_0x1259('0x34')]&&this[_0x1259('0x34')][_0x1259('0x3')]();}async['destroy'](){this[_0x1259('0x25')]||(this[_0x1259('0x25')]=!0x0,this[_0x1259('0x34')]&&(await this[_0x1259('0x38')],await this[_0x1259('0x34')][_0x1259('0x0')]()),await super[_0x1259('0x0')]());}[_0x1259('0xf')](){const {locale:_0x163e2d}=this,_0xf42c69=new _0x5b7371(_0x163e2d);return _0xf42c69[_0x1259('0x12')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xf42c69['label']=_0x4525fb(_0x163e2d,_0x1259('0x39')),_0xf42c69[_0x1259('0x1a')]=_0x5025cf[_0x1259('0x13')],_0xf42c69['on'](_0x1259('0x22'),()=>{this['fire'](_0x1259('0x23'),this['value']);}),_0xf42c69[_0x1259('0xe')](_0x1259('0x2c'))['to'](this,_0x1259('0x9'),this,_0x1259('0x2b'),(_0x13288a,_0x7873af)=>!_0x7873af&&!!_0x13288a[_0x1259('0xa')]()),_0xf42c69;}[_0x1259('0x30')](){const {locale:_0x320477}=this,_0x4e8a7b=new _0x5b7371(_0x320477);return _0x4e8a7b[_0x1259('0x12')]({'attributes':{'class':[_0x1259('0x20')]}}),_0x4e8a7b[_0x1259('0x1')]=_0x4525fb(_0x320477,'Cancel'),_0x4e8a7b[_0x1259('0x1a')]=_0x5025cf[_0x1259('0x29')],_0x4e8a7b['on']('execute',()=>{this[_0x1259('0x34')][_0x1259('0x19')](''),this['fire'](_0x1259('0x29'));}),_0x4e8a7b;}[_0x1259('0x1f')](_0x363ddc){const _0xf8fb83=this[_0x1259('0x21')],_0x1c5138=new _0x584e43();[_0x363ddc['ui'][_0x1259('0x26')],this[_0x1259('0x24')],this[_0x1259('0x18')]][_0x1259('0x16')](_0x5717d4=>{_0x1c5138['add'](_0x5717d4),_0xf8fb83[_0x1259('0x14')](_0x5717d4['element']);});const _0x3bf77a=new _0x504c2f({'focusables':_0x1c5138,'focusTracker':_0xf8fb83});this['keystrokes'][_0x1259('0x1e')]('tab',(_0x52bf1d,_0x5ddd96)=>{_0x3bf77a[_0x1259('0x10')](),_0x5ddd96();},{'priority':_0x1259('0x1d')}),this[_0x1259('0x15')][_0x1259('0x1e')]('shift\x20+\x20tab',(_0x244efa,_0x53bfbb)=>{_0x3bf77a[_0x1259('0x1b')](),_0x53bfbb();},{'priority':_0x1259('0x1d')});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x77b5=['from','formatDateTime','element','createCollection','_collapsedCommentsView','_config','render','maxCommentCharsWhenCollapsed','destroy','delete','stopListening','equal','removeComment','_handleRemoveCommentModel','comments','change:isActive','focus','count','set','commentViews','listenTo','refreshVisibleViews','get','length','updateComment','hasDirtyComment','remove','maxThreadTotalWeight','add','_shouldCollapse','insert','_rearrangeCollapse','_updateHasDirtyComment','_handleNewCommentModel','_model','visibleViews','setTemplate','ck-thread__comments','delegate','maxCommentsWhenCollapsed','expand','collapse','isEditMode','editorConfig'];(function(_0x5aec50,_0x77b595){const _0x2a30cd=function(_0x41078d){while(--_0x41078d){_0x5aec50['push'](_0x5aec50['shift']());}};_0x2a30cd(++_0x77b595);}(_0x77b5,0x1e2));const _0x2a30=function(_0x5aec50,_0x77b595){_0x5aec50=_0x5aec50-0x0;let _0x2a30cd=_0x77b5[_0x5aec50];return _0x2a30cd;};import{View as _0x247425}from'ckeditor5/src/ui';import{diff as _0x52b6f4,Collection as _0x2ac3d6}from'ckeditor5/src/utils';import _0xb79c17 from'./collapsedcommentsview';export default class dt extends _0x247425{constructor(_0x3c84df,_0x66a886,_0x46d5d3){super(_0x3c84df),this['set']('hasDirtyComment',!0x1),this[_0x2a30('0x14')](_0x2a30('0x19'),_0x66a886[_0x2a30('0x10')][_0x2a30('0x19')]),this[_0x2a30('0x14')]('isActive',!0x1),this[_0x2a30('0x24')]=_0x66a886,this[_0x2a30('0x7')]=_0x46d5d3,this[_0x2a30('0x15')]=this[_0x2a30('0x5')](),this[_0x2a30('0x25')]=this['createCollection'](),this['_collapsedCommentsView']=new _0xb79c17(_0x3c84df),this[_0x2a30('0x6')]['bind']('count')['to'](this,_0x2a30('0x19'),_0x37f9e6=>_0x37f9e6-this[_0x2a30('0x7')][_0x2a30('0x29')]);for(const _0x117894 of _0x66a886[_0x2a30('0x10')])this[_0x2a30('0x23')](_0x117894);this[_0x2a30('0x16')](_0x66a886[_0x2a30('0x10')],_0x2a30('0x1e'),(_0x2fb22c,_0x2b667c)=>{this[_0x2a30('0x19')]++,this[_0x2a30('0x23')](_0x2b667c),this['refreshVisibleViews']();}),this['listenTo'](_0x66a886[_0x2a30('0x10')],'remove',(_0x929221,_0x1667b7)=>{this[_0x2a30('0x19')]--,this[_0x2a30('0xf')](_0x1667b7),this['refreshVisibleViews']();}),this[_0x2a30('0x16')](_0x66a886,'commentUpdated',()=>this[_0x2a30('0x17')]()),this['on'](_0x2a30('0x11'),()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this[_0x2a30('0x17')]()),this[_0x2a30('0x26')]({'tag':'ul','attributes':{'class':[_0x2a30('0x27')]},'children':this[_0x2a30('0x25')]});}get[_0x2a30('0x1f')](){return this['_model']['weight']>this[_0x2a30('0x7')][_0x2a30('0x1d')]&&!this['isActive']&&!this[_0x2a30('0x1b')];}[_0x2a30('0x8')](){super[_0x2a30('0x8')](),this[_0x2a30('0x17')]();}[_0x2a30('0x12')](){this[_0x2a30('0x4')][_0x2a30('0x12')]();}[_0x2a30('0xa')](){this[_0x2a30('0x6')]['destroy']();for(const _0x59a2ab of this['commentViews'])_0x59a2ab[_0x2a30('0xa')]();super[_0x2a30('0xa')]();}['refreshVisibleViews'](){this['_shouldCollapse']?this[_0x2a30('0x21')]():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x6b9ba9){const _0x5158b6=new this[(_0x2a30('0x7'))]['CommentView'](this['locale'],_0x6b9ba9,{'maxCommentCharsWhenCollapsed':this['_config'][_0x2a30('0x9')],'formatDateTime':this[_0x2a30('0x7')][_0x2a30('0x3')],'editorConfig':this['_config'][_0x2a30('0x1')]});_0x5158b6['viewUid']=_0x6b9ba9['id'],_0x5158b6['delegate'](_0x2a30('0xe'))['to'](this),_0x5158b6[_0x2a30('0x28')](_0x2a30('0x1a'))['to'](this),this['listenTo'](_0x5158b6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this[_0x2a30('0x15')][_0x2a30('0x1e')](_0x5158b6);}['_handleRemoveCommentModel'](_0x581e6a){const _0x461bea=this[_0x2a30('0x15')]['remove'](_0x581e6a['id']);this[_0x2a30('0xc')](_0x461bea),_0x461bea[_0x2a30('0x0')]&&this[_0x2a30('0x22')](),_0x461bea[_0x2a30('0xa')]();}[_0x2a30('0x22')](){this['hasDirtyComment']=Array['from'](this[_0x2a30('0x15')])['some'](_0x4a44f5=>_0x4a44f5['isEditMode']);}[_0x2a30('0x21')](){const _0x331474=function(_0x3acb45){const _0x3ee11d=new _0x2ac3d6();for(const _0x2ef29b of _0x3acb45)_0x3ee11d[_0x2a30('0x1e')](_0x2ef29b);return _0x3ee11d;}(this[_0x2a30('0x15')]),_0x925e71=this[_0x2a30('0x6')][_0x2a30('0x13')];for(let _0x228e3b=0x1;_0x228e3b<=_0x925e71;_0x228e3b++)_0x331474[_0x2a30('0x1c')](0x1);for(const _0x2026b0 of _0x331474)_0x2026b0[_0x2a30('0x2b')]();_0x925e71>0x0&&_0x331474[_0x2a30('0x1e')](this[_0x2a30('0x6')],0x1),Wt(_0x52b6f4(Array[_0x2a30('0x2')](this['visibleViews']),Array[_0x2a30('0x2')](_0x331474)),this['visibleViews'],_0x331474);}['_rearrangeExpand'](){Wt(_0x52b6f4(Array['from'](this[_0x2a30('0x25')]),Array[_0x2a30('0x2')](this[_0x2a30('0x15')])),this[_0x2a30('0x25')],this[_0x2a30('0x15')]);for(const _0x50a5ca of this[_0x2a30('0x25')])_0x50a5ca[_0x2a30('0x2a')]();}}function Wt(_0x5279d9,_0x123614,_0xa15ff3){let _0x3b4d2b=0x0;for(const _0x244eae of _0x5279d9)switch(_0x244eae){case _0x2a30('0x20'):_0x123614[_0x2a30('0x1e')](_0xa15ff3[_0x2a30('0x18')](_0x3b4d2b),_0x3b4d2b),_0x3b4d2b++;break;case _0x2a30('0xb'):_0x123614[_0x2a30('0x1c')](_0x3b4d2b);break;case _0x2a30('0xd'):_0x3b4d2b++;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x4830=['commentInputView','editor','userView','bind','ck-thread__input','extendTemplate','ck-comment__input-container','createEditor','set','change:showInput','showButtons','isFocused','value','then','showInput','div','setTemplate','destroy','bindTemplate','focusTracker'];(function(_0x23a24d,_0x4830ca){var _0x27fb77=function(_0x21eacc){while(--_0x21eacc){_0x23a24d['push'](_0x23a24d['shift']());}};_0x27fb77(++_0x4830ca);}(_0x4830,0xf9));var _0x27fb=function(_0x23a24d,_0x4830ca){_0x23a24d=_0x23a24d-0x0;var _0x27fb77=_0x4830[_0x23a24d];return _0x27fb77;};import{View as _0x44c319}from'ckeditor5/src/ui';import _0x7d30e2 from'./commentinputview';import{UserView as _0x2bdfb8}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0x44c319{constructor(_0xd609cc,_0x4e4d20,_0x529d0c){super(_0xd609cc),this[_0x27fb('0xb')]=new _0x7d30e2(_0xd609cc,_0x529d0c),this['commentInputView'][_0x27fb('0xe')](_0x27fb('0x1'))['to'](this['commentInputView'][_0x27fb('0xa')],_0x27fb('0x2'),this[_0x27fb('0xb')],_0x27fb('0x3'),(_0x24cb1e,_0x266c0f)=>_0x24cb1e||!!_0x266c0f),this[_0x27fb('0x13')](_0x27fb('0x5'),!0x1),this['on'](_0x27fb('0x0'),()=>{this['showInput']&&!this['commentInputView'][_0x27fb('0xc')]&&this['commentInputView'][_0x27fb('0x12')]();}),this[_0x27fb('0xd')]=new _0x2bdfb8(_0xd609cc,_0x4e4d20),this['userView'][_0x27fb('0x10')]({'attributes':{'class':'ck-thread__user'}}),this[_0x27fb('0xb')][_0x27fb('0x10')]({'attributes':{'class':_0x27fb('0xf')}}),this[_0x27fb('0x7')]({'tag':_0x27fb('0x6'),'attributes':{'class':[_0x27fb('0x11'),this[_0x27fb('0x9')]['if'](_0x27fb('0x5'),'ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x27fb('0x8')]()[_0x27fb('0x4')](()=>super[_0x27fb('0x8')]());}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x23cb=['actionIndicator','ck-thread__container','commentsListView','remove','locale','unbind','_model','fire','ck-thread','commentViews','ck-thread--','execute','change:isActive','Write\x20a\x20comment...','cancelConfirm','placeholder','querySelector','containerElement','stop','element','_boundFirstCommentView','Delete\x20comment\x20thread?','_cancelAllConfirms','bindTemplate','change:isReadOnly','listenTo','set','then','getTemplate','get','ck-thread--remove-confirmation','removeButton','ck-thread--active','div','showConfirm','length','commentThreadInputView','_bindFirstCommentView','render','add','removeCommentThread'];(function(_0x15843f,_0x23cb91){const _0x1708d1=function(_0x5cbc08){while(--_0x5cbc08){_0x15843f['push'](_0x15843f['shift']());}};_0x1708d1(++_0x23cb91);}(_0x23cb,0xbe));const _0x1708=function(_0x15843f,_0x23cb91){_0x15843f=_0x15843f-0x0;let _0x1708d1=_0x23cb[_0x15843f];return _0x1708d1;};import{mix as _0xc6623e}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2638ea}from'ckeditor5-collaboration/src/collaboration-core';import _0xd79136 from'./basecommentthreadview';import{getTranslation as _0x282006}from'../../../utils/common-translations';export default class it extends _0xd79136{constructor(_0x1c6000,_0x281776,_0x369872,_0x24ae9b){super(_0x1c6000,_0x281776,_0x369872,_0x24ae9b),this[_0x1708('0x0')](_0x1708('0xf'),null),this[_0x1708('0x20')]=null,this[_0x1708('0x23')]=null,this[_0x1708('0x13')]=_0x1c6000,this['setTemplate'](this[_0x1708('0x2')]()),this['on'](_0x1708('0x1b'),(_0x1c0f63,_0x346242,_0x95258c)=>{_0x95258c||this['_cancelAllConfirms']();}),this[_0x1708('0x28')](this[_0x1708('0x15')],_0x1708('0x27'),(_0x19ec3e,_0x33c3fb,_0x8c137e)=>{_0x8c137e&&this[_0x1708('0x25')]();}),this[_0x1708('0x9')]>0x0&&this[_0x1708('0xb')](),this[_0x1708('0x28')](this[_0x1708('0x11')][_0x1708('0x18')],_0x1708('0xd'),()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5ea0ad=this[_0x1708('0x26')];return{'tag':_0x1708('0x7'),'attributes':{'class':[_0x1708('0x17'),_0x5ea0ad['if']('isActive',_0x1708('0x6')),_0x5ea0ad['if']('isConfirm',_0x1708('0x4')),_0x5ea0ad['to'](_0x1708('0xf'),_0x1ed47a=>_0x1ed47a?_0x1708('0x19')+_0x1ed47a:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x1708('0x7'),'attributes':{'class':_0x1708('0x10')},'children':[this['commentsListView'],this[_0x1708('0xa')]]}]};}[_0x1708('0xc')](){super['render'](),this['containerElement']=this[_0x1708('0x22')][_0x1708('0x1f')]('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x51cc5b of this[_0x1708('0x11')][_0x1708('0x18')])_0x51cc5b[_0x1708('0x1d')]();}[_0x1708('0xb')](){const {locale:_0x2efc5a}=this,_0x31a09c=this[_0x1708('0x11')][_0x1708('0x18')][_0x1708('0x3')](0x0);_0x31a09c!==this[_0x1708('0x23')]&&(this[_0x1708('0x23')]=_0x31a09c,this[_0x1708('0x14')](_0x1708('0xf')),this['bind'](_0x1708('0xf'))['to'](_0x31a09c,'actionIndicator',_0x32b5a2=>'remove'===_0x32b5a2?_0x1708('0x12'):null),_0x31a09c[_0x1708('0x1e')]=_0x282006(_0x2efc5a,_0x1708('0x1c')),_0x31a09c[_0x1708('0x5')]['on'](_0x1708('0x1a'),_0x503be5=>{_0x503be5[_0x1708('0x21')](),this[_0x1708('0x8')](_0x282006(_0x2efc5a,_0x1708('0x24')),this[_0x1708('0x20')])[_0x1708('0x1')](()=>{this[_0x1708('0x16')](_0x1708('0xe'));});},{'priority':'high'}));}}_0xc6623e(it,_0x2638ea);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x4766=['ck-comment__info-time','isEditMode','editButton','ck-comment__actions--hidden','ck-annotation__content-wrapper','ck-annotation','ck-annotation__info','push','source','time','extendTemplate','isVisible','@external','_model','ck-comment--edit','locale','div','ck-comment--','EXTERNAL_IMPORT_WORD_AVATAR','removeButton','Reply...','_config','ck-annotation__main','Edit','listenTo','placeholder','bindTemplate','isRemovable','ck-annotation__actions--hidden','ck-comment__info','author','isExternal','pencil','_createCommentInputView','isEnabled','ck-comment--remove','focus','userView','element','Delete\x20comment?','getTemplate','_createEditButton','formatDateTime','isReadOnly','creator','set','showConfirm','change:isRemovable','isEditable','getExternalCommentNote','_attachActions','actionIndicator','then','Remove','cancelConfirm','visibleView','remove','span','ck-comment__user','ck-comment--remove-confirmation','_createRemoveButton','execute','name','importWord','icon','isConfirm','ck-comment__external','ck-comment__wrapper','authoredAt','bind','label','attributes','fire'];(function(_0x427390,_0x4766fc){const _0x416866=function(_0x53b1ae){while(--_0x53b1ae){_0x427390['push'](_0x427390['shift']());}};_0x416866(++_0x4766fc);}(_0x4766,0x75));const _0x4168=function(_0x427390,_0x4766fc){_0x427390=_0x427390-0x0;let _0x416866=_0x4766[_0x427390];return _0x416866;};import{mix as _0x363bf7}from'ckeditor5/src/utils';import{ButtonView as _0x36da23}from'ckeditor5/src/ui';import{icons as _0x1b12c7}from'ckeditor5/src/core';import{UserView as _0x26d65d,ConfirmMixin as _0x114c4d}from'ckeditor5-collaboration/src/collaboration-core';import _0x482ed6 from'./basecommentview';import _0x2ed031 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x2503ea}from'../../../utils/common-translations';export default class rt extends _0x482ed6{constructor(_0x1e890b,_0x35716e,_0x4e0e95){super(_0x1e890b,_0x35716e,_0x4e0e95),this['set'](_0x4168('0x7'),null),this[_0x4168('0x1')](_0x4168('0x36'),_0x2503ea(_0x1e890b,_0x4168('0x31'))),this['set'](_0x4168('0x18'),null),this[_0x4168('0x19')](_0x4168('0x18'))['to'](_0x35716e),this[_0x4168('0x1f')]=this[_0x4168('0x46')](),this[_0x4168('0x30')]=this[_0x4168('0x10')](),this['userView']=new _0x26d65d(_0x1e890b,_0x35716e[_0x4168('0x3b')],this['getUserViewNotificationText']()),this[_0x4168('0x42')][_0x4168('0x27')]({'attributes':{'class':[_0x4168('0xe'),'ck-annotation__user']}}),this[_0x4168('0x35')](_0x35716e,_0x4168('0x3'),()=>this[_0x4168('0xa')]()),this['setTemplate'](this[_0x4168('0x45')]());}['getTemplate'](){const _0x4f1221=this[_0x4168('0x37')],_0x675f31=[{'tag':_0x4168('0x2d'),'attributes':{'class':[_0x4168('0x3a'),_0x4168('0x23')]},'children':[{'tag':_0x4168('0xd'),'children':[{'text':this['userView'][_0x4168('0x12')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0x4168('0x26'),'attributes':{'datetime':_0x4f1221['to'](_0x4168('0x18')),'class':[_0x4168('0x1d'),'ck-annotation__info-time']},'children':[{'text':_0x4f1221['to'](_0x4168('0x18'),_0x43c47c=>this[_0x4168('0x32')][_0x4168('0x47')](_0x43c47c))}]}]},{'tag':_0x4168('0x2d'),'attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x4f1221['if'](_0x4168('0x1e'),_0x4168('0x20')),_0x4f1221['if'](_0x4168('0x1e'),_0x4168('0x39'))]},'children':[this[_0x4168('0x1f')],this[_0x4168('0x30')]]},{'tag':_0x4168('0x2d'),'attributes':{'class':[_0x4168('0x21')]},'children':this[_0x4168('0xb')]}];return this[_0x4168('0x2a')]['isExternal']&&_0x675f31[_0x4168('0x24')]({'tag':'div','attributes':{'class':[_0x4168('0x16')]},'children':[{'text':this[_0x4168('0x5')]()}]}),{'tag':'li','attributes':{'class':[_0x4168('0x17'),_0x4f1221['if'](_0x4168('0x15'),_0x4168('0xf'))],'tabindex':-0x1},'children':[{'tag':_0x4168('0x2d'),'attributes':{'class':['ck-comment',_0x4168('0x22'),_0x4f1221['if']('isEditMode',_0x4168('0x2b')),_0x4f1221['to'](_0x4168('0x7'),_0x1582a5=>_0x1582a5?_0x4168('0x2e')+_0x1582a5:'')],'data-author-id':this[_0x4168('0x2a')][_0x4168('0x3b')]['id'],'data-comment-id':this[_0x4168('0x2a')]['id']},'children':[this[_0x4168('0x42')],{'tag':_0x4168('0x2d'),'attributes':{'class':['ck-comment__main',_0x4168('0x33')]},'children':_0x675f31}]}]};}[_0x4168('0x46')](){const _0x4c5444=new _0x36da23(this[_0x4168('0x2c')]);return _0x4c5444[_0x4168('0x1a')]=_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x34')),_0x4c5444[_0x4168('0x14')]=_0x1b12c7[_0x4168('0x3d')],_0x4c5444[_0x4168('0x27')]({'attributes':{'class':'ck-comment--edit'}}),_0x4c5444[_0x4168('0x19')](_0x4168('0x3f'))['to'](this[_0x4168('0x2a')],'isReadOnly',_0xf2c710=>!_0xf2c710),_0x4c5444['bind'](_0x4168('0x28'))['to'](this[_0x4168('0x2a')],_0x4168('0x4')),_0x4c5444['on'](_0x4168('0x11'),()=>this['switchToEditMode']()),_0x4c5444;}[_0x4168('0x10')](){const _0x23ddfe=new _0x36da23(this[_0x4168('0x2c')]);return _0x23ddfe[_0x4168('0x1a')]=_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x9')),_0x23ddfe[_0x4168('0x14')]=_0x2ed031,_0x23ddfe[_0x4168('0x27')]({'attributes':{'class':_0x4168('0x40')}}),_0x23ddfe[_0x4168('0x19')](_0x4168('0x3f'))['to'](this[_0x4168('0x2a')],_0x4168('0x48'),_0x58719d=>!_0x58719d),_0x23ddfe['bind'](_0x4168('0x28'))['to'](this['_model'],_0x4168('0x38')),_0x23ddfe['on'](_0x4168('0x11'),()=>{this[_0x4168('0x2')](_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x44')),this['element'])[_0x4168('0x8')](()=>{this[_0x4168('0x1c')]('removeComment',this[_0x4168('0x2a')]['id']);});}),_0x23ddfe;}[_0x4168('0x6')](_0x180833,_0x1ede3a){this[_0x4168('0x35')](_0x180833,'mouseenter',()=>this['actionIndicator']=_0x1ede3a),this[_0x4168('0x35')](_0x180833,_0x4168('0x41'),()=>this[_0x4168('0x7')]=_0x1ede3a),this[_0x4168('0x35')](_0x180833,'mouseleave',()=>this[_0x4168('0x7')]=null),this[_0x4168('0x35')](_0x180833,'blur',()=>this['actionIndicator']=null);}[_0x4168('0x3e')](){const _0x28b1d2=super['_createCommentInputView']();return _0x28b1d2[_0x4168('0x19')]('placeholder')['to'](this),_0x28b1d2;}[_0x4168('0x5')](){return _0x4168('0x13')===this[_0x4168('0x2a')][_0x4168('0x1b')]['@external'][_0x4168('0x25')]?_0x2503ea(this[_0x4168('0x2c')],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x2503ea(this[_0x4168('0x2c')],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this[_0x4168('0x2a')][_0x4168('0x3c')]?_0x4168('0x13')===this[_0x4168('0x2a')][_0x4168('0x1b')][_0x4168('0x29')]['source']?_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x2f'),this[_0x4168('0x2a')]['creator']['name']):_0x2503ea(this[_0x4168('0x2c')],'EXTERNAL_AVATAR',this[_0x4168('0x2a')][_0x4168('0x0')][_0x4168('0x12')]):null;}['render'](){super['render'](),this[_0x4168('0x6')](this[_0x4168('0x1f')][_0x4168('0x43')],'edit'),this[_0x4168('0x6')](this[_0x4168('0x30')][_0x4168('0x43')],_0x4168('0xc'));}}_0x363bf7(rt,_0x114c4d);
|
package/src/comments.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x48a0=['requires','pluginName'];(function(_0x2cf15a,_0x48a017){var _0x172c44=function(_0x195f57){while(--_0x195f57){_0x2cf15a['push'](_0x2cf15a['shift']());}};_0x172c44(++_0x48a017);}(_0x48a0,0x120));var _0x172c=function(_0x2cf15a,_0x48a017){_0x2cf15a=_0x2cf15a-0x0;var _0x172c44=_0x48a0[_0x2cf15a];return _0x172c44;};import{Plugin as _0x59cc19}from'ckeditor5/src/core';import _0x20f33a from'./comments/commentsrepository';import _0x56276d from'./comments/commentsediting';import _0x1622ac from'./comments/commentsui';import _0x511d13 from'./commentsonly';import _0x37f78f from'./annotations/widesidebar';import _0x4fb377 from'./annotations/narrowsidebar';import _0x5d9a1f from'./annotations/inlineannotations';export default class c extends _0x59cc19{static get[_0x172c('0x0')](){return[_0x20f33a,_0x56276d,_0x1622ac,_0x511d13,_0x37f78f,_0x4fb377,_0x5d9a1f];}static get[_0x172c('0x1')](){return'Comments';}}
|
package/src/commentsonly.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x2581=['stop','document','_disableCommentsOnlyMode','DragDrop','forceDisabled','stopListening','_enableCommentsOnlyMode','plugins','addCommentThread','get','set','change:isEnabled','clearForceDisabled','view','isEnabled','affectsData','commentsOnly','cut','commentsOnlyMode','editing','highest','editor','delete','listenTo','requires','commands','CommentsOnly'];(function(_0x5b01b6,_0x2581e0){const _0x53fb6c=function(_0x4fdaba){while(--_0x4fdaba){_0x5b01b6['push'](_0x5b01b6['shift']());}};_0x53fb6c(++_0x2581e0);}(_0x2581,0x1e2));const _0x53fb=function(_0x5b01b6,_0x2581e0){_0x5b01b6=_0x5b01b6-0x0;let _0x53fb6c=_0x2581[_0x5b01b6];return _0x53fb6c;};import{Plugin as _0x33e6c2}from'ckeditor5/src/core';import _0x2426e7 from'./comments/commentsediting';export default class e extends _0x33e6c2{static get['pluginName'](){return _0x53fb('0x3');}static get[_0x53fb('0x1')](){return[_0x2426e7];}constructor(_0x212ab2){super(_0x212ab2),this[_0x53fb('0xe')](_0x53fb('0x12'),null),this['on'](_0x53fb('0xf'),(_0x1ba476,_0xe5dccd,_0x44ff4e)=>{_0x44ff4e?this[_0x53fb('0xa')]():this[_0x53fb('0x6')]();});}['afterInit'](){null===this[_0x53fb('0x12')]&&(this[_0x53fb('0x12')]=!!this[_0x53fb('0x19')]['config'][_0x53fb('0xd')](_0x53fb('0x14')));}[_0x53fb('0xa')](){for(const [_0x21b7ba,_0x1cb78a]of this[_0x53fb('0x19')]['commands'])_0x1cb78a[_0x53fb('0x13')]&&_0x53fb('0xc')!==_0x21b7ba&&_0x1cb78a['forceDisabled'](_0x53fb('0x16'));this['editor']['plugins']['has'](_0x53fb('0x7'))&&this[_0x53fb('0x19')][_0x53fb('0xb')][_0x53fb('0xd')](_0x53fb('0x7'))[_0x53fb('0x8')](_0x53fb('0x16'));const _0x4f9182=this[_0x53fb('0x19')][_0x53fb('0x17')]['view'][_0x53fb('0x5')];this['listenTo'](_0x4f9182,_0x53fb('0x15'),_0xa3b560=>_0xa3b560['stop'](),{'priority':_0x53fb('0x18')}),this['listenTo'](_0x4f9182,'clipboardInput',_0x1d2544=>_0x1d2544[_0x53fb('0x4')](),{'priority':_0x53fb('0x18')}),this[_0x53fb('0x0')](_0x4f9182,_0x53fb('0x1a'),_0x2b4f24=>_0x2b4f24[_0x53fb('0x4')](),{'priority':_0x53fb('0x18')});}[_0x53fb('0x6')](){for(const [_0x4c0713,_0x42975a]of this['editor'][_0x53fb('0x2')])_0x42975a[_0x53fb('0x13')]&&'addCommentThread'!==_0x4c0713&&_0x42975a[_0x53fb('0x10')](_0x53fb('0x16'));this[_0x53fb('0x9')](this['editor'][_0x53fb('0x17')][_0x53fb('0x11')][_0x53fb('0x5')]);}}
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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(_0x322da9,_0x5eee15,_0x51518a){const t=_0x322da9['t'];switch(_0x5eee15){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'},_0x51518a);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'},_0x51518a);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'},_0x51518a);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'},_0x51518a);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, 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 _0x167a=['observe','childList','cancel','attributeName'];(function(_0x1f4df3,_0x167a09){const _0xa39ea8=function(_0x6e2b50){while(--_0x6e2b50){_0x1f4df3['push'](_0x1f4df3['shift']());}};_0xa39ea8(++_0x167a09);}(_0x167a,0xe7));const _0xa39e=function(_0x1f4df3,_0x167a09){_0x1f4df3=_0x1f4df3-0x0;let _0xa39ea8=_0x167a[_0x1f4df3];return _0xa39ea8;};import{throttle as _0x585607}from'lodash-es';export default function lt(_0x3c3dd1){const _0x57018d=_0x585607(_0x3c3dd1,0x1e),_0x7d3790=new MutationObserver(_0x103e55=>{for(const _0x1efbc3 of _0x103e55)('attributes'==_0x1efbc3['type']&&'class'==_0x1efbc3[_0xa39e('0x0')]||_0xa39e('0x2')==_0x1efbc3['type'])&&_0x57018d();});return{'attach'(_0x43adee){_0x7d3790[_0xa39e('0x1')](_0x43adee,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x7d3790['disconnect'](),_0x57018d[_0xa39e('0x3')]();}};}
|
package/theme/annotation.css
CHANGED
|
@@ -41,9 +41,11 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.ck .ck-annotation__main {
|
|
44
|
-
display:
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-areas:
|
|
46
|
+
"info actions"
|
|
47
|
+
"content content";
|
|
48
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
47
49
|
|
|
48
50
|
/* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */
|
|
49
51
|
width: calc( 100% - var(--ck-user-avatar-size) );
|
|
@@ -69,6 +71,8 @@
|
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
.ck .ck-annotation__info {
|
|
74
|
+
grid-area: info;
|
|
75
|
+
|
|
72
76
|
display: flex;
|
|
73
77
|
align-items: center;
|
|
74
78
|
color: var(--ck-color-annotation-info);
|
|
@@ -80,27 +84,40 @@
|
|
|
80
84
|
.ck .ck-annotation__info-name,
|
|
81
85
|
.ck .ck-annotation__info-time {
|
|
82
86
|
font-weight: bold;
|
|
83
|
-
max-width: 150px;
|
|
84
87
|
white-space: nowrap;
|
|
85
88
|
overflow: hidden;
|
|
86
|
-
text-overflow: ellipsis;
|
|
87
89
|
|
|
88
90
|
/* We need it to prevent `.ck.ck-reset` ovverride. */
|
|
89
91
|
color: var(--ck-color-annotation-info);
|
|
90
92
|
font-size: var(--ck-font-size-small);
|
|
91
93
|
}
|
|
92
94
|
|
|
95
|
+
.ck .ck-annotation__info-name {
|
|
96
|
+
text-overflow: ellipsis;
|
|
97
|
+
}
|
|
98
|
+
|
|
93
99
|
.ck .ck-annotation__info-time {
|
|
94
|
-
|
|
100
|
+
flex: 0 0 auto;
|
|
101
|
+
|
|
102
|
+
margin: 0 var(--ck-spacing-large);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-name,
|
|
106
|
+
.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-time {
|
|
107
|
+
white-space: nowrap;
|
|
95
108
|
}
|
|
96
109
|
|
|
97
110
|
.ck .ck-annotation__actions {
|
|
111
|
+
grid-area: actions;
|
|
112
|
+
|
|
98
113
|
transition: opacity 200ms ease;
|
|
99
114
|
opacity: 0.5;
|
|
100
115
|
}
|
|
101
116
|
|
|
102
117
|
/* Because of display flex, we need to strech out annotation content to 100%. */
|
|
103
118
|
.ck .ck-annotation__content-wrapper {
|
|
119
|
+
grid-area: content;
|
|
120
|
+
|
|
104
121
|
width: 100%;
|
|
105
122
|
}
|
|
106
123
|
|