@ckeditor/ckeditor5-comments 35.3.0 → 35.3.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 _0xa525=['affectsData','_enableCommentsOnlyMode','has','delete','pluginName','config','requires','document','editor','view','set','stop','plugins','clipboardInput','get','commentsOnly','clearForceDisabled','commands','forceDisabled','commentsOnlyMode','isEnabled','highest','_disableCommentsOnlyMode','listenTo','stopListening','addCommentThread','DragDrop','CommentsOnly','editing','cut','afterInit'];(function(_0x33db97,_0xa525cb){const _0x5de92e=function(_0x387c10){while(--_0x387c10){_0x33db97['push'](_0x33db97['shift']());}};_0x5de92e(++_0xa525cb);}(_0xa525,0x13e));const _0x5de9=function(_0x33db97,_0xa525cb){_0x33db97=_0x33db97-0x0;let _0x5de92e=_0xa525[_0x33db97];return _0x5de92e;};import{Plugin as _0x5527e1}from'ckeditor5/src/core';import _0x31aa2d from'./comments/commentsediting';export default class e extends _0x5527e1{static get[_0x5de9('0x1b')](){return _0x5de9('0x13');}static get[_0x5de9('0x1d')](){return[_0x31aa2d];}constructor(_0x3ba066){super(_0x3ba066),this[_0x5de9('0x2')](_0x5de9('0xc'),null),this['on']('change:isEnabled',(_0xac74de,_0x355300,_0x543d5d)=>{_0x543d5d?this[_0x5de9('0x18')]():this[_0x5de9('0xe')]();});}[_0x5de9('0x16')](){null===this[_0x5de9('0xc')]&&(this[_0x5de9('0xc')]=!!this[_0x5de9('0x0')][_0x5de9('0x1c')]['get'](_0x5de9('0x7')));}[_0x5de9('0x18')](){for(const [_0x5c37ef,_0x4ab5c7]of this[_0x5de9('0x0')][_0x5de9('0x9')])_0x4ab5c7[_0x5de9('0x17')]&&_0x5de9('0x11')!==_0x5c37ef&&_0x4ab5c7[_0x5de9('0xa')](_0x5de9('0xb'));this[_0x5de9('0x0')][_0x5de9('0x4')][_0x5de9('0x19')](_0x5de9('0x12'))&&this[_0x5de9('0x0')][_0x5de9('0x4')][_0x5de9('0x6')](_0x5de9('0x12'))['forceDisabled'](_0x5de9('0xb'));const _0x3c8c37=this[_0x5de9('0x0')][_0x5de9('0x14')][_0x5de9('0x1')][_0x5de9('0x1e')];this[_0x5de9('0xf')](_0x3c8c37,_0x5de9('0x15'),_0x400420=>_0x400420[_0x5de9('0x3')](),{'priority':_0x5de9('0xd')}),this[_0x5de9('0xf')](_0x3c8c37,_0x5de9('0x5'),_0xa330b4=>_0xa330b4[_0x5de9('0x3')](),{'priority':_0x5de9('0xd')}),this['listenTo'](_0x3c8c37,_0x5de9('0x1a'),_0x21aec8=>_0x21aec8[_0x5de9('0x3')](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x17af56,_0x3f3d28]of this[_0x5de9('0x0')]['commands'])_0x3f3d28[_0x5de9('0x17')]&&_0x5de9('0x11')!==_0x17af56&&_0x3f3d28[_0x5de9('0x8')](_0x5de9('0xb'));this[_0x5de9('0x10')](this['editor']['editing'][_0x5de9('0x1')]['document']);}}
23
+ const _0x17d1=['forceDisabled','document','addCommentThread','clearForceDisabled','editor','cut','listenTo','stopListening','view','has','DragDrop','set','commands','CommentsOnly','commentsOnlyMode','editing','requires','delete','stop','_enableCommentsOnlyMode','plugins','isEnabled','pluginName','get','change:isEnabled','affectsData','clipboardInput','highest','afterInit'];(function(_0x3c5c0f,_0x17d1c5){const _0x279f48=function(_0x3b8ae9){while(--_0x3b8ae9){_0x3c5c0f['push'](_0x3c5c0f['shift']());}};_0x279f48(++_0x17d1c5);}(_0x17d1,0x161));const _0x279f=function(_0x3c5c0f,_0x17d1c5){_0x3c5c0f=_0x3c5c0f-0x0;let _0x279f48=_0x17d1[_0x3c5c0f];return _0x279f48;};import{Plugin as _0x176a47}from'ckeditor5/src/core';import _0xebef22 from'./comments/commentsediting';export default class e extends _0x176a47{static get[_0x279f('0x11')](){return _0x279f('0x8');}static get[_0x279f('0xb')](){return[_0xebef22];}constructor(_0x4ab009){super(_0x4ab009),this[_0x279f('0x6')](_0x279f('0x10'),null),this['on'](_0x279f('0x13'),(_0x2e1f0b,_0x1a7fc0,_0x450c62)=>{_0x450c62?this[_0x279f('0xe')]():this['_disableCommentsOnlyMode']();});}[_0x279f('0x17')](){null===this[_0x279f('0x10')]&&(this[_0x279f('0x10')]=!!this[_0x279f('0x1c')]['config'][_0x279f('0x12')]('commentsOnly'));}[_0x279f('0xe')](){for(const [_0x171505,_0x132e4c]of this[_0x279f('0x1c')][_0x279f('0x7')])_0x132e4c[_0x279f('0x14')]&&_0x279f('0x1a')!==_0x171505&&_0x132e4c[_0x279f('0x18')](_0x279f('0x9'));this[_0x279f('0x1c')][_0x279f('0xf')][_0x279f('0x4')](_0x279f('0x5'))&&this['editor'][_0x279f('0xf')][_0x279f('0x12')](_0x279f('0x5'))[_0x279f('0x18')](_0x279f('0x9'));const _0x25ee19=this[_0x279f('0x1c')]['editing']['view'][_0x279f('0x19')];this[_0x279f('0x1')](_0x25ee19,_0x279f('0x0'),_0x1b57b9=>_0x1b57b9['stop'](),{'priority':_0x279f('0x16')}),this['listenTo'](_0x25ee19,_0x279f('0x15'),_0x3fcaa5=>_0x3fcaa5[_0x279f('0xd')](),{'priority':_0x279f('0x16')}),this[_0x279f('0x1')](_0x25ee19,_0x279f('0xc'),_0x2fbf4b=>_0x2fbf4b[_0x279f('0xd')](),{'priority':_0x279f('0x16')});}['_disableCommentsOnlyMode'](){for(const [_0x824628,_0x156162]of this[_0x279f('0x1c')][_0x279f('0x7')])_0x156162['affectsData']&&_0x279f('0x1a')!==_0x824628&&_0x156162[_0x279f('0x1b')](_0x279f('0x9'));this[_0x279f('0x2')](this['editor'][_0x279f('0xa')][_0x279f('0x3')]['document']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2fad4d,_0x4c6693,_0x35d668){const t=_0x2fad4d['t'];switch(_0x4c6693){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x35d668);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x35d668);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x35d668);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x35d668);}}
23
+ export function getTranslation(_0x5c6e25,_0x42b2c9,_0xa56aaa){const t=_0x5c6e25['t'];switch(_0x42b2c9){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'},_0xa56aaa);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'},_0xa56aaa);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'},_0xa56aaa);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'},_0xa56aaa);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2112=['observe','disconnect','class','type','cancel','attributeName'];(function(_0x5ce3e8,_0x211255){const _0x2f7271=function(_0x2c30a4){while(--_0x2c30a4){_0x5ce3e8['push'](_0x5ce3e8['shift']());}};_0x2f7271(++_0x211255);}(_0x2112,0x1ea));const _0x2f72=function(_0x5ce3e8,_0x211255){_0x5ce3e8=_0x5ce3e8-0x0;let _0x2f7271=_0x2112[_0x5ce3e8];return _0x2f7271;};import{throttle as _0x576fe4}from'lodash-es';export default function ht(_0x414edb){const _0x51aa95=_0x576fe4(_0x414edb,0x1e),_0x254063=new MutationObserver(_0xa2e602=>{for(const _0xb191b6 of _0xa2e602)('attributes'==_0xb191b6[_0x2f72('0x5')]&&_0x2f72('0x4')==_0xb191b6[_0x2f72('0x1')]||'childList'==_0xb191b6[_0x2f72('0x5')])&&_0x51aa95();});return{'attach'(_0x27f921){_0x254063[_0x2f72('0x2')](_0x27f921,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x254063[_0x2f72('0x3')](),_0x51aa95[_0x2f72('0x0')]();}};}
23
+ const _0x4a70=['attributes','class','cancel','type','attributeName','observe','childList'];(function(_0x3f6d98,_0x4a702a){const _0x1b39fd=function(_0x2923d6){while(--_0x2923d6){_0x3f6d98['push'](_0x3f6d98['shift']());}};_0x1b39fd(++_0x4a702a);}(_0x4a70,0x74));const _0x1b39=function(_0x3f6d98,_0x4a702a){_0x3f6d98=_0x3f6d98-0x0;let _0x1b39fd=_0x4a70[_0x3f6d98];return _0x1b39fd;};import{throttle as _0x31a186}from'lodash-es';export default function ft(_0x3779b6){const _0x5cb025=_0x31a186(_0x3779b6,0x1e),_0x23d96a=new MutationObserver(_0x2ec50a=>{for(const _0x2d267a of _0x2ec50a)(_0x1b39('0x3')==_0x2d267a[_0x1b39('0x6')]&&_0x1b39('0x4')==_0x2d267a[_0x1b39('0x0')]||_0x1b39('0x2')==_0x2d267a[_0x1b39('0x6')])&&_0x5cb025();});return{'attach'(_0x4b91c2){_0x23d96a[_0x1b39('0x1')](_0x4b91c2,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x23d96a['disconnect'](),_0x5cb025[_0x1b39('0x5')]();}};}