@ckeditor/ckeditor5-comments 35.2.0 → 35.2.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 _0xdfcf=['set','has','isEnabled','requires','CommentsOnly','view','plugins','DragDrop','affectsData','cut','change:isEnabled','config','commentsOnlyMode','stop','editor','get','stopListening','_disableCommentsOnlyMode','addCommentThread','listenTo','commands','editing','delete','_enableCommentsOnlyMode','afterInit','forceDisabled','document','highest','clearForceDisabled','clipboardInput'];(function(_0x37d33a,_0xdfcf9){const _0x3ee6d3=function(_0x1af6e4){while(--_0x1af6e4){_0x37d33a['push'](_0x37d33a['shift']());}};_0x3ee6d3(++_0xdfcf9);}(_0xdfcf,0x14e));const _0x3ee6=function(_0x37d33a,_0xdfcf9){_0x37d33a=_0x37d33a-0x0;let _0x3ee6d3=_0xdfcf[_0x37d33a];return _0x3ee6d3;};import{Plugin as _0x1c3588}from'ckeditor5/src/core';import _0x4e62af from'./comments/commentsediting';export default class e extends _0x1c3588{static get['pluginName'](){return _0x3ee6('0x0');}static get[_0x3ee6('0x1d')](){return[_0x4e62af];}constructor(_0x266459){super(_0x266459),this[_0x3ee6('0x1a')](_0x3ee6('0x1c'),null),this['on'](_0x3ee6('0x6'),(_0xb8b0ae,_0x865aa3,_0x1ff4e1)=>{_0x1ff4e1?this[_0x3ee6('0x13')]():this[_0x3ee6('0xd')]();});}[_0x3ee6('0x14')](){null===this[_0x3ee6('0x1c')]&&(this[_0x3ee6('0x1c')]=!!this[_0x3ee6('0xa')][_0x3ee6('0x7')][_0x3ee6('0xb')]('commentsOnly'));}['_enableCommentsOnlyMode'](){for(const [_0x595a7a,_0x3c1539]of this[_0x3ee6('0xa')][_0x3ee6('0x10')])_0x3c1539[_0x3ee6('0x4')]&&_0x3ee6('0xe')!==_0x595a7a&&_0x3c1539[_0x3ee6('0x15')](_0x3ee6('0x8'));this[_0x3ee6('0xa')][_0x3ee6('0x2')][_0x3ee6('0x1b')](_0x3ee6('0x3'))&&this[_0x3ee6('0xa')][_0x3ee6('0x2')]['get'](_0x3ee6('0x3'))[_0x3ee6('0x15')](_0x3ee6('0x8'));const _0x2a4894=this[_0x3ee6('0xa')]['editing'][_0x3ee6('0x1')][_0x3ee6('0x16')];this[_0x3ee6('0xf')](_0x2a4894,_0x3ee6('0x5'),_0x304920=>_0x304920[_0x3ee6('0x9')](),{'priority':_0x3ee6('0x17')}),this[_0x3ee6('0xf')](_0x2a4894,_0x3ee6('0x19'),_0xbd6f55=>_0xbd6f55[_0x3ee6('0x9')](),{'priority':_0x3ee6('0x17')}),this['listenTo'](_0x2a4894,_0x3ee6('0x12'),_0x58acbe=>_0x58acbe[_0x3ee6('0x9')](),{'priority':_0x3ee6('0x17')});}['_disableCommentsOnlyMode'](){for(const [_0x388f23,_0x380ff8]of this[_0x3ee6('0xa')][_0x3ee6('0x10')])_0x380ff8[_0x3ee6('0x4')]&&'addCommentThread'!==_0x388f23&&_0x380ff8[_0x3ee6('0x18')](_0x3ee6('0x8'));this[_0x3ee6('0xc')](this[_0x3ee6('0xa')][_0x3ee6('0x11')][_0x3ee6('0x1')][_0x3ee6('0x16')]);}}
23
+ const _0x1510=['_enableCommentsOnlyMode','pluginName','clearForceDisabled','stopListening','document','stop','commands','requires','set','delete','cut','highest','listenTo','DragDrop','editing','plugins','get','_disableCommentsOnlyMode','commentsOnlyMode','isEnabled','view','editor','config','addCommentThread'];(function(_0x468e94,_0x1510ee){const _0x38bc61=function(_0x5c15b9){while(--_0x5c15b9){_0x468e94['push'](_0x468e94['shift']());}};_0x38bc61(++_0x1510ee);}(_0x1510,0x18c));const _0x38bc=function(_0x468e94,_0x1510ee){_0x468e94=_0x468e94-0x0;let _0x38bc61=_0x1510[_0x468e94];return _0x38bc61;};import{Plugin as _0x41508d}from'ckeditor5/src/core';import _0x14eaf6 from'./comments/commentsediting';export default class e extends _0x41508d{static get[_0x38bc('0xd')](){return'CommentsOnly';}static get[_0x38bc('0x13')](){return[_0x14eaf6];}constructor(_0xed0b5){super(_0xed0b5),this[_0x38bc('0x14')]('isEnabled',null),this['on']('change:isEnabled',(_0x2a1ace,_0x57b2a0,_0x109817)=>{_0x109817?this['_enableCommentsOnlyMode']():this[_0x38bc('0x5')]();});}['afterInit'](){null===this[_0x38bc('0x7')]&&(this[_0x38bc('0x7')]=!!this[_0x38bc('0x9')][_0x38bc('0xa')][_0x38bc('0x4')]('commentsOnly'));}[_0x38bc('0xc')](){for(const [_0x53e268,_0x15e227]of this[_0x38bc('0x9')]['commands'])_0x15e227['affectsData']&&_0x38bc('0xb')!==_0x53e268&&_0x15e227['forceDisabled'](_0x38bc('0x6'));this[_0x38bc('0x9')][_0x38bc('0x3')]['has'](_0x38bc('0x1'))&&this[_0x38bc('0x9')][_0x38bc('0x3')][_0x38bc('0x4')](_0x38bc('0x1'))['forceDisabled'](_0x38bc('0x6'));const _0x29628a=this[_0x38bc('0x9')][_0x38bc('0x2')][_0x38bc('0x8')][_0x38bc('0x10')];this[_0x38bc('0x0')](_0x29628a,_0x38bc('0x16'),_0x3d63ae=>_0x3d63ae['stop'](),{'priority':_0x38bc('0x17')}),this[_0x38bc('0x0')](_0x29628a,'clipboardInput',_0x57f12c=>_0x57f12c[_0x38bc('0x11')](),{'priority':'highest'}),this[_0x38bc('0x0')](_0x29628a,_0x38bc('0x15'),_0x34c504=>_0x34c504[_0x38bc('0x11')](),{'priority':_0x38bc('0x17')});}[_0x38bc('0x5')](){for(const [_0x3f5f39,_0xe7be17]of this[_0x38bc('0x9')][_0x38bc('0x12')])_0xe7be17['affectsData']&&'addCommentThread'!==_0x3f5f39&&_0xe7be17[_0x38bc('0xe')](_0x38bc('0x6'));this[_0x38bc('0xf')](this[_0x38bc('0x9')][_0x38bc('0x2')]['view']['document']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5a9c1f,_0x4120ea,_0x54c681){const t=_0x5a9c1f['t'];switch(_0x4120ea){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'},_0x54c681);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'},_0x54c681);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});}}
23
+ export function getTranslation(_0x59cc8f,_0x2fe8dd,_0x1317fb){const t=_0x59cc8f['t'];switch(_0x2fe8dd){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'},_0x1317fb);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'},_0x1317fb);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5314=['observe','attributeName','disconnect','childList','type','class','attributes'];(function(_0x502e84,_0x53146e){const _0x131810=function(_0x2bfdcd){while(--_0x2bfdcd){_0x502e84['push'](_0x502e84['shift']());}};_0x131810(++_0x53146e);}(_0x5314,0x1b5));const _0x1318=function(_0x502e84,_0x53146e){_0x502e84=_0x502e84-0x0;let _0x131810=_0x5314[_0x502e84];return _0x131810;};import{throttle as _0x3d2226}from'lodash-es';export default function ft(_0x2db391){const _0x4e43c5=_0x3d2226(_0x2db391,0x1e),_0x4f1bb0=new MutationObserver(_0x1b5d7b=>{for(const _0x2782f4 of _0x1b5d7b)(_0x1318('0x3')==_0x2782f4[_0x1318('0x1')]&&_0x1318('0x2')==_0x2782f4[_0x1318('0x5')]||_0x1318('0x0')==_0x2782f4['type'])&&_0x4e43c5();});return{'attach'(_0x2f6b2f){_0x4f1bb0[_0x1318('0x4')](_0x2f6b2f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x4f1bb0[_0x1318('0x6')](),_0x4e43c5['cancel']();}};}
23
+ const _0x19b1=['childList','type','cancel','attributes','observe','disconnect','attributeName'];(function(_0x44fee3,_0x19b14f){const _0x4cf82b=function(_0x3b7392){while(--_0x3b7392){_0x44fee3['push'](_0x44fee3['shift']());}};_0x4cf82b(++_0x19b14f);}(_0x19b1,0x186));const _0x4cf8=function(_0x44fee3,_0x19b14f){_0x44fee3=_0x44fee3-0x0;let _0x4cf82b=_0x19b1[_0x44fee3];return _0x4cf82b;};import{throttle as _0x1f36e2}from'lodash-es';export default function ft(_0x424f09){const _0x437ef2=_0x1f36e2(_0x424f09,0x1e),_0x3f0162=new MutationObserver(_0x54d6a4=>{for(const _0x3fa249 of _0x54d6a4)(_0x4cf8('0x5')==_0x3fa249[_0x4cf8('0x3')]&&'class'==_0x3fa249[_0x4cf8('0x1')]||_0x4cf8('0x2')==_0x3fa249['type'])&&_0x437ef2();});return{'attach'(_0x52e5b8){_0x3f0162[_0x4cf8('0x6')](_0x52e5b8,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x3f0162[_0x4cf8('0x0')](),_0x437ef2[_0x4cf8('0x4')]();}};}