@ckeditor/ckeditor5-comments 38.0.1 → 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 (98) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/en-au.js +1 -1
  3. package/build/translations/it.js +1 -1
  4. package/build/translations/lv.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/build/translations/sk.js +1 -1
  7. package/build/translations/sq.js +1 -0
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/it.po +1 -1
  10. package/lang/translations/lv.po +1 -1
  11. package/lang/translations/pt-br.po +1 -1
  12. package/lang/translations/sk.po +1 -1
  13. package/lang/translations/sq.po +111 -0
  14. package/package.json +10 -8
  15. package/src/annotations/annotation.d.ts +86 -86
  16. package/src/annotations/annotation.js +1 -1
  17. package/src/annotations/annotationcollection.d.ts +94 -94
  18. package/src/annotations/annotationcollection.js +1 -1
  19. package/src/annotations/annotations.d.ts +150 -150
  20. package/src/annotations/annotations.js +1 -1
  21. package/src/annotations/annotationsuis.d.ts +228 -227
  22. package/src/annotations/annotationsuis.js +1 -1
  23. package/src/annotations/editorannotations.d.ts +63 -62
  24. package/src/annotations/editorannotations.js +1 -1
  25. package/src/annotations/inlineannotations.d.ts +86 -84
  26. package/src/annotations/inlineannotations.js +1 -1
  27. package/src/annotations/narrowsidebar.d.ts +81 -80
  28. package/src/annotations/narrowsidebar.js +1 -1
  29. package/src/annotations/sidebar.d.ts +96 -96
  30. package/src/annotations/sidebar.js +1 -1
  31. package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
  32. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  33. package/src/annotations/view/annotationview.d.ts +86 -86
  34. package/src/annotations/view/annotationview.js +1 -1
  35. package/src/annotations/view/sidebaritemview.d.ts +51 -51
  36. package/src/annotations/view/sidebaritemview.js +1 -1
  37. package/src/annotations/view/sidebarview.d.ts +28 -28
  38. package/src/annotations/view/sidebarview.js +1 -1
  39. package/src/annotations/widesidebar.d.ts +73 -72
  40. package/src/annotations/widesidebar.js +1 -1
  41. package/src/augmentation.d.ts +48 -48
  42. package/src/comments/addcommentthreadcommand.d.ts +31 -31
  43. package/src/comments/addcommentthreadcommand.js +1 -1
  44. package/src/comments/commentsarchive.d.ts +27 -25
  45. package/src/comments/commentsarchive.js +1 -1
  46. package/src/comments/commentsarchiveui.d.ts +34 -32
  47. package/src/comments/commentsarchiveui.js +1 -1
  48. package/src/comments/commentsediting.d.ts +75 -71
  49. package/src/comments/commentsediting.js +1 -1
  50. package/src/comments/commentsrepository.d.ts +1088 -1084
  51. package/src/comments/commentsrepository.js +1 -1
  52. package/src/comments/commentsui.d.ts +29 -25
  53. package/src/comments/commentsui.js +1 -1
  54. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
  55. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  56. package/src/comments/integrations/importword.d.ts +17 -17
  57. package/src/comments/integrations/importword.js +1 -1
  58. package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
  59. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  60. package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
  61. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  62. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
  63. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  64. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  65. package/src/comments/ui/commentthreadcontroller.js +1 -1
  66. package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
  67. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  68. package/src/comments/ui/view/basecommentview.d.ts +108 -108
  69. package/src/comments/ui/view/basecommentview.js +1 -1
  70. package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
  71. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  72. package/src/comments/ui/view/commentcontentview.d.ts +10 -10
  73. package/src/comments/ui/view/commentcontentview.js +1 -1
  74. package/src/comments/ui/view/commentinputview.d.ts +82 -82
  75. package/src/comments/ui/view/commentinputview.js +1 -1
  76. package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
  77. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  78. package/src/comments/ui/view/commentslistview.d.ts +96 -96
  79. package/src/comments/ui/view/commentslistview.js +1 -1
  80. package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
  81. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  82. package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
  83. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  84. package/src/comments/ui/view/commentthreadview.d.ts +113 -113
  85. package/src/comments/ui/view/commentthreadview.js +1 -1
  86. package/src/comments/ui/view/commentview.d.ts +239 -239
  87. package/src/comments/ui/view/commentview.js +1 -1
  88. package/src/comments.d.ts +31 -22
  89. package/src/comments.js +1 -1
  90. package/src/commentsonly.d.ts +29 -28
  91. package/src/commentsonly.js +1 -1
  92. package/src/config.d.ts +172 -172
  93. package/src/index.d.ts +21 -19
  94. package/src/index.js +1 -1
  95. package/src/utils/common-translations.d.ts +5 -5
  96. package/src/utils/common-translations.js +1 -1
  97. package/src/utils/createmutationobserver.d.ts +13 -13
  98. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3189=['locale','init','CommentsUI','commands','listenTo','componentFactory','find','add','low','tooltip','execute','innerView','bind','isFocused','getRange','get','removeCommentThread','model','isEnabled','from','view','stop','focusTracker','focus','getAllMarkersForId','plugins','label','hasMarkerForId','_createUIButton','addSourceCollector','hasCommentThread','activeMarker','highest','_viewToController','map','length','change:activeAnnotations','editing','addComment','editor','comment:','_threadToController','getCommentThread'];(function(_0x1ed75a,_0x318975){const _0x3b8a79=function(_0x45e9a1){while(--_0x45e9a1){_0x1ed75a['push'](_0x1ed75a['shift']());}};_0x3b8a79(++_0x318975);}(_0x3189,0xe5));const _0x3b8a=function(_0x1ed75a,_0x318975){_0x1ed75a=_0x1ed75a-0x0;let _0x3b8a79=_0x3189[_0x1ed75a];return _0x3b8a79;};import{Plugin as _0x1e09b6}from'ckeditor5/src/core';import _0x3d98ce from'./commentsrepository';import _0x552770 from'./commentsediting';import _0x34db6f from'../annotations/editorannotations';import{ButtonView as _0x314cb8}from'ckeditor5/src/ui';import _0x466136 from'../../theme/icons/add-comment.svg';import _0x1aaa15 from'../annotations/annotations';import _0x2ffd7e from'./ui/view/commentslistview';import _0x4d60d8 from'./ui/view/commentthreadinputview';import{getTranslation as _0x5db980}from'../utils/common-translations';export default class e extends _0x1e09b6{static get['pluginName'](){return _0x3b8a('0x1f');}static get['requires'](){return[_0x3d98ce,_0x552770,_0x34db6f,_0x1aaa15];}get['CommentsListView'](){return _0x2ffd7e;}get['CommentThreadInputView'](){return _0x4d60d8;}[_0x3b8a('0x1e')](){const _0x110764=this[_0x3b8a('0x19')],_0x1193d7=_0x110764[_0x3b8a('0xb')][_0x3b8a('0x1')](_0x3d98ce),_0x53be6f=_0x110764[_0x3b8a('0xb')][_0x3b8a('0x1')](_0x552770),_0x571632=_0x110764['plugins'][_0x3b8a('0x1')](_0x1aaa15),_0x3462e9=_0x110764[_0x3b8a('0xb')][_0x3b8a('0x1')](_0x34db6f);_0x110764['ui'][_0x3b8a('0x22')][_0x3b8a('0x24')]('comment',()=>this[_0x3b8a('0xe')]()),_0x3462e9[_0x3b8a('0xf')](()=>{const _0x59c28e=[];for(const [_0x3e22bd,_0x130f76]of _0x1193d7[_0x3b8a('0x1b')]){const _0x40a98c=_0x53be6f[_0x3b8a('0xa')](_0x3e22bd['id']),_0x2960e1=_0x40a98c['map'](_0x2f379b=>_0x2f379b[_0x3b8a('0x0')]());_0x40a98c[_0x3b8a('0x15')]>0x0&&_0x59c28e['push']([_0x130f76[_0x3b8a('0x6')],_0x2960e1]);}return _0x59c28e;}),this[_0x3b8a('0x21')](_0x571632,_0x3b8a('0x16'),(_0xb427b5,_0x3017be,_0x49bfa7)=>{const _0x45e958=Array[_0x3b8a('0x5')](_0x49bfa7)[_0x3b8a('0x14')](_0x5c9f2e=>_0x5c9f2e[_0x3b8a('0x28')])[_0x3b8a('0x23')](_0x321837=>_0x1193d7[_0x3b8a('0x13')]['has'](_0x321837));if(!_0x45e958)return void(_0x53be6f[_0x3b8a('0x11')]=null);const _0x406dc1=_0x1193d7[_0x3b8a('0x13')][_0x3b8a('0x1')](_0x45e958)[_0x3b8a('0x3')]['id'],_0x1b4315=_0x3b8a('0x1a')+_0x406dc1;_0x406dc1&&_0x53be6f[_0x3b8a('0xd')](_0x406dc1)?_0x53be6f[_0x3b8a('0x11')]=_0x1b4315:_0x53be6f[_0x3b8a('0x11')]&&(_0x53be6f[_0x3b8a('0x11')]=null);}),this['listenTo'](_0x1193d7,_0x3b8a('0x2'),(_0x5bd5c1,{threadId:_0xcbb77,isFromAdapter:_0x41773c})=>{!_0x41773c&&_0x110764['ui'][_0x3b8a('0x8')][_0x3b8a('0x2a')]&&_0x53be6f[_0x3b8a('0xd')](_0xcbb77)&&_0x110764[_0x3b8a('0x17')][_0x3b8a('0x6')]['focus']();},{'priority':_0x3b8a('0x12')}),this['listenTo'](_0x1193d7,_0x3b8a('0x18'),(_0x3f119b,{threadId:_0x3b5647,isFromAdapter:_0x1ba4e9})=>{if(_0x1ba4e9||!_0x53be6f[_0x3b8a('0xd')](_0x3b5647)||!_0x1193d7[_0x3b8a('0x10')](_0x3b5647))return;0x1===_0x1193d7[_0x3b8a('0x1c')](_0x3b5647)['length']&&(_0x110764[_0x3b8a('0x17')][_0x3b8a('0x6')][_0x3b8a('0x9')](),_0x3f119b[_0x3b8a('0x7')]());},{'priority':_0x3b8a('0x25')});}[_0x3b8a('0xe')](){const _0x2d4852=this[_0x3b8a('0x19')],_0x53620c=new _0x314cb8(_0x2d4852[_0x3b8a('0x1d')]),_0x1ef287=_0x2d4852[_0x3b8a('0x20')][_0x3b8a('0x1')]('addCommentThread');return _0x53620c[_0x3b8a('0xc')]=_0x5db980(_0x2d4852[_0x3b8a('0x1d')],'Comment'),_0x53620c[_0x3b8a('0x26')]=_0x5db980(_0x2d4852[_0x3b8a('0x1d')],'Comment'),_0x53620c['icon']=_0x466136,_0x53620c[_0x3b8a('0x29')](_0x3b8a('0x4'))['to'](_0x1ef287),this[_0x3b8a('0x21')](_0x53620c,_0x3b8a('0x27'),()=>_0x1ef287[_0x3b8a('0x27')]()),_0x53620c;}}
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 _0x231e=['plugins','afterInit','get','editor','RestrictedEditingModeEditing','enableCommand'];(function(_0x35644b,_0x231e84){const _0x1324e1=function(_0x54cda3){while(--_0x54cda3){_0x35644b['push'](_0x35644b['shift']());}};_0x1324e1(++_0x231e84);}(_0x231e,0x144));const _0x1324=function(_0x35644b,_0x231e84){_0x35644b=_0x35644b-0x0;let _0x1324e1=_0x231e[_0x35644b];return _0x1324e1;};import{Plugin as _0x64b16b}from'ckeditor5/src/core';export default class Y extends _0x64b16b{[_0x1324('0x1')](){const _0x22b5d8=this[_0x1324('0x3')];if(!_0x22b5d8[_0x1324('0x0')]['has'](_0x1324('0x4')))return;_0x22b5d8[_0x1324('0x0')][_0x1324('0x2')]('RestrictedEditingModeEditing')[_0x1324('0x5')]('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 _0x1e82=['map','high','editor','commands','importWord.commentsStyles','addCommentThread','get','basic','config','plugins','collaboration_features','define','_handleImportedData','forEach'];(function(_0x273d81,_0x1e8284){const _0x55e9fe=function(_0x4ebed9){while(--_0x4ebed9){_0x273d81['push'](_0x273d81['shift']());}};_0x55e9fe(++_0x1e8284);}(_0x1e82,0x108));const _0x55e9=function(_0x273d81,_0x1e8284){_0x273d81=_0x273d81-0x0;let _0x55e9fe=_0x1e82[_0x273d81];return _0x55e9fe;};import{Plugin as _0x5be09a}from'ckeditor5/src/core';import{priorities as _0x571145}from'ckeditor5/src/utils';import{Users as _0x1e2d7b}from'ckeditor5-collaboration/src/collaboration-core';import _0xaf0d2c from'../commentsrepository';export default class Z extends _0x5be09a{constructor(_0x45df8c){super(_0x45df8c),this['editor']['config'][_0x55e9('0xd')](_0x55e9('0x6'),_0x55e9('0x9'));}['afterInit'](){const _0x529342=this[_0x55e9('0x4')],_0x57fdcf=_0x529342[_0x55e9('0x5')][_0x55e9('0x8')]('importWord'),_0x16915a=_0x529342[_0x55e9('0xb')][_0x55e9('0x8')](_0x1e2d7b);_0x57fdcf&&(_0x57fdcf['on']('execute',(_0x95b861,[,_0x5f0782])=>{_0x5f0782[_0x55e9('0xc')]={'comments':!0x0,'user_id':_0x16915a['me']['id'],'comments_styles':this[_0x55e9('0x4')][_0x55e9('0xa')][_0x55e9('0x8')]('importWord.commentsStyles')};},{'priority':_0x571145[_0x55e9('0x3')]+0xa}),this['listenTo'](_0x57fdcf,'dataInsert',this[_0x55e9('0x0')]));}[_0x55e9('0x0')](_0x3cd8a3,_0x373247){const {comment_threads:_0x1661e0}=_0x373247;_0x1661e0&&_0x1661e0[_0x55e9('0x1')](({thread_id:_0x49c288,comments:_0x533410,is_resolved:_0x40728d})=>{const _0x2ac2d5=new Date(),_0x6a3e79=_0x533410[_0x55e9('0x2')](({author:_0x4df803,content:_0x4aefea,created_at:_0x4dc45c})=>({'content':_0x4aefea,'authorId':this[_0x55e9('0x4')][_0x55e9('0xb')][_0x55e9('0x8')](_0x1e2d7b)['me']['id'],'createdAt':_0x2ac2d5,'attributes':{'@external':{'authorName':_0x4df803,'createdAt':_0x4dc45c?new Date(_0x4dc45c):new Date(),'source':'importWord'}}})),_0x3e54e6=this['editor'][_0x55e9('0xa')][_0x55e9('0x8')]('collaboration.channelId');this[_0x55e9('0x4')]['plugins'][_0x55e9('0x8')](_0xaf0d2c)[_0x55e9('0x7')]({'channelId':_0x3e54e6,'threadId':_0x49c288,'comments':_0x6a3e79,'resolvedAt':_0x40728d?_0x2ac2d5: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 _0x4b54=['name','init','editing','change:placeholder','_updatePlaceholder','ready','placeholder','set','model','childCount','defaultPlugins','data','document','get','focus','initialData','createRoot','getRoot','plugins','getChild','then','config','create','destroy','placeholderElement','low'];(function(_0x322299,_0x4b54ac){const _0x4f17f6=function(_0x47e244){while(--_0x47e244){_0x322299['push'](_0x322299['shift']());}};_0x4f17f6(++_0x4b54ac);}(_0x4b54,0x136));const _0x4f17=function(_0x322299,_0x4b54ac){_0x322299=_0x322299-0x0;let _0x4f17f6=_0x4b54[_0x322299];return _0x4f17f6;};import{Editor as _0x35b871,DataApiMixin as _0x235fa6}from'ckeditor5/src/core';import _0x2b9396 from'./commenteditorui';import{ObservableMixin as _0x5b63f3}from'ckeditor5/src/utils';import{enablePlaceholder as _0x2f70ad,disablePlaceholder as _0x4392d3}from'ckeditor5/src/engine';import{Clipboard as _0x14a4c4}from'ckeditor5/src/clipboard';import{Enter as _0x581979,ShiftEnter as _0x300366}from'ckeditor5/src/enter';import{SelectAll as _0x1a1126}from'ckeditor5/src/select-all';import{Typing as _0x8108c9}from'ckeditor5/src/typing';import{Undo as _0x132712}from'ckeditor5/src/undo';import{Paragraph as _0x163e79}from'ckeditor5/src/paragraph';const Mt=[_0x14a4c4,_0x581979,_0x300366,_0x1a1126,_0x8108c9,_0x132712,_0x163e79];export default class Nt extends _0x5b63f3(_0x235fa6(_0x35b871)){constructor(_0x307e0b={}){(_0x307e0b=Object['assign']({},_0x307e0b))[_0x4f17('0x14')]||(_0x307e0b['plugins']=Nt[_0x4f17('0xc')]),super(_0x307e0b),this['ui']=new _0x2b9396(this),this[_0x4f17('0x9')](_0x4f17('0x8'),''),this[_0x4f17('0xa')]['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':_0x4f17('0x1')}),this['on'](_0x4f17('0x5'),()=>this[_0x4f17('0x6')]()),this[_0x4f17('0xa')]['document'][_0x4f17('0x12')]();}[_0x4f17('0x18')](){const _0x2fc8ee=this[_0x4f17('0x17')][_0x4f17('0xf')](_0x4f17('0x11'))||'';return this['initPlugins']()[_0x4f17('0x16')](()=>this['ui'][_0x4f17('0x3')]())['then'](()=>this[_0x4f17('0xd')][_0x4f17('0x3')](_0x2fc8ee))['then'](()=>this['fire'](_0x4f17('0x7')));}['destroy'](){return super[_0x4f17('0x19')]()[_0x4f17('0x16')](()=>this['ui']['destroy']());}['focus'](){this[_0x4f17('0xa')]['change'](_0x596e0d=>{const _0x187a69=this['model'][_0x4f17('0xe')][_0x4f17('0x13')](),_0x1cb60f=_0x187a69&&_0x187a69[_0x4f17('0x15')](_0x187a69['childCount']-0x1);_0x596e0d['setSelection'](_0x1cb60f,'end'),this[_0x4f17('0x4')]['view'][_0x4f17('0x10')]();});}[_0x4f17('0x6')](){const _0x1e47eb=this['editing']['view'],_0x1b56fc=_0x1e47eb['document']['getRoot'](),_0x2b0938=_0x1b56fc[_0x4f17('0x15')](0x0);_0x1b56fc[_0x4f17('0xb')]>0x1||!_0x2b0938||'p'!=_0x2b0938[_0x4f17('0x2')]?this[_0x4f17('0x0')]&&(_0x4392d3(_0x1e47eb,this[_0x4f17('0x0')]),this[_0x4f17('0x0')]=void 0x0):(_0x2f70ad({'view':_0x1e47eb,'element':_0x2b0938,'text':this['placeholder'],'keepOnFocus':!0x0}),this['placeholderElement']=_0x2b0938);}}Nt['defaultPlugins']=Mt;
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 _0x1bcd=['element','destroy','editing','bind','locale','ready','render','editable','name','rootName','editor','fire','getRoot','focusTracker','setEditableElement','view','document'];(function(_0x204725,_0x1bcdd6){const _0x549dd9=function(_0x19ed71){while(--_0x19ed71){_0x204725['push'](_0x204725['shift']());}};_0x549dd9(++_0x1bcdd6);}(_0x1bcd,0xeb));const _0x549d=function(_0x204725,_0x1bcdd6){_0x204725=_0x204725-0x0;let _0x549dd9=_0x1bcd[_0x204725];return _0x549dd9;};import{EditorUI as _0x39c50f}from'ckeditor5/src/ui';import _0x2c88b3 from'./commenteditoruiview';export default class Ft extends _0x39c50f{constructor(_0x46a112){super(_0x46a112),this[_0x549d('0x1')]=new _0x2c88b3(_0x46a112[_0x549d('0x7')],_0x46a112[_0x549d('0x5')]['view']);}get[_0x549d('0x3')](){return this['view'][_0x549d('0x3')];}['init'](){const _0xe058f6=this[_0x549d('0xd')]['editing'][_0x549d('0x1')],_0x2f51f8=this[_0x549d('0x1')][_0x549d('0xa')],_0x4a6e75=_0xe058f6[_0x549d('0x2')][_0x549d('0xf')]();_0x2f51f8[_0x549d('0xb')]=_0x4a6e75[_0x549d('0xc')],this[_0x549d('0x1')][_0x549d('0x9')]();const _0x53ffa5=_0x2f51f8[_0x549d('0x3')];this[_0x549d('0x0')](_0x2f51f8['name'],_0x53ffa5),this[_0x549d('0x1')]['editable'][_0x549d('0x6')]('isFocused')['to'](this[_0x549d('0x10')]),_0xe058f6['attachDomRoot'](_0x53ffa5),this[_0x549d('0xe')](_0x549d('0x8'));}[_0x549d('0x4')](){super[_0x549d('0x4')](),this['view']['destroy']();}}
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 _0x5da2=['_createVoiceLabel','_voiceLabelView','uiLanguageDirection','comment','ck-editor','setTemplate','main','render','ck-rounded-corners','cke-editor__aria-label_','focus','uiLanguage','ck-reset','ck-comment__input','text','div','extendTemplate','editable','ck-editor__aria-label_','Comment\x20editor','createCollection'];(function(_0x4524f9,_0x5da25f){const _0x48d2c3=function(_0x3b8650){while(--_0x3b8650){_0x4524f9['push'](_0x4524f9['shift']());}};_0x48d2c3(++_0x5da25f);}(_0x5da2,0x186));const _0x48d2=function(_0x4524f9,_0x5da25f){_0x4524f9=_0x4524f9-0x0;let _0x48d2c3=_0x5da2[_0x4524f9];return _0x48d2c3;};import{InlineEditableUIView as _0x3d5031,EditorUIView as _0x57d70a,LabelView as _0x32ab9b}from'ckeditor5/src/ui';import{uid as _0x5d3008}from'ckeditor5/src/utils';import{getTranslation as _0x5e99cb}from'../../../utils/common-translations';export default class Rt extends _0x57d70a{constructor(_0x3f40b4,_0x576dcc){super(_0x3f40b4);const _0x9eb7ea=_0x5d3008();this[_0x48d2('0xf')]=this[_0x48d2('0x8')](),this[_0x48d2('0x5')]=new _0x3d5031(_0x3f40b4,_0x576dcc),this[_0x48d2('0xa')]=this[_0x48d2('0x9')](_0x9eb7ea,_0x3f40b4),this[_0x48d2('0xe')]({'tag':_0x48d2('0x3'),'attributes':{'class':[_0x48d2('0x0'),_0x48d2('0xd'),_0x48d2('0x11'),_0x48d2('0x1')],'role':_0x48d2('0xc'),'dir':_0x3f40b4[_0x48d2('0xb')],'lang':_0x3f40b4[_0x48d2('0x14')],'aria-labelledby':_0x48d2('0x12')+_0x9eb7ea},'children':[this[_0x48d2('0xa')],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this[_0x48d2('0xf')]}]});}[_0x48d2('0x10')](){super[_0x48d2('0x10')](),this['main']['add'](this[_0x48d2('0x5')]);}[_0x48d2('0x13')](){this['editable']['element'][_0x48d2('0x13')]();}[_0x48d2('0x9')](_0x86ff83,_0x45fd51){const _0x4e92f3=new _0x32ab9b();return _0x4e92f3[_0x48d2('0x2')]=_0x5e99cb(_0x45fd51,_0x48d2('0x7')),_0x4e92f3[_0x48d2('0x4')]({'attributes':{'id':_0x48d2('0x6')+_0x86ff83,'class':'ck-voice-label'}}),_0x4e92f3;}}
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 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 _0xbcab=['removeCommentThread','isResolved','removeComment','stopListening','submit','view','updateComment','resolveCommentThread','listenTo','model','getComment','addComment','reopenCommentThread','remove','submitCommentThread','resolve','_localUser','reopen'];(function(_0x5f58ba,_0xbcab2){var _0x28ddd5=function(_0x5f090a){while(--_0x5f090a){_0x5f58ba['push'](_0x5f58ba['shift']());}};_0x28ddd5(++_0xbcab2);}(_0xbcab,0x1f4));var _0x28dd=function(_0x5f58ba,_0xbcab2){_0x5f58ba=_0x5f58ba-0x0;var _0x28ddd5=_0xbcab[_0x5f58ba];return _0x28ddd5;};import{ObservableMixin as _0x12741a}from'ckeditor5/src/utils';export default class ct extends _0x12741a(){constructor(_0x511875,_0x23ff57){super(),this[_0x28dd('0xd')]=_0x511875,this[_0x28dd('0xd')]['_isAttached']=!0x0,this[_0x28dd('0x9')]=_0x23ff57,this['listenTo'](_0x23ff57,_0x28dd('0x0'),()=>this['submit']()),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0x4'),()=>this['remove']()),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0xb'),()=>this[_0x28dd('0x1')]()),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0x10'),()=>this[_0x28dd('0x3')]()),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0xf'),(_0x5f21af,_0x385e58)=>this[_0x28dd('0xf')](_0x385e58)),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0xa'),(_0x4344d6,_0x3f71e1,_0x1e634d)=>this[_0x28dd('0xa')](_0x3f71e1,_0x1e634d)),this['listenTo'](_0x23ff57,_0x28dd('0x6'),(_0x49c8f6,_0xc61d40)=>this[_0x28dd('0x6')](_0xc61d40));}[_0x28dd('0x8')](){this[_0x28dd('0xd')][_0x28dd('0x8')]();}[_0x28dd('0x11')](){this[_0x28dd('0xd')][_0x28dd('0x11')]();}['resolve'](){this['model'][_0x28dd('0x5')]||this['model'][_0x28dd('0x1')]();}[_0x28dd('0x3')](){this[_0x28dd('0xd')][_0x28dd('0x5')]&&this['model'][_0x28dd('0x3')]();}[_0x28dd('0xf')](_0x1cc9c5){this[_0x28dd('0xd')][_0x28dd('0xf')]({'content':_0x1cc9c5,'authorId':this[_0x28dd('0x9')][_0x28dd('0x2')]['id']});}[_0x28dd('0xa')](_0x1ea0b6,_0x11f793){this[_0x28dd('0xd')][_0x28dd('0xe')](_0x1ea0b6)['update']({'content':_0x11f793});}[_0x28dd('0x6')](_0x108dd4){this[_0x28dd('0xd')][_0x28dd('0xe')](_0x108dd4)[_0x28dd('0x11')]();}['destroy'](){this[_0x28dd('0x7')](),this['model']['_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;}}