@ckeditor/ckeditor5-comments 40.0.0 → 40.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/comments.js +2 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/bs.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de-ch.js +1 -1
  12. package/build/translations/de.js +1 -1
  13. package/build/translations/el.js +1 -1
  14. package/build/translations/en-au.js +1 -1
  15. package/build/translations/es-co.js +1 -1
  16. package/build/translations/es.js +1 -1
  17. package/build/translations/et.js +1 -1
  18. package/build/translations/fa.js +1 -1
  19. package/build/translations/fi.js +1 -1
  20. package/build/translations/fr.js +1 -1
  21. package/build/translations/gl.js +1 -1
  22. package/build/translations/he.js +1 -1
  23. package/build/translations/hi.js +1 -1
  24. package/build/translations/hr.js +1 -1
  25. package/build/translations/hu.js +1 -1
  26. package/build/translations/id.js +1 -1
  27. package/build/translations/it.js +1 -1
  28. package/build/translations/ja.js +1 -1
  29. package/build/translations/jv.js +1 -1
  30. package/build/translations/ko.js +1 -1
  31. package/build/translations/lt.js +1 -1
  32. package/build/translations/lv.js +1 -1
  33. package/build/translations/ms.js +1 -1
  34. package/build/translations/nl.js +1 -1
  35. package/build/translations/no.js +1 -1
  36. package/build/translations/pl.js +1 -1
  37. package/build/translations/pt-br.js +1 -1
  38. package/build/translations/pt.js +1 -1
  39. package/build/translations/ro.js +1 -1
  40. package/build/translations/ru.js +1 -1
  41. package/build/translations/sk.js +1 -1
  42. package/build/translations/sq.js +1 -1
  43. package/build/translations/sr-latn.js +1 -1
  44. package/build/translations/sr.js +1 -1
  45. package/build/translations/sv.js +1 -1
  46. package/build/translations/th.js +1 -1
  47. package/build/translations/tk.js +1 -1
  48. package/build/translations/tr.js +1 -1
  49. package/build/translations/tt.js +1 -1
  50. package/build/translations/ug.js +1 -1
  51. package/build/translations/uk.js +1 -1
  52. package/build/translations/ur.js +1 -1
  53. package/build/translations/vi.js +1 -1
  54. package/build/translations/zh-cn.js +1 -1
  55. package/build/translations/zh.js +1 -1
  56. package/lang/contexts.json +2 -0
  57. package/lang/translations/af.po +8 -0
  58. package/lang/translations/ar.po +8 -0
  59. package/lang/translations/bg.po +8 -0
  60. package/lang/translations/bn.po +8 -0
  61. package/lang/translations/bs.po +8 -0
  62. package/lang/translations/ca.po +8 -0
  63. package/lang/translations/cs.po +8 -0
  64. package/lang/translations/da.po +8 -0
  65. package/lang/translations/de-ch.po +8 -0
  66. package/lang/translations/de.po +8 -0
  67. package/lang/translations/el.po +8 -0
  68. package/lang/translations/en-au.po +8 -0
  69. package/lang/translations/en.po +8 -0
  70. package/lang/translations/es-co.po +8 -0
  71. package/lang/translations/es.po +8 -0
  72. package/lang/translations/et.po +8 -0
  73. package/lang/translations/fa.po +8 -0
  74. package/lang/translations/fi.po +8 -0
  75. package/lang/translations/fr.po +8 -0
  76. package/lang/translations/gl.po +8 -0
  77. package/lang/translations/he.po +8 -0
  78. package/lang/translations/hi.po +8 -0
  79. package/lang/translations/hr.po +8 -0
  80. package/lang/translations/hu.po +8 -0
  81. package/lang/translations/id.po +8 -0
  82. package/lang/translations/it.po +8 -0
  83. package/lang/translations/ja.po +8 -0
  84. package/lang/translations/jv.po +8 -0
  85. package/lang/translations/ko.po +8 -0
  86. package/lang/translations/lt.po +8 -0
  87. package/lang/translations/lv.po +8 -0
  88. package/lang/translations/ms.po +8 -0
  89. package/lang/translations/nl.po +8 -0
  90. package/lang/translations/no.po +8 -0
  91. package/lang/translations/pl.po +8 -0
  92. package/lang/translations/pt-br.po +8 -0
  93. package/lang/translations/pt.po +8 -0
  94. package/lang/translations/ro.po +8 -0
  95. package/lang/translations/ru.po +8 -0
  96. package/lang/translations/sk.po +8 -0
  97. package/lang/translations/sq.po +8 -0
  98. package/lang/translations/sr-latn.po +8 -0
  99. package/lang/translations/sr.po +8 -0
  100. package/lang/translations/sv.po +8 -0
  101. package/lang/translations/th.po +8 -0
  102. package/lang/translations/tk.po +8 -0
  103. package/lang/translations/tr.po +8 -0
  104. package/lang/translations/tt.po +8 -0
  105. package/lang/translations/ug.po +8 -0
  106. package/lang/translations/uk.po +8 -0
  107. package/lang/translations/ur.po +8 -0
  108. package/lang/translations/vi.po +8 -0
  109. package/lang/translations/zh-cn.po +8 -0
  110. package/lang/translations/zh.po +8 -0
  111. package/package.json +3 -3
  112. package/src/annotations/annotation.d.ts +90 -90
  113. package/src/annotations/annotation.js +1 -1
  114. package/src/annotations/annotationcollection.d.ts +98 -98
  115. package/src/annotations/annotationcollection.js +1 -1
  116. package/src/annotations/annotations.d.ts +154 -154
  117. package/src/annotations/annotations.js +1 -1
  118. package/src/annotations/annotationsuis.d.ts +232 -232
  119. package/src/annotations/annotationsuis.js +1 -1
  120. package/src/annotations/editorannotations.d.ts +67 -67
  121. package/src/annotations/editorannotations.js +1 -1
  122. package/src/annotations/inlineannotations.d.ts +90 -90
  123. package/src/annotations/inlineannotations.js +1 -1
  124. package/src/annotations/narrowsidebar.d.ts +85 -85
  125. package/src/annotations/narrowsidebar.js +1 -1
  126. package/src/annotations/sidebar.d.ts +100 -100
  127. package/src/annotations/sidebar.js +1 -1
  128. package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
  129. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  130. package/src/annotations/view/annotationview.d.ts +90 -90
  131. package/src/annotations/view/annotationview.js +1 -1
  132. package/src/annotations/view/sidebaritemview.d.ts +55 -55
  133. package/src/annotations/view/sidebaritemview.js +1 -1
  134. package/src/annotations/view/sidebarview.d.ts +32 -32
  135. package/src/annotations/view/sidebarview.js +1 -1
  136. package/src/annotations/widesidebar.d.ts +77 -77
  137. package/src/annotations/widesidebar.js +1 -1
  138. package/src/augmentation.d.ts +52 -52
  139. package/src/comments/addcommentthreadcommand.d.ts +35 -35
  140. package/src/comments/addcommentthreadcommand.js +1 -1
  141. package/src/comments/commentsarchive.d.ts +31 -31
  142. package/src/comments/commentsarchive.js +1 -1
  143. package/src/comments/commentsarchiveui.d.ts +38 -38
  144. package/src/comments/commentsarchiveui.js +1 -1
  145. package/src/comments/commentsediting.d.ts +79 -79
  146. package/src/comments/commentsediting.js +1 -1
  147. package/src/comments/commentsrepository.d.ts +1129 -1129
  148. package/src/comments/commentsrepository.js +1 -1
  149. package/src/comments/commentsui.d.ts +33 -33
  150. package/src/comments/commentsui.js +1 -1
  151. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
  152. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  153. package/src/comments/integrations/importword.d.ts +21 -21
  154. package/src/comments/integrations/importword.js +1 -1
  155. package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
  156. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  157. package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
  158. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  159. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
  160. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  161. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  162. package/src/comments/ui/commentthreadcontroller.js +1 -1
  163. package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
  164. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  165. package/src/comments/ui/view/basecommentview.d.ts +112 -112
  166. package/src/comments/ui/view/basecommentview.js +1 -1
  167. package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
  168. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  169. package/src/comments/ui/view/commentcontentview.d.ts +14 -14
  170. package/src/comments/ui/view/commentcontentview.js +1 -1
  171. package/src/comments/ui/view/commentinputview.d.ts +86 -86
  172. package/src/comments/ui/view/commentinputview.js +1 -1
  173. package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
  174. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  175. package/src/comments/ui/view/commentslistview.d.ts +100 -100
  176. package/src/comments/ui/view/commentslistview.js +1 -1
  177. package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
  178. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  179. package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
  180. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  181. package/src/comments/ui/view/commentthreadview.d.ts +118 -118
  182. package/src/comments/ui/view/commentthreadview.js +1 -1
  183. package/src/comments/ui/view/commentview.d.ts +243 -243
  184. package/src/comments/ui/view/commentview.js +1 -1
  185. package/src/comments.d.ts +35 -35
  186. package/src/comments.js +1 -1
  187. package/src/commentsonly.d.ts +33 -33
  188. package/src/commentsonly.js +1 -1
  189. package/src/config.d.ts +176 -176
  190. package/src/index.d.ts +24 -24
  191. package/src/utils/common-translations.d.ts +9 -9
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.d.ts +14 -14
  194. package/src/utils/createmutationobserver.js +1 -1
  195. package/theme/comment.css +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a62=['stop','addSourceCollector','length','tooltip','CommentsUI','_threadToController','view','change:activeAnnotations','icon','find','focus','get','bind','_viewToController','plugins','activeMarker','has','locale','removeCommentThread','editor','highest','model','commands','hasCommentThread','isFocused','isEnabled','getAllMarkersForId','init','push','listenTo','execute','Comment','map','hasMarkerForId','comment:','componentFactory','editing','low','CommentsListView','comment','innerView'];(function(_0x53ad62,_0x1a626f){const _0x3e2bcf=function(_0x39788b){while(--_0x39788b){_0x53ad62['push'](_0x53ad62['shift']());}};_0x3e2bcf(++_0x1a626f);}(_0x1a62,0x1c3));const _0x3e2b=function(_0x53ad62,_0x1a626f){_0x53ad62=_0x53ad62-0x0;let _0x3e2bcf=_0x1a62[_0x53ad62];return _0x3e2bcf;};import{Plugin as _0xc39eba}from'ckeditor5/src/core';import _0x31d511 from'./commentsrepository';import _0x3eda84 from'./commentsediting';import _0x2991ca from'../annotations/editorannotations';import{ButtonView as _0x308e25}from'ckeditor5/src/ui';import _0xed4edb from'../../theme/icons/add-comment.svg';import _0x5990f4 from'../annotations/annotations';import _0x31134b from'./ui/view/commentslistview';import _0x356123 from'./ui/view/commentthreadinputview';import{getTranslation as _0x4213d4}from'../utils/common-translations';export default class e extends _0xc39eba{static get['pluginName'](){return _0x3e2b('0x4');}static get['requires'](){return[_0x31d511,_0x3eda84,_0x2991ca,_0x5990f4];}get[_0x3e2b('0x26')](){return _0x31134b;}get['CommentThreadInputView'](){return _0x356123;}[_0x3e2b('0x1b')](){const _0x2efbec=this['editor'],_0x3ca53c=_0x2efbec[_0x3e2b('0xe')]['get'](_0x31d511),_0x10e779=_0x2efbec[_0x3e2b('0xe')]['get'](_0x3eda84),_0x524e08=_0x2efbec[_0x3e2b('0xe')][_0x3e2b('0xb')](_0x5990f4),_0x29606f=_0x2efbec['plugins']['get'](_0x2991ca);_0x2efbec['ui'][_0x3e2b('0x23')]['add'](_0x3e2b('0x27'),()=>this['_createUIButton']()),_0x29606f[_0x3e2b('0x1')](()=>{const _0x5706b8=[];for(const [_0x30c495,_0x589395]of _0x3ca53c[_0x3e2b('0x5')]){const _0x527039=_0x10e779[_0x3e2b('0x1a')](_0x30c495['id']),_0x53a5c1=_0x527039[_0x3e2b('0x20')](_0x25121f=>_0x25121f['getRange']());_0x527039[_0x3e2b('0x2')]>0x0&&_0x5706b8[_0x3e2b('0x1c')]([_0x589395[_0x3e2b('0x6')],_0x53a5c1]);}return _0x5706b8;}),this[_0x3e2b('0x1d')](_0x524e08,_0x3e2b('0x7'),(_0x440a90,_0x282ff2,_0x3f69e9)=>{const _0x3268d8=Array['from'](_0x3f69e9)[_0x3e2b('0x20')](_0x3f0dca=>_0x3f0dca[_0x3e2b('0x28')])[_0x3e2b('0x9')](_0x2592bf=>_0x3ca53c[_0x3e2b('0xd')][_0x3e2b('0x10')](_0x2592bf));if(!_0x3268d8)return void(_0x10e779['activeMarker']=null);const _0x529ca6=_0x3ca53c[_0x3e2b('0xd')][_0x3e2b('0xb')](_0x3268d8)[_0x3e2b('0x15')]['id'],_0xafb956=_0x3e2b('0x22')+_0x529ca6;_0x529ca6&&_0x10e779[_0x3e2b('0x21')](_0x529ca6)?_0x10e779['activeMarker']=_0xafb956:_0x10e779['activeMarker']&&(_0x10e779[_0x3e2b('0xf')]=null);}),this[_0x3e2b('0x1d')](_0x3ca53c,_0x3e2b('0x12'),(_0x35321a,{threadId:_0x42b8ac,isFromAdapter:_0x330420})=>{!_0x330420&&_0x2efbec['ui']['focusTracker'][_0x3e2b('0x18')]&&_0x10e779['hasMarkerForId'](_0x42b8ac)&&_0x2efbec[_0x3e2b('0x24')]['view']['focus']();},{'priority':_0x3e2b('0x14')}),this[_0x3e2b('0x1d')](_0x3ca53c,'addComment',(_0x142fb9,{threadId:_0x24a391,isFromAdapter:_0x43b990})=>{if(_0x43b990||!_0x10e779['hasMarkerForId'](_0x24a391)||!_0x3ca53c[_0x3e2b('0x17')](_0x24a391))return;0x1===_0x3ca53c['getCommentThread'](_0x24a391)[_0x3e2b('0x2')]&&(_0x2efbec[_0x3e2b('0x24')][_0x3e2b('0x6')][_0x3e2b('0xa')](),_0x142fb9[_0x3e2b('0x0')]());},{'priority':_0x3e2b('0x25')});}['_createUIButton'](){const _0x8f98fe=this[_0x3e2b('0x13')],_0x198238=new _0x308e25(_0x8f98fe[_0x3e2b('0x11')]),_0x3ab654=_0x8f98fe[_0x3e2b('0x16')]['get']('addCommentThread');return _0x198238['label']=_0x4213d4(_0x8f98fe[_0x3e2b('0x11')],_0x3e2b('0x1f')),_0x198238[_0x3e2b('0x3')]=_0x4213d4(_0x8f98fe[_0x3e2b('0x11')],_0x3e2b('0x1f')),_0x198238[_0x3e2b('0x8')]=_0xed4edb,_0x198238[_0x3e2b('0xc')](_0x3e2b('0x19'))['to'](_0x3ab654),this['listenTo'](_0x198238,_0x3e2b('0x1e'),()=>_0x3ab654[_0x3e2b('0x1e')]()),_0x198238;}}
