@ckeditor/ckeditor5-comments 38.1.0 → 38.1.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 (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.d.ts +86 -86
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.d.ts +94 -94
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.d.ts +150 -150
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.d.ts +228 -228
  10. package/src/annotations/annotationsuis.js +1 -1
  11. package/src/annotations/editorannotations.d.ts +63 -63
  12. package/src/annotations/editorannotations.js +1 -1
  13. package/src/annotations/inlineannotations.d.ts +86 -86
  14. package/src/annotations/inlineannotations.js +1 -1
  15. package/src/annotations/narrowsidebar.d.ts +81 -81
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.d.ts +96 -96
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
  20. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  21. package/src/annotations/view/annotationview.d.ts +86 -86
  22. package/src/annotations/view/annotationview.js +1 -1
  23. package/src/annotations/view/sidebaritemview.d.ts +51 -51
  24. package/src/annotations/view/sidebaritemview.js +1 -1
  25. package/src/annotations/view/sidebarview.d.ts +28 -28
  26. package/src/annotations/view/sidebarview.js +1 -1
  27. package/src/annotations/widesidebar.d.ts +73 -73
  28. package/src/annotations/widesidebar.js +1 -1
  29. package/src/augmentation.d.ts +48 -48
  30. package/src/comments/addcommentthreadcommand.d.ts +31 -31
  31. package/src/comments/addcommentthreadcommand.js +1 -1
  32. package/src/comments/commentsarchive.d.ts +27 -27
  33. package/src/comments/commentsarchive.js +1 -1
  34. package/src/comments/commentsarchiveui.d.ts +34 -34
  35. package/src/comments/commentsarchiveui.js +1 -1
  36. package/src/comments/commentsediting.d.ts +75 -75
  37. package/src/comments/commentsediting.js +1 -1
  38. package/src/comments/commentsrepository.d.ts +1088 -1088
  39. package/src/comments/commentsrepository.js +1 -1
  40. package/src/comments/commentsui.d.ts +29 -29
  41. package/src/comments/commentsui.js +1 -1
  42. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
  43. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  44. package/src/comments/integrations/importword.d.ts +17 -17
  45. package/src/comments/integrations/importword.js +1 -1
  46. package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
  47. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  53. package/src/comments/ui/commentthreadcontroller.js +1 -1
  54. package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
  55. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  56. package/src/comments/ui/view/basecommentview.d.ts +108 -108
  57. package/src/comments/ui/view/basecommentview.js +1 -1
  58. package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
  59. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  60. package/src/comments/ui/view/commentcontentview.d.ts +10 -10
  61. package/src/comments/ui/view/commentcontentview.js +1 -1
  62. package/src/comments/ui/view/commentinputview.d.ts +82 -82
  63. package/src/comments/ui/view/commentinputview.js +1 -1
  64. package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
  65. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.d.ts +96 -96
  67. package/src/comments/ui/view/commentslistview.js +1 -1
  68. package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
  69. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  70. package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
  71. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  72. package/src/comments/ui/view/commentthreadview.d.ts +113 -113
  73. package/src/comments/ui/view/commentthreadview.js +1 -1
  74. package/src/comments/ui/view/commentview.d.ts +239 -239
  75. package/src/comments/ui/view/commentview.js +1 -1
  76. package/src/comments.d.ts +31 -31
  77. package/src/comments.js +1 -1
  78. package/src/commentsonly.d.ts +29 -29
  79. package/src/commentsonly.js +1 -1
  80. package/src/config.d.ts +172 -172
  81. package/src/index.d.ts +21 -21
  82. package/src/utils/common-translations.d.ts +5 -5
  83. package/src/utils/common-translations.js +1 -1
  84. package/src/utils/createmutationobserver.d.ts +13 -13
  85. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5137=['editing','stop','_createUIButton','_threadToController','activeMarker','Comment','find','from','get','requires','model','getAllMarkersForId','map','addComment','focus','tooltip','removeCommentThread','commands','execute','plugins','CommentsListView','listenTo','focusTracker','locale','hasMarkerForId','editor','pluginName','addCommentThread','init','push','CommentThreadInputView','componentFactory','comment','label','_viewToController','getRange','low','view','comment:'];(function(_0x1426b3,_0x513740){const _0x1ef3c7=function(_0x17c0dc){while(--_0x17c0dc){_0x1426b3['push'](_0x1426b3['shift']());}};_0x1ef3c7(++_0x513740);}(_0x5137,0xb8));const _0x1ef3=function(_0x1426b3,_0x513740){_0x1426b3=_0x1426b3-0x0;let _0x1ef3c7=_0x5137[_0x1426b3];return _0x1ef3c7;};import{Plugin as _0x29dd9e}from'ckeditor5/src/core';import _0x18b94c from'./commentsrepository';import _0x54b9a4 from'./commentsediting';import _0x1ae487 from'../annotations/editorannotations';import{ButtonView as _0x4ba5a8}from'ckeditor5/src/ui';import _0xc941c8 from'../../theme/icons/add-comment.svg';import _0x3fc50e from'../annotations/annotations';import _0x5416ea from'./ui/view/commentslistview';import _0x1da5fb from'./ui/view/commentthreadinputview';import{getTranslation as _0x2d2dfb}from'../utils/common-translations';export default class e extends _0x29dd9e{static get[_0x1ef3('0x25')](){return'CommentsUI';}static get[_0x1ef3('0x14')](){return[_0x18b94c,_0x54b9a4,_0x1ae487,_0x3fc50e];}get[_0x1ef3('0x1f')](){return _0x5416ea;}get[_0x1ef3('0x2')](){return _0x1da5fb;}[_0x1ef3('0x0')](){const _0x4b9fad=this[_0x1ef3('0x24')],_0x4a4c20=_0x4b9fad[_0x1ef3('0x1e')][_0x1ef3('0x13')](_0x18b94c),_0x4c60ad=_0x4b9fad['plugins'][_0x1ef3('0x13')](_0x54b9a4),_0x2776e5=_0x4b9fad[_0x1ef3('0x1e')][_0x1ef3('0x13')](_0x3fc50e),_0x18ae37=_0x4b9fad[_0x1ef3('0x1e')]['get'](_0x1ae487);_0x4b9fad['ui'][_0x1ef3('0x3')]['add'](_0x1ef3('0x4'),()=>this[_0x1ef3('0xd')]()),_0x18ae37['addSourceCollector'](()=>{const _0x4c9938=[];for(const [_0x5a030c,_0x33174e]of _0x4a4c20[_0x1ef3('0xe')]){const _0x3e6b4e=_0x4c60ad[_0x1ef3('0x16')](_0x5a030c['id']),_0x55c672=_0x3e6b4e['map'](_0x404819=>_0x404819[_0x1ef3('0x7')]());_0x3e6b4e['length']>0x0&&_0x4c9938[_0x1ef3('0x1')]([_0x33174e[_0x1ef3('0x9')],_0x55c672]);}return _0x4c9938;}),this[_0x1ef3('0x20')](_0x2776e5,'change:activeAnnotations',(_0xc8cb92,_0x34ba02,_0x572bd3)=>{const _0x95d5f2=Array[_0x1ef3('0x12')](_0x572bd3)[_0x1ef3('0x17')](_0x263f3c=>_0x263f3c['innerView'])[_0x1ef3('0x11')](_0x18c7b3=>_0x4a4c20['_viewToController']['has'](_0x18c7b3));if(!_0x95d5f2)return void(_0x4c60ad[_0x1ef3('0xf')]=null);const _0x23ef21=_0x4a4c20[_0x1ef3('0x6')][_0x1ef3('0x13')](_0x95d5f2)[_0x1ef3('0x15')]['id'],_0x3f0b62=_0x1ef3('0xa')+_0x23ef21;_0x23ef21&&_0x4c60ad['hasMarkerForId'](_0x23ef21)?_0x4c60ad[_0x1ef3('0xf')]=_0x3f0b62:_0x4c60ad[_0x1ef3('0xf')]&&(_0x4c60ad[_0x1ef3('0xf')]=null);}),this[_0x1ef3('0x20')](_0x4a4c20,_0x1ef3('0x1b'),(_0x2408fe,{threadId:_0x4c5272,isFromAdapter:_0x5da330})=>{!_0x5da330&&_0x4b9fad['ui'][_0x1ef3('0x21')]['isFocused']&&_0x4c60ad['hasMarkerForId'](_0x4c5272)&&_0x4b9fad[_0x1ef3('0xb')]['view'][_0x1ef3('0x19')]();},{'priority':'highest'}),this[_0x1ef3('0x20')](_0x4a4c20,_0x1ef3('0x18'),(_0x22bab0,{threadId:_0xcaed40,isFromAdapter:_0x3e2754})=>{if(_0x3e2754||!_0x4c60ad[_0x1ef3('0x23')](_0xcaed40)||!_0x4a4c20['hasCommentThread'](_0xcaed40))return;0x1===_0x4a4c20['getCommentThread'](_0xcaed40)['length']&&(_0x4b9fad['editing'][_0x1ef3('0x9')][_0x1ef3('0x19')](),_0x22bab0[_0x1ef3('0xc')]());},{'priority':_0x1ef3('0x8')});}[_0x1ef3('0xd')](){const _0x309e96=this[_0x1ef3('0x24')],_0x5e1674=new _0x4ba5a8(_0x309e96['locale']),_0x1e9512=_0x309e96[_0x1ef3('0x1c')][_0x1ef3('0x13')](_0x1ef3('0x26'));return _0x5e1674[_0x1ef3('0x5')]=_0x2d2dfb(_0x309e96[_0x1ef3('0x22')],_0x1ef3('0x10')),_0x5e1674[_0x1ef3('0x1a')]=_0x2d2dfb(_0x309e96[_0x1ef3('0x22')],_0x1ef3('0x10')),_0x5e1674['icon']=_0xc941c8,_0x5e1674['bind']('isEnabled')['to'](_0x1e9512),this[_0x1ef3('0x20')](_0x5e1674,_0x1ef3('0x1d'),()=>_0x1e9512[_0x1ef3('0x1d')]()),_0x5e1674;}}
23
+ const _0x33b2=['add','stop','execute','requires','low','hasCommentThread','from','get','CommentThreadInputView','isEnabled','bind','_createUIButton','locale','map','_viewToController','pluginName','Comment','init','label','push','length','has','commands','highest','view','model','activeMarker','getRange','comment:','_threadToController','focus','CommentsListView','getAllMarkersForId','addSourceCollector','removeCommentThread','listenTo','icon','plugins','editor','getCommentThread','hasMarkerForId','innerView','addComment','CommentsUI','tooltip','find'];(function(_0x51d32c,_0x33b24c){const _0x5aa8fa=function(_0x3365b6){while(--_0x3365b6){_0x51d32c['push'](_0x51d32c['shift']());}};_0x5aa8fa(++_0x33b24c);}(_0x33b2,0x1bc));const _0x5aa8=function(_0x51d32c,_0x33b24c){_0x51d32c=_0x51d32c-0x0;let _0x5aa8fa=_0x33b2[_0x51d32c];return _0x5aa8fa;};import{Plugin as _0x470058}from'ckeditor5/src/core';import _0x34a166 from'./commentsrepository';import _0x36d0dd from'./commentsediting';import _0x454e4e from'../annotations/editorannotations';import{ButtonView as _0x22e7f0}from'ckeditor5/src/ui';import _0x3add33 from'../../theme/icons/add-comment.svg';import _0x2aef2b from'../annotations/annotations';import _0x3c95e4 from'./ui/view/commentslistview';import _0x218496 from'./ui/view/commentthreadinputview';import{getTranslation as _0x482413}from'../utils/common-translations';export default class e extends _0x470058{static get[_0x5aa8('0x1f')](){return _0x5aa8('0xd');}static get[_0x5aa8('0x13')](){return[_0x34a166,_0x36d0dd,_0x454e4e,_0x2aef2b];}get[_0x5aa8('0x1')](){return _0x3c95e4;}get[_0x5aa8('0x18')](){return _0x218496;}[_0x5aa8('0x21')](){const _0x22991f=this[_0x5aa8('0x8')],_0x102c25=_0x22991f[_0x5aa8('0x7')][_0x5aa8('0x17')](_0x34a166),_0x2ab1f2=_0x22991f[_0x5aa8('0x7')][_0x5aa8('0x17')](_0x36d0dd),_0x571048=_0x22991f['plugins'][_0x5aa8('0x17')](_0x2aef2b),_0x52716d=_0x22991f[_0x5aa8('0x7')][_0x5aa8('0x17')](_0x454e4e);_0x22991f['ui']['componentFactory'][_0x5aa8('0x10')]('comment',()=>this[_0x5aa8('0x1b')]()),_0x52716d[_0x5aa8('0x3')](()=>{const _0x344692=[];for(const [_0x564c26,_0x1c0004]of _0x102c25[_0x5aa8('0x2d')]){const _0x10117b=_0x2ab1f2[_0x5aa8('0x2')](_0x564c26['id']),_0x162867=_0x10117b[_0x5aa8('0x1d')](_0x3a897a=>_0x3a897a[_0x5aa8('0x2b')]());_0x10117b[_0x5aa8('0x24')]>0x0&&_0x344692[_0x5aa8('0x23')]([_0x1c0004[_0x5aa8('0x28')],_0x162867]);}return _0x344692;}),this['listenTo'](_0x571048,'change:activeAnnotations',(_0x22d56f,_0x262c20,_0x1d7448)=>{const _0x1ddba7=Array[_0x5aa8('0x16')](_0x1d7448)[_0x5aa8('0x1d')](_0x4a7d80=>_0x4a7d80[_0x5aa8('0xb')])[_0x5aa8('0xf')](_0x527eb0=>_0x102c25[_0x5aa8('0x1e')][_0x5aa8('0x25')](_0x527eb0));if(!_0x1ddba7)return void(_0x2ab1f2[_0x5aa8('0x2a')]=null);const _0x599c76=_0x102c25[_0x5aa8('0x1e')][_0x5aa8('0x17')](_0x1ddba7)[_0x5aa8('0x29')]['id'],_0x519c1f=_0x5aa8('0x2c')+_0x599c76;_0x599c76&&_0x2ab1f2['hasMarkerForId'](_0x599c76)?_0x2ab1f2[_0x5aa8('0x2a')]=_0x519c1f:_0x2ab1f2[_0x5aa8('0x2a')]&&(_0x2ab1f2[_0x5aa8('0x2a')]=null);}),this['listenTo'](_0x102c25,_0x5aa8('0x4'),(_0x46e486,{threadId:_0x3f6e82,isFromAdapter:_0x46341d})=>{!_0x46341d&&_0x22991f['ui']['focusTracker']['isFocused']&&_0x2ab1f2[_0x5aa8('0xa')](_0x3f6e82)&&_0x22991f['editing'][_0x5aa8('0x28')][_0x5aa8('0x0')]();},{'priority':_0x5aa8('0x27')}),this[_0x5aa8('0x5')](_0x102c25,_0x5aa8('0xc'),(_0x245c49,{threadId:_0x4ee3e5,isFromAdapter:_0xb7e32f})=>{if(_0xb7e32f||!_0x2ab1f2[_0x5aa8('0xa')](_0x4ee3e5)||!_0x102c25[_0x5aa8('0x15')](_0x4ee3e5))return;0x1===_0x102c25[_0x5aa8('0x9')](_0x4ee3e5)[_0x5aa8('0x24')]&&(_0x22991f['editing'][_0x5aa8('0x28')][_0x5aa8('0x0')](),_0x245c49[_0x5aa8('0x11')]());},{'priority':_0x5aa8('0x14')});}[_0x5aa8('0x1b')](){const _0x530de5=this[_0x5aa8('0x8')],_0x1308e1=new _0x22e7f0(_0x530de5[_0x5aa8('0x1c')]),_0x5a5936=_0x530de5[_0x5aa8('0x26')][_0x5aa8('0x17')]('addCommentThread');return _0x1308e1[_0x5aa8('0x22')]=_0x482413(_0x530de5[_0x5aa8('0x1c')],'Comment'),_0x1308e1[_0x5aa8('0xe')]=_0x482413(_0x530de5['locale'],_0x5aa8('0x20')),_0x1308e1[_0x5aa8('0x6')]=_0x3add33,_0x1308e1[_0x5aa8('0x1a')](_0x5aa8('0x19'))['to'](_0x5a5936),this[_0x5aa8('0x5')](_0x1308e1,_0x5aa8('0x12'),()=>_0x5a5936[_0x5aa8('0x12')]()),_0x1308e1;}}
@@ -1,13 +1,13 @@
1
- /**
2
- * @module comments/comments/integrations/commentsrestrictededitingmode
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- /**
6
- * Provides comments plugin integration for restricted editing mode feature from restricted editing package.
7
- */
8
- export default class CommentsRestrictedEditingMode extends Plugin {
9
- /**
10
- * @inheritDoc
11
- */
12
- afterInit(): void;
13
- }
1
+ /**
2
+ * @module comments/comments/integrations/commentsrestrictededitingmode
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides comments plugin integration for restricted editing mode feature from restricted editing package.
7
+ */
8
+ export default class CommentsRestrictedEditingMode extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f1b=['plugins','has','editor','get','RestrictedEditingModeEditing','enableCommand','afterInit'];(function(_0x26962e,_0x4f1bbd){const _0xb4a0c4=function(_0x50cf3b){while(--_0x50cf3b){_0x26962e['push'](_0x26962e['shift']());}};_0xb4a0c4(++_0x4f1bbd);}(_0x4f1b,0x106));const _0xb4a0=function(_0x26962e,_0x4f1bbd){_0x26962e=_0x26962e-0x0;let _0xb4a0c4=_0x4f1b[_0x26962e];return _0xb4a0c4;};import{Plugin as _0x213e2f}from'ckeditor5/src/core';export default class Y extends _0x213e2f{[_0xb4a0('0x3')](){const _0x44c980=this[_0xb4a0('0x6')];if(!_0x44c980[_0xb4a0('0x4')][_0xb4a0('0x5')](_0xb4a0('0x1')))return;_0x44c980[_0xb4a0('0x4')][_0xb4a0('0x0')]('RestrictedEditingModeEditing')[_0xb4a0('0x2')]('addCommentThread');}}
23
+ const _0x111f=['get','plugins','RestrictedEditingModeEditing','addCommentThread','editor','has'];(function(_0x4d4aa8,_0x111f95){const _0x134cb6=function(_0xc69fcb){while(--_0xc69fcb){_0x4d4aa8['push'](_0x4d4aa8['shift']());}};_0x134cb6(++_0x111f95);}(_0x111f,0x1a8));const _0x134c=function(_0x4d4aa8,_0x111f95){_0x4d4aa8=_0x4d4aa8-0x0;let _0x134cb6=_0x111f[_0x4d4aa8];return _0x134cb6;};import{Plugin as _0x2a451f}from'ckeditor5/src/core';export default class Y extends _0x2a451f{['afterInit'](){const _0x249150=this[_0x134c('0x0')];if(!_0x249150[_0x134c('0x3')][_0x134c('0x1')](_0x134c('0x4')))return;_0x249150[_0x134c('0x3')][_0x134c('0x2')](_0x134c('0x4'))['enableCommand'](_0x134c('0x5'));}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @module comments/integrations/importword
3
- */
4
- import { Plugin, type Editor } from 'ckeditor5/src/core';
5
- /**
6
- * Provides comments plugin integration for the import from Word feature.
7
- */
8
- export default class CommentsImportWord extends Plugin {
9
- /**
10
- * @inheritDoc
11
- */
12
- constructor(editor: Editor);
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @module comments/integrations/importword
3
+ */
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides comments plugin integration for the import from Word feature.
7
+ */
8
+ export default class CommentsImportWord extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ constructor(editor: Editor);
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19a9=['high','config','plugins','execute','editor','basic','addCommentThread','listenTo','define','_handleImportedData','forEach','dataInsert','map','importWord.commentsStyles','get','importWord'];(function(_0x4efb08,_0x19a948){const _0x26b480=function(_0x209e54){while(--_0x209e54){_0x4efb08['push'](_0x4efb08['shift']());}};_0x26b480(++_0x19a948);}(_0x19a9,0x78));const _0x26b4=function(_0x4efb08,_0x19a948){_0x4efb08=_0x4efb08-0x0;let _0x26b480=_0x19a9[_0x4efb08];return _0x26b480;};import{Plugin as _0x3f2b75}from'ckeditor5/src/core';import{priorities as _0x50dce8}from'ckeditor5/src/utils';import{Users as _0x2baa33}from'ckeditor5-collaboration/src/collaboration-core';import _0x68132f from'../commentsrepository';export default class Z extends _0x3f2b75{constructor(_0x27f19d){super(_0x27f19d),this[_0x26b4('0xc')][_0x26b4('0x9')][_0x26b4('0x0')](_0x26b4('0x5'),_0x26b4('0xd'));}['afterInit'](){const _0x12ec89=this[_0x26b4('0xc')],_0x2e4561=_0x12ec89['commands'][_0x26b4('0x6')](_0x26b4('0x7')),_0x4a77ff=_0x12ec89[_0x26b4('0xa')]['get'](_0x2baa33);_0x2e4561&&(_0x2e4561['on'](_0x26b4('0xb'),(_0x32bc36,[,_0x491209])=>{_0x491209['collaboration_features']={'comments':!0x0,'user_id':_0x4a77ff['me']['id'],'comments_styles':this['editor'][_0x26b4('0x9')]['get']('importWord.commentsStyles')};},{'priority':_0x50dce8[_0x26b4('0x8')]+0xa}),this[_0x26b4('0xf')](_0x2e4561,_0x26b4('0x3'),this[_0x26b4('0x1')]));}[_0x26b4('0x1')](_0x16b2c5,_0xfc83b6){const {comment_threads:_0x2853fa}=_0xfc83b6;_0x2853fa&&_0x2853fa[_0x26b4('0x2')](({thread_id:_0x3459c6,comments:_0x209952,is_resolved:_0x3921ba})=>{const _0x7ce96c=new Date(),_0x160e2c=_0x209952[_0x26b4('0x4')](({author:_0x3bc375,content:_0x5c8a10,created_at:_0x36477f})=>({'content':_0x5c8a10,'authorId':this['editor']['plugins'][_0x26b4('0x6')](_0x2baa33)['me']['id'],'createdAt':_0x7ce96c,'attributes':{'@external':{'authorName':_0x3bc375,'createdAt':_0x36477f?new Date(_0x36477f):new Date(),'source':'importWord'}}})),_0x58925c=this['editor'][_0x26b4('0x9')][_0x26b4('0x6')]('collaboration.channelId');this[_0x26b4('0xc')][_0x26b4('0xa')][_0x26b4('0x6')](_0x68132f)[_0x26b4('0xe')]({'channelId':_0x58925c,'threadId':_0x3459c6,'comments':_0x160e2c,'resolvedAt':_0x3921ba?_0x7ce96c:null});});}}
23
+ const _0x51f7=['get','editor','collaboration.channelId','basic','high','commands','config','_handleImportedData','addCommentThread','importWord','dataInsert','map','afterInit','define','plugins','listenTo','collaboration_features'];(function(_0x3941e2,_0x51f7ad){const _0x13c9c2=function(_0x2e19e0){while(--_0x2e19e0){_0x3941e2['push'](_0x3941e2['shift']());}};_0x13c9c2(++_0x51f7ad);}(_0x51f7,0x154));const _0x13c9=function(_0x3941e2,_0x51f7ad){_0x3941e2=_0x3941e2-0x0;let _0x13c9c2=_0x51f7[_0x3941e2];return _0x13c9c2;};import{Plugin as _0x22db1d}from'ckeditor5/src/core';import{priorities as _0x53c089}from'ckeditor5/src/utils';import{Users as _0x174057}from'ckeditor5-collaboration/src/collaboration-core';import _0x16ec8a from'../commentsrepository';export default class Z extends _0x22db1d{constructor(_0x409bec){super(_0x409bec),this['editor'][_0x13c9('0x6')][_0x13c9('0xd')]('importWord.commentsStyles',_0x13c9('0x3'));}[_0x13c9('0xc')](){const _0x2ea8de=this['editor'],_0x3fc82f=_0x2ea8de[_0x13c9('0x5')][_0x13c9('0x0')](_0x13c9('0x9')),_0x42e78f=_0x2ea8de['plugins'][_0x13c9('0x0')](_0x174057);_0x3fc82f&&(_0x3fc82f['on']('execute',(_0x3a49ab,[,_0x3f0b54])=>{_0x3f0b54[_0x13c9('0x10')]={'comments':!0x0,'user_id':_0x42e78f['me']['id'],'comments_styles':this['editor'][_0x13c9('0x6')]['get']('importWord.commentsStyles')};},{'priority':_0x53c089[_0x13c9('0x4')]+0xa}),this[_0x13c9('0xf')](_0x3fc82f,_0x13c9('0xa'),this[_0x13c9('0x7')]));}[_0x13c9('0x7')](_0xcccdfa,_0x4efc87){const {comment_threads:_0x280075}=_0x4efc87;_0x280075&&_0x280075['forEach'](({thread_id:_0x2f3026,comments:_0x29e1d9,is_resolved:_0x3f5078})=>{const _0x3cd129=new Date(),_0x2781fc=_0x29e1d9[_0x13c9('0xb')](({author:_0x442e1c,content:_0x359ef8,created_at:_0x24d33e})=>({'content':_0x359ef8,'authorId':this['editor'][_0x13c9('0xe')]['get'](_0x174057)['me']['id'],'createdAt':_0x3cd129,'attributes':{'@external':{'authorName':_0x442e1c,'createdAt':_0x24d33e?new Date(_0x24d33e):new Date(),'source':'importWord'}}})),_0x54fb8d=this[_0x13c9('0x1')][_0x13c9('0x6')][_0x13c9('0x0')](_0x13c9('0x2'));this[_0x13c9('0x1')][_0x13c9('0xe')][_0x13c9('0x0')](_0x16ec8a)[_0x13c9('0x8')]({'channelId':_0x54fb8d,'threadId':_0x2f3026,'comments':_0x2781fc,'resolvedAt':_0x3f5078?_0x3cd129:null});});}}
@@ -1,32 +1,32 @@
1
- /**
2
- * @module comments/comments/ui/commenteditor/commenteditor
3
- */
4
- import { Editor, type EditorConfig } from 'ckeditor5/src/core';
5
- import CommentEditorUI from './commenteditorui';
6
- import { type ViewElement } from 'ckeditor5/src/engine';
7
- declare const CommentEditor_base: import("ckeditor5/src/utils").Mixed<import("ckeditor5/src/utils").Mixed<typeof Editor, import("ckeditor5/src/core").DataApi>, import("ckeditor5/src/utils").Observable>;
8
- export default class CommentEditor extends CommentEditor_base {
9
- static defaultPlugins: EditorConfig['plugins'];
10
- /**
11
- * The input placeholder.
12
- *
13
- * @observable
14
- */
15
- placeholder: string;
16
- placeholderElement: ViewElement | undefined;
17
- ui: CommentEditorUI;
18
- /**
19
- * @inheritDoc
20
- */
21
- constructor(config?: EditorConfig);
22
- create(): Promise<unknown>;
23
- /**
24
- * @inheritDoc
25
- */
26
- destroy(): Promise<void>;
27
- /**
28
- * Place the selection at the end of the editor data and focus the editable.
29
- */
30
- focus(): void;
31
- }
32
- export {};
1
+ /**
2
+ * @module comments/comments/ui/commenteditor/commenteditor
3
+ */
4
+ import { Editor, type EditorConfig } from 'ckeditor5/src/core';
5
+ import CommentEditorUI from './commenteditorui';
6
+ import { type ViewElement } from 'ckeditor5/src/engine';
7
+ declare const CommentEditor_base: import("ckeditor5/src/utils").Mixed<import("ckeditor5/src/utils").Mixed<typeof Editor, import("ckeditor5/src/core").DataApi>, import("ckeditor5/src/utils").Observable>;
8
+ export default class CommentEditor extends CommentEditor_base {
9
+ static defaultPlugins: EditorConfig['plugins'];
10
+ /**
11
+ * The input placeholder.
12
+ *
13
+ * @observable
14
+ */
15
+ placeholder: string;
16
+ placeholderElement: ViewElement | undefined;
17
+ ui: CommentEditorUI;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ constructor(config?: EditorConfig);
22
+ create(): Promise<unknown>;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ destroy(): Promise<void>;
27
+ /**
28
+ * Place the selection at the end of the editor data and focus the editable.
29
+ */
30
+ focus(): void;
31
+ }
32
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbe44=['initialData','create','low','placeholder','view','config','childCount','placeholderElement','destroy','init','createRoot','end','setSelection','focus','then','assign','getChild','set','change:placeholder','plugins','defaultPlugins','editing','initPlugins','change','name','getRoot','_updatePlaceholder','model','document'];(function(_0x25b44c,_0xbe44c1){const _0x2459b4=function(_0x344074){while(--_0x344074){_0x25b44c['push'](_0x25b44c['shift']());}};_0x2459b4(++_0xbe44c1);}(_0xbe44,0x102));const _0x2459=function(_0x25b44c,_0xbe44c1){_0x25b44c=_0x25b44c-0x0;let _0x2459b4=_0xbe44[_0x25b44c];return _0x2459b4;};import{Editor as _0x3d619f,DataApiMixin as _0x24ef50}from'ckeditor5/src/core';import _0x5e5b9 from'./commenteditorui';import{ObservableMixin as _0x298f14}from'ckeditor5/src/utils';import{enablePlaceholder as _0x49e497,disablePlaceholder as _0x3036b8}from'ckeditor5/src/engine';import{Clipboard as _0xb2c821}from'ckeditor5/src/clipboard';import{Enter as _0x30c4ba,ShiftEnter as _0x243ccb}from'ckeditor5/src/enter';import{SelectAll as _0x4ccf03}from'ckeditor5/src/select-all';import{Typing as _0x120ae7}from'ckeditor5/src/typing';import{Undo as _0x3b24a8}from'ckeditor5/src/undo';import{Paragraph as _0x376b97}from'ckeditor5/src/paragraph';const Lt=[_0xb2c821,_0x30c4ba,_0x243ccb,_0x4ccf03,_0x120ae7,_0x3b24a8,_0x376b97];export default class Mt extends _0x298f14(_0x24ef50(_0x3d619f)){constructor(_0xcb94b4={}){(_0xcb94b4=Object[_0x2459('0x12')]({},_0xcb94b4))[_0x2459('0x16')]||(_0xcb94b4[_0x2459('0x16')]=Mt[_0x2459('0x17')]),super(_0xcb94b4),this['ui']=new _0x5e5b9(this),this[_0x2459('0x14')](_0x2459('0x6'),''),this[_0x2459('0x1')]['document']['on'](_0x2459('0x1a'),()=>this[_0x2459('0x0')](),{'priority':_0x2459('0x5')}),this['on'](_0x2459('0x15'),()=>this[_0x2459('0x0')]()),this['model'][_0x2459('0x2')][_0x2459('0xd')]();}[_0x2459('0x4')](){const _0x2f09bc=this[_0x2459('0x8')]['get'](_0x2459('0x3'))||'';return this[_0x2459('0x19')]()[_0x2459('0x11')](()=>this['ui'][_0x2459('0xc')]())[_0x2459('0x11')](()=>this['data'][_0x2459('0xc')](_0x2f09bc))[_0x2459('0x11')](()=>this['fire']('ready'));}[_0x2459('0xb')](){return super[_0x2459('0xb')]()[_0x2459('0x11')](()=>this['ui']['destroy']());}[_0x2459('0x10')](){this[_0x2459('0x1')]['change'](_0x404513=>{const _0x1f8166=this['model'][_0x2459('0x2')]['getRoot'](),_0x1bda65=_0x1f8166&&_0x1f8166[_0x2459('0x13')](_0x1f8166[_0x2459('0x9')]-0x1);_0x404513[_0x2459('0xf')](_0x1bda65,_0x2459('0xe')),this[_0x2459('0x18')]['view'][_0x2459('0x10')]();});}['_updatePlaceholder'](){const _0x844c7a=this[_0x2459('0x18')][_0x2459('0x7')],_0x540cbb=_0x844c7a['document'][_0x2459('0x1c')](),_0x56aac0=_0x540cbb['getChild'](0x0);_0x540cbb[_0x2459('0x9')]>0x1||!_0x56aac0||'p'!=_0x56aac0[_0x2459('0x1b')]?this[_0x2459('0xa')]&&(_0x3036b8(_0x844c7a,this[_0x2459('0xa')]),this[_0x2459('0xa')]=void 0x0):(_0x49e497({'view':_0x844c7a,'element':_0x56aac0,'text':this[_0x2459('0x6')],'keepOnFocus':!0x0}),this[_0x2459('0xa')]=_0x56aac0);}}Mt[_0x2459('0x17')]=Lt;
23
+ const _0x1515=['getChild','focus','model','ready','_updatePlaceholder','then','change','destroy','data','childCount','low','document','create','initPlugins','end','view','defaultPlugins','config','init','set','createRoot','get','initialData','placeholderElement','fire','editing','getRoot','assign','placeholder','plugins'];(function(_0x539c02,_0x1515ed){const _0x292fc6=function(_0x4bd844){while(--_0x4bd844){_0x539c02['push'](_0x539c02['shift']());}};_0x292fc6(++_0x1515ed);}(_0x1515,0x1c3));const _0x292f=function(_0x539c02,_0x1515ed){_0x539c02=_0x539c02-0x0;let _0x292fc6=_0x1515[_0x539c02];return _0x292fc6;};import{Editor as _0x370a9e,DataApiMixin as _0x526c6a}from'ckeditor5/src/core';import _0x2b97c6 from'./commenteditorui';import{ObservableMixin as _0x385985}from'ckeditor5/src/utils';import{enablePlaceholder as _0x53d15f,disablePlaceholder as _0x2c0af3}from'ckeditor5/src/engine';import{Clipboard as _0x3a3095}from'ckeditor5/src/clipboard';import{Enter as _0x332843,ShiftEnter as _0x233dc3}from'ckeditor5/src/enter';import{SelectAll as _0x176ec3}from'ckeditor5/src/select-all';import{Typing as _0x558ad4}from'ckeditor5/src/typing';import{Undo as _0x4391a9}from'ckeditor5/src/undo';import{Paragraph as _0x4073d2}from'ckeditor5/src/paragraph';const Lt=[_0x3a3095,_0x332843,_0x233dc3,_0x176ec3,_0x558ad4,_0x4391a9,_0x4073d2];export default class Mt extends _0x385985(_0x526c6a(_0x370a9e)){constructor(_0x29da77={}){(_0x29da77=Object[_0x292f('0x1a')]({},_0x29da77))[_0x292f('0x1c')]||(_0x29da77[_0x292f('0x1c')]=Mt[_0x292f('0xf')]),super(_0x29da77),this['ui']=new _0x2b97c6(this),this[_0x292f('0x12')]('placeholder',''),this[_0x292f('0x1')]['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':_0x292f('0x9')}),this['on']('change:placeholder',()=>this[_0x292f('0x3')]()),this[_0x292f('0x1')][_0x292f('0xa')][_0x292f('0x13')]();}[_0x292f('0xb')](){const _0x58cafe=this[_0x292f('0x10')][_0x292f('0x14')](_0x292f('0x15'))||'';return this[_0x292f('0xc')]()[_0x292f('0x4')](()=>this['ui']['init']())[_0x292f('0x4')](()=>this[_0x292f('0x7')][_0x292f('0x11')](_0x58cafe))['then'](()=>this[_0x292f('0x17')](_0x292f('0x2')));}['destroy'](){return super[_0x292f('0x6')]()[_0x292f('0x4')](()=>this['ui'][_0x292f('0x6')]());}[_0x292f('0x0')](){this[_0x292f('0x1')][_0x292f('0x5')](_0x3cf534=>{const _0x2ac44a=this['model']['document'][_0x292f('0x19')](),_0x5ea6ed=_0x2ac44a&&_0x2ac44a[_0x292f('0x1d')](_0x2ac44a['childCount']-0x1);_0x3cf534['setSelection'](_0x5ea6ed,_0x292f('0xd')),this[_0x292f('0x18')][_0x292f('0xe')][_0x292f('0x0')]();});}[_0x292f('0x3')](){const _0x3c9728=this[_0x292f('0x18')][_0x292f('0xe')],_0x5f20aa=_0x3c9728[_0x292f('0xa')]['getRoot'](),_0x276b5d=_0x5f20aa['getChild'](0x0);_0x5f20aa[_0x292f('0x8')]>0x1||!_0x276b5d||'p'!=_0x276b5d['name']?this[_0x292f('0x16')]&&(_0x2c0af3(_0x3c9728,this[_0x292f('0x16')]),this[_0x292f('0x16')]=void 0x0):(_0x53d15f({'view':_0x3c9728,'element':_0x276b5d,'text':this[_0x292f('0x1b')],'keepOnFocus':!0x0}),this[_0x292f('0x16')]=_0x276b5d);}}Mt[_0x292f('0xf')]=Lt;
@@ -1,27 +1,27 @@
1
- /**
2
- * @module comments/comments/ui/commenteditor/commenteditorui
3
- */
4
- import { EditorUI } from 'ckeditor5/src/ui';
5
- import type { Editor } from 'ckeditor5/src/core';
6
- import CommentEditorUIView from './commenteditoruiview';
7
- export default class CommentEditorUI extends EditorUI {
8
- /**
9
- * The main (top–most) view of the editor UI.
10
- */
11
- readonly view: CommentEditorUIView;
12
- /**
13
- * Creates an instance of the classic editor UI class.
14
- *
15
- * @param editor The editor instance.
16
- */
17
- constructor(editor: Editor);
18
- /**
19
- * @inheritDoc
20
- */
21
- get element(): HTMLElement | null;
22
- init(): void;
23
- /**
24
- * @inheritDoc
25
- */
26
- destroy(): void;
27
- }
1
+ /**
2
+ * @module comments/comments/ui/commenteditor/commenteditorui
3
+ */
4
+ import { EditorUI } from 'ckeditor5/src/ui';
5
+ import type { Editor } from 'ckeditor5/src/core';
6
+ import CommentEditorUIView from './commenteditoruiview';
7
+ export default class CommentEditorUI extends EditorUI {
8
+ /**
9
+ * The main (top–most) view of the editor UI.
10
+ */
11
+ readonly view: CommentEditorUIView;
12
+ /**
13
+ * Creates an instance of the classic editor UI class.
14
+ *
15
+ * @param editor The editor instance.
16
+ */
17
+ constructor(editor: Editor);
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ get element(): HTMLElement | null;
22
+ init(): void;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ destroy(): void;
27
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5baa=['rootName','attachDomRoot','getRoot','view','editing','destroy','element','fire','init','editable','bind','render','setEditableElement','document','editor','name'];(function(_0xab683f,_0x5baa8a){const _0x1061c6=function(_0x5c0543){while(--_0x5c0543){_0xab683f['push'](_0xab683f['shift']());}};_0x1061c6(++_0x5baa8a);}(_0x5baa,0x91));const _0x1061=function(_0xab683f,_0x5baa8a){_0xab683f=_0xab683f-0x0;let _0x1061c6=_0x5baa[_0xab683f];return _0x1061c6;};import{EditorUI as _0x5cbf53}from'ckeditor5/src/ui';import _0x10f8b3 from'./commenteditoruiview';export default class Ft extends _0x5cbf53{constructor(_0x464762){super(_0x464762),this['view']=new _0x10f8b3(_0x464762['locale'],_0x464762[_0x1061('0x3')][_0x1061('0x2')]);}get['element'](){return this[_0x1061('0x2')]['element'];}[_0x1061('0x7')](){const _0x49d732=this[_0x1061('0xd')][_0x1061('0x3')][_0x1061('0x2')],_0x875521=this[_0x1061('0x2')][_0x1061('0x8')],_0x384fbf=_0x49d732[_0x1061('0xc')][_0x1061('0x1')]();_0x875521[_0x1061('0xe')]=_0x384fbf[_0x1061('0xf')],this[_0x1061('0x2')][_0x1061('0xa')]();const _0x127d9c=_0x875521[_0x1061('0x5')];this[_0x1061('0xb')](_0x875521[_0x1061('0xe')],_0x127d9c),this[_0x1061('0x2')][_0x1061('0x8')][_0x1061('0x9')]('isFocused')['to'](this['focusTracker']),_0x49d732[_0x1061('0x0')](_0x127d9c),this[_0x1061('0x6')]('ready');}[_0x1061('0x4')](){super['destroy'](),this[_0x1061('0x2')][_0x1061('0x4')]();}}
23
+ const _0x3d62=['fire','isFocused','attachDomRoot','element','ready','rootName','view','render','focusTracker','setEditableElement','editable','name','locale','editing','getRoot'];(function(_0x345961,_0x3d62b6){const _0x1ee54c=function(_0x3a3abb){while(--_0x3a3abb){_0x345961['push'](_0x345961['shift']());}};_0x1ee54c(++_0x3d62b6);}(_0x3d62,0x140));const _0x1ee5=function(_0x345961,_0x3d62b6){_0x345961=_0x345961-0x0;let _0x1ee54c=_0x3d62[_0x345961];return _0x1ee54c;};import{EditorUI as _0x1812d7}from'ckeditor5/src/ui';import _0x4c7c8e from'./commenteditoruiview';export default class Ft extends _0x1812d7{constructor(_0x29f7af){super(_0x29f7af),this['view']=new _0x4c7c8e(_0x29f7af[_0x1ee5('0x7')],_0x29f7af[_0x1ee5('0x8')]['view']);}get[_0x1ee5('0xd')](){return this[_0x1ee5('0x1')]['element'];}['init'](){const _0x1faacb=this['editor'][_0x1ee5('0x8')][_0x1ee5('0x1')],_0x3d28d0=this[_0x1ee5('0x1')][_0x1ee5('0x5')],_0x28b3ca=_0x1faacb['document'][_0x1ee5('0x9')]();_0x3d28d0[_0x1ee5('0x6')]=_0x28b3ca[_0x1ee5('0x0')],this[_0x1ee5('0x1')][_0x1ee5('0x2')]();const _0x3b1e09=_0x3d28d0[_0x1ee5('0xd')];this[_0x1ee5('0x4')](_0x3d28d0['name'],_0x3b1e09),this[_0x1ee5('0x1')][_0x1ee5('0x5')]['bind'](_0x1ee5('0xb'))['to'](this[_0x1ee5('0x3')]),_0x1faacb[_0x1ee5('0xc')](_0x3b1e09),this[_0x1ee5('0xa')](_0x1ee5('0xe'));}['destroy'](){super['destroy'](),this[_0x1ee5('0x1')]['destroy']();}}
@@ -1,32 +1,32 @@
1
- /**
2
- * @module comments/comments/ui/commenteditor/commenteditoruiview
3
- */
4
- import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
5
- import { type Locale } from 'ckeditor5/src/utils';
6
- import type { View } from 'ckeditor5/src/engine';
7
- export default class CommentEditorUIView extends EditorUIView {
8
- /**
9
- * Collection of the child views located in the main (`.ck-editor__main`)
10
- * area of the UI.
11
- */
12
- readonly main: ViewCollection;
13
- /**
14
- * Editable UI view.
15
- */
16
- editable: InlineEditableUIView;
17
- /**
18
- * Creates an instance of the comments editor UI view.
19
- *
20
- * @param locale The locale instance.
21
- * @param editingView The editing view instance this view is related to.
22
- */
23
- constructor(locale: Locale, editingView: View);
24
- /**
25
- * @inheritDoc
26
- */
27
- render(): void;
28
- /**
29
- * Focusable interface required by a FocusCycler.
30
- */
31
- focus(): void;
32
- }
1
+ /**
2
+ * @module comments/comments/ui/commenteditor/commenteditoruiview
3
+ */
4
+ import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
5
+ import { type Locale } from 'ckeditor5/src/utils';
6
+ import type { View } from 'ckeditor5/src/engine';
7
+ export default class CommentEditorUIView extends EditorUIView {
8
+ /**
9
+ * Collection of the child views located in the main (`.ck-editor__main`)
10
+ * area of the UI.
11
+ */
12
+ readonly main: ViewCollection;
13
+ /**
14
+ * Editable UI view.
15
+ */
16
+ editable: InlineEditableUIView;
17
+ /**
18
+ * Creates an instance of the comments editor UI view.
19
+ *
20
+ * @param locale The locale instance.
21
+ * @param editingView The editing view instance this view is related to.
22
+ */
23
+ constructor(locale: Locale, editingView: View);
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ render(): void;
28
+ /**
29
+ * Focusable interface required by a FocusCycler.
30
+ */
31
+ focus(): void;
32
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5886=['editable','element','ck-editor','ck-comment__input','uiLanguage','add','extendTemplate','comment','main','ck-voice-label','_voiceLabelView','div','createCollection','render','setTemplate','ck-rounded-corners','ck-reset','cke-editor__aria-label_','focus'];(function(_0x9278f4,_0x588648){const _0x4ffd6a=function(_0x53eb19){while(--_0x53eb19){_0x9278f4['push'](_0x9278f4['shift']());}};_0x4ffd6a(++_0x588648);}(_0x5886,0x8a));const _0x4ffd=function(_0x9278f4,_0x588648){_0x9278f4=_0x9278f4-0x0;let _0x4ffd6a=_0x5886[_0x9278f4];return _0x4ffd6a;};import{InlineEditableUIView as _0x251440,EditorUIView as _0x27b271,LabelView as _0x251597}from'ckeditor5/src/ui';import{uid as _0x3b4fe4}from'ckeditor5/src/utils';import{getTranslation as _0x4111e0}from'../../../utils/common-translations';export default class Qt extends _0x27b271{constructor(_0x1184cc,_0x1e7981){super(_0x1184cc);const _0x250c38=_0x3b4fe4();this['main']=this[_0x4ffd('0x7')](),this[_0x4ffd('0xe')]=new _0x251440(_0x1184cc,_0x1e7981),this[_0x4ffd('0x5')]=this['_createVoiceLabel'](_0x250c38,_0x1184cc),this[_0x4ffd('0x9')]({'tag':_0x4ffd('0x6'),'attributes':{'class':[_0x4ffd('0xb'),_0x4ffd('0x10'),_0x4ffd('0xa'),_0x4ffd('0x11')],'role':_0x4ffd('0x2'),'dir':_0x1184cc['uiLanguageDirection'],'lang':_0x1184cc[_0x4ffd('0x12')],'aria-labelledby':_0x4ffd('0xc')+_0x250c38},'children':[this[_0x4ffd('0x5')],{'tag':_0x4ffd('0x6'),'attributes':{'class':'ck-editor__main','role':'presentation'},'children':this[_0x4ffd('0x3')]}]});}[_0x4ffd('0x8')](){super[_0x4ffd('0x8')](),this['main'][_0x4ffd('0x0')](this[_0x4ffd('0xe')]);}['focus'](){this[_0x4ffd('0xe')][_0x4ffd('0xf')][_0x4ffd('0xd')]();}['_createVoiceLabel'](_0x43c721,_0x1e3fa8){const _0x30f218=new _0x251597();return _0x30f218['text']=_0x4111e0(_0x1e3fa8,'Comment\x20editor'),_0x30f218[_0x4ffd('0x1')]({'attributes':{'id':'ck-editor__aria-label_'+_0x43c721,'class':_0x4ffd('0x4')}}),_0x30f218;}}
23
+ const _0x3674=['uiLanguageDirection','_voiceLabelView','element','setTemplate','ck-voice-label','cke-editor__aria-label_','ck-reset','presentation','editable','uiLanguage','extendTemplate','add','div','_createVoiceLabel','text','focus','createCollection','main'];(function(_0x398242,_0x36746a){const _0x53c724=function(_0x590574){while(--_0x590574){_0x398242['push'](_0x398242['shift']());}};_0x53c724(++_0x36746a);}(_0x3674,0x73));const _0x53c7=function(_0x398242,_0x36746a){_0x398242=_0x398242-0x0;let _0x53c724=_0x3674[_0x398242];return _0x53c724;};import{InlineEditableUIView as _0x288419,EditorUIView as _0x47e88c,LabelView as _0x48e4f5}from'ckeditor5/src/ui';import{uid as _0x5a7dda}from'ckeditor5/src/utils';import{getTranslation as _0x2ffd57}from'../../../utils/common-translations';export default class Qt extends _0x47e88c{constructor(_0x26d8c3,_0x21aa3d){super(_0x26d8c3);const _0x8603d3=_0x5a7dda();this[_0x53c7('0xa')]=this[_0x53c7('0x9')](),this[_0x53c7('0x1')]=new _0x288419(_0x26d8c3,_0x21aa3d),this[_0x53c7('0xc')]=this[_0x53c7('0x6')](_0x8603d3,_0x26d8c3),this[_0x53c7('0xe')]({'tag':_0x53c7('0x5'),'attributes':{'class':[_0x53c7('0x11'),'ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x26d8c3[_0x53c7('0xb')],'lang':_0x26d8c3[_0x53c7('0x2')],'aria-labelledby':_0x53c7('0x10')+_0x8603d3},'children':[this[_0x53c7('0xc')],{'tag':_0x53c7('0x5'),'attributes':{'class':'ck-editor__main','role':_0x53c7('0x0')},'children':this[_0x53c7('0xa')]}]});}['render'](){super['render'](),this['main'][_0x53c7('0x4')](this[_0x53c7('0x1')]);}[_0x53c7('0x8')](){this[_0x53c7('0x1')][_0x53c7('0xd')][_0x53c7('0x8')]();}[_0x53c7('0x6')](_0x445b68,_0xe10c77){const _0x29eb7e=new _0x48e4f5();return _0x29eb7e[_0x53c7('0x7')]=_0x2ffd57(_0xe10c77,'Comment\x20editor'),_0x29eb7e[_0x53c7('0x3')]({'attributes':{'id':'ck-editor__aria-label_'+_0x445b68,'class':_0x53c7('0xf')}}),_0x29eb7e;}}
@@ -1,64 +1,64 @@
1
- /**
2
- * @module comments/comments/ui/commentthreadcontroller
3
- * @publicApi
4
- */
5
- import type { CommentThread } from '../commentsrepository';
6
- import type { default as BaseCommentThreadView } from './view/basecommentthreadview';
7
- declare const CommentThreadController_base: {
8
- new (): import("ckeditor5/src/utils").Observable;
9
- prototype: import("ckeditor5/src/utils").Observable;
10
- };
11
- /**
12
- * Controller for a comment thread.
13
- *
14
- * It takes a comment thread view, listens to events fired by that view and based on them performs actions on a comment thread model.
15
- */
16
- export default class CommentThreadController extends CommentThreadController_base {
17
- model: CommentThread;
18
- view: BaseCommentThreadView;
19
- /**
20
- * @param model Comment thread model.
21
- * @param view Comment thread view.
22
- */
23
- constructor(model: CommentThread, view: BaseCommentThreadView);
24
- /**
25
- * Submits the comment thread.
26
- */
27
- submit(): void;
28
- /**
29
- * Removes the comment thread.
30
- */
31
- remove(): void;
32
- /**
33
- * Resolves the comment thread.
34
- */
35
- resolve(): void;
36
- /**
37
- * Reopens the comment thread.
38
- */
39
- reopen(): void;
40
- /**
41
- * Adds a comment to the comment thread.
42
- *
43
- * @param commentContent Comment content.
44
- */
45
- addComment(commentContent: string): void;
46
- /**
47
- * Updates a comment that belongs to the comment thread.
48
- *
49
- * @param commentId Id of the comment to update.
50
- * @param commentContent Updated comment content.
51
- */
52
- updateComment(commentId: string, commentContent: string): void;
53
- /**
54
- * Removes a comment from the comment thread.
55
- *
56
- * @param commentId Id of the comment to remove.
57
- */
58
- removeComment(commentId: string): void;
59
- /**
60
- * Destroys `CommentThreadController` instance.
61
- */
62
- destroy(): void;
63
- }
64
- export {};
1
+ /**
2
+ * @module comments/comments/ui/commentthreadcontroller
3
+ * @publicApi
4
+ */
5
+ import type { CommentThread } from '../commentsrepository';
6
+ import type { default as BaseCommentThreadView } from './view/basecommentthreadview';
7
+ declare const CommentThreadController_base: {
8
+ new (): import("ckeditor5/src/utils").Observable;
9
+ prototype: import("ckeditor5/src/utils").Observable;
10
+ };
11
+ /**
12
+ * Controller for a comment thread.
13
+ *
14
+ * It takes a comment thread view, listens to events fired by that view and based on them performs actions on a comment thread model.
15
+ */
16
+ export default class CommentThreadController extends CommentThreadController_base {
17
+ model: CommentThread;
18
+ view: BaseCommentThreadView;
19
+ /**
20
+ * @param model Comment thread model.
21
+ * @param view Comment thread view.
22
+ */
23
+ constructor(model: CommentThread, view: BaseCommentThreadView);
24
+ /**
25
+ * Submits the comment thread.
26
+ */
27
+ submit(): void;
28
+ /**
29
+ * Removes the comment thread.
30
+ */
31
+ remove(): void;
32
+ /**
33
+ * Resolves the comment thread.
34
+ */
35
+ resolve(): void;
36
+ /**
37
+ * Reopens the comment thread.
38
+ */
39
+ reopen(): void;
40
+ /**
41
+ * Adds a comment to the comment thread.
42
+ *
43
+ * @param commentContent Comment content.
44
+ */
45
+ addComment(commentContent: string): void;
46
+ /**
47
+ * Updates a comment that belongs to the comment thread.
48
+ *
49
+ * @param commentId Id of the comment to update.
50
+ * @param commentContent Updated comment content.
51
+ */
52
+ updateComment(commentId: string, commentContent: string): void;
53
+ /**
54
+ * Removes a comment from the comment thread.
55
+ *
56
+ * @param commentId Id of the comment to remove.
57
+ */
58
+ removeComment(commentId: string): void;
59
+ /**
60
+ * Destroys `CommentThreadController` instance.
61
+ */
62
+ destroy(): void;
63
+ }
64
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2ab9=['update','remove','submit','listenTo','removeComment','view','resolve','updateComment','isResolved','reopenCommentThread','stopListening','reopen','_isAttached','destroy','model','addComment','getComment','submitCommentThread'];(function(_0x1849e3,_0x2ab970){var _0x1310b6=function(_0x30ccd7){while(--_0x30ccd7){_0x1849e3['push'](_0x1849e3['shift']());}};_0x1310b6(++_0x2ab970);}(_0x2ab9,0xca));var _0x1310=function(_0x1849e3,_0x2ab970){_0x1849e3=_0x1849e3-0x0;var _0x1310b6=_0x2ab9[_0x1849e3];return _0x1310b6;};import{ObservableMixin as _0x25987b}from'ckeditor5/src/utils';export default class ct extends _0x25987b(){constructor(_0x56fa05,_0x361089){super(),this[_0x1310('0xa')]=_0x56fa05,this[_0x1310('0xa')][_0x1310('0x8')]=!0x0,this[_0x1310('0x1')]=_0x361089,this['listenTo'](_0x361089,_0x1310('0xd'),()=>this[_0x1310('0x10')]()),this[_0x1310('0x11')](_0x361089,'removeCommentThread',()=>this[_0x1310('0xf')]()),this['listenTo'](_0x361089,'resolveCommentThread',()=>this[_0x1310('0x2')]()),this[_0x1310('0x11')](_0x361089,_0x1310('0x5'),()=>this[_0x1310('0x7')]()),this['listenTo'](_0x361089,_0x1310('0xb'),(_0x1c6e7d,_0x327036)=>this[_0x1310('0xb')](_0x327036)),this['listenTo'](_0x361089,'updateComment',(_0x4975e3,_0x365ff2,_0x56403e)=>this[_0x1310('0x3')](_0x365ff2,_0x56403e)),this[_0x1310('0x11')](_0x361089,_0x1310('0x0'),(_0x366879,_0x4eb9c6)=>this[_0x1310('0x0')](_0x4eb9c6));}[_0x1310('0x10')](){this[_0x1310('0xa')][_0x1310('0x10')]();}[_0x1310('0xf')](){this['model'][_0x1310('0xf')]();}[_0x1310('0x2')](){this[_0x1310('0xa')][_0x1310('0x4')]||this[_0x1310('0xa')][_0x1310('0x2')]();}[_0x1310('0x7')](){this[_0x1310('0xa')][_0x1310('0x4')]&&this[_0x1310('0xa')][_0x1310('0x7')]();}[_0x1310('0xb')](_0x3f9afe){this[_0x1310('0xa')][_0x1310('0xb')]({'content':_0x3f9afe,'authorId':this[_0x1310('0x1')]['_localUser']['id']});}['updateComment'](_0x323cb1,_0x5c64ee){this[_0x1310('0xa')][_0x1310('0xc')](_0x323cb1)[_0x1310('0xe')]({'content':_0x5c64ee});}[_0x1310('0x0')](_0x2cca43){this[_0x1310('0xa')][_0x1310('0xc')](_0x2cca43)[_0x1310('0xf')]();}[_0x1310('0x9')](){this[_0x1310('0x6')](),this[_0x1310('0xa')]['_isAttached']=!0x1;}}
23
+ var _0x5894=['resolve','view','reopen','submitCommentThread','reopenCommentThread','addComment','listenTo','remove','getComment','isResolved','submit','stopListening','destroy','resolveCommentThread','_isAttached','model','removeComment','updateComment','removeCommentThread'];(function(_0x1d2828,_0x5894ad){var _0x4917e5=function(_0x5859bf){while(--_0x5859bf){_0x1d2828['push'](_0x1d2828['shift']());}};_0x4917e5(++_0x5894ad);}(_0x5894,0xde));var _0x4917=function(_0x1d2828,_0x5894ad){_0x1d2828=_0x1d2828-0x0;var _0x4917e5=_0x5894[_0x1d2828];return _0x4917e5;};import{ObservableMixin as _0x501174}from'ckeditor5/src/utils';export default class ct extends _0x501174(){constructor(_0x48e9f2,_0x4e912f){super(),this[_0x4917('0x2')]=_0x48e9f2,this['model'][_0x4917('0x1')]=!0x0,this[_0x4917('0x7')]=_0x4e912f,this[_0x4917('0xc')](_0x4e912f,_0x4917('0x9'),()=>this['submit']()),this['listenTo'](_0x4e912f,_0x4917('0x5'),()=>this[_0x4917('0xd')]()),this[_0x4917('0xc')](_0x4e912f,_0x4917('0x0'),()=>this['resolve']()),this[_0x4917('0xc')](_0x4e912f,_0x4917('0xa'),()=>this[_0x4917('0x8')]()),this[_0x4917('0xc')](_0x4e912f,_0x4917('0xb'),(_0x3633c4,_0x41e65b)=>this[_0x4917('0xb')](_0x41e65b)),this[_0x4917('0xc')](_0x4e912f,'updateComment',(_0x1f13f0,_0x2fb7aa,_0x3b17ad)=>this[_0x4917('0x4')](_0x2fb7aa,_0x3b17ad)),this['listenTo'](_0x4e912f,_0x4917('0x3'),(_0x5cde86,_0xa9ef17)=>this[_0x4917('0x3')](_0xa9ef17));}[_0x4917('0x10')](){this[_0x4917('0x2')]['submit']();}[_0x4917('0xd')](){this[_0x4917('0x2')][_0x4917('0xd')]();}[_0x4917('0x6')](){this[_0x4917('0x2')][_0x4917('0xf')]||this[_0x4917('0x2')][_0x4917('0x6')]();}[_0x4917('0x8')](){this[_0x4917('0x2')][_0x4917('0xf')]&&this[_0x4917('0x2')][_0x4917('0x8')]();}[_0x4917('0xb')](_0x18c4e5){this['model'][_0x4917('0xb')]({'content':_0x18c4e5,'authorId':this['view']['_localUser']['id']});}[_0x4917('0x4')](_0x308a12,_0x3fbae0){this[_0x4917('0x2')][_0x4917('0xe')](_0x308a12)['update']({'content':_0x3fbae0});}[_0x4917('0x3')](_0x4299a0){this['model'][_0x4917('0xe')](_0x4299a0)['remove']();}[_0x4917('0x12')](){this[_0x4917('0x11')](),this['model'][_0x4917('0x1')]=!0x1;}}