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