@ckeditor/ckeditor5-comments 36.0.0 → 36.0.1

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.
Files changed (38) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsediting.js +1 -1
  18. package/src/comments/commentsrepository.js +1 -1
  19. package/src/comments/commentsui.js +1 -1
  20. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  21. package/src/comments/integrations/importword.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  23. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  25. package/src/comments/ui/commentthreadcontroller.js +1 -1
  26. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  27. package/src/comments/ui/view/basecommentview.js +1 -1
  28. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  29. package/src/comments/ui/view/commentcontentview.js +1 -1
  30. package/src/comments/ui/view/commentinputview.js +1 -1
  31. package/src/comments/ui/view/commentslistview.js +1 -1
  32. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  33. package/src/comments/ui/view/commentthreadview.js +1 -1
  34. package/src/comments/ui/view/commentview.js +1 -1
  35. package/src/comments.js +1 -1
  36. package/src/commentsonly.js +1 -1
  37. package/src/utils/common-translations.js +1 -1
  38. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]);}}
23
+ const _0x107a=['commentsOnly','isEnabled','get','addCommentThread','plugins','pluginName','clearForceDisabled','delete','CommentsOnly','commentsOnlyMode','highest','editing','forceDisabled','editor','document','stop','afterInit','view','_enableCommentsOnlyMode','config','listenTo','clipboardInput','commands','set','DragDrop','_disableCommentsOnlyMode'];(function(_0x4b42e6,_0x107a90){const _0x3356b7=function(_0x1448c7){while(--_0x1448c7){_0x4b42e6['push'](_0x4b42e6['shift']());}};_0x3356b7(++_0x107a90);}(_0x107a,0x1a0));const _0x3356=function(_0x4b42e6,_0x107a90){_0x4b42e6=_0x4b42e6-0x0;let _0x3356b7=_0x107a[_0x4b42e6];return _0x3356b7;};import{Plugin as _0x174458}from'ckeditor5/src/core';import _0x16f913 from'./comments/commentsediting';export default class e extends _0x174458{static get[_0x3356('0x5')](){return _0x3356('0x8');}static get['requires'](){return[_0x16f913];}constructor(_0x1c062c){super(_0x1c062c),this[_0x3356('0x17')](_0x3356('0x1'),null),this['on']('change:isEnabled',(_0x16bdb7,_0x5799e1,_0x1f6cfd)=>{_0x1f6cfd?this[_0x3356('0x12')]():this[_0x3356('0x19')]();});}[_0x3356('0x10')](){null===this[_0x3356('0x1')]&&(this[_0x3356('0x1')]=!!this[_0x3356('0xd')][_0x3356('0x13')][_0x3356('0x2')](_0x3356('0x0')));}[_0x3356('0x12')](){for(const [_0x1986ff,_0x9d97a4]of this['editor']['commands'])_0x9d97a4['affectsData']&&_0x3356('0x3')!==_0x1986ff&&_0x9d97a4[_0x3356('0xc')]('commentsOnlyMode');this[_0x3356('0xd')]['plugins']['has']('DragDrop')&&this['editor'][_0x3356('0x4')][_0x3356('0x2')](_0x3356('0x18'))[_0x3356('0xc')](_0x3356('0x9'));const _0x4ad6de=this[_0x3356('0xd')][_0x3356('0xb')][_0x3356('0x11')][_0x3356('0xe')];this[_0x3356('0x14')](_0x4ad6de,'cut',_0x505c95=>_0x505c95[_0x3356('0xf')](),{'priority':_0x3356('0xa')}),this[_0x3356('0x14')](_0x4ad6de,_0x3356('0x15'),_0x1320e3=>_0x1320e3[_0x3356('0xf')](),{'priority':_0x3356('0xa')}),this[_0x3356('0x14')](_0x4ad6de,_0x3356('0x7'),_0x20974c=>_0x20974c[_0x3356('0xf')](),{'priority':_0x3356('0xa')});}[_0x3356('0x19')](){for(const [_0x304aee,_0x3a2546]of this[_0x3356('0xd')][_0x3356('0x16')])_0x3a2546['affectsData']&&_0x3356('0x3')!==_0x304aee&&_0x3a2546[_0x3356('0x6')]('commentsOnlyMode');this['stopListening'](this[_0x3356('0xd')][_0x3356('0xb')]['view'][_0x3356('0xe')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ export function getTranslation(_0x5209e8,_0x2f6b20,_0x5e89e3){const t=_0x5209e8['t'];switch(_0x2f6b20){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'},_0x5e89e3);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'},_0x5e89e3);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'},_0x5e89e3);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'},_0x5e89e3);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]();}};}
23
+ const _0x1644=['disconnect','attributeName','attributes','type','observe','childList','cancel','class'];(function(_0x5496d9,_0x1644e1){const _0x4b0532=function(_0x305d02){while(--_0x305d02){_0x5496d9['push'](_0x5496d9['shift']());}};_0x4b0532(++_0x1644e1);}(_0x1644,0x1c7));const _0x4b05=function(_0x5496d9,_0x1644e1){_0x5496d9=_0x5496d9-0x0;let _0x4b0532=_0x1644[_0x5496d9];return _0x4b0532;};import{throttle as _0x418539}from'lodash-es';export default function lt(_0x3c8558){const _0x446637=_0x418539(_0x3c8558,0x1e),_0x4310f6=new MutationObserver(_0x4c0d51=>{for(const _0x32d601 of _0x4c0d51)(_0x4b05('0x3')==_0x32d601[_0x4b05('0x4')]&&_0x4b05('0x0')==_0x32d601[_0x4b05('0x2')]||_0x4b05('0x6')==_0x32d601[_0x4b05('0x4')])&&_0x446637();});return{'attach'(_0x27e656){_0x4310f6[_0x4b05('0x5')](_0x27e656,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x4310f6[_0x4b05('0x1')](),_0x446637[_0x4b05('0x7')]();}};}