23
+ const _0x1958=['model','hasCommentThread','view','find','requires','CommentsListView','hasMarkerForId','push','editor','innerView','focus','listenTo','map','getAllMarkersForId','icon','commands','addComment','_threadToController','plugins','addCommentThread','activeMarker','comment:','_createUIButton','bind','has','execute','focusTracker','addSourceCollector','isFocused','Comment','locale','componentFactory','editing','CommentThreadInputView','getRange','low','from','add','highest','length','get','stop','_viewToController'];(function(_0x290ccf,_0x1958a6){const _0x200ae5=function(_0x4689b6){while(--_0x4689b6){_0x290ccf['push'](_0x290ccf['shift']());}};_0x200ae5(++_0x1958a6);}(_0x1958,0x110));const _0x200a=function(_0x290ccf,_0x1958a6){_0x290ccf=_0x290ccf-0x0;let _0x200ae5=_0x1958[_0x290ccf];return _0x200ae5;};import{Plugin as _0x410035}from'ckeditor5/src/core';import _0x19e975 from'./commentsrepository';import _0x21b95c from'./commentsediting';import _0x34aafe from'../annotations/editorannotations';import{ButtonView as _0x5c19dd}from'ckeditor5/src/ui';import _0x3bd3b0 from'../../theme/icons/add-comment.svg';import _0x53f6a2 from'../annotations/annotations';import _0x17be22 from'./ui/view/commentslistview';import _0x1c61e3 from'./ui/view/commentthreadinputview';import{getTranslation as _0x533631}from'../utils/common-translations';export default class e extends _0x410035{static get['pluginName'](){return'CommentsUI';}static get[_0x200a('0x21')](){return[_0x19e975,_0x21b95c,_0x34aafe,_0x53f6a2];}get[_0x200a('0x22')](){return _0x17be22;}get[_0x200a('0x13')](){return _0x1c61e3;}['init'](){const _0x1c1021=this[_0x200a('0x25')],_0x47d3dd=_0x1c1021['plugins'][_0x200a('0x1a')](_0x19e975),_0x182b90=_0x1c1021[_0x200a('0x4')][_0x200a('0x1a')](_0x21b95c),_0x48d56e=_0x1c1021['plugins'][_0x200a('0x1a')](_0x53f6a2),_0x59ecf7=_0x1c1021[_0x200a('0x4')]['get'](_0x34aafe);_0x1c1021['ui'][_0x200a('0x11')][_0x200a('0x17')]('comment',()=>this['_createUIButton']()),_0x59ecf7[_0x200a('0xd')](()=>{const _0x58ffc6=[];for(const [_0x5e172c,_0x302587]of _0x47d3dd[_0x200a('0x3')]){const _0x122e31=_0x182b90[_0x200a('0x2a')](_0x5e172c['id']),_0x652921=_0x122e31[_0x200a('0x29')](_0x2bf302=>_0x2bf302[_0x200a('0x14')]());_0x122e31[_0x200a('0x19')]>0x0&&_0x58ffc6[_0x200a('0x24')]([_0x302587[_0x200a('0x1f')],_0x652921]);}return _0x58ffc6;}),this[_0x200a('0x28')](_0x48d56e,'change:activeAnnotations',(_0x37aba1,_0x37a43d,_0x115852)=>{const _0x2fe695=Array[_0x200a('0x16')](_0x115852)[_0x200a('0x29')](_0x4316c4=>_0x4316c4[_0x200a('0x26')])[_0x200a('0x20')](_0x2424b5=>_0x47d3dd[_0x200a('0x1c')][_0x200a('0xa')](_0x2424b5));if(!_0x2fe695)return void(_0x182b90[_0x200a('0x6')]=null);const _0x57076a=_0x47d3dd['_viewToController'][_0x200a('0x1a')](_0x2fe695)[_0x200a('0x1d')]['id'],_0x5d30c6=_0x200a('0x7')+_0x57076a;_0x57076a&&_0x182b90[_0x200a('0x23')](_0x57076a)?_0x182b90[_0x200a('0x6')]=_0x5d30c6:_0x182b90[_0x200a('0x6')]&&(_0x182b90[_0x200a('0x6')]=null);}),this[_0x200a('0x28')](_0x47d3dd,'removeCommentThread',(_0x2219e1,{threadId:_0x5656b6,isFromAdapter:_0x37dd8a})=>{!_0x37dd8a&&_0x1c1021['ui'][_0x200a('0xc')][_0x200a('0xe')]&&_0x182b90['hasMarkerForId'](_0x5656b6)&&_0x1c1021[_0x200a('0x12')][_0x200a('0x1f')]['focus']();},{'priority':_0x200a('0x18')}),this[_0x200a('0x28')](_0x47d3dd,_0x200a('0x2'),(_0x2ec25c,{threadId:_0x163f8d,isFromAdapter:_0x22d847})=>{if(_0x22d847||!_0x182b90[_0x200a('0x23')](_0x163f8d)||!_0x47d3dd[_0x200a('0x1e')](_0x163f8d))return;0x1===_0x47d3dd['getCommentThread'](_0x163f8d)[_0x200a('0x19')]&&(_0x1c1021[_0x200a('0x12')][_0x200a('0x1f')][_0x200a('0x27')](),_0x2ec25c[_0x200a('0x1b')]());},{'priority':_0x200a('0x15')});}[_0x200a('0x8')](){const _0x1a045f=this[_0x200a('0x25')],_0x14a41f=new _0x5c19dd(_0x1a045f[_0x200a('0x10')]),_0x5a73c8=_0x1a045f[_0x200a('0x1')][_0x200a('0x1a')](_0x200a('0x5'));return _0x14a41f['label']=_0x533631(_0x1a045f[_0x200a('0x10')],'Comment'),_0x14a41f['tooltip']=_0x533631(_0x1a045f[_0x200a('0x10')],_0x200a('0xf')),_0x14a41f[_0x200a('0x0')]=_0x3bd3b0,_0x14a41f[_0x200a('0x9')]('isEnabled')['to'](_0x5a73c8),this[_0x200a('0x28')](_0x14a41f,_0x200a('0xb'),()=>_0x5a73c8[_0x200a('0xb')]()),_0x14a41f;}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/comments/integrations/commentsrestrictededitingmode
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides comments plugin integration for restricted editing mode feature from restricted editing package.
11
- */
12
- export default class CommentsRestrictedEditingMode extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/integrations/commentsrestrictededitingmode
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides comments plugin integration for restricted editing mode feature from restricted editing package.
11
+ */
12
+ export default class CommentsRestrictedEditingMode extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a54=['get','afterInit','editor','enableCommand','has','RestrictedEditingModeEditing','plugins'];(function(_0x11817f,_0x5a5462){const _0x270938=function(_0x4a174d){while(--_0x4a174d){_0x11817f['push'](_0x11817f['shift']());}};_0x270938(++_0x5a5462);}(_0x5a54,0xad));const _0x2709=function(_0x11817f,_0x5a5462){_0x11817f=_0x11817f-0x0;let _0x270938=_0x5a54[_0x11817f];return _0x270938;};import{Plugin as _0x59226b}from'ckeditor5/src/core';export default class X extends _0x59226b{[_0x2709('0x3')](){const _0xd3a75c=this[_0x2709('0x4')];if(!_0xd3a75c[_0x2709('0x1')][_0x2709('0x6')](_0x2709('0x0')))return;_0xd3a75c[_0x2709('0x1')][_0x2709('0x2')](_0x2709('0x0'))[_0x2709('0x5')]('addCommentThread');}}
23
+ const _0xdbe3=['editor','afterInit','addCommentThread','plugins','has','get'];(function(_0x9ee861,_0xdbe378){const _0x436e1d=function(_0x5c64eb){while(--_0x5c64eb){_0x9ee861['push'](_0x9ee861['shift']());}};_0x436e1d(++_0xdbe378);}(_0xdbe3,0x8d));const _0x436e=function(_0x9ee861,_0xdbe378){_0x9ee861=_0x9ee861-0x0;let _0x436e1d=_0xdbe3[_0x9ee861];return _0x436e1d;};import{Plugin as _0x154b80}from'ckeditor5/src/core';export default class Y extends _0x154b80{[_0x436e('0x4')](){const _0x17e383=this[_0x436e('0x3')];if(!_0x17e383[_0x436e('0x0')][_0x436e('0x1')]('RestrictedEditingModeEditing'))return;_0x17e383[_0x436e('0x0')][_0x436e('0x2')]('RestrictedEditingModeEditing')['enableCommand'](_0x436e('0x5'));}}
@@ -1,21 +1,21 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/integrations/importword
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- /**
10
- * Provides comments plugin integration for the import from Word feature.
11
- */
12
- export default class CommentsImportWord extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- constructor(editor: Editor);
17
- /**
18
- * @inheritDoc
19
- */
20
- afterInit(): void;
21
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/integrations/importword
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides comments plugin integration for the import from Word feature.
11
+ */
12
+ export default class CommentsImportWord extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ constructor(editor: Editor);
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ afterInit(): void;
21
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32dd=['config','collaboration.channelId','editor','collaboration_features','importWord.commentsStyles','_handleImportedData','map','get','listenTo','execute','addCommentThread','high','dataInsert','define','afterInit','forEach','plugins','commands','importWord','basic'];(function(_0x2f0f83,_0x32dd07){const _0x68ebe8=function(_0x4d5cea){while(--_0x4d5cea){_0x2f0f83['push'](_0x2f0f83['shift']());}};_0x68ebe8(++_0x32dd07);}(_0x32dd,0x129));const _0x68eb=function(_0x2f0f83,_0x32dd07){_0x2f0f83=_0x2f0f83-0x0;let _0x68ebe8=_0x32dd[_0x2f0f83];return _0x68ebe8;};import{Plugin as _0x54950b}from'ckeditor5/src/core';import{priorities as _0x3629c5}from'ckeditor5/src/utils';import{Users as _0x48849c}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a9589 from'../commentsrepository';export default class Y extends _0x54950b{constructor(_0x12f307){super(_0x12f307),this[_0x68eb('0x5')][_0x68eb('0x3')][_0x68eb('0x10')](_0x68eb('0x7'),_0x68eb('0x2'));}[_0x68eb('0x11')](){const _0x5055dd=this['editor'],_0x44101b=_0x5055dd[_0x68eb('0x0')][_0x68eb('0xa')](_0x68eb('0x1')),_0x37b541=_0x5055dd[_0x68eb('0x13')][_0x68eb('0xa')](_0x48849c);_0x44101b&&(_0x44101b['on'](_0x68eb('0xc'),(_0x39a06f,[,_0x2199d9])=>{_0x2199d9[_0x68eb('0x6')]={'comments':!0x0,'user_id':_0x37b541['me']['id'],'comments_styles':this['editor']['config']['get'](_0x68eb('0x7'))};},{'priority':_0x3629c5[_0x68eb('0xe')]+0xa}),this[_0x68eb('0xb')](_0x44101b,_0x68eb('0xf'),this['_handleImportedData']));}[_0x68eb('0x8')](_0xb136a2,_0x150641){const {comment_threads:_0x2791c3}=_0x150641;_0x2791c3&&_0x2791c3[_0x68eb('0x12')](({thread_id:_0x3fcfa2,comments:_0x399c39,is_resolved:_0x3261bc})=>{const _0x5912ac=new Date(),_0xd6e0ff=_0x399c39[_0x68eb('0x9')](({author:_0xaacca9,content:_0x596ac1,created_at:_0x4f5c44})=>({'content':_0x596ac1,'authorId':this[_0x68eb('0x5')][_0x68eb('0x13')][_0x68eb('0xa')](_0x48849c)['me']['id'],'createdAt':_0x5912ac,'attributes':{'@external':{'authorName':_0xaacca9,'createdAt':_0x4f5c44?new Date(_0x4f5c44):new Date(),'source':'importWord'}}})),_0x59fc1f=this[_0x68eb('0x5')]['config'][_0x68eb('0xa')](_0x68eb('0x4'));this['editor'][_0x68eb('0x13')][_0x68eb('0xa')](_0x4a9589)[_0x68eb('0xd')]({'channelId':_0x59fc1f,'threadId':_0x3fcfa2,'comments':_0xd6e0ff,'resolvedAt':_0x3261bc?_0x5912ac:null});});}}
23
+ const _0x1975=['config','editor','map','get','_handleImportedData','high','importWord','plugins','addCommentThread','execute','importWord.formatting.comments','commands','collaboration_features','dataInsert','collaboration.channelId','listenTo','basic'];(function(_0x5b15da,_0x197525){const _0x221a04=function(_0x5ac613){while(--_0x5ac613){_0x5b15da['push'](_0x5b15da['shift']());}};_0x221a04(++_0x197525);}(_0x1975,0x1e2));const _0x221a=function(_0x5b15da,_0x197525){_0x5b15da=_0x5b15da-0x0;let _0x221a04=_0x1975[_0x5b15da];return _0x221a04;};import{Plugin as _0x2ac094}from'ckeditor5/src/core';import{priorities as _0x5ca1f2}from'ckeditor5/src/utils';import{Users as _0x5d1a79}from'ckeditor5-collaboration/src/collaboration-core';import _0x3bdd61 from'../commentsrepository';export default class Z extends _0x2ac094{constructor(_0x5951f7){super(_0x5951f7),this[_0x221a('0xc')][_0x221a('0xb')]['define'](_0x221a('0x4'),_0x221a('0xa'));}['afterInit'](){const _0x51891b=this['editor'],_0x38ac4c=_0x51891b[_0x221a('0x5')][_0x221a('0xe')](_0x221a('0x0')),_0x586d53=_0x51891b['plugins'][_0x221a('0xe')](_0x5d1a79);_0x38ac4c&&(_0x38ac4c['on'](_0x221a('0x3'),(_0x88601c,[,_0x492f8d])=>{_0x492f8d[_0x221a('0x6')]={'comments':!0x0,'user_id':_0x586d53['me']['id']};},{'priority':_0x5ca1f2[_0x221a('0x10')]+0xa}),this[_0x221a('0x9')](_0x38ac4c,_0x221a('0x7'),this[_0x221a('0xf')]));}[_0x221a('0xf')](_0x17c48e,_0x5c15fd){const {comment_threads:_0x39e458}=_0x5c15fd;_0x39e458&&_0x39e458['forEach'](({thread_id:_0x5282ee,comments:_0x3e9a70,is_resolved:_0x38c251})=>{const _0x486a32=new Date(),_0x32590b=_0x3e9a70[_0x221a('0xd')](({author:_0x1003fd,content:_0x5254ee,created_at:_0x1e3b30})=>({'content':_0x5254ee,'authorId':this['editor'][_0x221a('0x1')][_0x221a('0xe')](_0x5d1a79)['me']['id'],'createdAt':_0x486a32,'attributes':{'@external':{'authorName':_0x1003fd,'createdAt':_0x1e3b30?new Date(_0x1e3b30):new Date(),'source':'importWord'}}})),_0x5261e7=this[_0x221a('0xc')][_0x221a('0xb')]['get'](_0x221a('0x8'));this['editor'][_0x221a('0x1')]['get'](_0x3bdd61)[_0x221a('0x2')]({'channelId':_0x5261e7,'threadId':_0x5282ee,'comments':_0x32590b,'resolvedAt':_0x38c251?_0x486a32:null});});}}
@@ -1,36 +1,36 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/comments/ui/commenteditor/commenteditor
7
- */
8
- import { Editor, type EditorConfig } from 'ckeditor5/src/core';
9
- import CommentEditorUI from './commenteditorui';
10
- import { type PlaceholderableElement } from 'ckeditor5/src/engine';
11
- 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>;
12
- export default class CommentEditor extends CommentEditor_base {
13
- static defaultPlugins: EditorConfig['plugins'];
14
- /**
15
- * The input placeholder.
16
- *
17
- * @observable
18
- */
19
- placeholder: string;
20
- placeholderElement: PlaceholderableElement | undefined;
21
- ui: CommentEditorUI;
22
- /**
23
- * @inheritDoc
24
- */
25
- constructor(config?: EditorConfig);
26
- create(): Promise<unknown>;
27
- /**
28
- * @inheritDoc
29
- */
30
- destroy(): Promise<void>;
31
- /**
32
- * Place the selection at the end of the editor data and focus the editable.
33
- */
34
- focus(): void;
35
- }
36
- export {};
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/commenteditor/commenteditor
7
+ */
8
+ import { Editor, type EditorConfig } from 'ckeditor5/src/core';
9
+ import CommentEditorUI from './commenteditorui';
10
+ import { type PlaceholderableElement } from 'ckeditor5/src/engine';
11
+ 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>;
12
+ export default class CommentEditor extends CommentEditor_base {
13
+ static defaultPlugins: EditorConfig['plugins'];
14
+ /**
15
+ * The input placeholder.
16
+ *
17
+ * @observable
18
+ */
19
+ placeholder: string;
20
+ placeholderElement: PlaceholderableElement | undefined;
21
+ ui: CommentEditorUI;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ constructor(config?: EditorConfig);
26
+ create(): Promise<unknown>;
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ destroy(): Promise<void>;
31
+ /**
32
+ * Place the selection at the end of the editor data and focus the editable.
33
+ */
34
+ focus(): void;
35
+ }
36
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fc9=['change:placeholder','editing','initPlugins','then','model','_updatePlaceholder','change','end','getChild','getRoot','initialData','set','fire','ready','destroy','get','name','focus','document','placeholderElement','init','view','placeholder','plugins','assign','childCount','defaultPlugins'];(function(_0x25520e,_0x4fc913){const _0x5b2b98=function(_0x54b929){while(--_0x54b929){_0x25520e['push'](_0x25520e['shift']());}};_0x5b2b98(++_0x4fc913);}(_0x4fc9,0x100));const _0x5b2b=function(_0x25520e,_0x4fc913){_0x25520e=_0x25520e-0x0;let _0x5b2b98=_0x4fc9[_0x25520e];return _0x5b2b98;};import{Editor as _0x35cffc,DataApiMixin as _0x459ad4}from'ckeditor5/src/core';import _0x41e7c5 from'./commenteditorui';import{ObservableMixin as _0x4e8163}from'ckeditor5/src/utils';import{enablePlaceholder as _0x33ecf5,disablePlaceholder as _0x2c8b5d}from'ckeditor5/src/engine';import{Clipboard as _0x1d8f6b}from'ckeditor5/src/clipboard';import{Enter as _0x3254c1,ShiftEnter as _0x1561b1}from'ckeditor5/src/enter';import{SelectAll as _0x2ebd84}from'ckeditor5/src/select-all';import{Typing as _0x206769}from'ckeditor5/src/typing';import{Undo as _0x4ddaeb}from'ckeditor5/src/undo';import{Paragraph as _0x56f4dd}from'ckeditor5/src/paragraph';const Kt=[_0x1d8f6b,_0x3254c1,_0x1561b1,_0x2ebd84,_0x206769,_0x4ddaeb,_0x56f4dd];export default class Lt extends _0x4e8163(_0x459ad4(_0x35cffc)){constructor(_0x5cd1b7={}){(_0x5cd1b7=Object[_0x5b2b('0xb')]({},_0x5cd1b7))[_0x5b2b('0xa')]||(_0x5cd1b7[_0x5b2b('0xa')]=Lt['defaultPlugins']),super(_0x5cd1b7),this['ui']=new _0x41e7c5(this),this[_0x5b2b('0x19')](_0x5b2b('0x9'),''),this['model']['document']['on'](_0x5b2b('0x14'),()=>this[_0x5b2b('0x13')](),{'priority':'low'}),this['on'](_0x5b2b('0xe'),()=>this[_0x5b2b('0x13')]()),this[_0x5b2b('0x12')][_0x5b2b('0x5')]['createRoot']();}['create'](){const _0x469042=this['config'][_0x5b2b('0x2')](_0x5b2b('0x18'))||'';return this[_0x5b2b('0x10')]()[_0x5b2b('0x11')](()=>this['ui'][_0x5b2b('0x7')]())[_0x5b2b('0x11')](()=>this['data'][_0x5b2b('0x7')](_0x469042))['then'](()=>this[_0x5b2b('0x1a')](_0x5b2b('0x0')));}[_0x5b2b('0x1')](){return super[_0x5b2b('0x1')]()[_0x5b2b('0x11')](()=>this['ui'][_0x5b2b('0x1')]());}['focus'](){this[_0x5b2b('0x12')][_0x5b2b('0x14')](_0x9858a1=>{const _0x180474=this[_0x5b2b('0x12')][_0x5b2b('0x5')][_0x5b2b('0x17')](),_0x538925=_0x180474&&_0x180474[_0x5b2b('0x16')](_0x180474[_0x5b2b('0xc')]-0x1);_0x9858a1['setSelection'](_0x538925,_0x5b2b('0x15')),this[_0x5b2b('0xf')]['view'][_0x5b2b('0x4')]();});}[_0x5b2b('0x13')](){const _0x1a7e24=this[_0x5b2b('0xf')][_0x5b2b('0x8')],_0x342b5d=_0x1a7e24[_0x5b2b('0x5')][_0x5b2b('0x17')](),_0x2510d1=_0x342b5d[_0x5b2b('0x16')](0x0);_0x342b5d[_0x5b2b('0xc')]>0x1||!_0x2510d1||'p'!=_0x2510d1[_0x5b2b('0x3')]?this[_0x5b2b('0x6')]&&this[_0x5b2b('0x6')][_0x5b2b('0x9')]&&(_0x2c8b5d(_0x1a7e24,this[_0x5b2b('0x6')]),this[_0x5b2b('0x6')]=void 0x0):(this[_0x5b2b('0x9')]&&(_0x2510d1['placeholder']=this[_0x5b2b('0x9')]),_0x33ecf5({'view':_0x1a7e24,'element':_0x2510d1,'keepOnFocus':!0x0}),this[_0x5b2b('0x6')]=_0x2510d1);}}Lt[_0x5b2b('0xd')]=Kt;
23
+ const _0x2988=['defaultPlugins','placeholderElement','getChild','initialData','assign','destroy','end','getRoot','set','fire','editing','then','childCount','createRoot','model','init','view','document','config','setSelection','placeholder','change:placeholder','data','low','name','_updatePlaceholder','focus','plugins','change'];(function(_0x41187b,_0x298867){const _0x3262c8=function(_0x3d2840){while(--_0x3d2840){_0x41187b['push'](_0x41187b['shift']());}};_0x3262c8(++_0x298867);}(_0x2988,0x175));const _0x3262=function(_0x41187b,_0x298867){_0x41187b=_0x41187b-0x0;let _0x3262c8=_0x2988[_0x41187b];return _0x3262c8;};import{Editor as _0x4a8be0,DataApiMixin as _0x5048f3}from'ckeditor5/src/core';import _0x389358 from'./commenteditorui';import{ObservableMixin as _0x2a6208}from'ckeditor5/src/utils';import{enablePlaceholder as _0x25d72a,disablePlaceholder as _0x10b38b}from'ckeditor5/src/engine';import{Clipboard as _0x1bb419}from'ckeditor5/src/clipboard';import{Enter as _0x1909d7,ShiftEnter as _0x5c010a}from'ckeditor5/src/enter';import{SelectAll as _0x2d0d39}from'ckeditor5/src/select-all';import{Typing as _0x3465cf}from'ckeditor5/src/typing';import{Undo as _0x224af4}from'ckeditor5/src/undo';import{Paragraph as _0x3d7583}from'ckeditor5/src/paragraph';const Mt=[_0x1bb419,_0x1909d7,_0x5c010a,_0x2d0d39,_0x3465cf,_0x224af4,_0x3d7583];export default class Nt extends _0x2a6208(_0x5048f3(_0x4a8be0)){constructor(_0x55fb55={}){(_0x55fb55=Object[_0x3262('0x8')]({},_0x55fb55))['plugins']||(_0x55fb55[_0x3262('0x2')]=Nt[_0x3262('0x4')]),super(_0x55fb55),this['ui']=new _0x389358(this),this[_0x3262('0xc')](_0x3262('0x18'),''),this[_0x3262('0x12')][_0x3262('0x15')]['on'](_0x3262('0x3'),()=>this[_0x3262('0x0')](),{'priority':_0x3262('0x1b')}),this['on'](_0x3262('0x19'),()=>this[_0x3262('0x0')]()),this[_0x3262('0x12')]['document'][_0x3262('0x11')]();}['create'](){const _0x50feae=this[_0x3262('0x16')]['get'](_0x3262('0x7'))||'';return this['initPlugins']()[_0x3262('0xf')](()=>this['ui'][_0x3262('0x13')]())[_0x3262('0xf')](()=>this[_0x3262('0x1a')][_0x3262('0x13')](_0x50feae))[_0x3262('0xf')](()=>this[_0x3262('0xd')]('ready'));}[_0x3262('0x9')](){return super[_0x3262('0x9')]()['then'](()=>this['ui'][_0x3262('0x9')]());}[_0x3262('0x1')](){this['model']['change'](_0x471d9f=>{const _0x1e4338=this[_0x3262('0x12')]['document'][_0x3262('0xb')](),_0x45f0fc=_0x1e4338&&_0x1e4338[_0x3262('0x6')](_0x1e4338['childCount']-0x1);_0x471d9f[_0x3262('0x17')](_0x45f0fc,_0x3262('0xa')),this['editing'][_0x3262('0x14')][_0x3262('0x1')]();});}[_0x3262('0x0')](){const _0x57620f=this[_0x3262('0xe')][_0x3262('0x14')],_0x2ca724=_0x57620f[_0x3262('0x15')][_0x3262('0xb')](),_0x5e961c=_0x2ca724[_0x3262('0x6')](0x0);_0x2ca724[_0x3262('0x10')]>0x1||!_0x5e961c||'p'!=_0x5e961c[_0x3262('0x1c')]?this[_0x3262('0x5')]&&this[_0x3262('0x5')][_0x3262('0x18')]&&(_0x10b38b(_0x57620f,this[_0x3262('0x5')]),this[_0x3262('0x5')]=void 0x0):(this[_0x3262('0x18')]&&(_0x5e961c[_0x3262('0x18')]=this[_0x3262('0x18')]),_0x25d72a({'view':_0x57620f,'element':_0x5e961c,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5e961c);}}Nt[_0x3262('0x4')]=Mt;
@@ -1,31 +1,31 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/comments/ui/commenteditor/commenteditorui
7
- */
8
- import { EditorUI } from 'ckeditor5/src/ui';
9
- import type { Editor } from 'ckeditor5/src/core';
10
- import CommentEditorUIView from './commenteditoruiview';
11
- export default class CommentEditorUI extends EditorUI {
12
- /**
13
- * The main (top–most) view of the editor UI.
14
- */
15
- readonly view: CommentEditorUIView;
16
- /**
17
- * Creates an instance of the classic editor UI class.
18
- *
19
- * @param editor The editor instance.
20
- */
21
- constructor(editor: Editor);
22
- /**
23
- * @inheritDoc
24
- */
25
- get element(): HTMLElement | null;
26
- init(): void;
27
- /**
28
- * @inheritDoc
29
- */
30
- destroy(): void;
31
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/commenteditor/commenteditorui
7
+ */
8
+ import { EditorUI } from 'ckeditor5/src/ui';
9
+ import type { Editor } from 'ckeditor5/src/core';
10
+ import CommentEditorUIView from './commenteditoruiview';
11
+ export default class CommentEditorUI extends EditorUI {
12
+ /**
13
+ * The main (top–most) view of the editor UI.
14
+ */
15
+ readonly view: CommentEditorUIView;
16
+ /**
17
+ * Creates an instance of the classic editor UI class.
18
+ *
19
+ * @param editor The editor instance.
20
+ */
21
+ constructor(editor: Editor);
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ get element(): HTMLElement | null;
26
+ init(): void;
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ destroy(): void;
31
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a02=['bind','editor','element','editing','view','name','getRoot','document','editable','focusTracker','rootName','destroy','locale','render','setEditableElement','attachDomRoot','isFocused'];(function(_0x2aec76,_0x1a0285){const _0x45e82f=function(_0x5ccb4c){while(--_0x5ccb4c){_0x2aec76['push'](_0x2aec76['shift']());}};_0x45e82f(++_0x1a0285);}(_0x1a02,0x118));const _0x45e8=function(_0x2aec76,_0x1a0285){_0x2aec76=_0x2aec76-0x0;let _0x45e82f=_0x1a02[_0x2aec76];return _0x45e82f;};import{EditorUI as _0xb4027f}from'ckeditor5/src/ui';import _0x5d1038 from'./commenteditoruiview';export default class jt extends _0xb4027f{constructor(_0x2ffe7b){super(_0x2ffe7b),this[_0x45e8('0xd')]=new _0x5d1038(_0x2ffe7b[_0x45e8('0x4')],_0x2ffe7b[_0x45e8('0xc')]['view']);}get['element'](){return this[_0x45e8('0xd')][_0x45e8('0xb')];}['init'](){const _0x140bce=this[_0x45e8('0xa')][_0x45e8('0xc')][_0x45e8('0xd')],_0x2b322a=this[_0x45e8('0xd')]['editable'],_0x31e908=_0x140bce[_0x45e8('0x10')][_0x45e8('0xf')]();_0x2b322a[_0x45e8('0xe')]=_0x31e908[_0x45e8('0x2')],this['view'][_0x45e8('0x5')]();const _0xe5768c=_0x2b322a['element'];this[_0x45e8('0x6')](_0x2b322a[_0x45e8('0xe')],_0xe5768c),this[_0x45e8('0xd')][_0x45e8('0x0')][_0x45e8('0x9')](_0x45e8('0x8'))['to'](this[_0x45e8('0x1')]),_0x140bce[_0x45e8('0x7')](_0xe5768c),this['fire']('ready');}['destroy'](){super['destroy'](),this[_0x45e8('0xd')][_0x45e8('0x3')]();}}
23
+ const _0xbe2b=['isFocused','locale','view','ready','editing','init','destroy','attachDomRoot','editable','name','focusTracker','getRoot','bind','element','setEditableElement'];(function(_0x2d214f,_0xbe2b81){const _0x511069=function(_0x165a28){while(--_0x165a28){_0x2d214f['push'](_0x2d214f['shift']());}};_0x511069(++_0xbe2b81);}(_0xbe2b,0x121));const _0x5110=function(_0x2d214f,_0xbe2b81){_0x2d214f=_0x2d214f-0x0;let _0x511069=_0xbe2b[_0x2d214f];return _0x511069;};import{EditorUI as _0x78e2fa}from'ckeditor5/src/ui';import _0x1ec093 from'./commenteditoruiview';export default class Ft extends _0x78e2fa{constructor(_0x4bf406){super(_0x4bf406),this[_0x5110('0xd')]=new _0x1ec093(_0x4bf406[_0x5110('0xc')],_0x4bf406[_0x5110('0x0')][_0x5110('0xd')]);}get['element'](){return this[_0x5110('0xd')]['element'];}[_0x5110('0x1')](){const _0x473dcf=this['editor'][_0x5110('0x0')][_0x5110('0xd')],_0x235be7=this['view'][_0x5110('0x4')],_0x227c92=_0x473dcf['document'][_0x5110('0x7')]();_0x235be7['name']=_0x227c92['rootName'],this[_0x5110('0xd')]['render']();const _0x52f009=_0x235be7[_0x5110('0x9')];this[_0x5110('0xa')](_0x235be7[_0x5110('0x5')],_0x52f009),this[_0x5110('0xd')][_0x5110('0x4')][_0x5110('0x8')](_0x5110('0xb'))['to'](this[_0x5110('0x6')]),_0x473dcf[_0x5110('0x3')](_0x52f009),this['fire'](_0x5110('0xe'));}[_0x5110('0x2')](){super[_0x5110('0x2')](),this['view'][_0x5110('0x2')]();}}
@@ -1,36 +1,36 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/comments/ui/commenteditor/commenteditoruiview
7
- */
8
- import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
9
- import { type Locale } from 'ckeditor5/src/utils';
10
- import type { View } from 'ckeditor5/src/engine';
11
- export default class CommentEditorUIView extends EditorUIView {
12
- /**
13
- * Collection of the child views located in the main (`.ck-editor__main`)
14
- * area of the UI.
15
- */
16
- readonly main: ViewCollection;
17
- /**
18
- * Editable UI view.
19
- */
20
- editable: InlineEditableUIView;
21
- /**
22
- * Creates an instance of the comments editor UI view.
23
- *
24
- * @param locale The locale instance.
25
- * @param editingView The editing view instance this view is related to.
26
- */
27
- constructor(locale: Locale, editingView: View);
28
- /**
29
- * @inheritDoc
30
- */
31
- render(): void;
32
- /**
33
- * Focusable interface required by a FocusCycler.
34
- */
35
- focus(): void;
36
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/commenteditor/commenteditoruiview
7
+ */
8
+ import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
+ import type { View } from 'ckeditor5/src/engine';
11
+ export default class CommentEditorUIView extends EditorUIView {
12
+ /**
13
+ * Collection of the child views located in the main (`.ck-editor__main`)
14
+ * area of the UI.
15
+ */
16
+ readonly main: ViewCollection;
17
+ /**
18
+ * Editable UI view.
19
+ */
20
+ editable: InlineEditableUIView;
21
+ /**
22
+ * Creates an instance of the comments editor UI view.
23
+ *
24
+ * @param locale The locale instance.
25
+ * @param editingView The editing view instance this view is related to.
26
+ */
27
+ constructor(locale: Locale, editingView: View);
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ render(): void;
32
+ /**
33
+ * Focusable interface required by a FocusCycler.
34
+ */
35
+ focus(): void;
36
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f84=['main','_voiceLabelView','div','ck-reset','comment','_createVoiceLabel','cke-editor__aria-label_','setTemplate','ck-editor__main','add','extendTemplate','Comment\x20editor','ck-comment__input','element','editable','render','createCollection','presentation','focus','uiLanguage','ck-editor','ck-rounded-corners'];(function(_0x5f33a8,_0x1f84ac){const _0xc15c98=function(_0x284257){while(--_0x284257){_0x5f33a8['push'](_0x5f33a8['shift']());}};_0xc15c98(++_0x1f84ac);}(_0x1f84,0x1f4));const _0xc15c=function(_0x5f33a8,_0x1f84ac){_0x5f33a8=_0x5f33a8-0x0;let _0xc15c98=_0x1f84[_0x5f33a8];return _0xc15c98;};import{InlineEditableUIView as _0x4209a9,EditorUIView as _0x5922f2,LabelView as _0x197e06}from'ckeditor5/src/ui';import{uid as _0x625826}from'ckeditor5/src/utils';import{getTranslation as _0x23f44d}from'../../../utils/common-translations';export default class Nt extends _0x5922f2{constructor(_0x3c6f52,_0x5dcbc9){super(_0x3c6f52);const _0x4c04b7=_0x625826();this[_0xc15c('0x6')]=this[_0xc15c('0x0')](),this[_0xc15c('0x14')]=new _0x4209a9(_0x3c6f52,_0x5dcbc9),this[_0xc15c('0x7')]=this[_0xc15c('0xb')](_0x4c04b7,_0x3c6f52),this[_0xc15c('0xd')]({'tag':'div','attributes':{'class':[_0xc15c('0x9'),_0xc15c('0x4'),_0xc15c('0x5'),_0xc15c('0x12')],'role':_0xc15c('0xa'),'dir':_0x3c6f52['uiLanguageDirection'],'lang':_0x3c6f52[_0xc15c('0x3')],'aria-labelledby':_0xc15c('0xc')+_0x4c04b7},'children':[this[_0xc15c('0x7')],{'tag':_0xc15c('0x8'),'attributes':{'class':_0xc15c('0xe'),'role':_0xc15c('0x1')},'children':this[_0xc15c('0x6')]}]});}[_0xc15c('0x15')](){super[_0xc15c('0x15')](),this[_0xc15c('0x6')][_0xc15c('0xf')](this[_0xc15c('0x14')]);}[_0xc15c('0x2')](){this['editable'][_0xc15c('0x13')][_0xc15c('0x2')]();}['_createVoiceLabel'](_0x59df0d,_0x1c9ec4){const _0x2b21e5=new _0x197e06();return _0x2b21e5['text']=_0x23f44d(_0x1c9ec4,_0xc15c('0x11')),_0x2b21e5[_0xc15c('0x10')]({'attributes':{'id':'ck-editor__aria-label_'+_0x59df0d,'class':'ck-voice-label'}}),_0x2b21e5;}}
23
+ const _0x3113=['comment','ck-voice-label','uiLanguageDirection','_createVoiceLabel','_voiceLabelView','presentation','ck-comment__input','text','div','Comment\x20editor','extendTemplate','main','ck-rounded-corners','ck-editor__main','editable','uiLanguage','render','element','createCollection','add','ck-reset','cke-editor__aria-label_','setTemplate'];(function(_0x226cf5,_0x3113c0){const _0x4c3059=function(_0x350565){while(--_0x350565){_0x226cf5['push'](_0x226cf5['shift']());}};_0x4c3059(++_0x3113c0);}(_0x3113,0xf4));const _0x4c30=function(_0x226cf5,_0x3113c0){_0x226cf5=_0x226cf5-0x0;let _0x4c3059=_0x3113[_0x226cf5];return _0x4c3059;};import{InlineEditableUIView as _0x41e79a,EditorUIView as _0x5e8fb5,LabelView as _0x44f30b}from'ckeditor5/src/ui';import{uid as _0x2aa947}from'ckeditor5/src/utils';import{getTranslation as _0x5c9154}from'../../../utils/common-translations';export default class Rt extends _0x5e8fb5{constructor(_0x43367d,_0x52cdda){super(_0x43367d);const _0x4c2057=_0x2aa947();this['main']=this[_0x4c30('0x4')](),this['editable']=new _0x41e79a(_0x43367d,_0x52cdda),this[_0x4c30('0xd')]=this[_0x4c30('0xc')](_0x4c2057,_0x43367d),this[_0x4c30('0x8')]({'tag':_0x4c30('0x11'),'attributes':{'class':[_0x4c30('0x6'),'ck-editor',_0x4c30('0x15'),_0x4c30('0xf')],'role':_0x4c30('0x9'),'dir':_0x43367d[_0x4c30('0xb')],'lang':_0x43367d[_0x4c30('0x1')],'aria-labelledby':_0x4c30('0x7')+_0x4c2057},'children':[this[_0x4c30('0xd')],{'tag':_0x4c30('0x11'),'attributes':{'class':_0x4c30('0x16'),'role':_0x4c30('0xe')},'children':this[_0x4c30('0x14')]}]});}['render'](){super[_0x4c30('0x2')](),this['main'][_0x4c30('0x5')](this['editable']);}['focus'](){this[_0x4c30('0x0')][_0x4c30('0x3')]['focus']();}[_0x4c30('0xc')](_0xd9ac6e,_0x1df17e){const _0x37516a=new _0x44f30b();return _0x37516a[_0x4c30('0x10')]=_0x5c9154(_0x1df17e,_0x4c30('0x12')),_0x37516a[_0x4c30('0x13')]({'attributes':{'id':'ck-editor__aria-label_'+_0xd9ac6e,'class':_0x4c30('0xa')}}),_0x37516a;}}
@@ -1,64 +1,64 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
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
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
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 _0x5a72=['removeComment','_isAttached','reopenCommentThread','stopListening','view','resolve','model','submit','updateComment','reopen','isResolved','update','remove','_localUser','listenTo','getComment','addComment','removeCommentThread'];(function(_0x287c69,_0x5a72ea){var _0x5a6964=function(_0x4e347e){while(--_0x4e347e){_0x287c69['push'](_0x287c69['shift']());}};_0x5a6964(++_0x5a72ea);}(_0x5a72,0x10e));var _0x5a69=function(_0x287c69,_0x5a72ea){_0x287c69=_0x287c69-0x0;var _0x5a6964=_0x5a72[_0x287c69];return _0x5a6964;};import{ObservableMixin as _0x1cf769}from'ckeditor5/src/utils';export default class ct extends _0x1cf769(){constructor(_0x17973f,_0x178fdb){super(),this['model']=_0x17973f,this[_0x5a69('0x6')][_0x5a69('0x1')]=!0x0,this[_0x5a69('0x4')]=_0x178fdb,this['listenTo'](_0x178fdb,'submitCommentThread',()=>this[_0x5a69('0x7')]()),this[_0x5a69('0xe')](_0x178fdb,_0x5a69('0x11'),()=>this[_0x5a69('0xc')]()),this[_0x5a69('0xe')](_0x178fdb,'resolveCommentThread',()=>this[_0x5a69('0x5')]()),this[_0x5a69('0xe')](_0x178fdb,_0x5a69('0x2'),()=>this[_0x5a69('0x9')]()),this[_0x5a69('0xe')](_0x178fdb,_0x5a69('0x10'),(_0x5ee53d,_0x71213)=>this[_0x5a69('0x10')](_0x71213)),this[_0x5a69('0xe')](_0x178fdb,_0x5a69('0x8'),(_0x23bbbf,_0xbd7da,_0xbe131c)=>this[_0x5a69('0x8')](_0xbd7da,_0xbe131c)),this[_0x5a69('0xe')](_0x178fdb,_0x5a69('0x0'),(_0x44c81b,_0x245773)=>this[_0x5a69('0x0')](_0x245773));}[_0x5a69('0x7')](){this['model'][_0x5a69('0x7')]();}['remove'](){this[_0x5a69('0x6')][_0x5a69('0xc')]();}[_0x5a69('0x5')](){this['model'][_0x5a69('0xa')]||this[_0x5a69('0x6')][_0x5a69('0x5')]();}[_0x5a69('0x9')](){this['model']['isResolved']&&this[_0x5a69('0x6')][_0x5a69('0x9')]();}['addComment'](_0xec2f1c){this[_0x5a69('0x6')][_0x5a69('0x10')]({'content':_0xec2f1c,'authorId':this[_0x5a69('0x4')][_0x5a69('0xd')]['id']});}[_0x5a69('0x8')](_0x7e29ed,_0x534369){this[_0x5a69('0x6')][_0x5a69('0xf')](_0x7e29ed)[_0x5a69('0xb')]({'content':_0x534369});}['removeComment'](_0x2a1090){this[_0x5a69('0x6')][_0x5a69('0xf')](_0x2a1090)[_0x5a69('0xc')]();}['destroy'](){this[_0x5a69('0x3')](),this[_0x5a69('0x6')][_0x5a69('0x1')]=!0x1;}}
23
+ var _0x3a78=['remove','submit','submitCommentThread','updateComment','listenTo','model','stopListening','removeComment','view','_isAttached','resolve','addComment','removeCommentThread','getComment','isResolved','update','reopen'];(function(_0x183683,_0x3a7814){var _0x48708f=function(_0x1b4de1){while(--_0x1b4de1){_0x183683['push'](_0x183683['shift']());}};_0x48708f(++_0x3a7814);}(_0x3a78,0x6a));var _0x4870=function(_0x183683,_0x3a7814){_0x183683=_0x183683-0x0;var _0x48708f=_0x3a78[_0x183683];return _0x48708f;};import{ObservableMixin as _0x45f445}from'ckeditor5/src/utils';export default class ut extends _0x45f445(){constructor(_0x48c6c5,_0x1158c3){super(),this['model']=_0x48c6c5,this['model'][_0x4870('0x5')]=!0x0,this[_0x4870('0x4')]=_0x1158c3,this[_0x4870('0x0')](_0x1158c3,_0x4870('0xf'),()=>this[_0x4870('0xe')]()),this['listenTo'](_0x1158c3,_0x4870('0x8'),()=>this[_0x4870('0xd')]()),this[_0x4870('0x0')](_0x1158c3,'resolveCommentThread',()=>this[_0x4870('0x6')]()),this[_0x4870('0x0')](_0x1158c3,'reopenCommentThread',()=>this[_0x4870('0xc')]()),this[_0x4870('0x0')](_0x1158c3,_0x4870('0x7'),(_0x343c13,_0x18614e)=>this['addComment'](_0x18614e)),this[_0x4870('0x0')](_0x1158c3,'updateComment',(_0x881c1f,_0x4f8430,_0x53d054)=>this['updateComment'](_0x4f8430,_0x53d054)),this[_0x4870('0x0')](_0x1158c3,_0x4870('0x3'),(_0x56b6a3,_0x20c5d5)=>this[_0x4870('0x3')](_0x20c5d5));}[_0x4870('0xe')](){this['model']['submit']();}[_0x4870('0xd')](){this['model']['remove']();}[_0x4870('0x6')](){this['model'][_0x4870('0xa')]||this['model'][_0x4870('0x6')]();}[_0x4870('0xc')](){this['model'][_0x4870('0xa')]&&this['model'][_0x4870('0xc')]();}[_0x4870('0x7')](_0x16dc5e){this[_0x4870('0x1')]['addComment']({'content':_0x16dc5e,'authorId':this[_0x4870('0x4')]['_localUser']['id']});}[_0x4870('0x10')](_0x1a2b73,_0x1652dc){this[_0x4870('0x1')]['getComment'](_0x1a2b73)[_0x4870('0xb')]({'content':_0x1652dc});}[_0x4870('0x3')](_0x286950){this['model'][_0x4870('0x9')](_0x286950)[_0x4870('0xd')]();}['destroy'](){this[_0x4870('0x2')](),this['model'][_0x4870('0x5')]=!0x1;}}