@ckeditor/ckeditor5-comments 39.0.0 → 39.0.2
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 +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- package/build/comments.js +1 -1
- package/build/translations/fa.js +1 -1
- package/lang/translations/af.po +1 -0
- package/lang/translations/ar.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/bs.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de-ch.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es-co.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fa.po +10 -9
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/jv.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/ug.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- 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/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.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.d.ts +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/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.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/annotation.css +0 -2
- package/theme/comment.css +37 -37
- package/theme/commentmarker.css +5 -5
- package/theme/commentthread.css +56 -56
- package/theme/sidebar-narrow.css +2 -2
- package/theme/sidebar.css +11 -11
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ea3=['div','isConfirm','ck-annotation__actions--hidden','setTemplate','Edit','ck-comment__external','edit','Reply...','ck-annotation__info-name','element','ck-comment--edit','formatDateTime','attributes','bind','_model','isSystemComment','change:isEnabled','some','authoredAt','createCollection','dropdown','creator','visibleView','ck-annotation','EXTERNAL_AVATAR','remove','icon','_config','Remove','_createEditButton','name','children','add','ck-comment__main','blur','author','locale','switchToEditMode','cancelConfirm','render','label','importWord','ck-comment--info','removeComment','mouseenter','set','editButton','execute','placeholder','ck-annotation__info-time','ck-comment','ck-comment__actions','_attachActions','extendTemplate','items','resolvedAt','ck-annotation__actions','ck-comment__info-name','buttonView','actionBar','panelPosition','ck-comment__info-time','getUserViewNotificationText','length','EXTERNAL_IMPORT_WORD_COMMENT','withText','time','isVisible','ck-annotation__main','removeButton','push','ck-comment--remove','source','userView','ck-comment__wrapper','ck-annotation__info','getExternalCommentNote','change:isVisible','@external','addMany','change:isRemovable','actionIndicator','isExternal','threeVerticalDots','getTemplate','_createRemoveButton','listenTo','EXTERNAL_COMMENT','isEnabled','isReadOnly','panelView','isEditMode','ck-annotation__content-wrapper'];(function(_0x44a862,_0x4ea341){const _0x15ad23=function(_0x1b22e3){while(--_0x1b22e3){_0x44a862['push'](_0x44a862['shift']());}};_0x15ad23(++_0x4ea341);}(_0x4ea3,0x184));const _0x15ad=function(_0x44a862,_0x4ea341){_0x44a862=_0x44a862-0x0;let _0x15ad23=_0x4ea3[_0x44a862];return _0x15ad23;};import{ButtonView as _0x1fe661,createDropdown as _0x3fa574,ListView as _0x5bde5b,ListItemView as _0x2bfa7d}from'ckeditor5/src/ui';import{icons as _0x26690e}from'ckeditor5/src/core';import{UserView as _0x567d64,ConfirmMixin as _0x58ef37}from'ckeditor5-collaboration/src/collaboration-core';import _0x15b155 from'./basecommentview';import _0x176189 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x4a6ef5}from'../../../utils/common-translations';export default class ut extends _0x58ef37(_0x15b155){constructor(_0x1df67a,_0x3436e6,_0x4126ad){super(_0x1df67a,_0x3436e6,_0x4126ad),this[_0x15ad('0x1d')](_0x15ad('0x41'),null),this['set'](_0x15ad('0x20'),_0x4a6ef5(_0x1df67a,_0x15ad('0x54'))),this[_0x15ad('0x5a')](_0x15ad('0x2'))['to'](_0x3436e6),this[_0x15ad('0x5a')](_0x15ad('0x27'))['to'](_0x3436e6),this[_0x15ad('0x2b')]=this['createCollection'](),this[_0x15ad('0x5c')]||(this['editButton']=this[_0x15ad('0xd')](),this['removeButton']=this['_createRemoveButton'](),this[_0x15ad('0x26')]=this[_0x15ad('0x3')](),this[_0x15ad('0x26')][_0x15ad('0x3f')]([this[_0x15ad('0x1e')],this[_0x15ad('0x35')]]),this[_0x15ad('0x4')]=this['_createDropdown'](),this[_0x15ad('0x2b')][_0x15ad('0x10')](this['dropdown'])),this[_0x15ad('0x39')]=new _0x567d64(_0x1df67a,_0x3436e6[_0x15ad('0x13')],this[_0x15ad('0x2e')]()),this[_0x15ad('0x39')][_0x15ad('0x25')]({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this[_0x15ad('0x46')](_0x3436e6,_0x15ad('0x40'),()=>this[_0x15ad('0x16')]()),this[_0x15ad('0x50')](this[_0x15ad('0x44')]());}[_0x15ad('0x44')](){const _0x5bf2da=this['bindTemplate'],_0x5bbff8=[{'tag':_0x15ad('0x4d'),'attributes':{'class':['ck-comment__info',_0x15ad('0x3b')]},'children':[{'tag':'span','children':[{'text':this[_0x15ad('0x39')]['name']}],'attributes':{'class':[_0x15ad('0x29'),_0x15ad('0x55')]}},{'tag':_0x15ad('0x32'),'attributes':{'datetime':_0x5bf2da['to'](_0x15ad('0x2')),'class':[_0x15ad('0x2d'),_0x15ad('0x21')]},'children':[{'text':_0x5bf2da['to']('authoredAt',_0x5acb23=>this[_0x15ad('0xb')][_0x15ad('0x58')](_0x5acb23))}]}]},{'tag':_0x15ad('0x4d'),'attributes':{'class':[_0x15ad('0x23'),_0x15ad('0x28'),_0x5bf2da['if'](_0x15ad('0x4b'),'ck-comment__actions--hidden'),_0x5bf2da['if'](_0x15ad('0x4b'),_0x15ad('0x4f'))]},'children':this['actionBar']},{'tag':'div','attributes':{'class':[_0x15ad('0x4c')]},'children':this[_0x15ad('0x6')]}];return this[_0x15ad('0x5b')][_0x15ad('0x42')]&&_0x5bbff8[_0x15ad('0x36')]({'tag':_0x15ad('0x4d'),'attributes':{'class':[_0x15ad('0x52')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':[_0x15ad('0x3a'),_0x5bf2da['if'](_0x15ad('0x4e'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x15ad('0x4d'),'attributes':{'class':[_0x15ad('0x22'),_0x15ad('0x7'),_0x5bf2da['if'](_0x15ad('0x4b'),'ck-comment--edit'),_0x5bf2da['if']('isSystemComment',_0x15ad('0x1a')),_0x5bf2da['to'](_0x15ad('0x41'),_0x207d2d=>_0x207d2d?'ck-comment--'+_0x207d2d:'')],'data-author-id':this[_0x15ad('0x5b')][_0x15ad('0x13')]['id'],'data-comment-id':this[_0x15ad('0x5b')]['id']},'children':[this[_0x15ad('0x39')],{'tag':_0x15ad('0x4d'),'attributes':{'class':[_0x15ad('0x11'),_0x15ad('0x34')]},'children':_0x5bbff8}]}]};}[_0x15ad('0xd')](){const _0x3cd051=new _0x1fe661(this[_0x15ad('0x14')]);return _0x3cd051['label']=_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0x51')),_0x3cd051[_0x15ad('0xa')]=_0x26690e['pencil'],_0x3cd051['withText']=!0x0,_0x3cd051[_0x15ad('0x25')]({'attributes':{'class':_0x15ad('0x57')}}),_0x3cd051[_0x15ad('0x5a')]('isEnabled')['to'](this['_model'],_0x15ad('0x49'),_0x45c376=>!_0x45c376),_0x3cd051[_0x15ad('0x5a')](_0x15ad('0x33'))['to'](this[_0x15ad('0x5b')],'isEditable'),_0x3cd051['on'](_0x15ad('0x1f'),()=>this[_0x15ad('0x15')]()),_0x3cd051;}[_0x15ad('0x45')](){const _0x202772=new _0x1fe661(this['locale']);return _0x202772[_0x15ad('0x18')]=_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0xc')),_0x202772[_0x15ad('0xa')]=_0x176189,_0x202772[_0x15ad('0x31')]=!0x0,_0x202772[_0x15ad('0x25')]({'attributes':{'class':_0x15ad('0x37')}}),_0x202772['bind']('isEnabled')['to'](this[_0x15ad('0x5b')],'isReadOnly',_0x68e0d9=>!_0x68e0d9),_0x202772[_0x15ad('0x5a')](_0x15ad('0x33'))['to'](this[_0x15ad('0x5b')],'isRemovable'),_0x202772['on'](_0x15ad('0x1f'),()=>{this['showConfirm'](_0x4a6ef5(this[_0x15ad('0x14')],'Delete\x20comment?'),this[_0x15ad('0x56')])['then'](()=>{this['fire'](_0x15ad('0x1b'),this[_0x15ad('0x5b')]['id']);});}),_0x202772;}['_createDropdown'](){const _0x5e8461=_0x3fa574(this[_0x15ad('0x14')]),_0x28b0ab=_0x5e8461[_0x15ad('0x4a')][_0x15ad('0xf')],_0xee366e=new _0x5bde5b(this['locale']),_0x2eb37c=(_0x15729d,_0x52de11=-0x1)=>{const _0x25d32d=new _0x2bfa7d(this['locale']);_0x25d32d[_0x15ad('0xf')][_0x15ad('0x10')](_0x15729d);const _0x4fb6a9=_0x52de11>-0x1?_0x52de11:_0xee366e[_0x15ad('0x26')][_0x15ad('0x2f')];_0xee366e[_0x15ad('0x26')][_0x15ad('0x10')](_0x25d32d,_0x4fb6a9),_0x5e8461[_0x15ad('0x46')](_0x15729d,_0x15ad('0x0'),()=>{_0x5e8461[_0x15ad('0x48')]=[...this['items']][_0x15ad('0x1')](_0x30bf1a=>_0x30bf1a[_0x15ad('0x48')]);}),_0x5e8461[_0x15ad('0x46')](_0x15729d,_0x15ad('0x3d'),()=>{_0x5e8461['buttonView'][_0x15ad('0x33')]=[...this[_0x15ad('0x26')]][_0x15ad('0x1')](_0x2046b0=>_0x2046b0[_0x15ad('0x33')]);});};_0x5e8461[_0x15ad('0x2c')]='sw',_0x5e8461[_0x15ad('0x2a')]['set']({'label':_0x4a6ef5(this[_0x15ad('0x14')],'Show\x20more\x20items'),'icon':_0x26690e[_0x15ad('0x43')]}),_0x5e8461[_0x15ad('0x48')]=[...this[_0x15ad('0x26')]]['some'](_0x6f7172=>_0x6f7172['isEnabled']),_0x5e8461[_0x15ad('0x2a')][_0x15ad('0x33')]=[...this[_0x15ad('0x26')]][_0x15ad('0x1')](_0xf59733=>_0xf59733[_0x15ad('0x33')]);for(const _0x3ade5c of this['items'])_0x2eb37c(_0x3ade5c);return _0x28b0ab[_0x15ad('0x10')](_0xee366e),_0x5e8461[_0x15ad('0x46')](this[_0x15ad('0x26')],_0x15ad('0x10'),(_0x14cede,_0x1b2906,_0xe03262)=>{_0x2eb37c(_0x1b2906,_0xe03262);}),_0x5e8461[_0x15ad('0x46')](this[_0x15ad('0x26')],_0x15ad('0x9'),(_0x341c95,_0x53f78b,_0x51cacc)=>{_0xee366e[_0x15ad('0x26')][_0x15ad('0x9')](_0x51cacc);}),_0x5e8461;}[_0x15ad('0x24')](_0x11a505,_0x4621f4){const _0x23a05e=_0x11a505&&_0x11a505[_0x15ad('0x56')];_0x23a05e&&(this['listenTo'](_0x23a05e,_0x15ad('0x1c'),()=>this[_0x15ad('0x41')]=_0x4621f4),this['listenTo'](_0x23a05e,'focus',()=>this[_0x15ad('0x41')]=_0x4621f4),this['listenTo'](_0x23a05e,'mouseleave',()=>this['actionIndicator']=null),this[_0x15ad('0x46')](_0x23a05e,_0x15ad('0x12'),()=>this[_0x15ad('0x41')]=null));}['_createCommentInputView'](){const _0x36f230=super['_createCommentInputView']();return _0x36f230[_0x15ad('0x5a')](_0x15ad('0x20'))['to'](this),_0x36f230;}[_0x15ad('0x3c')](){return _0x15ad('0x19')===this[_0x15ad('0x5b')][_0x15ad('0x59')][_0x15ad('0x3e')][_0x15ad('0x38')]?_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0x30')):_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0x47'));}[_0x15ad('0x2e')](){return this['_model'][_0x15ad('0x42')]?'importWord'===this[_0x15ad('0x5b')][_0x15ad('0x59')]['@external']['source']?_0x4a6ef5(this[_0x15ad('0x14')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x15ad('0x5b')][_0x15ad('0x5')][_0x15ad('0xe')]):_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0x8'),this[_0x15ad('0x5b')]['creator'][_0x15ad('0xe')]):null;}[_0x15ad('0x17')](){super[_0x15ad('0x17')](),this[_0x15ad('0x24')](this[_0x15ad('0x1e')],_0x15ad('0x53')),this[_0x15ad('0x24')](this['removeButton'],'remove');}}
|
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13a3=['requires','Comments'];(function(_0x34d9e7,_0x13a3d8){var _0x317c40=function(_0x375eaa){while(--_0x375eaa){_0x34d9e7['push'](_0x34d9e7['shift']());}};_0x317c40(++_0x13a3d8);}(_0x13a3,0x142));var _0x317c=function(_0x34d9e7,_0x13a3d8){_0x34d9e7=_0x34d9e7-0x0;var _0x317c40=_0x13a3[_0x34d9e7];return _0x317c40;};import{Plugin as _0x5bdc40}from'ckeditor5/src/core';import _0x18b493 from'./comments/commentsrepository';import _0x493a58 from'./comments/commentsediting';import _0x328fe4 from'./comments/commentsui';import _0x40452c from'./commentsonly';import _0x4d7dfe from'./annotations/widesidebar';import _0x3b0414 from'./annotations/narrowsidebar';import _0x2a30d9 from'./annotations/inlineannotations';import _0x408ce8 from'./comments/commentsarchiveui';import _0x59df99 from'./comments/commentsarchive';export default class f extends _0x5bdc40{static get[_0x317c('0x0')](){return[_0x18b493,_0x493a58,_0x328fe4,_0x59df99,_0x408ce8,_0x40452c,_0x4d7dfe,_0x3b0414,_0x2a30d9];}static get['pluginName'](){return _0x317c('0x1');}}
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3af4=['forceDisabled','editor','plugins','view','set','affectsData','pluginName','clipboardInput','clearForceDisabled','_disableCommentsOnlyMode','commentsOnlyMode','isEnabled','get','DragDrop','_enableCommentsOnlyMode','highest','addCommentThread','cut','listenTo','delete','CommentsOnly','afterInit','stop','document','commentsOnly','commands','requires'];(function(_0x19e78d,_0x3af452){const _0x56a8f6=function(_0x593731){while(--_0x593731){_0x19e78d['push'](_0x19e78d['shift']());}};_0x56a8f6(++_0x3af452);}(_0x3af4,0xd0));const _0x56a8=function(_0x19e78d,_0x3af452){_0x19e78d=_0x19e78d-0x0;let _0x56a8f6=_0x3af4[_0x19e78d];return _0x56a8f6;};import{Plugin as _0x52b64e}from'ckeditor5/src/core';import _0x5491dd from'./comments/commentsediting';export default class n extends _0x52b64e{static get[_0x56a8('0xe')](){return _0x56a8('0x1');}static get[_0x56a8('0x7')](){return[_0x5491dd];}constructor(_0x20c964){super(_0x20c964),this[_0x56a8('0xc')](_0x56a8('0x13'),!0x1),this['on']('change:isEnabled',(_0x5c6f7e,_0xc9d358,_0x2ab83f)=>{_0x2ab83f?this['_enableCommentsOnlyMode']():this[_0x56a8('0x11')]();});}[_0x56a8('0x2')](){!this[_0x56a8('0x13')]&&this[_0x56a8('0x9')]['config'][_0x56a8('0x14')](_0x56a8('0x5'))&&(this['isEnabled']=!0x0);}[_0x56a8('0x16')](){for(const [_0x2aa2ff,_0x1185a0]of this[_0x56a8('0x9')][_0x56a8('0x6')])_0x1185a0['affectsData']&&_0x56a8('0x18')!==_0x2aa2ff&&_0x1185a0['forceDisabled'](_0x56a8('0x12'));this[_0x56a8('0x9')]['plugins']['has'](_0x56a8('0x15'))&&this[_0x56a8('0x9')][_0x56a8('0xa')]['get']('DragDrop')[_0x56a8('0x8')]('commentsOnlyMode');const _0x53206a=this[_0x56a8('0x9')]['editing'][_0x56a8('0xb')]['document'];this[_0x56a8('0x1a')](_0x53206a,_0x56a8('0x19'),_0x1188c7=>_0x1188c7['stop'](),{'priority':_0x56a8('0x17')}),this[_0x56a8('0x1a')](_0x53206a,_0x56a8('0xf'),_0x4b92b5=>_0x4b92b5[_0x56a8('0x3')](),{'priority':_0x56a8('0x17')}),this[_0x56a8('0x1a')](_0x53206a,_0x56a8('0x0'),_0x5b1904=>_0x5b1904[_0x56a8('0x3')](),{'priority':_0x56a8('0x17')});}['_disableCommentsOnlyMode'](){for(const [_0x1e8920,_0x294bff]of this[_0x56a8('0x9')][_0x56a8('0x6')])_0x294bff[_0x56a8('0xd')]&&_0x56a8('0x18')!==_0x1e8920&&_0x294bff[_0x56a8('0x10')](_0x56a8('0x12'));this['stopListening'](this[_0x56a8('0x9')]['editing']['view'][_0x56a8('0x4')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x280819,_0x4474c1,_0x4f9eb3){const t=_0x280819['t'];switch(_0x4474c1){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'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4f9eb3);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'},_0x4f9eb3);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'},_0x4f9eb3);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'},_0x4f9eb3);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x171e=['class','disconnect','characterData','cancel','attributeName','type','attributes'];(function(_0x2843f7,_0x171e7a){const _0x2bc9c9=function(_0x3a7d4e){while(--_0x3a7d4e){_0x2843f7['push'](_0x2843f7['shift']());}};_0x2bc9c9(++_0x171e7a);}(_0x171e,0x10d));const _0x2bc9=function(_0x2843f7,_0x171e7a){_0x2843f7=_0x2843f7-0x0;let _0x2bc9c9=_0x171e[_0x2843f7];return _0x2bc9c9;};import{throttle as _0x1875e8}from'lodash-es';export default function Dt(_0x4976fd){const _0x1ded84=_0x1875e8(_0x4976fd,0x1e),_0x39f067=new MutationObserver(_0xb4759c=>{for(const _0x13a24f of _0xb4759c)(_0x2bc9('0x3')==_0x13a24f[_0x2bc9('0x2')]&&_0x2bc9('0x4')==_0x13a24f[_0x2bc9('0x1')]||'childList'==_0x13a24f[_0x2bc9('0x2')]||_0x2bc9('0x6')==_0x13a24f[_0x2bc9('0x2')])&&_0x1ded84();});return{'attach'(_0x402197){_0x39f067['observe'](_0x402197,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x39f067[_0x2bc9('0x5')](),_0x1ded84[_0x2bc9('0x0')]();}};}
|
package/theme/annotation.css
CHANGED
package/theme/comment.css
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
/* Half width of line. */
|
|
43
43
|
- 2px
|
|
44
|
-
|
|
44
|
+
);
|
|
45
45
|
width: 4px;
|
|
46
46
|
height: 100%;
|
|
47
47
|
background-color: var(--ck-color-comment-separator);
|
|
@@ -68,48 +68,16 @@
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.ck .ck-comment--info {
|
|
72
|
-
& .ck-comment__content {
|
|
73
|
-
font-style: italic;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ck .ck-comment__main {
|
|
78
|
-
& .ck-comment__input-wrapper {
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: column;
|
|
81
|
-
position: relative;
|
|
82
|
-
transition: all 300ms linear;
|
|
83
|
-
|
|
84
|
-
& .ck-comment__input {
|
|
85
|
-
padding: 0;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
71
|
.ck .ck-comment__content {
|
|
91
72
|
word-break: break-word;
|
|
92
73
|
}
|
|
93
74
|
|
|
94
|
-
.ck .ck-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* We need specificity 030 to beat styles in `commentinput.css`. */
|
|
100
|
-
.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit {
|
|
101
|
-
background: var(--ck-color-base-action);
|
|
102
|
-
color: white;
|
|
103
|
-
|
|
104
|
-
&:hover {
|
|
105
|
-
background: var(--ck-color-button-save);
|
|
75
|
+
.ck .ck-comment--info {
|
|
76
|
+
& .ck-comment__content {
|
|
77
|
+
font-style: italic;
|
|
106
78
|
}
|
|
107
79
|
}
|
|
108
80
|
|
|
109
|
-
.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel {
|
|
110
|
-
color: var(--ck-color-text);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
81
|
/* Common styles for typography inside comment element and editable input.
|
|
114
82
|
We are styling resetting list-style because of parent <ul> element. */
|
|
115
83
|
.ck .ck-comment,
|
|
@@ -139,6 +107,38 @@ We are styling resetting list-style because of parent <ul> element. */
|
|
|
139
107
|
}
|
|
140
108
|
}
|
|
141
109
|
|
|
110
|
+
.ck .ck-comment__main {
|
|
111
|
+
& .ck-comment__input-wrapper {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
position: relative;
|
|
115
|
+
transition: all 300ms linear;
|
|
116
|
+
|
|
117
|
+
& .ck-comment__input {
|
|
118
|
+
padding: 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ck .ck-comment__user {
|
|
124
|
+
/* Display user above vertical line. */
|
|
125
|
+
z-index: var(--ck-z-default);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* We need specificity 030 to beat styles in `commentinput.css`. */
|
|
129
|
+
.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit {
|
|
130
|
+
background: var(--ck-color-base-action);
|
|
131
|
+
color: hsl(0, 0%, 100%);
|
|
132
|
+
|
|
133
|
+
&:hover {
|
|
134
|
+
background: var(--ck-color-button-save);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel {
|
|
139
|
+
color: var(--ck-color-text);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
142
|
.ck .ck-comment__external {
|
|
143
143
|
font-style: italic;
|
|
144
144
|
color: var(--ck-color-annotation-info);
|
|
@@ -167,6 +167,6 @@ We are styling resetting list-style because of parent <ul> element. */
|
|
|
167
167
|
& .ck-button__label {
|
|
168
168
|
margin: 0 var(--ck-spacing-large);
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
}
|
|
171
171
|
}
|
|
172
172
|
}
|
package/theme/commentmarker.css
CHANGED
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
.ck-comment-marker--active {
|
|
29
29
|
background: var(--ck-color-comment-marker-active);
|
|
30
30
|
|
|
31
|
+
/* See #2469. Inactive comment marker inside an active one should be highlighted too. */
|
|
32
|
+
& .ck-comment-marker {
|
|
33
|
+
background: var(--ck-color-comment-marker-active);
|
|
34
|
+
}
|
|
35
|
+
|
|
31
36
|
&.ck-widget {
|
|
32
37
|
border-color: var(--ck-color-comment-marker-active);
|
|
33
38
|
|
|
@@ -36,9 +41,4 @@
|
|
|
36
41
|
background-color: var(--ck-color-comment-marker);
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
|
-
|
|
40
|
-
/* See #2469. Inactive comment marker inside an active one should be highlighted too. */
|
|
41
|
-
& .ck-comment-marker {
|
|
42
|
-
background: var(--ck-color-comment-marker-active);
|
|
43
|
-
}
|
|
44
44
|
}
|
package/theme/commentthread.css
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
--ck-color-thread-remove-background: var(--ck-color-comment-remove-background);
|
|
11
11
|
--ck-color-comment-count: hsl(210, 52%, 57%);
|
|
12
12
|
|
|
13
|
-
--ck-color-thread-header-background:
|
|
14
|
-
--ck-color-thread-header-active-background:
|
|
13
|
+
--ck-color-thread-header-background: hsl(54, 88%, 93%);
|
|
14
|
+
--ck-color-thread-header-active-background: hsl(52, 100%, 83%);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.ck .ck-thread {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
z-index: 2;
|
|
77
77
|
|
|
78
78
|
background: var(--ck-color-base-background);
|
|
79
|
-
box-shadow: 0 2px 3px
|
|
79
|
+
box-shadow: 0 2px 3px hsla(0, 0%, 100%, 0.2);
|
|
80
80
|
border-radius: 2px;
|
|
81
81
|
white-space: normal;
|
|
82
82
|
box-sizing: border-box;
|
|
@@ -84,28 +84,6 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
/* Handle visibility of vertical line below avatars. */
|
|
88
|
-
.ck .ck-thread__comments .ck-comment__wrapper {
|
|
89
|
-
&:last-of-type {
|
|
90
|
-
& .ck-comment::after {
|
|
91
|
-
opacity: 0;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ck .ck-thread__container {
|
|
97
|
-
transition: transform 300ms ease;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ck .ck-thread__comments {
|
|
101
|
-
position: relative;
|
|
102
|
-
z-index: var(--ck-z-default);
|
|
103
|
-
list-style: none;
|
|
104
|
-
margin: 0;
|
|
105
|
-
padding: 0;
|
|
106
|
-
border-radius: var(--ck-border-radius);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
87
|
.ck .ck-thread__comment-count {
|
|
110
88
|
/* Make avatar size in the comment smaller than in presence list. */
|
|
111
89
|
--ck-user-avatar-size: 28px;
|
|
@@ -126,21 +104,6 @@
|
|
|
126
104
|
}
|
|
127
105
|
}
|
|
128
106
|
|
|
129
|
-
.ck .ck-thread--active {
|
|
130
|
-
& .ck-comment__options.ck-dropdown {
|
|
131
|
-
display: block;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
& .ck-thread__input {
|
|
135
|
-
display: block;
|
|
136
|
-
background-color: var(--ck-color-comment-background);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
& .ck-thread__header {
|
|
140
|
-
background-color: var(--ck-color-thread-header-active-background);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
107
|
.ck .ck-thread--remove {
|
|
145
108
|
& .ck-comment {
|
|
146
109
|
background-color: var(--ck-color-comment-remove-background);
|
|
@@ -166,6 +129,59 @@
|
|
|
166
129
|
}
|
|
167
130
|
}
|
|
168
131
|
|
|
132
|
+
/* Handle visibility of vertical line below avatars. */
|
|
133
|
+
.ck .ck-thread__comments .ck-comment__wrapper {
|
|
134
|
+
&:last-of-type {
|
|
135
|
+
& .ck-comment::after {
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.ck .ck-thread__container {
|
|
142
|
+
transition: transform 300ms ease;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ck .ck-thread__comments {
|
|
146
|
+
position: relative;
|
|
147
|
+
z-index: var(--ck-z-default);
|
|
148
|
+
list-style: none;
|
|
149
|
+
margin: 0;
|
|
150
|
+
padding: 0;
|
|
151
|
+
border-radius: var(--ck-border-radius);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ck .ck-thread__input {
|
|
155
|
+
/* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */
|
|
156
|
+
width: calc( 100% - var(--ck-user-avatar-size) );
|
|
157
|
+
white-space: normal;
|
|
158
|
+
|
|
159
|
+
transition: background-color 200ms ease-in-out;
|
|
160
|
+
border-radius: var(--ck-border-radius);
|
|
161
|
+
|
|
162
|
+
/*
|
|
163
|
+
This is equal to the height of the wrapper when the editor instance is loaded.
|
|
164
|
+
Editor instance is loaded _after_ the comment view is created,
|
|
165
|
+
so the min-height is set to avoid jitter.
|
|
166
|
+
*/
|
|
167
|
+
min-height: 38px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ck .ck-thread--active {
|
|
171
|
+
& .ck-comment__options.ck-dropdown {
|
|
172
|
+
display: block;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
& .ck-thread__input {
|
|
176
|
+
display: block;
|
|
177
|
+
background-color: var(--ck-color-comment-background);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
& .ck-thread__header {
|
|
181
|
+
background-color: var(--ck-color-thread-header-active-background);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
169
185
|
.ck .ck-thread--remove-confirmation {
|
|
170
186
|
& .ck-thread__container {
|
|
171
187
|
transform: translate3d( -100%, 0, 0 );
|
|
@@ -210,19 +226,3 @@
|
|
|
210
226
|
margin: 0;
|
|
211
227
|
}
|
|
212
228
|
}
|
|
213
|
-
|
|
214
|
-
.ck .ck-thread__input {
|
|
215
|
-
/* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */
|
|
216
|
-
width: calc( 100% - var(--ck-user-avatar-size) );
|
|
217
|
-
white-space: normal;
|
|
218
|
-
|
|
219
|
-
transition: background-color 200ms ease-in-out;
|
|
220
|
-
border-radius: var(--ck-border-radius);
|
|
221
|
-
|
|
222
|
-
/*
|
|
223
|
-
This is equal to the height of the wrapper when the editor instance is loaded.
|
|
224
|
-
Editor instance is loaded _after_ the comment view is created,
|
|
225
|
-
so the min-height is set to avoid jitter.
|
|
226
|
-
*/
|
|
227
|
-
min-height: 38px;
|
|
228
|
-
}
|
package/theme/sidebar-narrow.css
CHANGED
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
height: 16px;
|
|
48
48
|
background: hsl(0, 0%, 20%);
|
|
49
49
|
font-weight: bold;
|
|
50
|
-
color:
|
|
50
|
+
color: hsl(0, 0%, 100%);
|
|
51
51
|
font-size: var(--ck-annotation-counter-number-size);
|
|
52
52
|
font-family: var(--ck-font-face);
|
|
53
53
|
right: 0;
|
|
54
54
|
top: -6px;
|
|
55
55
|
|
|
56
56
|
/* Improve visibility of counter number. */
|
|
57
|
-
text-shadow: -1px 0 2px
|
|
57
|
+
text-shadow: -1px 0 2px hsl(0, 0%, 27%), 1px 0 2px hsl(0, 0%, 27%);
|
|
58
58
|
|
|
59
59
|
/* Display number perfectly center of circle. */
|
|
60
60
|
display: flex;
|
package/theme/sidebar.css
CHANGED
|
@@ -34,17 +34,8 @@
|
|
|
34
34
|
box-shadow: var(--ck-color-annotation-wrapper-drop-shadow);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
.ck.ck-annotation-wrapper:
|
|
39
|
-
box-shadow: var(--ck-drop-shadow);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ck.ck-annotation-wrapper--active {
|
|
43
|
-
box-shadow: var(--ck-drop-shadow-active);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.ck.ck-annotation-wrapper:hover,
|
|
47
|
-
.ck.ck-annotation-wrapper--active {
|
|
37
|
+
.ck.ck-annotation-wrapper--active,
|
|
38
|
+
.ck.ck-annotation-wrapper:hover{
|
|
48
39
|
& .ck-annotation__actions {
|
|
49
40
|
opacity: 1;
|
|
50
41
|
|
|
@@ -61,3 +52,12 @@
|
|
|
61
52
|
color: var(--ck-color-button-cancel)
|
|
62
53
|
}
|
|
63
54
|
}
|
|
55
|
+
|
|
56
|
+
/* Handle case where annotation is inactive and users hover them. */
|
|
57
|
+
.ck.ck-annotation-wrapper:not(.ck-annotation-wrapper--active):hover {
|
|
58
|
+
box-shadow: var(--ck-drop-shadow);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ck.ck-annotation-wrapper--active {
|
|
62
|
+
box-shadow: var(--ck-drop-shadow-active);
|
|
63
|
+
}
|