@ckeditor/ckeditor5-comments 40.2.0 → 41.1.0
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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/annotations/annotation.d.ts +7 -7
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +4 -4
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +7 -7
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +6 -6
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +5 -5
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +7 -7
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +7 -7
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +6 -6
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +3 -3
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +3 -3
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +3 -3
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +3 -3
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +6 -6
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +2 -2
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +5 -5
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +6 -6
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +7 -7
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +12 -12
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.d.ts +6 -6
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +2 -2
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +5 -5
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -4
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +5 -5
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +5 -5
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +9 -9
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +5 -5
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +3 -3
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +3 -3
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +5 -5
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +4 -4
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +6 -6
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -4
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +6 -6
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +8 -8
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +9 -9
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +11 -11
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +3 -3
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +4 -4
- package/src/config.js +1 -1
- package/src/index.d.ts +21 -21
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +2 -2
- package/theme/annotation-inline.css +1 -1
- package/theme/annotation.css +5 -1
- package/theme/comment.css +1 -1
- package/theme/commentinput.css +1 -1
- package/theme/commentmarker.css +1 -1
- package/theme/commentsarchive.css +2 -2
- package/theme/commentthread.css +5 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/comments-archive.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +1 -1
- package/theme/sidebar.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25a6=['list','_annotations','change:targetRect','_spaceBetweenItems','change:_lastItem','top','destroy','nodeType','define','_targetTop','_getItemAfter','_alignAfterItem','height','_recalculateBuffer','_createSidebarView','remove','rearrange','delete','last','max','view','add','_activeAnnotation','context','appendChild','_destroySidebarItemView','_sidebarItemViewToAnnotation','_setItemTop','_getItemBefore','sidebar-setcontainer-invalid-element','updateHeight','_alignForTopChange','_alignToTargetRect','bottom','change:bottom','refresh','_alignBeforeItem','bind','container','init','unbind','content','set','stopListening','isAnimationDisabled','minHeight','listenTo','sidebar.container','change:top','_lastItem','_detachFromContainer','_getTargetTop','targetRect','locale','render','config','_annotationToSidebarItemView','object','_getMaxAvailableTop','_recalculate','clear','isActive','element','_alignForBottomChange','Sidebar','getSidebarItemView','setContainer','push','_updateLastItem','get','target','sidebar.preventScrollOutOfView','getIndex','length','addAnnotation'];(function(_0x56519c,_0x25a6ae){const _0x4af417=function(_0x15c03f){while(--_0x15c03f){_0x56519c['push'](_0x56519c['shift']());}};_0x4af417(++_0x25a6ae);}(_0x25a6,0x1ce));const _0x4af4=function(_0x56519c,_0x25a6ae){_0x56519c=_0x56519c-0x0;let _0x4af417=_0x25a6[_0x56519c];return _0x4af417;};import{ContextPlugin as _0x3a579b}from'ckeditor5/src/core.js';import{Rect as _0x2439f7,CKEditorError as _0x5acfcd}from'ckeditor5/src/utils.js';import _0x3441ec from'./view/sidebarview.js';import _0x18fd9e from'./view/sidebaritemview.js';export default class z extends _0x3a579b{static get['pluginName'](){return _0x4af4('0x34');}constructor(_0x145ee1){super(_0x145ee1),this[_0x4af4('0x1e')](_0x4af4('0x25'),void 0x0),this[_0x4af4('0x8')]=this[_0x4af4('0x2')](),this['set'](_0x4af4('0x1a'),null),this['_spaceBetweenItems']=0x19,this[_0x4af4('0xe')]=new Map(),this[_0x4af4('0x2c')]=new Map(),this[_0x4af4('0xb')][_0x4af4('0x2b')][_0x4af4('0x47')](_0x4af4('0x3b'),!0x1),this[_0x4af4('0x40')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x4af4('0x1b')](){const _0xc899a0=this[_0x4af4('0xb')]['config'][_0x4af4('0x39')](_0x4af4('0x23'));_0xc899a0&&this['setContainer'](_0xc899a0);}[_0x4af4('0x36')](_0xa7d060){if(!y(_0xa7d060))throw new _0x5acfcd(_0x4af4('0x11'));this[_0x4af4('0x1a')]=_0xa7d060;}['_attachToContainer']({viewClass:_0x13a67c='',spaceBetweenItems:_0x3c5d86=0x19}={}){if(!y(this[_0x4af4('0x1a')]))throw new _0x5acfcd('sidebar-attachtocontainer-missing-container',this);this[_0x4af4('0x1a')][_0x4af4('0xc')](this['view'][_0x4af4('0x32')]),this[_0x4af4('0x8')]['class']=_0x13a67c,this['_spaceBetweenItems']=_0x3c5d86;}[_0x4af4('0x4')]({removedAnnotation:_0x54ebf1,previousAnnotation:_0x9c8329,nextAnnotation:_0x268f90}){const _0x5c3490=this[_0x4af4('0x35')](_0x54ebf1);this[_0x4af4('0x8')]['list'][_0x4af4('0x3')](_0x5c3490),this['_destroySidebarItemView'](_0x54ebf1),_0x9c8329&&this[_0x4af4('0x14')](this[_0x4af4('0x35')](_0x9c8329)),_0x268f90&&this[_0x4af4('0x14')](this[_0x4af4('0x35')](_0x268f90)),this['_updateLastItem']();}[_0x4af4('0x17')]({blurredAnnotation:_0x5d1bd8,activatedAnnotation:_0x5a91b7,disableAnimationOnActivatedAnnotation:_0x36649e}){if(this[_0x4af4('0xa')]=_0x5a91b7,_0x5d1bd8){_0x5d1bd8[_0x4af4('0x31')]=!0x1;const _0x287d15=this['getSidebarItemView'](_0x5d1bd8);_0x287d15&&_0x36649e&&(_0x287d15[_0x4af4('0x20')]=!0x1);}if(_0x5a91b7){const _0x318755=this[_0x4af4('0x35')](_0x5a91b7);_0x318755&&(_0x5a91b7[_0x4af4('0x31')]=!0x0,_0x36649e&&(_0x318755['isAnimationDisabled']=!0x0,_0x318755['top']+=0x1),this[_0x4af4('0x14')](_0x318755));}}[_0x4af4('0x26')](_0x4ac8a3){if(this['view'][_0x4af4('0x32')][_0x4af4('0x3')](),_0x4ac8a3)for(const _0x60f05e of _0x4ac8a3)this[_0x4af4('0xd')](_0x60f05e);this[_0x4af4('0x8')]['list'][_0x4af4('0x30')](),this[_0x4af4('0x8')]['class']='',this['_lastItem']=null;}[_0x4af4('0x3e')](_0x71ec64,_0x37513b){_0x37513b||(_0x37513b=_0x71ec64[_0x4af4('0x8')]);const _0x29d0ca=new _0x18fd9e(this[_0x4af4('0xb')][_0x4af4('0x29')]);this[_0x4af4('0xe')]['set'](_0x29d0ca,_0x71ec64),this[_0x4af4('0x2c')][_0x4af4('0x1e')](_0x71ec64,_0x29d0ca),_0x29d0ca[_0x4af4('0x1d')][_0x4af4('0x9')](_0x37513b),this[_0x4af4('0x22')](_0x71ec64[_0x4af4('0x8')],_0x4af4('0x41'),(_0x3f04e8,_0x263cdd,_0x535b27)=>{const _0x5c451b=this[_0x4af4('0x27')](_0x71ec64,_0x535b27);_0x29d0ca[_0x4af4('0x48')]!=_0x5c451b&&(_0x29d0ca[_0x4af4('0x48')]=_0x5c451b,this['_setItemTop'](_0x29d0ca,_0x5c451b));}),this[_0x4af4('0x22')](_0x29d0ca,_0x4af4('0x24'),()=>{this[_0x4af4('0x2f')](_0x29d0ca,_0x4af4('0x44'));}),this[_0x4af4('0x22')](_0x29d0ca,_0x4af4('0x16'),()=>{this['_recalculate'](_0x29d0ca,_0x4af4('0x15'));}),this['_alignToTargetRect'](_0x29d0ca);const _0x3daa99=this[_0x4af4('0x10')](_0x29d0ca);if(_0x3daa99)this[_0x4af4('0x4a')](_0x3daa99,_0x29d0ca)||this[_0x4af4('0x14')](_0x29d0ca);else this[_0x4af4('0x14')](_0x29d0ca);return this[_0x4af4('0x38')](),this['view'][_0x4af4('0x3f')]['add'](_0x29d0ca),_0x29d0ca;}[_0x4af4('0x13')](_0x2d00d7){if(!_0x2d00d7[_0x4af4('0x1d')][_0x4af4('0x3d')])return;const _0x2b4eda=this[_0x4af4('0x10')](_0x2d00d7);if(!_0x2b4eda)return;const _0x338034=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x2b4eda),_0x156460=this[_0x4af4('0xa')];_0x156460&&_0x156460===_0x338034?this['_alignAfterItem'](_0x2b4eda,_0x2d00d7):this[_0x4af4('0x18')](_0x2d00d7,_0x2b4eda);}['_alignForBottomChange'](_0x1de1d3){if(!_0x1de1d3[_0x4af4('0x1d')][_0x4af4('0x3d')])return;const _0x5dc726=this[_0x4af4('0x49')](_0x1de1d3);if(!_0x5dc726)return;const _0xfd634a=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x5dc726),_0x3dbe2d=this[_0x4af4('0xb')][_0x4af4('0x2b')][_0x4af4('0x39')]('sidebar.preventScrollOutOfView'),_0x4d8e49=this[_0x4af4('0xa')];_0x4d8e49&&_0x4d8e49===_0xfd634a&&_0x3dbe2d?(this[_0x4af4('0x18')](_0x5dc726,_0x1de1d3),this['_alignAfterItem'](_0x1de1d3,_0x5dc726)):_0x4d8e49&&_0x4d8e49===_0xfd634a?this[_0x4af4('0x18')](_0x5dc726,_0x1de1d3):this[_0x4af4('0x4a')](_0x1de1d3,_0x5dc726);}['_recalculate'](_0x32ddc4,_0x29444d){0x0===this['_recalculateBuffer'][_0x4af4('0x3d')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3aca60,changedProp:_0x1fd6a0}of this[_0x4af4('0x1')])_0x4af4('0x44')===_0x1fd6a0?this[_0x4af4('0x13')](_0x3aca60):this[_0x4af4('0x33')](_0x3aca60);this[_0x4af4('0x1')]=[];},0xa),this[_0x4af4('0x1')][_0x4af4('0x37')]({'sidebarItemView':_0x32ddc4,'changedProp':_0x29444d});}[_0x4af4('0x35')](_0xd7cafa){return this['_annotationToSidebarItemView'][_0x4af4('0x39')](_0xd7cafa);}[_0x4af4('0x45')](){this[_0x4af4('0x1f')](),this[_0x4af4('0x8')][_0x4af4('0x45')]();}[_0x4af4('0xd')](_0x26df93){const _0x1ceb1=this[_0x4af4('0x35')](_0x26df93);this['stopListening'](_0x1ceb1),this[_0x4af4('0x1f')](_0x26df93[_0x4af4('0x8')]),_0x1ceb1[_0x4af4('0x45')](),this[_0x4af4('0x2c')]['delete'](_0x26df93),this[_0x4af4('0xe')][_0x4af4('0x5')](_0x1ceb1);}['_createSidebarView'](){const _0x5597c4=new _0x3441ec(this[_0x4af4('0xb')]['locale']);return _0x5597c4[_0x4af4('0x2a')](),this['on'](_0x4af4('0x43'),(_0x29dfb3,_0x90c88c,_0x38c8ce,_0x36d0d9)=>{_0x36d0d9&&_0x5597c4[_0x4af4('0x1c')](_0x4af4('0x21')),_0x38c8ce?_0x5597c4[_0x4af4('0x19')](_0x4af4('0x21'))['to'](_0x38c8ce,_0x4af4('0x15')):_0x5597c4[_0x4af4('0x21')]=null;}),_0x5597c4;}[_0x4af4('0x38')](){var _0x193ece;this[_0x4af4('0x25')]=(null===(_0x193ece=this[_0x4af4('0x40')])||void 0x0===_0x193ece?void 0x0:_0x193ece[_0x4af4('0x6')])?this[_0x4af4('0x35')](this[_0x4af4('0x40')]['last']):null;}[_0x4af4('0x10')](_0x2f4334){var _0x17f4b4;const _0xa0d47e=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x2f4334),_0x24e445=_0xa0d47e&&(null===(_0x17f4b4=this[_0x4af4('0x40')])||void 0x0===_0x17f4b4?void 0x0:_0x17f4b4[_0x4af4('0x39')](this[_0x4af4('0x40')][_0x4af4('0x3c')](_0xa0d47e)-0x1));return _0x24e445&&this[_0x4af4('0x35')](_0x24e445)||null;}[_0x4af4('0x49')](_0x5e797b){var _0x4940ff;const _0x154841=this[_0x4af4('0xe')]['get'](_0x5e797b),_0x1e57ae=_0x154841&&(null===(_0x4940ff=this[_0x4af4('0x40')])||void 0x0===_0x4940ff?void 0x0:_0x4940ff['get'](this[_0x4af4('0x40')][_0x4af4('0x3c')](_0x154841)+0x1));return _0x1e57ae&&this[_0x4af4('0x35')](_0x1e57ae)||null;}[_0x4af4('0x18')](_0x54eaa6,_0x35c065){_0x54eaa6[_0x4af4('0x12')]();const _0x543787=M(_0x35c065[_0x4af4('0x15')]+this[_0x4af4('0x42')],_0x54eaa6[_0x4af4('0x44')]);return!!_0x543787&&(this[_0x4af4('0xf')](_0x35c065,_0x35c065[_0x4af4('0x44')]-_0x543787),!0x0);}['_alignAfterItem'](_0x21a1f4,_0x32296d){_0x21a1f4[_0x4af4('0x12')]();const _0x49ac04=M(_0x21a1f4[_0x4af4('0x15')]+this['_spaceBetweenItems'],_0x32296d['top']);return!!_0x49ac04&&(this[_0x4af4('0xf')](_0x32296d,_0x32296d[_0x4af4('0x44')]+_0x49ac04,!0x1),!0x0);}['_alignToTargetRect'](_0x59f320){const _0xba5ff2=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x59f320);if(!_0xba5ff2||!_0xba5ff2[_0x4af4('0x3a')]||!_0xba5ff2[_0x4af4('0x28')])return;const _0x14f823=this['_getTargetTop'](_0xba5ff2,_0xba5ff2[_0x4af4('0x28')]);this['_setItemTop'](_0x59f320,_0x14f823);}[_0x4af4('0x27')](_0x41d701,_0x14732f){if(null===_0x14732f)return 0x0;if(_0x41d701['target']instanceof _0x2439f7)return _0x14732f[_0x4af4('0x44')];{const _0x5c37c9=new _0x2439f7(this[_0x4af4('0x8')][_0x4af4('0x32')])[_0x4af4('0x44')];return _0x14732f[_0x4af4('0x44')]-_0x5c37c9;}}[_0x4af4('0xf')](_0x1cd56e,_0x83c00,_0x1e0e0c=this['context'][_0x4af4('0x2b')]['get'](_0x4af4('0x3b'))){_0x1e0e0c&&(_0x83c00=Math['max'](_0x83c00,this[_0x4af4('0x2e')](_0x1cd56e))),_0x1cd56e['top']=_0x83c00;}[_0x4af4('0x2e')](_0x128e0b){let _0x5d9e1c=this['_getItemBefore'](_0x128e0b),_0x300e19=0x0;for(;_0x5d9e1c;)_0x5d9e1c[_0x4af4('0x12')](),_0x300e19+=this['_spaceBetweenItems']+_0x5d9e1c[_0x4af4('0x0')],_0x5d9e1c=this['_getItemBefore'](_0x5d9e1c);return _0x300e19;}}function M(_0x38bfac,_0x10bd08){return Math[_0x4af4('0x7')](_0x38bfac-_0x10bd08,0x0);}function y(_0x47e34e){return null!==_0x47e34e&&_0x4af4('0x2d')==typeof _0x47e34e&&0x1===_0x47e34e[_0x4af4('0x46')];}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/annotations/view/annotationcounterbuttonview
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { ButtonView, View } from 'ckeditor5/src/ui';
|
|
10
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
import { ButtonView, View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
11
11
|
/**
|
|
12
12
|
* A view used in the sidebar by {@link module:comments/annotations/narrowsidebar~NarrowSidebar}.
|
|
13
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2298=['isDirty','number','children','set','setTemplate','counterView','ck-annotation-counter__badge--edit-mode','ck-annotation-counter','ck-annotation-counter__badge--','icon','_badge','bindTemplate','annotationType','...'];(function(_0x5d2686,_0x2298d1){const _0x5312fb=function(_0x2d146b){while(--_0x2d146b){_0x5d2686['push'](_0x5d2686['shift']());}};_0x5312fb(++_0x2298d1);}(_0x2298,0x1eb));const _0x5312=function(_0x5d2686,_0x2298d1){_0x5d2686=_0x5d2686-0x0;let _0x5312fb=_0x2298[_0x5d2686];return _0x5312fb;};import{ButtonView as _0x36e74f,View as _0x30c59a}from'ckeditor5/src/ui.js';import _0x254c57 from'../../../theme/icons/add-comment.svg';export default class D extends _0x36e74f{constructor(_0xc9b88c){super(_0xc9b88c);const _0x4d93ce=this[_0x5312('0xa')];this[_0x5312('0x2')](_0x5312('0xd'),!0x1),this[_0x5312('0x2')](_0x5312('0x0'),0x0),this['bind'](_0x5312('0x9'))['to'](this,_0x5312('0xd'),this,_0x5312('0x0'),(_0x2fa9a1,_0x250c50)=>_0x2fa9a1?_0x5312('0xc'):_0x250c50['toString']()),this[_0x5312('0x2')](_0x5312('0xb'),''),this[_0x5312('0x8')]=_0x254c57,this['extendTemplate']({'attributes':{'class':[_0x5312('0x6')]}}),this[_0x5312('0x4')]=new _0x30c59a(),this['counterView'][_0x5312('0x3')]({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4d93ce['to'](_0x5312('0xb'),_0x59bf5a=>_0x5312('0x7')+_0x59bf5a),_0x4d93ce['if'](_0x5312('0xd'),_0x5312('0x5'))]},'children':[{'text':_0x4d93ce['to'](_0x5312('0x9'))}]}),this[_0x5312('0x1')]['add'](this[_0x5312('0x4')]);}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/annotations/view/annotationview
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
-
import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils.js';
|
|
11
11
|
import '../../../theme/annotation.css';
|
|
12
12
|
/**
|
|
13
13
|
* A wrapping view for any view added to the `Annotations` plugin.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53bb=['Esc','set','div','element','add','keystrokes','ck-annotation-wrapper--active','content','ck-annotation-wrapper','focusTracker','destroy','isDirty','type','height','ck-rounded-corners','_updateHeight','setTemplate','detach','focus','_mutationObserver','length','render','fire'];(function(_0x25d827,_0x53bb4f){const _0x1f625f=function(_0x2ebfcf){while(--_0x2ebfcf){_0x25d827['push'](_0x25d827['shift']());}};_0x1f625f(++_0x53bb4f);}(_0x53bb,0x103));const _0x1f62=function(_0x25d827,_0x53bb4f){_0x25d827=_0x25d827-0x0;let _0x1f625f=_0x53bb[_0x25d827];return _0x1f625f;};import{View as _0xa270c3}from'ckeditor5/src/ui.js';import{FocusTracker as _0x31e41c,KeystrokeHandler as _0x381367,uid as _0xf67a3a}from'ckeditor5/src/utils.js';import _0x59ce66 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0xa270c3{constructor(_0x2e19d6,_0x19f100){super(_0x2e19d6),this['id']=_0xf67a3a(),this[_0x1f62('0x3')]=new _0x31e41c(),this['keystrokes']=new _0x381367(),this[_0x1f62('0x16')][_0x1f62('0x12')](_0x1f62('0x11'),(_0x209906,_0x3a3773)=>this[_0x1f62('0x10')](_0x1f62('0x11'),_0x3a3773)),this[_0x1f62('0x12')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x1f62('0x7'),0x0),this[_0x1f62('0x12')]('isActive',!0x1),this[_0x1f62('0x12')](_0x1f62('0x5'),!0x1),this[_0x1f62('0x12')](_0x1f62('0xe'),0x0),this['set'](_0x1f62('0x6'),''),this[_0x1f62('0xd')]=_0x59ce66(()=>this[_0x1f62('0x9')]()),this[_0x1f62('0x1')]=this['createCollection'](),this[_0x1f62('0x1')][_0x1f62('0x15')](_0x19f100),this['mainView']=_0x19f100;const _0x383b4d=this['bindTemplate'];this[_0x1f62('0xa')]({'tag':_0x1f62('0x13'),'attributes':{'class':['ck',_0x1f62('0x2'),_0x1f62('0x8'),_0x383b4d['if']('isActive',_0x1f62('0x0'))],'tabindex':-0x1},'children':this[_0x1f62('0x1')]});}[_0x1f62('0xf')](){super[_0x1f62('0xf')](),this['focusTracker']['add'](this[_0x1f62('0x14')]),this[_0x1f62('0x16')]['listenTo'](this[_0x1f62('0x14')]),this['_mutationObserver']['attach'](this[_0x1f62('0x14')]);}['destroy'](){this[_0x1f62('0x1')]['clear'](),this[_0x1f62('0x16')][_0x1f62('0x4')](),this[_0x1f62('0x3')][_0x1f62('0x4')](),this[_0x1f62('0xd')][_0x1f62('0xb')](),super[_0x1f62('0x4')]();}[_0x1f62('0xc')](){this[_0x1f62('0x14')][_0x1f62('0xc')]();}[_0x1f62('0x9')](){const _0x5f55f1=this[_0x1f62('0x14')]['clientHeight'];_0x5f55f1&&(this[_0x1f62('0x7')]=_0x5f55f1);}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/annotations/view/sidebaritemview
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
11
11
|
/**
|
|
12
12
|
* A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
|
|
13
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dfe=['ck-sidebar-item','detach','clientHeight','render','isAnimationDisabled','_mutationObserver','destroy','div','clear','content','bindTemplate','bind','updateHeight','height','_targetTop','element','set','top'];(function(_0x28c791,_0x5dfee6){const _0x4d83f3=function(_0x108d95){while(--_0x108d95){_0x28c791['push'](_0x28c791['shift']());}};_0x4d83f3(++_0x5dfee6);}(_0x5dfe,0x10f));const _0x4d83=function(_0x28c791,_0x5dfee6){_0x28c791=_0x28c791-0x0;let _0x4d83f3=_0x5dfe[_0x28c791];return _0x4d83f3;};import{View as _0x1b0088}from'ckeditor5/src/ui.js';import{toUnit as _0x5a3a68}from'ckeditor5/src/utils.js';import _0x3924ad from'../../utils/createmutationobserver.js';const Ht=_0x5a3a68('px');export default class C extends _0x1b0088{constructor(_0xb35af4){super(_0xb35af4),this[_0x4d83('0xf')](_0x4d83('0x10'),0x0),this[_0x4d83('0xf')](_0x4d83('0xc'),0x0),this[_0x4d83('0xa')]('bottom')['to'](this,_0x4d83('0x10'),this,_0x4d83('0xc'),(_0x5e81ce,_0x6066c1)=>_0x5e81ce+_0x6066c1),this[_0x4d83('0xf')]('isAnimationDisabled',!0x1),this[_0x4d83('0x4')]=_0x3924ad(()=>this[_0x4d83('0xb')]()),this[_0x4d83('0xd')]=null,this[_0x4d83('0x8')]=this['createCollection']();const _0x5acb11=this[_0x4d83('0x9')];this['setTemplate']({'tag':_0x4d83('0x6'),'attributes':{'class':[_0x4d83('0x11'),_0x5acb11['to'](_0x4d83('0x3'),_0x5f1e52=>_0x5f1e52?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5acb11['to'](_0x4d83('0x10'),_0xc2b369=>Ht(_0xc2b369))}},'children':this['content']});}['render'](){super[_0x4d83('0x2')](),this['_mutationObserver']['attach'](this['element']);}[_0x4d83('0xb')](){const _0x47c994=this[_0x4d83('0xe')][_0x4d83('0x1')];_0x47c994&&(this[_0x4d83('0xc')]=_0x47c994);}[_0x4d83('0x5')](){this[_0x4d83('0x8')][_0x4d83('0x7')](),this[_0x4d83('0x4')][_0x4d83('0x0')](),super[_0x4d83('0x5')]();}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/annotations/view/sidebarview
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
11
11
|
import '../../../theme/sidebar.css';
|
|
12
12
|
/**
|
|
13
13
|
* The sidebar view class that displays the collection of sidebar item views.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58fe=['set','createCollection','class','list','ck-sidebar','div','setTemplate','number','minHeight'];(function(_0x1466f4,_0x58fef3){const _0x5e1005=function(_0x1931b4){while(--_0x1931b4){_0x1466f4['push'](_0x1466f4['shift']());}};_0x5e1005(++_0x58fef3);}(_0x58fe,0xb9));const _0x5e10=function(_0x1466f4,_0x58fef3){_0x1466f4=_0x1466f4-0x0;let _0x5e1005=_0x58fe[_0x1466f4];return _0x5e1005;};import{View as _0x104ef2}from'ckeditor5/src/ui.js';import{toUnit as _0x2c5d21}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x2c5d21('px');export default class T extends _0x104ef2{constructor(_0x30dc68){super(_0x30dc68);const _0x24e981=this['bindTemplate'];this[_0x5e10('0x4')](_0x5e10('0x3'),0x0),this[_0x5e10('0x4')](_0x5e10('0x6'),''),this[_0x5e10('0x7')]=this[_0x5e10('0x5')](),this[_0x5e10('0x1')]({'tag':_0x5e10('0x0'),'attributes':{'class':['ck',_0x5e10('0x8'),'ck-reset',_0x24e981['to'](_0x5e10('0x6'))],'style':{'minHeight':_0x24e981['to'](_0x5e10('0x3'),_0x35fe41=>_0x5e10('0x2')==typeof _0x35fe41?Ht(_0x35fe41+0xa):null)}},'children':this[_0x5e10('0x7')]});}}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/annotations/widesidebar
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
|
|
11
|
-
import Sidebar from './sidebar';
|
|
12
|
-
import type Annotation from './annotation';
|
|
13
|
-
import type { default as AnnotationCollection } from './annotationcollection';
|
|
9
|
+
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis.js';
|
|
11
|
+
import Sidebar from './sidebar.js';
|
|
12
|
+
import type Annotation from './annotation.js';
|
|
13
|
+
import type { default as AnnotationCollection } from './annotationcollection.js';
|
|
14
14
|
/**
|
|
15
15
|
* The wide sidebar UI for displaying annotations.
|
|
16
16
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3aef=['_annotations','setActiveAnnotation','ck-sidebar--wide','detach','annotations','pluginName','set','get','uiUpdate','from','_refreshPositioningDebounced','EditorAnnotations','_activeAnnotation','init','editors','container','register','removeEventListener','isAttached','blur','cancel','context','updateTargetRect','_detachFromContainer','getOrderedSelectedAnnotations','focus','_editorAnnotations','resize','widesidebar-attach-already-attached','stop','refresh','attach','plugins','_integrateWithEditorAnnotations','widesidebar-detach-not-attached','WideSidebar','destroy','refreshPositioning','_destroyEditorAnnotationsIntegration','switchTo','hasDomSelection','wideSidebar','has','rearrange','listenTo','ready','_attachToContainer','change:container','remove','add','stopListening','set:container','high','activeAnnotation'];(function(_0x2669a5,_0x3aeffa){const _0x32cc91=function(_0x403fcf){while(--_0x403fcf){_0x2669a5['push'](_0x2669a5['shift']());}};_0x32cc91(++_0x3aeffa);}(_0x3aef,0x105));const _0x32cc=function(_0x2669a5,_0x3aeffa){_0x2669a5=_0x2669a5-0x0;let _0x32cc91=_0x3aef[_0x2669a5];return _0x32cc91;};import{ContextPlugin as _0x1b5314,Context as _0x3f26f9}from'ckeditor5/src/core.js';import _0x2ab893 from'./annotationsuis.js';import _0x12c7e1 from'./sidebar.js';import{CKEditorError as _0x49b370,Collection as _0x1af001}from'ckeditor5/src/utils.js';import{debounce as _0x35b36c}from'lodash-es';import _0x522b16 from'./editorannotations.js';export default class n extends _0x1b5314{static get['requires'](){return[_0x12c7e1,_0x2ab893];}static get[_0x32cc('0xe')](){return _0x32cc('0x2c');}constructor(_0xdf9b3f){super(_0xdf9b3f),this[_0x32cc('0x1b')]=!0x1,this[_0x32cc('0xf')](_0x32cc('0x8'),null),this[_0x32cc('0xd')]=null,this[_0x32cc('0x23')]=new _0x1af001(),this[_0x32cc('0x13')]=_0x35b36c(()=>{this['annotations'][_0x32cc('0x2e')]();},0xfa,{'leading':!0x1});}[_0x32cc('0x16')](){const _0x1605df=this[_0x32cc('0x1e')]['plugins'][_0x32cc('0x10')](_0x2ab893),_0x5c8745=this[_0x32cc('0x1e')][_0x32cc('0x29')]['get'](_0x12c7e1);_0x1605df[_0x32cc('0x19')](_0x32cc('0x32'),this),_0x5c8745[_0x32cc('0x18')]&&_0x1605df[_0x32cc('0x30')]('wideSidebar');}['setActiveAnnotation'](_0x5c863a){if(_0x5c863a===this['activeAnnotation'])return;const _0x4e4759=this[_0x32cc('0x1e')]['plugins'][_0x32cc('0x10')](_0x12c7e1);_0x4e4759[_0x32cc('0x15')]=_0x5c863a;const _0x3786fb=this[_0x32cc('0x8')];this[_0x32cc('0x8')]=_0x5c863a,_0x4e4759[_0x32cc('0x27')]({'blurredAnnotation':_0x3786fb,'activatedAnnotation':this['activeAnnotation']});}[_0x32cc('0x28')](_0xa4717d){this[_0x32cc('0xd')]=_0xa4717d;const _0x1628ac=this[_0x32cc('0x1e')][_0x32cc('0x29')][_0x32cc('0x10')](_0x12c7e1);if(_0x1628ac[_0x32cc('0x9')]=_0xa4717d,this[_0x32cc('0x1b')])throw new _0x49b370(_0x32cc('0x25'),this);this[_0x32cc('0x1b')]=!0x0,this['listenTo'](_0x1628ac,_0x32cc('0x6'),()=>{this[_0x32cc('0xc')](),this[_0x32cc('0x35')](_0x1628ac,_0x32cc('0x2'),_0x1d6ea1=>{_0x1d6ea1['off'](),this[_0x32cc('0x28')](_0xa4717d);});}),_0x1628ac[_0x32cc('0x1')]({'viewClass':_0x32cc('0xb')});const _0x135257=_0x28b14e=>{_0x28b14e[_0x32cc('0x1f')](),_0x1628ac['addAnnotation'](_0x28b14e);};for(const _0x2e947c of _0xa4717d)_0x135257(_0x2e947c);this[_0x32cc('0x35')](_0xa4717d,'add',(_0x36d8b7,_0xb0af65)=>{_0x135257(_0xb0af65);}),this[_0x32cc('0x35')](_0xa4717d,'remove',(_0x306fb1,_0x314381,_0x408dd4)=>{_0x1628ac[_0x32cc('0x34')]({'removedAnnotation':_0x314381,'previousAnnotation':_0xa4717d[_0x32cc('0x10')](_0x408dd4-0x1),'nextAnnotation':_0xa4717d[_0x32cc('0x10')](_0x408dd4+0x1)}),_0x314381===this[_0x32cc('0x8')]&&this['setActiveAnnotation'](null);},{'priority':_0x32cc('0x7')}),this['listenTo'](_0xa4717d,_0x32cc('0x22'),(_0xf3549f,_0xdedb29)=>{this[_0x32cc('0xa')](_0xdedb29);}),this['listenTo'](_0xa4717d,'blur',()=>{this[_0x32cc('0xa')](null);});const _0x56907c=this[_0x32cc('0x1e')]instanceof _0x3f26f9?this[_0x32cc('0x1e')][_0x32cc('0x17')]:new _0x1af001([this[_0x32cc('0x1e')]]);for(const _0x8259b4 of _0x56907c)this[_0x32cc('0x2a')](_0x8259b4);this[_0x32cc('0x35')](_0x56907c,_0x32cc('0x4'),(_0xe73377,_0x2ab68f)=>{this[_0x32cc('0x35')](_0x2ab68f,_0x32cc('0x0'),()=>{this[_0x32cc('0x2a')](_0x2ab68f);});}),this[_0x32cc('0x35')](_0x56907c,_0x32cc('0x3'),(_0x32508a,_0x2fbe49)=>{_0x2fbe49[_0x32cc('0x29')][_0x32cc('0x33')](_0x32cc('0x14'))&&this[_0x32cc('0x2f')](_0x2fbe49[_0x32cc('0x29')][_0x32cc('0x10')]('EditorAnnotations'));}),window['addEventListener'](_0x32cc('0x24'),this[_0x32cc('0x13')]),this[_0x32cc('0xd')][_0x32cc('0x2e')]();}[_0x32cc('0xc')](){if(!this[_0x32cc('0x1b')])throw new _0x49b370(_0x32cc('0x2b'),this);this[_0x32cc('0xa')](null);const _0x141727=this[_0x32cc('0x1e')][_0x32cc('0x29')][_0x32cc('0x10')](_0x12c7e1);_0x141727[_0x32cc('0x20')](this['annotations']),this[_0x32cc('0x5')](_0x141727),this[_0x32cc('0x5')](this[_0x32cc('0xd')]),this[_0x32cc('0x1e')]instanceof _0x3f26f9&&this['stopListening'](this[_0x32cc('0x1e')][_0x32cc('0x17')]);for(const _0x46665f of Array[_0x32cc('0x12')](this[_0x32cc('0x23')]))this[_0x32cc('0x2f')](_0x46665f);window[_0x32cc('0x1a')](_0x32cc('0x24'),this[_0x32cc('0x13')]),this[_0x32cc('0x13')][_0x32cc('0x1d')](),this[_0x32cc('0x8')]=null,this['isAttached']=!0x1,this[_0x32cc('0xd')]=null;}[_0x32cc('0x2d')](){this[_0x32cc('0x1b')]&&this[_0x32cc('0xc')]();}[_0x32cc('0x2a')](_0x4fbc06){const _0x4ac6bb=_0x4fbc06[_0x32cc('0x29')][_0x32cc('0x10')](_0x522b16);if(!_0x4ac6bb)return;const _0x27732f=()=>{const _0x3da941=_0x4ac6bb[_0x32cc('0x21')]({'annotations':this[_0x32cc('0xd')],'activeAnnotation':this['activeAnnotation']});this[_0x32cc('0xa')](_0x3da941[0x0]||null);};this[_0x32cc('0x35')](_0x4ac6bb,_0x32cc('0x27'),_0x27732f),this['listenTo'](_0x4ac6bb,'blur',(_0x904f31,{isAnnotationTracked:_0x22de15})=>{this[_0x32cc('0x8')]&&_0x22de15(this[_0x32cc('0x8')])&&this[_0x32cc('0xa')](null);}),this[_0x32cc('0x35')](_0x4ac6bb,_0x32cc('0x11'),()=>{this[_0x32cc('0x13')]();}),this[_0x32cc('0x35')](this[_0x32cc('0xd')],_0x32cc('0x1c'),_0x228425=>{_0x4ac6bb[_0x32cc('0x31')]()&&(_0x27732f(),_0x228425[_0x32cc('0x26')]());},{'priority':_0x32cc('0x7')}),this[_0x32cc('0x23')]['add'](_0x4ac6bb);}[_0x32cc('0x2f')](_0x2cf9c2){this[_0x32cc('0x5')](_0x2cf9c2),this[_0x32cc('0x23')][_0x32cc('0x3')](_0x2cf9c2);}}
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
|
|
5
|
+
import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
7
|
interface EditorConfig {
|
|
8
8
|
/**
|
package/src/augmentation.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/addcommentthreadcommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command } from 'ckeditor5/src/core';
|
|
9
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* Adds a new CommentMarker what automatically adds corresponding CommentThread to the CommentsEditing#threads collection.
|
|
12
12
|
* Note this command adds only a CommentThread draft, to make is public marker has to be changed to be managed using operation.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36a1=['isEnabled','getRanges','$textProxy','editor','getLastMatchingPosition','isObject','change','_trimToContent','document','substr','execute','selection','end','element','push','refresh','item','addMarker','_hasContent','schema','tableCell','model'];(function(_0x7820e2,_0x36a193){const _0x49c3a5=function(_0x47d0a9){while(--_0x47d0a9){_0x7820e2['push'](_0x7820e2['shift']());}};_0x49c3a5(++_0x36a193);}(_0x36a1,0x83));const _0x49c3=function(_0x7820e2,_0x36a193){_0x7820e2=_0x7820e2-0x0;let _0x49c3a5=_0x36a1[_0x7820e2];return _0x49c3a5;};import{Command as _0x1205d7}from'ckeditor5/src/core.js';import{uid as _0x323e07}from'ckeditor5/src/utils.js';export default class G extends _0x1205d7{[_0x49c3('0x10')](){const _0x1e94a0=this[_0x49c3('0x4')][_0x49c3('0x0')][_0x49c3('0x9')][_0x49c3('0xc')];for(const _0x477bd3 of _0x1e94a0[_0x49c3('0x2')]())if(this[_0x49c3('0x13')](_0x477bd3))return void(this['isEnabled']=!0x0);this[_0x49c3('0x1')]=!0x1;}[_0x49c3('0xb')]({threadId:_0x545c6a=_0x323e07()}={}){const _0x2613f3=this[_0x49c3('0x4')][_0x49c3('0x0')],_0x5f1deb=[];for(const _0x351425 of _0x2613f3[_0x49c3('0x9')][_0x49c3('0xc')][_0x49c3('0x2')]())this[_0x49c3('0x13')](_0x351425)&&_0x5f1deb[_0x49c3('0xf')](this[_0x49c3('0x8')](_0x351425));_0x2613f3[_0x49c3('0x7')](_0x153b50=>{for(const _0x33d0ac of _0x5f1deb){const _0x36b1c8=_0x323e07()[_0x49c3('0xa')](0x1,0x5),_0x357edd='comment:'+_0x545c6a+':'+_0x36b1c8;_0x153b50[_0x49c3('0x12')](_0x357edd,{'range':_0x33d0ac,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x49c3('0x13')](_0x395996){for(const _0x2dd530 of _0x395996['getItems']())if(this['_itemIsContent'](_0x2dd530))return!0x0;return!0x1;}['_itemIsContent'](_0x2152b8){return _0x2152b8['is'](_0x49c3('0x3'))||this['editor'][_0x49c3('0x0')][_0x49c3('0x14')][_0x49c3('0x6')](_0x2152b8)&&!_0x2152b8['is'](_0x49c3('0xe'),_0x49c3('0x15'));}['_trimToContent'](_0x4752e6){const _0x1116b7=_0x19a790=>!this['_itemIsContent'](_0x19a790[_0x49c3('0x11')]),_0x175e5f=_0x4752e6['start'][_0x49c3('0x5')](_0x1116b7),_0x5409d2=_0x4752e6[_0x49c3('0xd')][_0x49c3('0x5')](_0x1116b7,{'direction':'backward'});return this[_0x49c3('0x4')][_0x49c3('0x0')]['createRange'](_0x175e5f,_0x5409d2);}}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/commentsarchive
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import { Collection } from 'ckeditor5/src/utils';
|
|
11
|
-
import CommentsRepository, { type CommentThread } from './commentsrepository';
|
|
12
|
-
import Annotations from '../annotations/annotations';
|
|
9
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Collection } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import CommentsRepository, { type CommentThread } from './commentsrepository.js';
|
|
12
|
+
import Annotations from '../annotations/annotations.js';
|
|
13
13
|
/**
|
|
14
14
|
* This plugin handles all operations on archived threads needed for the comments archive.
|
|
15
15
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b88=['collection','findIndex','has','pluginName','archivedThreads','init','activate','_calculatePosition','removeCommentThread','highest','listenTo','plugins','add','focus','getCommentThread','stopListening','remove','get','archivedAt','requires','addCommentThread','isActive'];(function(_0x19c7dd,_0x3b8868){const _0x28516f=function(_0x4ce35e){while(--_0x4ce35e){_0x19c7dd['push'](_0x19c7dd['shift']());}};_0x28516f(++_0x3b8868);}(_0x3b88,0xd0));const _0x2851=function(_0x19c7dd,_0x3b8868){_0x19c7dd=_0x19c7dd-0x0;let _0x28516f=_0x3b88[_0x19c7dd];return _0x28516f;};import{ContextPlugin as _0x43b405}from'ckeditor5/src/core.js';import{Collection as _0xf11f9c}from'ckeditor5/src/utils.js';import _0x2400fc from'./commentsrepository.js';import _0x1df888 from'../annotations/annotations.js';export default class p extends _0x43b405{static get[_0x2851('0xf')](){return'CommentsArchive';}static get[_0x2851('0x9')](){return[_0x2400fc,_0x1df888];}constructor(_0x3a83f2){super(_0x3a83f2),this[_0x2851('0x10')]=new _0xf11f9c();}[_0x2851('0x11')](){const _0x3cd14d=this['context'],_0xf621b4=_0x3cd14d[_0x2851('0x1')][_0x2851('0x7')](_0x2400fc),_0x4e97b7=_0x3cd14d[_0x2851('0x1')][_0x2851('0x7')](_0x1df888);this['listenTo'](_0xf621b4,_0x2851('0xa'),(_0x4b96e7,{threadId:_0x34badf})=>{const _0x181942=_0xf621b4[_0x2851('0x4')](_0x34badf);_0x181942[_0x2851('0x8')]&&this[_0x2851('0x10')][_0x2851('0x2')](_0x181942,this['_calculatePosition'](_0x181942[_0x2851('0x8')])),this[_0x2851('0x0')](_0x181942,'change:archivedAt',(_0x46fcff,_0x4217a1,_0xcdd80)=>{_0xcdd80?this[_0x2851('0x10')][_0x2851('0xe')](_0x181942)||this[_0x2851('0x10')][_0x2851('0x2')](_0x181942,this[_0x2851('0x13')](_0x181942[_0x2851('0x8')])):this[_0x2851('0x10')][_0x2851('0xe')](_0x181942)&&this[_0x2851('0x10')][_0x2851('0x6')](_0x181942);});}),this['listenTo'](_0xf621b4,_0x2851('0x14'),(_0x4669cf,{threadId:_0xf53376})=>{const _0x4e6650=_0xf621b4[_0x2851('0x4')](_0xf53376);this[_0x2851('0x5')](_0x4e6650),this['archivedThreads'][_0x2851('0xe')](_0x4e6650)&&this[_0x2851('0x10')][_0x2851('0x6')](_0x4e6650);},{'priority':_0x2851('0x15')}),this[_0x2851('0x0')](_0x4e97b7[_0x2851('0xc')],_0x2851('0x3'),(_0x5629d7,_0x1e5cb1)=>{_0x1e5cb1[_0x2851('0xb')]=!0x0,_0x4e97b7[_0x2851('0x12')](_0x1e5cb1);});}[_0x2851('0x13')](_0x14831a){const _0x216ecd=[...this[_0x2851('0x10')]][_0x2851('0xd')](_0x1df64c=>_0x1df64c[_0x2851('0x8')]<_0x14831a);return _0x216ecd>-0x1?_0x216ecd:this[_0x2851('0x10')]['length'];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import '../../theme/commentsarchive.css';
|
|
10
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
11
|
-
import { ViewCollection } from 'ckeditor5/src/ui';
|
|
12
|
-
import CommentsArchiveView from './ui/view/commentsarchiveview';
|
|
13
|
-
import CommentsArchive from './commentsarchive';
|
|
14
|
-
import type AnnotationView from '../annotations/view/annotationview';
|
|
10
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
11
|
+
import { ViewCollection } from 'ckeditor5/src/ui.js';
|
|
12
|
+
import CommentsArchiveView from './ui/view/commentsarchiveview.js';
|
|
13
|
+
import CommentsArchive from './commentsarchive.js';
|
|
14
|
+
import type AnnotationView from '../annotations/view/annotationview.js';
|
|
15
15
|
/**
|
|
16
16
|
* Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
|
|
17
17
|
* archived comment thread annotation views.
|