@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.
- package/build/comments.js +1 -1
- package/package.json +3 -3
- 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/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.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/commentslistview.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/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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(
|
|
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
|
|
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')]();}};}
|