@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.
- 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 _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(
|
|
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
|
|
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')]();}};}
|