@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.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 (163) hide show
  1. package/README.md +0 -1
  2. package/build/comments.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/ms.js +1 -1
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sq.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +1 -1
  41. package/lang/translations/bg.po +1 -1
  42. package/lang/translations/bn.po +1 -1
  43. package/lang/translations/ca.po +1 -1
  44. package/lang/translations/cs.po +1 -1
  45. package/lang/translations/da.po +1 -1
  46. package/lang/translations/de.po +1 -1
  47. package/lang/translations/el.po +1 -1
  48. package/lang/translations/es.po +1 -1
  49. package/lang/translations/et.po +1 -1
  50. package/lang/translations/fi.po +1 -1
  51. package/lang/translations/fr.po +1 -1
  52. package/lang/translations/gl.po +12 -12
  53. package/lang/translations/he.po +1 -1
  54. package/lang/translations/hi.po +1 -1
  55. package/lang/translations/hr.po +1 -1
  56. package/lang/translations/hu.po +1 -1
  57. package/lang/translations/id.po +1 -1
  58. package/lang/translations/ja.po +1 -1
  59. package/lang/translations/ko.po +1 -1
  60. package/lang/translations/lt.po +1 -1
  61. package/lang/translations/ms.po +1 -1
  62. package/lang/translations/nl.po +1 -1
  63. package/lang/translations/no.po +1 -1
  64. package/lang/translations/pl.po +1 -1
  65. package/lang/translations/pt.po +1 -1
  66. package/lang/translations/ro.po +1 -1
  67. package/lang/translations/ru.po +1 -1
  68. package/lang/translations/sq.po +2 -2
  69. package/lang/translations/sr.po +1 -1
  70. package/lang/translations/sv.po +1 -1
  71. package/lang/translations/th.po +1 -1
  72. package/lang/translations/tr.po +1 -1
  73. package/lang/translations/uk.po +1 -1
  74. package/lang/translations/vi.po +1 -1
  75. package/lang/translations/zh-cn.po +1 -1
  76. package/lang/translations/zh.po +1 -1
  77. package/package.json +4 -5
  78. package/src/annotations/annotation.d.ts +10 -6
  79. package/src/annotations/annotation.js +2 -2
  80. package/src/annotations/annotationcollection.d.ts +7 -3
  81. package/src/annotations/annotationcollection.js +2 -2
  82. package/src/annotations/annotations.d.ts +10 -6
  83. package/src/annotations/annotations.js +2 -2
  84. package/src/annotations/annotationsuis.d.ts +9 -5
  85. package/src/annotations/annotationsuis.js +2 -2
  86. package/src/annotations/editorannotations.d.ts +8 -4
  87. package/src/annotations/editorannotations.js +2 -2
  88. package/src/annotations/inlineannotations.d.ts +10 -6
  89. package/src/annotations/inlineannotations.js +2 -2
  90. package/src/annotations/narrowsidebar.d.ts +10 -6
  91. package/src/annotations/narrowsidebar.js +2 -2
  92. package/src/annotations/sidebar.d.ts +9 -5
  93. package/src/annotations/sidebar.js +2 -2
  94. package/src/annotations/view/annotationcounterbuttonview.d.ts +6 -2
  95. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  96. package/src/annotations/view/annotationview.d.ts +6 -2
  97. package/src/annotations/view/annotationview.js +2 -2
  98. package/src/annotations/view/sidebaritemview.d.ts +6 -2
  99. package/src/annotations/view/sidebaritemview.js +2 -2
  100. package/src/annotations/view/sidebarview.d.ts +6 -2
  101. package/src/annotations/view/sidebarview.js +2 -2
  102. package/src/annotations/widesidebar.d.ts +9 -5
  103. package/src/annotations/widesidebar.js +2 -2
  104. package/src/augmentation.d.ts +5 -1
  105. package/src/augmentation.js +1 -1
  106. package/src/comments/addcommentthreadcommand.d.ts +5 -1
  107. package/src/comments/addcommentthreadcommand.js +2 -2
  108. package/src/comments/commentsarchive.d.ts +8 -4
  109. package/src/comments/commentsarchive.js +2 -2
  110. package/src/comments/commentsarchiveui.d.ts +9 -5
  111. package/src/comments/commentsarchiveui.js +2 -2
  112. package/src/comments/commentsediting.d.ts +10 -6
  113. package/src/comments/commentsediting.js +2 -2
  114. package/src/comments/commentsrepository.d.ts +30 -13
  115. package/src/comments/commentsrepository.js +2 -2
  116. package/src/comments/commentsui.d.ts +9 -5
  117. package/src/comments/commentsui.js +2 -2
  118. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +5 -1
  119. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  120. package/src/comments/integrations/importword.d.ts +5 -1
  121. package/src/comments/integrations/importword.js +2 -2
  122. package/src/comments/ui/commenteditor/commenteditor.d.ts +9 -5
  123. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  124. package/src/comments/ui/commenteditor/commenteditorui.d.ts +7 -3
  125. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  126. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +7 -3
  127. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  128. package/src/comments/ui/commentthreadcontroller.d.ts +6 -6
  129. package/src/comments/ui/commentthreadcontroller.js +2 -2
  130. package/src/comments/ui/view/basecommentthreadview.d.ts +12 -8
  131. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  132. package/src/comments/ui/view/basecommentview.d.ts +8 -4
  133. package/src/comments/ui/view/basecommentview.js +2 -2
  134. package/src/comments/ui/view/collapsedcommentsview.d.ts +6 -2
  135. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  136. package/src/comments/ui/view/commentcontentview.d.ts +6 -2
  137. package/src/comments/ui/view/commentcontentview.js +2 -2
  138. package/src/comments/ui/view/commentinputview.d.ts +8 -4
  139. package/src/comments/ui/view/commentinputview.js +2 -2
  140. package/src/comments/ui/view/commentsarchiveview.d.ts +7 -3
  141. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  142. package/src/comments/ui/view/commentslistview.d.ts +9 -5
  143. package/src/comments/ui/view/commentslistview.js +2 -2
  144. package/src/comments/ui/view/commentthreadheaderview.d.ts +7 -3
  145. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  146. package/src/comments/ui/view/commentthreadinputview.d.ts +9 -5
  147. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  148. package/src/comments/ui/view/commentthreadview.d.ts +11 -7
  149. package/src/comments/ui/view/commentthreadview.js +2 -2
  150. package/src/comments/ui/view/commentview.d.ts +12 -8
  151. package/src/comments/ui/view/commentview.js +2 -2
  152. package/src/comments.d.ts +14 -10
  153. package/src/comments.js +2 -2
  154. package/src/commentsonly.d.ts +6 -2
  155. package/src/commentsonly.js +2 -2
  156. package/src/config.d.ts +11 -7
  157. package/src/config.js +1 -1
  158. package/src/index.d.ts +24 -21
  159. package/src/index.js +2 -2
  160. package/src/utils/common-translations.d.ts +5 -1
  161. package/src/utils/common-translations.js +2 -2
  162. package/src/utils/createmutationobserver.d.ts +2 -1
  163. package/src/utils/createmutationobserver.js +2 -2
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module comments/comments/integrations/commentsrestrictededitingmode
3
7
  */
4
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides comments plugin integration for restricted editing mode feature from restricted editing package.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3164=['RestrictedEditingModeEditing','enableCommand','get','has'];(function(_0xc52bdb,_0x316408){const _0xb5507f=function(_0xed2bb3){while(--_0xed2bb3){_0xc52bdb['push'](_0xc52bdb['shift']());}};_0xb5507f(++_0x316408);}(_0x3164,0x97));const _0xb550=function(_0xc52bdb,_0x316408){_0xc52bdb=_0xc52bdb-0x0;let _0xb5507f=_0x3164[_0xc52bdb];return _0xb5507f;};import{Plugin as _0x471c6a}from'ckeditor5/src/core.js';export default class X extends _0x471c6a{['afterInit'](){const _0x3c43ec=this['editor'];if(!_0x3c43ec['plugins'][_0xb550('0x0')](_0xb550('0x1')))return;_0x3c43ec['plugins'][_0xb550('0x3')](_0xb550('0x1'))[_0xb550('0x2')]('addCommentThread');}}
23
+ const _0x2ebc=['enableCommand','addCommentThread','plugins','RestrictedEditingModeEditing','get','has','editor','afterInit'];(function(_0x9b7f9e,_0x2ebc89){const _0x4a4456=function(_0x14bd59){while(--_0x14bd59){_0x9b7f9e['push'](_0x9b7f9e['shift']());}};_0x4a4456(++_0x2ebc89);}(_0x2ebc,0x8c));const _0x4a44=function(_0x9b7f9e,_0x2ebc89){_0x9b7f9e=_0x9b7f9e-0x0;let _0x4a4456=_0x2ebc[_0x9b7f9e];return _0x4a4456;};import{Plugin as _0x9e151b}from'ckeditor5/src/core';export default class X extends _0x9e151b{[_0x4a44('0x3')](){const _0x4835dd=this[_0x4a44('0x2')];if(!_0x4835dd['plugins'][_0x4a44('0x1')]('RestrictedEditingModeEditing'))return;_0x4835dd[_0x4a44('0x6')][_0x4a44('0x0')](_0x4a44('0x7'))[_0x4a44('0x4')](_0x4a44('0x5'));}}
@@ -1,7 +1,11 @@
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
+ */
1
5
  /**
2
6
  * @module comments/integrations/importword
3
7
  */
4
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
9
  /**
6
10
  * Provides comments plugin integration for the import from Word feature.
7
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5999=['dataInsert','plugins','commands','basic','importWord.commentsStyles','editor','define','forEach','map','config','afterInit','_handleImportedData','get','high','importWord','addCommentThread'];(function(_0x4a22d0,_0x599962){const _0x6b139=function(_0x560e27){while(--_0x560e27){_0x4a22d0['push'](_0x4a22d0['shift']());}};_0x6b139(++_0x599962);}(_0x5999,0x19b));const _0x6b13=function(_0x4a22d0,_0x599962){_0x4a22d0=_0x4a22d0-0x0;let _0x6b139=_0x5999[_0x4a22d0];return _0x6b139;};import{Plugin as _0x170650}from'ckeditor5/src/core.js';import{priorities as _0x3d1d2d}from'ckeditor5/src/utils.js';import{Users as _0x26222c}from'ckeditor5-collaboration';import _0x5c5c12 from'../commentsrepository.js';export default class Y extends _0x170650{constructor(_0x5dfb97){super(_0x5dfb97),this[_0x6b13('0xa')][_0x6b13('0xe')][_0x6b13('0xb')](_0x6b13('0x9'),_0x6b13('0x8'));}[_0x6b13('0xf')](){const _0x4cd385=this['editor'],_0x2fc56b=_0x4cd385[_0x6b13('0x7')][_0x6b13('0x1')](_0x6b13('0x3')),_0x447760=_0x4cd385['plugins']['get'](_0x26222c);_0x2fc56b&&(_0x2fc56b['on']('execute',(_0x5369dc,[,_0x526caa])=>{_0x526caa['collaboration_features']={'comments':!0x0,'user_id':_0x447760['me']['id'],'comments_styles':this[_0x6b13('0xa')]['config']['get'](_0x6b13('0x9'))};},{'priority':_0x3d1d2d[_0x6b13('0x2')]+0xa}),this['listenTo'](_0x2fc56b,_0x6b13('0x5'),this[_0x6b13('0x0')]));}[_0x6b13('0x0')](_0x219eaf,_0x302828){const {comment_threads:_0x2e26b6}=_0x302828;_0x2e26b6&&_0x2e26b6[_0x6b13('0xc')](({thread_id:_0x511222,comments:_0xc3cc57,is_resolved:_0xb2fbdf})=>{const _0x55e87d=new Date(),_0xfdd44f=_0xc3cc57[_0x6b13('0xd')](({author:_0x5ac574,content:_0x1faa45,created_at:_0x41d867})=>({'content':_0x1faa45,'authorId':this['editor']['plugins'][_0x6b13('0x1')](_0x26222c)['me']['id'],'createdAt':_0x55e87d,'attributes':{'@external':{'authorName':_0x5ac574,'createdAt':_0x41d867?new Date(_0x41d867):new Date(),'source':_0x6b13('0x3')}}})),_0x350465=this[_0x6b13('0xa')][_0x6b13('0xe')]['get']('collaboration.channelId');this['editor'][_0x6b13('0x6')]['get'](_0x5c5c12)[_0x6b13('0x4')]({'channelId':_0x350465,'threadId':_0x511222,'comments':_0xfdd44f,'resolvedAt':_0xb2fbdf?_0x55e87d:null});});}}
23
+ const _0x3e4c=['config','forEach','editor','listenTo','_handleImportedData','importWord','map','plugins','addCommentThread','basic','define','commands','collaboration_features','importWord.commentsStyles','execute','high','get','dataInsert'];(function(_0x5061ae,_0x3e4cf9){const _0x4e8a18=function(_0x1089ea){while(--_0x1089ea){_0x5061ae['push'](_0x5061ae['shift']());}};_0x4e8a18(++_0x3e4cf9);}(_0x3e4c,0x1b5));const _0x4e8a=function(_0x5061ae,_0x3e4cf9){_0x5061ae=_0x5061ae-0x0;let _0x4e8a18=_0x3e4c[_0x5061ae];return _0x4e8a18;};import{Plugin as _0x29263c}from'ckeditor5/src/core';import{priorities as _0x5e765d}from'ckeditor5/src/utils';import{Users as _0x2be11b}from'ckeditor5-collaboration/src/collaboration-core';import _0x4873f4 from'../commentsrepository';export default class Y extends _0x29263c{constructor(_0x53f2cf){super(_0x53f2cf),this[_0x4e8a('0xf')]['config'][_0x4e8a('0x5')](_0x4e8a('0x8'),_0x4e8a('0x4'));}['afterInit'](){const _0x3cddc8=this[_0x4e8a('0xf')],_0x42b220=_0x3cddc8[_0x4e8a('0x6')][_0x4e8a('0xb')](_0x4e8a('0x0')),_0x243a07=_0x3cddc8[_0x4e8a('0x2')][_0x4e8a('0xb')](_0x2be11b);_0x42b220&&(_0x42b220['on'](_0x4e8a('0x9'),(_0x4578eb,[,_0xab45ef])=>{_0xab45ef[_0x4e8a('0x7')]={'comments':!0x0,'user_id':_0x243a07['me']['id'],'comments_styles':this[_0x4e8a('0xf')][_0x4e8a('0xd')][_0x4e8a('0xb')](_0x4e8a('0x8'))};},{'priority':_0x5e765d[_0x4e8a('0xa')]+0xa}),this[_0x4e8a('0x10')](_0x42b220,_0x4e8a('0xc'),this[_0x4e8a('0x11')]));}[_0x4e8a('0x11')](_0x525912,_0x537901){const {comment_threads:_0x49ba34}=_0x537901;_0x49ba34&&_0x49ba34[_0x4e8a('0xe')](({thread_id:_0x426748,comments:_0x55c912,is_resolved:_0x6de7d6})=>{const _0x1d00ae=new Date(),_0x385797=_0x55c912[_0x4e8a('0x1')](({author:_0x406eb6,content:_0x373a78,created_at:_0x1010a8})=>({'content':_0x373a78,'authorId':this['editor'][_0x4e8a('0x2')]['get'](_0x2be11b)['me']['id'],'createdAt':_0x1d00ae,'attributes':{'@external':{'authorName':_0x406eb6,'createdAt':_0x1010a8?new Date(_0x1010a8):new Date(),'source':'importWord'}}})),_0xadd4aa=this['editor'][_0x4e8a('0xd')][_0x4e8a('0xb')]('collaboration.channelId');this['editor'][_0x4e8a('0x2')][_0x4e8a('0xb')](_0x4873f4)[_0x4e8a('0x3')]({'channelId':_0xadd4aa,'threadId':_0x426748,'comments':_0x385797,'resolvedAt':_0x6de7d6?_0x1d00ae:null});});}}
@@ -1,10 +1,14 @@
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
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/commenteditor/commenteditor
3
7
  */
4
- import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
5
- import CommentEditorUI from './commenteditorui.js';
6
- import { type ViewElement } from 'ckeditor5/src/engine.js';
7
- declare const CommentEditor_base: import("ckeditor5/src/utils.js").Mixed<import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/core.js").DataApi>, import("ckeditor5/src/utils.js").Observable>;
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>;
8
12
  export default class CommentEditor extends CommentEditor_base {
9
13
  static defaultPlugins: EditorConfig['plugins'];
10
14
  /**
@@ -13,7 +17,7 @@ export default class CommentEditor extends CommentEditor_base {
13
17
  * @observable
14
18
  */
15
19
  placeholder: string;
16
- placeholderElement: ViewElement | undefined;
20
+ placeholderElement: PlaceholderableElement | undefined;
17
21
  ui: CommentEditorUI;
18
22
  /**
19
23
  * @inheritDoc
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf396=['document','setSelection','init','getChild','placeholder','then','create','model','initPlugins','createRoot','change:placeholder','plugins','change','config','low','editing','childCount','get','getRoot','data','set','destroy','view','_updatePlaceholder','ready','placeholderElement'];(function(_0x750897,_0xf39601){const _0x3bec46=function(_0x54375f){while(--_0x54375f){_0x750897['push'](_0x750897['shift']());}};_0x3bec46(++_0xf39601);}(_0xf396,0x82));const _0x3bec=function(_0x750897,_0xf39601){_0x750897=_0x750897-0x0;let _0x3bec46=_0xf396[_0x750897];return _0x3bec46;};import{Editor as _0x378fa9,DataApiMixin as _0x4244d6}from'ckeditor5/src/core.js';import _0x3cc1d6 from'./commenteditorui.js';import{ObservableMixin as _0x1ddf41}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x3973d2,disablePlaceholder as _0x12522c}from'ckeditor5/src/engine.js';import{Clipboard as _0x28d31a}from'ckeditor5/src/clipboard.js';import{Enter as _0x3d70aa,ShiftEnter as _0x58d4b5}from'ckeditor5/src/enter.js';import{SelectAll as _0x4859fb}from'ckeditor5/src/select-all.js';import{Typing as _0x3a36c5}from'ckeditor5/src/typing.js';import{Undo as _0x7d9d2f}from'ckeditor5/src/undo.js';import{Paragraph as _0xd22cbc}from'ckeditor5/src/paragraph.js';const Kt=[_0x28d31a,_0x3d70aa,_0x58d4b5,_0x4859fb,_0x3a36c5,_0x7d9d2f,_0xd22cbc];export default class Lt extends _0x1ddf41(_0x4244d6(_0x378fa9)){constructor(_0x2e174b={}){(_0x2e174b=Object['assign']({},_0x2e174b))[_0x3bec('0xb')]||(_0x2e174b[_0x3bec('0xb')]=Lt['defaultPlugins']),super(_0x2e174b),this['ui']=new _0x3cc1d6(this),this[_0x3bec('0x14')]('placeholder',''),this['model'][_0x3bec('0x0')]['on'](_0x3bec('0xc'),()=>this[_0x3bec('0x17')](),{'priority':_0x3bec('0xe')}),this['on'](_0x3bec('0xa'),()=>this[_0x3bec('0x17')]()),this[_0x3bec('0x7')]['document'][_0x3bec('0x9')]();}[_0x3bec('0x6')](){const _0x259f04=this[_0x3bec('0xd')][_0x3bec('0x11')]('initialData')||'';return this[_0x3bec('0x8')]()[_0x3bec('0x5')](()=>this['ui'][_0x3bec('0x2')]())[_0x3bec('0x5')](()=>this[_0x3bec('0x13')][_0x3bec('0x2')](_0x259f04))['then'](()=>this['fire'](_0x3bec('0x18')));}[_0x3bec('0x15')](){return super['destroy']()[_0x3bec('0x5')](()=>this['ui'][_0x3bec('0x15')]());}['focus'](){this['model'][_0x3bec('0xc')](_0x4cb21a=>{const _0x4a9c02=this['model'][_0x3bec('0x0')][_0x3bec('0x12')](),_0x6b919c=_0x4a9c02&&_0x4a9c02[_0x3bec('0x3')](_0x4a9c02[_0x3bec('0x10')]-0x1);_0x4cb21a[_0x3bec('0x1')](_0x6b919c,'end'),this[_0x3bec('0xf')][_0x3bec('0x16')]['focus']();});}[_0x3bec('0x17')](){const _0x51c49c=this['editing'][_0x3bec('0x16')],_0x172e0b=_0x51c49c[_0x3bec('0x0')][_0x3bec('0x12')](),_0x5694c2=_0x172e0b[_0x3bec('0x3')](0x0);_0x172e0b[_0x3bec('0x10')]>0x1||!_0x5694c2||'p'!=_0x5694c2['name']?this['placeholderElement']&&(_0x12522c(_0x51c49c,this[_0x3bec('0x19')]),this['placeholderElement']=void 0x0):(_0x3973d2({'view':_0x51c49c,'element':_0x5694c2,'text':this[_0x3bec('0x4')],'keepOnFocus':!0x0}),this[_0x3bec('0x19')]=_0x5694c2);}}Lt['defaultPlugins']=Kt;
23
+ const _0x303f=['destroy','placeholderElement','createRoot','low','document','assign','initialData','create','focus','childCount','config','setSelection','name','getChild','change:placeholder','_updatePlaceholder','defaultPlugins','then','change','placeholder','view','init','data','editing','getRoot','fire','plugins','get','model','end'];(function(_0x37671b,_0x303f84){const _0x198cb9=function(_0x2cf0c2){while(--_0x2cf0c2){_0x37671b['push'](_0x37671b['shift']());}};_0x198cb9(++_0x303f84);}(_0x303f,0x14c));const _0x198c=function(_0x37671b,_0x303f84){_0x37671b=_0x37671b-0x0;let _0x198cb9=_0x303f[_0x37671b];return _0x198cb9;};import{Editor as _0x430052,DataApiMixin as _0x5de1b4}from'ckeditor5/src/core';import _0x3328bd from'./commenteditorui';import{ObservableMixin as _0x3743fa}from'ckeditor5/src/utils';import{enablePlaceholder as _0x3df6d7,disablePlaceholder as _0x5bacc5}from'ckeditor5/src/engine';import{Clipboard as _0x2b9d74}from'ckeditor5/src/clipboard';import{Enter as _0x569394,ShiftEnter as _0x5b3122}from'ckeditor5/src/enter';import{SelectAll as _0x2d5600}from'ckeditor5/src/select-all';import{Typing as _0x3b13db}from'ckeditor5/src/typing';import{Undo as _0x1b4797}from'ckeditor5/src/undo';import{Paragraph as _0x3ae6f7}from'ckeditor5/src/paragraph';const Kt=[_0x2b9d74,_0x569394,_0x5b3122,_0x2d5600,_0x3b13db,_0x1b4797,_0x3ae6f7];export default class Lt extends _0x3743fa(_0x5de1b4(_0x430052)){constructor(_0x1a3a70={}){(_0x1a3a70=Object[_0x198c('0x3')]({},_0x1a3a70))[_0x198c('0x18')]||(_0x1a3a70[_0x198c('0x18')]=Lt[_0x198c('0xe')]),super(_0x1a3a70),this['ui']=new _0x3328bd(this),this['set'](_0x198c('0x11'),''),this[_0x198c('0x1a')][_0x198c('0x2')]['on'](_0x198c('0x10'),()=>this[_0x198c('0xd')](),{'priority':_0x198c('0x1')}),this['on'](_0x198c('0xc'),()=>this[_0x198c('0xd')]()),this[_0x198c('0x1a')][_0x198c('0x2')][_0x198c('0x0')]();}[_0x198c('0x5')](){const _0x393c5a=this[_0x198c('0x8')][_0x198c('0x19')](_0x198c('0x4'))||'';return this['initPlugins']()['then'](()=>this['ui'][_0x198c('0x13')]())[_0x198c('0xf')](()=>this[_0x198c('0x14')][_0x198c('0x13')](_0x393c5a))[_0x198c('0xf')](()=>this[_0x198c('0x17')]('ready'));}[_0x198c('0x1c')](){return super['destroy']()[_0x198c('0xf')](()=>this['ui'][_0x198c('0x1c')]());}[_0x198c('0x6')](){this[_0x198c('0x1a')][_0x198c('0x10')](_0x37c70a=>{const _0x3c9190=this[_0x198c('0x1a')][_0x198c('0x2')][_0x198c('0x16')](),_0x3dd2cb=_0x3c9190&&_0x3c9190['getChild'](_0x3c9190[_0x198c('0x7')]-0x1);_0x37c70a[_0x198c('0x9')](_0x3dd2cb,_0x198c('0x1b')),this[_0x198c('0x15')][_0x198c('0x12')][_0x198c('0x6')]();});}[_0x198c('0xd')](){const _0x455b2e=this[_0x198c('0x15')][_0x198c('0x12')],_0x11ccb7=_0x455b2e[_0x198c('0x2')]['getRoot'](),_0x2e2d16=_0x11ccb7[_0x198c('0xb')](0x0);_0x11ccb7[_0x198c('0x7')]>0x1||!_0x2e2d16||'p'!=_0x2e2d16[_0x198c('0xa')]?this['placeholderElement']&&this[_0x198c('0x1d')][_0x198c('0x11')]&&(_0x5bacc5(_0x455b2e,this[_0x198c('0x1d')]),this[_0x198c('0x1d')]=void 0x0):(this[_0x198c('0x11')]&&(_0x2e2d16['placeholder']=this[_0x198c('0x11')]),_0x3df6d7({'view':_0x455b2e,'element':_0x2e2d16,'keepOnFocus':!0x0}),this[_0x198c('0x1d')]=_0x2e2d16);}}Lt['defaultPlugins']=Kt;
@@ -1,9 +1,13 @@
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
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/commenteditor/commenteditorui
3
7
  */
4
- import { EditorUI } from 'ckeditor5/src/ui.js';
5
- import type { Editor } from 'ckeditor5/src/core.js';
6
- import CommentEditorUIView from './commenteditoruiview.js';
8
+ import { EditorUI } from 'ckeditor5/src/ui';
9
+ import type { Editor } from 'ckeditor5/src/core';
10
+ import CommentEditorUIView from './commenteditoruiview';
7
11
  export default class CommentEditorUI extends EditorUI {
8
12
  /**
9
13
  * The main (top–most) view of the editor UI.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4da2=['document','name','isFocused','render','setEditableElement','rootName','bind','ready','editable','focusTracker','fire','editing','element','editor','view','destroy'];(function(_0x5e3152,_0x4da292){const _0x49631b=function(_0x2ad222){while(--_0x2ad222){_0x5e3152['push'](_0x5e3152['shift']());}};_0x49631b(++_0x4da292);}(_0x4da2,0x1f0));const _0x4963=function(_0x5e3152,_0x4da292){_0x5e3152=_0x5e3152-0x0;let _0x49631b=_0x4da2[_0x5e3152];return _0x49631b;};import{EditorUI as _0x47507a}from'ckeditor5/src/ui.js';import _0x187bca from'./commenteditoruiview.js';export default class Ft extends _0x47507a{constructor(_0xefc2ce){super(_0xefc2ce),this['view']=new _0x187bca(_0xefc2ce['locale'],_0xefc2ce[_0x4963('0xb')][_0x4963('0xe')]);}get[_0x4963('0xc')](){return this[_0x4963('0xe')]['element'];}['init'](){const _0x18a71f=this[_0x4963('0xd')][_0x4963('0xb')][_0x4963('0xe')],_0x39b0cd=this['view'][_0x4963('0x8')],_0x358845=_0x18a71f[_0x4963('0x0')]['getRoot']();_0x39b0cd[_0x4963('0x1')]=_0x358845[_0x4963('0x5')],this[_0x4963('0xe')][_0x4963('0x3')]();const _0x5ef505=_0x39b0cd[_0x4963('0xc')];this[_0x4963('0x4')](_0x39b0cd[_0x4963('0x1')],_0x5ef505),this[_0x4963('0xe')][_0x4963('0x8')][_0x4963('0x6')](_0x4963('0x2'))['to'](this[_0x4963('0x9')]),_0x18a71f['attachDomRoot'](_0x5ef505),this[_0x4963('0xa')](_0x4963('0x7'));}[_0x4963('0xf')](){super[_0x4963('0xf')](),this['view'][_0x4963('0xf')]();}}
23
+ const _0x24eb=['init','element','locale','view','document','rootName','focusTracker','editor','getRoot','attachDomRoot','name','editing','bind','destroy','editable','fire','ready'];(function(_0x2c2052,_0x24eb83){const _0x56d875=function(_0x5154e8){while(--_0x5154e8){_0x2c2052['push'](_0x2c2052['shift']());}};_0x56d875(++_0x24eb83);}(_0x24eb,0x11d));const _0x56d8=function(_0x2c2052,_0x24eb83){_0x2c2052=_0x2c2052-0x0;let _0x56d875=_0x24eb[_0x2c2052];return _0x56d875;};import{EditorUI as _0x1947b1}from'ckeditor5/src/ui';import _0x5bdf1e from'./commenteditoruiview';export default class jt extends _0x1947b1{constructor(_0x237efb){super(_0x237efb),this[_0x56d8('0x7')]=new _0x5bdf1e(_0x237efb[_0x56d8('0x6')],_0x237efb['editing'][_0x56d8('0x7')]);}get['element'](){return this[_0x56d8('0x7')][_0x56d8('0x5')];}[_0x56d8('0x4')](){const _0x49f8aa=this[_0x56d8('0xb')][_0x56d8('0xf')][_0x56d8('0x7')],_0x4749ba=this[_0x56d8('0x7')][_0x56d8('0x1')],_0x438828=_0x49f8aa[_0x56d8('0x8')][_0x56d8('0xc')]();_0x4749ba[_0x56d8('0xe')]=_0x438828[_0x56d8('0x9')],this['view']['render']();const _0x2dccb4=_0x4749ba[_0x56d8('0x5')];this['setEditableElement'](_0x4749ba[_0x56d8('0xe')],_0x2dccb4),this['view'][_0x56d8('0x1')][_0x56d8('0x10')]('isFocused')['to'](this[_0x56d8('0xa')]),_0x49f8aa[_0x56d8('0xd')](_0x2dccb4),this[_0x56d8('0x2')](_0x56d8('0x3'));}['destroy'](){super['destroy'](),this[_0x56d8('0x7')][_0x56d8('0x0')]();}}
@@ -1,9 +1,13 @@
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
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/commenteditor/commenteditoruiview
3
7
  */
4
- import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui.js';
5
- import { type Locale } from 'ckeditor5/src/utils.js';
6
- import type { View } from 'ckeditor5/src/engine.js';
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';
7
11
  export default class CommentEditorUIView extends EditorUIView {
8
12
  /**
9
13
  * Collection of the child views located in the main (`.ck-editor__main`)
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fcd=['text','_voiceLabelView','ck-rounded-corners','ck-voice-label','focus','cke-editor__aria-label_','extendTemplate','element','div','ck-editor__main','comment','ck-comment__input','ck-editor__aria-label_','createCollection','editable','ck-reset','ck-editor','main','render','uiLanguage','Comment\x20editor','_createVoiceLabel'];(function(_0x5e4efd,_0x3fcd75){const _0x40dfab=function(_0x4cc4d9){while(--_0x4cc4d9){_0x5e4efd['push'](_0x5e4efd['shift']());}};_0x40dfab(++_0x3fcd75);}(_0x3fcd,0x1f0));const _0x40df=function(_0x5e4efd,_0x3fcd75){_0x5e4efd=_0x5e4efd-0x0;let _0x40dfab=_0x3fcd[_0x5e4efd];return _0x40dfab;};import{InlineEditableUIView as _0x59d270,EditorUIView as _0x51e2f4,LabelView as _0x3486fc}from'ckeditor5/src/ui.js';import{uid as _0x26f9b6}from'ckeditor5/src/utils.js';import{getTranslation as _0x1e094b}from'../../../utils/common-translations.js';export default class Nt extends _0x51e2f4{constructor(_0x3a783c,_0x3962a9){super(_0x3a783c);const _0x52b4ab=_0x26f9b6();this['main']=this[_0x40df('0x1')](),this[_0x40df('0x2')]=new _0x59d270(_0x3a783c,_0x3962a9),this['_voiceLabelView']=this[_0x40df('0x9')](_0x52b4ab,_0x3a783c),this['setTemplate']({'tag':_0x40df('0x12'),'attributes':{'class':[_0x40df('0x3'),_0x40df('0x4'),_0x40df('0xc'),_0x40df('0x15')],'role':_0x40df('0x14'),'dir':_0x3a783c['uiLanguageDirection'],'lang':_0x3a783c[_0x40df('0x7')],'aria-labelledby':_0x40df('0xf')+_0x52b4ab},'children':[this[_0x40df('0xb')],{'tag':_0x40df('0x12'),'attributes':{'class':_0x40df('0x13'),'role':'presentation'},'children':this[_0x40df('0x5')]}]});}[_0x40df('0x6')](){super[_0x40df('0x6')](),this[_0x40df('0x5')]['add'](this[_0x40df('0x2')]);}['focus'](){this['editable'][_0x40df('0x11')][_0x40df('0xe')]();}[_0x40df('0x9')](_0x285e1e,_0x34a7ea){const _0x27477d=new _0x3486fc();return _0x27477d[_0x40df('0xa')]=_0x1e094b(_0x34a7ea,_0x40df('0x8')),_0x27477d[_0x40df('0x10')]({'attributes':{'id':_0x40df('0x0')+_0x285e1e,'class':_0x40df('0xd')}}),_0x27477d;}}
23
+ const _0xaf22=['main','uiLanguageDirection','ck-editor__aria-label_','ck-editor__main','render','editable','uiLanguage','ck-rounded-corners','focus','add','_voiceLabelView','_createVoiceLabel','ck-editor','element','cke-editor__aria-label_','ck-comment__input','div','ck-voice-label','extendTemplate'];(function(_0x152655,_0xaf2265){const _0x153d7b=function(_0x4afd67){while(--_0x4afd67){_0x152655['push'](_0x152655['shift']());}};_0x153d7b(++_0xaf2265);}(_0xaf22,0xbc));const _0x153d=function(_0x152655,_0xaf2265){_0x152655=_0x152655-0x0;let _0x153d7b=_0xaf22[_0x152655];return _0x153d7b;};import{InlineEditableUIView as _0x4102cc,EditorUIView as _0x439290,LabelView as _0x214a65}from'ckeditor5/src/ui';import{uid as _0x5b6784}from'ckeditor5/src/utils';import{getTranslation as _0x5cd5f0}from'../../../utils/common-translations';export default class Nt extends _0x439290{constructor(_0x43828c,_0x51ecec){super(_0x43828c);const _0x1a0b17=_0x5b6784();this[_0x153d('0x2')]=this['createCollection'](),this[_0x153d('0x7')]=new _0x4102cc(_0x43828c,_0x51ecec),this[_0x153d('0xc')]=this[_0x153d('0xd')](_0x1a0b17,_0x43828c),this['setTemplate']({'tag':_0x153d('0x12'),'attributes':{'class':['ck-reset',_0x153d('0xe'),_0x153d('0x9'),_0x153d('0x11')],'role':'comment','dir':_0x43828c[_0x153d('0x3')],'lang':_0x43828c[_0x153d('0x8')],'aria-labelledby':_0x153d('0x10')+_0x1a0b17},'children':[this[_0x153d('0xc')],{'tag':_0x153d('0x12'),'attributes':{'class':_0x153d('0x5'),'role':'presentation'},'children':this['main']}]});}[_0x153d('0x6')](){super['render'](),this['main'][_0x153d('0xb')](this['editable']);}['focus'](){this[_0x153d('0x7')][_0x153d('0xf')][_0x153d('0xa')]();}[_0x153d('0xd')](_0x5789b8,_0x2767fe){const _0x4aa03a=new _0x214a65();return _0x4aa03a['text']=_0x5cd5f0(_0x2767fe,'Comment\x20editor'),_0x4aa03a[_0x153d('0x1')]({'attributes':{'id':_0x153d('0x4')+_0x5789b8,'class':_0x153d('0x0')}}),_0x4aa03a;}}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @module comments/comments/ui/commentthreadcontroller
3
- * @publicApi
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
4
  */
5
- import type { CommentThread } from '../commentsrepository.js';
6
- import type { default as BaseCommentThreadView } from './view/basecommentthreadview.js';
5
+ import type { CommentThread } from '../commentsrepository';
6
+ import type { default as BaseCommentThreadView } from './view/basecommentthreadview';
7
7
  declare const CommentThreadController_base: {
8
- new (): import("ckeditor5/src/utils.js").Observable;
9
- prototype: import("ckeditor5/src/utils.js").Observable;
8
+ new (): import("ckeditor5/src/utils").Observable;
9
+ prototype: import("ckeditor5/src/utils").Observable;
10
10
  };
11
11
  /**
12
12
  * Controller for a comment thread.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x47aa=['resolve','getComment','stopListening','_localUser','view','removeComment','resolveCommentThread','update','submit','submitCommentThread','destroy','remove','isResolved','model','updateComment','addComment','_isAttached','listenTo','reopen'];(function(_0x43f787,_0x47aa80){var _0x4d709f=function(_0x3dead4){while(--_0x3dead4){_0x43f787['push'](_0x43f787['shift']());}};_0x4d709f(++_0x47aa80);}(_0x47aa,0x181));var _0x4d70=function(_0x43f787,_0x47aa80){_0x43f787=_0x43f787-0x0;var _0x4d709f=_0x47aa[_0x43f787];return _0x4d709f;};import{ObservableMixin as _0xc6ead2}from'ckeditor5/src/utils.js';export default class ct extends _0xc6ead2(){constructor(_0xc3f89f,_0x36b1cd){super(),this['model']=_0xc3f89f,this['model'][_0x4d70('0xb')]=!0x0,this[_0x4d70('0x12')]=_0x36b1cd,this[_0x4d70('0xc')](_0x36b1cd,_0x4d70('0x4'),()=>this[_0x4d70('0x3')]()),this[_0x4d70('0xc')](_0x36b1cd,'removeCommentThread',()=>this['remove']()),this[_0x4d70('0xc')](_0x36b1cd,_0x4d70('0x1'),()=>this['resolve']()),this[_0x4d70('0xc')](_0x36b1cd,'reopenCommentThread',()=>this[_0x4d70('0xd')]()),this[_0x4d70('0xc')](_0x36b1cd,_0x4d70('0xa'),(_0x59f24a,_0x1f097a)=>this[_0x4d70('0xa')](_0x1f097a)),this['listenTo'](_0x36b1cd,_0x4d70('0x9'),(_0x38e410,_0x113a47,_0x1f6107)=>this[_0x4d70('0x9')](_0x113a47,_0x1f6107)),this[_0x4d70('0xc')](_0x36b1cd,'removeComment',(_0x1df7b9,_0x1b23a6)=>this['removeComment'](_0x1b23a6));}[_0x4d70('0x3')](){this['model'][_0x4d70('0x3')]();}[_0x4d70('0x6')](){this[_0x4d70('0x8')]['remove']();}[_0x4d70('0xe')](){this['model'][_0x4d70('0x7')]||this[_0x4d70('0x8')][_0x4d70('0xe')]();}['reopen'](){this[_0x4d70('0x8')]['isResolved']&&this['model'][_0x4d70('0xd')]();}[_0x4d70('0xa')](_0x3ebe4e){this[_0x4d70('0x8')][_0x4d70('0xa')]({'content':_0x3ebe4e,'authorId':this[_0x4d70('0x12')][_0x4d70('0x11')]['id']});}[_0x4d70('0x9')](_0x402720,_0x263882){this[_0x4d70('0x8')][_0x4d70('0xf')](_0x402720)[_0x4d70('0x2')]({'content':_0x263882});}[_0x4d70('0x0')](_0xe38619){this[_0x4d70('0x8')][_0x4d70('0xf')](_0xe38619)[_0x4d70('0x6')]();}[_0x4d70('0x5')](){this[_0x4d70('0x10')](),this[_0x4d70('0x8')][_0x4d70('0xb')]=!0x1;}}
23
+ var _0x355e=['_localUser','removeCommentThread','update','model','resolve','view','remove','reopen','listenTo','isResolved','getComment','submitCommentThread','removeComment','destroy','addComment','_isAttached','submit'];(function(_0x11b8e7,_0x355e24){var _0x25f05a=function(_0x1a544d){while(--_0x1a544d){_0x11b8e7['push'](_0x11b8e7['shift']());}};_0x25f05a(++_0x355e24);}(_0x355e,0xae));var _0x25f0=function(_0x11b8e7,_0x355e24){_0x11b8e7=_0x11b8e7-0x0;var _0x25f05a=_0x355e[_0x11b8e7];return _0x25f05a;};import{ObservableMixin as _0x309e45}from'ckeditor5/src/utils';export default class ct extends _0x309e45(){constructor(_0x4364bd,_0x30e816){super(),this[_0x25f0('0x10')]=_0x4364bd,this[_0x25f0('0x10')][_0x25f0('0xb')]=!0x0,this[_0x25f0('0x1')]=_0x30e816,this[_0x25f0('0x4')](_0x30e816,_0x25f0('0x7'),()=>this['submit']()),this['listenTo'](_0x30e816,_0x25f0('0xe'),()=>this[_0x25f0('0x2')]()),this[_0x25f0('0x4')](_0x30e816,'resolveCommentThread',()=>this[_0x25f0('0x0')]()),this[_0x25f0('0x4')](_0x30e816,'reopenCommentThread',()=>this[_0x25f0('0x3')]()),this[_0x25f0('0x4')](_0x30e816,_0x25f0('0xa'),(_0x14fc97,_0x815a6e)=>this['addComment'](_0x815a6e)),this[_0x25f0('0x4')](_0x30e816,'updateComment',(_0x30d6fe,_0x1d8584,_0x3978bb)=>this['updateComment'](_0x1d8584,_0x3978bb)),this[_0x25f0('0x4')](_0x30e816,'removeComment',(_0x562cde,_0x465c60)=>this[_0x25f0('0x8')](_0x465c60));}[_0x25f0('0xc')](){this[_0x25f0('0x10')]['submit']();}['remove'](){this[_0x25f0('0x10')][_0x25f0('0x2')]();}[_0x25f0('0x0')](){this[_0x25f0('0x10')][_0x25f0('0x5')]||this[_0x25f0('0x10')][_0x25f0('0x0')]();}[_0x25f0('0x3')](){this[_0x25f0('0x10')][_0x25f0('0x5')]&&this['model'][_0x25f0('0x3')]();}['addComment'](_0x57e1cc){this[_0x25f0('0x10')][_0x25f0('0xa')]({'content':_0x57e1cc,'authorId':this[_0x25f0('0x1')][_0x25f0('0xd')]['id']});}['updateComment'](_0x4c0df6,_0x2baca8){this['model'][_0x25f0('0x6')](_0x4c0df6)[_0x25f0('0xf')]({'content':_0x2baca8});}[_0x25f0('0x8')](_0xdd44e6){this['model'][_0x25f0('0x6')](_0xdd44e6)[_0x25f0('0x2')]();}[_0x25f0('0x9')](){this['stopListening'](),this[_0x25f0('0x10')]['_isAttached']=!0x1;}}
@@ -1,15 +1,19 @@
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
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/basecommentthreadview
3
7
  * @publicApi
4
8
  */
5
- import { View } from 'ckeditor5/src/ui.js';
6
- import type { Locale } from 'ckeditor5/src/utils.js';
7
- import CommentThreadInputView from './commentthreadinputview.js';
8
- import CommentsListView from './commentslistview.js';
9
- import CommentThreadHeaderView from './commentthreadheaderview.js';
10
- import type { User } from 'ckeditor5-collaboration';
11
- import type { CommentThread } from '../../commentsrepository.js';
12
- import type { CommentThreadConfig } from '../../../config.js';
9
+ import { View } from 'ckeditor5/src/ui';
10
+ import type { Locale } from 'ckeditor5/src/utils';
11
+ import CommentThreadInputView from './commentthreadinputview';
12
+ import CommentsListView from './commentslistview';
13
+ import CommentThreadHeaderView from './commentthreadheaderview';
14
+ import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
15
+ import type { CommentThread } from '../../commentsrepository';
16
+ import type { CommentThreadConfig } from '../../../config';
13
17
  /**
14
18
  * An abstract comment thread view class that should be used as a base for comment thread view implementations.
15
19
  * It provides some behaviors, flags and building blocks to use when creating a custom comment thread view class.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7f08=['assign','Reply...','cancel','showInput','submit','isDirty','removeCommentThread','updateComment','hasDirtyComment','placeholder','commentThreadInputView','isResolved','focus','isActive','addComment','_createCommentThreadInputView','set','delegate','Reply','fire','bind','commentThreadHeaderView','Comment','_localUser','isReadOnly','length','isResolvable','editorConfig','CommentView','removeComment','_model','editorReady','isSubmitted','locale','destroy','disabledSubmit','value','stop','commentInputView','commentsListView','_config','reopenCommentThread','editorDestroyed'];(function(_0x286dd8,_0x7f08c7){const _0x60821d=function(_0x56fc0e){while(--_0x56fc0e){_0x286dd8['push'](_0x286dd8['shift']());}};_0x60821d(++_0x7f08c7);}(_0x7f08,0x10d));const _0x6082=function(_0x286dd8,_0x7f08c7){_0x286dd8=_0x286dd8-0x0;let _0x60821d=_0x7f08[_0x286dd8];return _0x60821d;};import{View as _0x43363f}from'ckeditor5/src/ui.js';import _0x4851bb from'./commentthreadinputview.js';import _0x159d60 from'./commentslistview.js';import _0x17b2a4 from'./commentthreadheaderview.js';import{getTranslation as _0x5c351a}from'../../../utils/common-translations.js';export default class Tt extends _0x43363f{constructor(_0x26cf1d,_0x3696f6,_0x5e3847,_0x3c39e9){super(_0x26cf1d),this[_0x6082('0x5')]('isActive',!0x1),this[_0x6082('0x5')](_0x6082('0x25'),!0x1),this[_0x6082('0x13')]=_0x3696f6,this[_0x6082('0xc')]=_0x5e3847,this['_config']=_0x3c39e9,this[_0x6082('0xa')]=new _0x17b2a4(_0x26cf1d,_0x3696f6),this['commentThreadHeaderView'][_0x6082('0x6')](_0x6082('0x1e'))['to'](this),this['commentsListView']=new _0x159d60(_0x26cf1d,_0x3696f6,Object[_0x6082('0x20')]({'CommentView':this[_0x6082('0x1d')][_0x6082('0x11')]},_0x3c39e9)),this[_0x6082('0x1c')][_0x6082('0x6')](_0x6082('0x12'))['to'](this),this['commentsListView']['delegate'](_0x6082('0x27'))['to'](this),this[_0x6082('0x1c')][_0x6082('0x6')]('resolveCommentThread')['to'](this),this[_0x6082('0x1c')][_0x6082('0x6')](_0x6082('0x14'))['to'](this),this[_0x6082('0x1c')][_0x6082('0x6')](_0x6082('0x1f'))['to'](this),this[_0x6082('0x1c')][_0x6082('0x9')](_0x6082('0x2'))['to'](this),this['set'](_0x6082('0xe'),this['commentsListView'][_0x6082('0xe')]),this[_0x6082('0x9')](_0x6082('0xe'))['to'](this[_0x6082('0x1c')],_0x6082('0xe')),this[_0x6082('0x2a')]=this['_createCommentThreadInputView'](),this['commentThreadInputView'][_0x6082('0x6')](_0x6082('0x14'))['to'](this),this[_0x6082('0x2a')][_0x6082('0x6')](_0x6082('0x1f'))['to'](this),this['on'](_0x6082('0x12'),()=>this[_0x6082('0x1')]()),this[_0x6082('0x9')](_0x6082('0x25'))['to'](this[_0x6082('0x1c')],_0x6082('0x28'),this['commentThreadInputView']['commentInputView'],_0x6082('0x19'),(_0x3b0e22,_0x5a3af2)=>_0x3b0e22||!!_0x5a3af2);}[_0x6082('0x1')](){this['element'][_0x6082('0x1')]();}['destroy'](){this[_0x6082('0x25')]=!0x1,this[_0x6082('0x1c')]['destroy'](),this[_0x6082('0x2a')][_0x6082('0x17')](),super[_0x6082('0x17')]();}[_0x6082('0x4')](){const _0x174838=new _0x4851bb(this['locale'],this[_0x6082('0xc')],this[_0x6082('0x1d')][_0x6082('0x10')]),_0x28e2fa=_0x174838[_0x6082('0x1b')];return _0x174838['bind'](_0x6082('0x23'))['to'](this,_0x6082('0x2'),this['_model'],_0x6082('0xd'),this[_0x6082('0x13')],_0x6082('0x0'),_0x28e2fa,_0x6082('0x19'),(_0x555cc5,_0x353c30,_0xfe2883,_0x476473)=>!!_0x476473||_0xfe2883&&!_0x353c30||_0x555cc5&&!_0x353c30),_0x28e2fa['bind'](_0x6082('0x29'))['to'](this,'length',this['_model'],_0x6082('0xf'),this[_0x6082('0x13')],_0x6082('0x0'),(_0x9051da,_0xd461ac,_0x4e6e7a)=>{let _0x34060e;return _0x34060e=_0x4e6e7a&&_0xd461ac?'Reply\x20to\x20reopen\x20discussion...':_0x9051da?_0x6082('0x21'):'Write\x20a\x20comment...',_0x5c351a(this[_0x6082('0x16')],_0x34060e);}),_0x28e2fa[_0x6082('0x9')]('submitLabel')['to'](this,'length',_0x523cf5=>_0x5c351a(this['locale'],_0x523cf5?_0x6082('0x7'):_0x6082('0xb'))),_0x28e2fa['on'](_0x6082('0x24'),(_0x294fdb,_0x402f3d)=>{this['fire'](_0x6082('0x3'),_0x402f3d),this['_model']['isResolved']&&this[_0x6082('0x13')]['isResolvable']&&this[_0x6082('0x8')](_0x6082('0x1e'),this[_0x6082('0x13')]['id']),this['_model'][_0x6082('0x15')]||this[_0x6082('0x8')]('submitCommentThread');}),_0x28e2fa['on'](_0x6082('0x22'),()=>{this[_0x6082('0x1')]();}),_0x28e2fa[_0x6082('0x9')](_0x6082('0x18'))['to'](this[_0x6082('0x13')],_0x6082('0xd')),_0x28e2fa['on'](_0x6082('0x22'),_0x547797=>{0x0==this[_0x6082('0xe')]&&(this['fire'](_0x6082('0x26')),_0x547797[_0x6082('0x1a')]());}),this['on']('change:isActive',(_0x21d6cd,_0x68ff79,_0x4f215e)=>{_0x4f215e||this['length']||_0x28e2fa[_0x6082('0x19')]||this[_0x6082('0x8')](_0x6082('0x26'));}),_0x174838;}}
23
+ const _0x1342=['length','Reply','removeCommentThread','isActive','fire','hasDirtyComment','isReadOnly','addComment','Write\x20a\x20comment...','Reply\x20to\x20reopen\x20discussion...','locale','Comment','_config','isDirty','reopenCommentThread','editorDestroyed','placeholder','submit','canComment','destroy','commentInputView','focus','showInput','commentThreadHeaderView','editorReady','submitLabel','isSubmitted','submitCommentThread','delegate','isResolved','commentsListView','CommentView','_model','cancel','commentThreadInputView','isResolvable','bind','value'];(function(_0x593225,_0x1342b5){const _0x167ebd=function(_0x5c0779){while(--_0x5c0779){_0x593225['push'](_0x593225['shift']());}};_0x167ebd(++_0x1342b5);}(_0x1342,0x1db));const _0x167e=function(_0x593225,_0x1342b5){_0x593225=_0x593225-0x0;let _0x167ebd=_0x1342[_0x593225];return _0x167ebd;};import{View as _0x58be41}from'ckeditor5/src/ui';import _0x410582 from'./commentthreadinputview';import _0x142b8f from'./commentslistview';import _0x6ea6cf from'./commentthreadheaderview';import{getTranslation as _0x1a0146}from'../../../utils/common-translations';export default class Tt extends _0x58be41{constructor(_0x5c4bca,_0x5da229,_0x311280,_0xae52bb){super(_0x5c4bca),this['set']('isActive',!0x1),this['set'](_0x167e('0x20'),!0x1),this['_model']=_0x5da229,this['_localUser']=_0x311280,this['_config']=_0xae52bb,this['commentThreadHeaderView']=new _0x6ea6cf(_0x5c4bca,_0x5da229),this[_0x167e('0x4')][_0x167e('0x9')](_0x167e('0x21'))['to'](this),this[_0x167e('0xb')]=new _0x142b8f(_0x5c4bca,_0x5da229,Object['assign']({'CommentView':this[_0x167e('0x1f')][_0x167e('0xc')]},_0xae52bb)),this[_0x167e('0xb')][_0x167e('0x9')]('removeComment')['to'](this),this[_0x167e('0xb')]['delegate']('updateComment')['to'](this),this[_0x167e('0xb')][_0x167e('0x9')]('resolveCommentThread')['to'](this),this[_0x167e('0xb')][_0x167e('0x9')]('editorReady')['to'](this),this[_0x167e('0xb')]['delegate'](_0x167e('0x22'))['to'](this),this[_0x167e('0xb')][_0x167e('0x11')](_0x167e('0x16'))['to'](this),this['set'](_0x167e('0x13'),this[_0x167e('0xb')][_0x167e('0x13')]),this[_0x167e('0x11')](_0x167e('0x13'))['to'](this['commentsListView'],_0x167e('0x13')),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this[_0x167e('0xf')][_0x167e('0x9')](_0x167e('0x5'))['to'](this),this[_0x167e('0xf')][_0x167e('0x9')](_0x167e('0x22'))['to'](this),this['on']('removeComment',()=>this[_0x167e('0x2')]()),this[_0x167e('0x11')](_0x167e('0x20'))['to'](this[_0x167e('0xb')],_0x167e('0x18'),this[_0x167e('0xf')][_0x167e('0x1')],_0x167e('0x12'),(_0x300cc4,_0x269dae)=>_0x300cc4||!!_0x269dae);}[_0x167e('0x2')](){this['element'][_0x167e('0x2')]();}[_0x167e('0x0')](){this['isDirty']=!0x1,this[_0x167e('0xb')][_0x167e('0x0')](),this[_0x167e('0xf')][_0x167e('0x0')](),super[_0x167e('0x0')]();}['_createCommentThreadInputView'](){const _0x453104=new _0x410582(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x497d8e=_0x453104[_0x167e('0x1')];return _0x453104[_0x167e('0x11')](_0x167e('0x3'))['to'](this,_0x167e('0x16'),this[_0x167e('0xd')],_0x167e('0x19'),this[_0x167e('0xd')],_0x167e('0x25'),this[_0x167e('0xd')],_0x167e('0xa'),_0x497d8e,_0x167e('0x12'),(_0x23a6bd,_0x525d17,_0x3a2f97,_0x1e46a4,_0x1106c3)=>!!_0x1106c3||_0x1e46a4&&_0x3a2f97&&!_0x525d17||_0x23a6bd&&_0x3a2f97&&!_0x525d17),_0x497d8e[_0x167e('0x11')](_0x167e('0x23'))['to'](this,_0x167e('0x13'),this[_0x167e('0xd')],_0x167e('0x10'),this[_0x167e('0xd')],_0x167e('0xa'),(_0x59538f,_0x18b7aa,_0x75f2ba)=>{let _0x2a2296;return _0x2a2296=_0x75f2ba&&_0x18b7aa?_0x167e('0x1c'):_0x59538f?'Reply...':_0x167e('0x1b'),_0x1a0146(this[_0x167e('0x1d')],_0x2a2296);}),_0x497d8e[_0x167e('0x11')](_0x167e('0x6'))['to'](this,_0x167e('0x13'),_0x430b9a=>_0x1a0146(this[_0x167e('0x1d')],_0x430b9a?_0x167e('0x14'):_0x167e('0x1e'))),_0x497d8e['on'](_0x167e('0x24'),(_0x50613e,_0x7ccf12)=>{this[_0x167e('0x17')](_0x167e('0x1a'),_0x7ccf12),this['_model'][_0x167e('0xa')]&&this[_0x167e('0xd')][_0x167e('0x10')]&&this[_0x167e('0x17')](_0x167e('0x21'),this[_0x167e('0xd')]['id']),this[_0x167e('0xd')][_0x167e('0x7')]||this[_0x167e('0x17')](_0x167e('0x8'));}),_0x497d8e['on'](_0x167e('0xe'),()=>{this[_0x167e('0x2')]();}),_0x497d8e[_0x167e('0x11')]('disabledSubmit')['to'](this[_0x167e('0xd')],'isReadOnly'),_0x497d8e['on'](_0x167e('0xe'),_0xfc2afe=>{0x0==this[_0x167e('0x13')]&&(this[_0x167e('0x17')](_0x167e('0x15')),_0xfc2afe['stop']());}),this['on']('change:isActive',(_0x576289,_0x44ae9e,_0x95ca4f)=>{_0x95ca4f||this[_0x167e('0x13')]||_0x497d8e[_0x167e('0x12')]||this[_0x167e('0x17')]('removeCommentThread');}),_0x453104;}}
@@ -1,11 +1,15 @@
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
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/basecommentview
3
7
  * @publicApi
4
8
  */
5
- import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
6
- import type { Locale } from 'ckeditor5/src/utils.js';
7
- import type { Comment } from '../../commentsrepository.js';
8
- import type { CommentViewConfig } from '../../../config.js';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
+ import type { Locale } from 'ckeditor5/src/utils';
11
+ import type { Comment } from '../../commentsrepository';
12
+ import type { CommentViewConfig } from '../../../config';
9
13
  /**
10
14
  * An abstract comment view class that should be used as a base for comment view implementations.
11
15
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x264d=['submit','switchToDisplayMode','isCollapsed','add','visibleView','maxCommentCharsWhenCollapsed','isReadOnly','collapse','once','set','content','editorReady','destroy','_createCommentInputView','fire','_createCommentContentView','_config','bind','focus','Save','expand','element','remove','get','createEditor','submitLabel','editorDestroyed','isSystemComment','isEditMode','disabledSubmit','_model','delegate','locale','editorConfig'];(function(_0x505f1e,_0x264d95){const _0xa9f4bd=function(_0x2ccda1){while(--_0x2ccda1){_0x505f1e['push'](_0x505f1e['shift']());}};_0xa9f4bd(++_0x264d95);}(_0x264d,0x1b5));const _0xa9f4=function(_0x505f1e,_0x264d95){_0x505f1e=_0x505f1e-0x0;let _0xa9f4bd=_0x264d[_0x505f1e];return _0xa9f4bd;};import{View as _0x187486}from'ckeditor5/src/ui.js';import{trimHtml as _0x178e8d}from'ckeditor5-collaboration';import _0x513c08 from'./commentcontentview.js';import _0x6ad2c6 from'./commentinputview.js';import{getTranslation as _0x1bd162}from'../../../utils/common-translations.js';export default class Yt extends _0x187486{constructor(_0x203ced,_0x4dbf55,_0x1ba9fa){super(_0x203ced),this[_0xa9f4('0x1')]=_0x4dbf55,this[_0xa9f4('0x15')]=_0x1ba9fa,this[_0xa9f4('0x20')]=!!this['_config'][_0xa9f4('0x20')],this[_0xa9f4('0xe')](_0xa9f4('0x21'),!0x1),this[_0xa9f4('0xe')](_0xa9f4('0x7'),!0x0),this[_0xa9f4('0x9')]=this['createCollection'](),this['visibleView'][_0xa9f4('0x8')](this['_createCommentContentView']());}[_0xa9f4('0x19')](){this[_0xa9f4('0x7')]=!0x1;}[_0xa9f4('0xc')](){this[_0xa9f4('0x21')]||(this[_0xa9f4('0x7')]=!0x0);}['focus'](){this[_0xa9f4('0x1a')][_0xa9f4('0x17')]();}async[_0xa9f4('0x11')](){await this[_0xa9f4('0x9')][_0xa9f4('0x1c')](0x0)[_0xa9f4('0x11')](),super[_0xa9f4('0x11')]();}['switchToEditMode'](){this[_0xa9f4('0x21')]||(this[_0xa9f4('0x21')]=!0x0,this[_0xa9f4('0x9')][_0xa9f4('0x1b')](0x0)[_0xa9f4('0x11')](),this[_0xa9f4('0x9')]['add'](this[_0xa9f4('0x12')]()));}[_0xa9f4('0x6')](){this[_0xa9f4('0x21')]&&(this['isEditMode']=!0x1,this[_0xa9f4('0x9')][_0xa9f4('0x1b')](0x0)[_0xa9f4('0x11')](),this[_0xa9f4('0x9')][_0xa9f4('0x8')](this[_0xa9f4('0x14')]()));}[_0xa9f4('0x14')](){const _0x5881b6=new _0x513c08(this[_0xa9f4('0x3')]);return _0x5881b6['bind'](_0xa9f4('0xf'))['to'](this[_0xa9f4('0x1')],'content',this,_0xa9f4('0x7'),(_0xa0037d,_0x2b7215)=>_0x2b7215?_0x178e8d(_0xa0037d,{'limit':this[_0xa9f4('0x15')][_0xa9f4('0xa')]}):_0xa0037d),_0x5881b6;}[_0xa9f4('0x12')](){this[_0xa9f4('0x15')]['editorConfig']||(this['_config'][_0xa9f4('0x4')]={}),this[_0xa9f4('0x15')][_0xa9f4('0x4')]['initialData']=this[_0xa9f4('0x1')][_0xa9f4('0xf')];const _0x37072b=new _0x6ad2c6(this['locale'],this['_config']['editorConfig']);return _0x37072b['value']=this[_0xa9f4('0x1')][_0xa9f4('0xf')],_0x37072b[_0xa9f4('0x16')](_0xa9f4('0x0'))['to'](this[_0xa9f4('0x1')],_0xa9f4('0xb')),_0x37072b[_0xa9f4('0x1e')]=_0x1bd162(this[_0xa9f4('0x3')],_0xa9f4('0x18')),_0x37072b['on'](_0xa9f4('0x5'),(_0x2bb7f3,_0xb57855)=>{this[_0xa9f4('0x13')]('updateComment',this[_0xa9f4('0x1')]['id'],_0xb57855),this[_0xa9f4('0x6')](),this[_0xa9f4('0x17')]();}),_0x37072b['on']('cancel',()=>{this[_0xa9f4('0x6')](),this[_0xa9f4('0x17')]();}),_0x37072b[_0xa9f4('0xd')](_0xa9f4('0x10'),()=>{_0x37072b[_0xa9f4('0x17')]();}),_0x37072b[_0xa9f4('0x1d')](),_0x37072b[_0xa9f4('0x2')](_0xa9f4('0x10'))['to'](this),_0x37072b[_0xa9f4('0x2')](_0xa9f4('0x1f'))['to'](this),_0x37072b;}}
23
+ const _0x4395=['switchToEditMode','_model','bind','isEditMode','switchToDisplayMode','remove','locale','_createCommentInputView','content','set','createCollection','editorReady','updateComment','_createCommentContentView','delegate','expand','isSystemComment','Save','get','destroy','element','visibleView','add','editorDestroyed','isCollapsed','value','createEditor','_config','editorConfig','focus','maxCommentCharsWhenCollapsed'];(function(_0x2c6d5,_0x43957e){const _0x5f126e=function(_0x32b1ef){while(--_0x32b1ef){_0x2c6d5['push'](_0x2c6d5['shift']());}};_0x5f126e(++_0x43957e);}(_0x4395,0x64));const _0x5f12=function(_0x2c6d5,_0x43957e){_0x2c6d5=_0x2c6d5-0x0;let _0x5f126e=_0x4395[_0x2c6d5];return _0x5f126e;};import{View as _0x4d15e2}from'ckeditor5/src/ui';import{trimHtml as _0x10872b}from'ckeditor5-collaboration/src/collaboration-core';import _0x4f733e from'./commentcontentview';import _0x299d7b from'./commentinputview';import{getTranslation as _0x5249d7}from'../../../utils/common-translations';export default class Yt extends _0x4d15e2{constructor(_0x1974a4,_0x5a13a,_0x51650d){super(_0x1974a4),this[_0x5f12('0x19')]=_0x5a13a,this[_0x5f12('0x14')]=_0x51650d,this['isSystemComment']=!!this['_config'][_0x5f12('0x9')],this[_0x5f12('0x2')](_0x5f12('0x1b'),!0x1),this['set'](_0x5f12('0x11'),!0x0),this[_0x5f12('0xe')]=this[_0x5f12('0x3')](),this['visibleView'][_0x5f12('0xf')](this['_createCommentContentView']());}[_0x5f12('0x8')](){this[_0x5f12('0x11')]=!0x1;}['collapse'](){this[_0x5f12('0x1b')]||(this['isCollapsed']=!0x0);}[_0x5f12('0x16')](){this[_0x5f12('0xd')][_0x5f12('0x16')]();}async[_0x5f12('0xc')](){await this[_0x5f12('0xe')][_0x5f12('0xb')](0x0)[_0x5f12('0xc')](),super[_0x5f12('0xc')]();}[_0x5f12('0x18')](){this[_0x5f12('0x1b')]||(this[_0x5f12('0x1b')]=!0x0,this['visibleView'][_0x5f12('0x1d')](0x0)[_0x5f12('0xc')](),this[_0x5f12('0xe')][_0x5f12('0xf')](this[_0x5f12('0x0')]()));}[_0x5f12('0x1c')](){this['isEditMode']&&(this[_0x5f12('0x1b')]=!0x1,this[_0x5f12('0xe')]['remove'](0x0)[_0x5f12('0xc')](),this[_0x5f12('0xe')][_0x5f12('0xf')](this[_0x5f12('0x6')]()));}[_0x5f12('0x6')](){const _0x1b1eb8=new _0x4f733e(this[_0x5f12('0x1e')]);return _0x1b1eb8['bind'](_0x5f12('0x1'))['to'](this[_0x5f12('0x19')],_0x5f12('0x1'),this,_0x5f12('0x11'),(_0x3b9f4c,_0x156300)=>_0x156300?_0x10872b(_0x3b9f4c,{'limit':this[_0x5f12('0x14')][_0x5f12('0x17')]}):_0x3b9f4c),_0x1b1eb8;}[_0x5f12('0x0')](){this[_0x5f12('0x14')][_0x5f12('0x15')]||(this['_config']['editorConfig']={}),this[_0x5f12('0x14')]['editorConfig']['initialData']=this[_0x5f12('0x19')][_0x5f12('0x1')];const _0x13deaf=new _0x299d7b(this[_0x5f12('0x1e')],this[_0x5f12('0x14')]['editorConfig']);return _0x13deaf[_0x5f12('0x12')]=this[_0x5f12('0x19')][_0x5f12('0x1')],_0x13deaf[_0x5f12('0x1a')]('disabledSubmit')['to'](this[_0x5f12('0x19')],'isReadOnly'),_0x13deaf['submitLabel']=_0x5249d7(this[_0x5f12('0x1e')],_0x5f12('0xa')),_0x13deaf['on']('submit',(_0x26f630,_0xe67eab)=>{this['fire'](_0x5f12('0x5'),this[_0x5f12('0x19')]['id'],_0xe67eab),this[_0x5f12('0x1c')](),this[_0x5f12('0x16')]();}),_0x13deaf['on']('cancel',()=>{this['switchToDisplayMode'](),this[_0x5f12('0x16')]();}),_0x13deaf['once'](_0x5f12('0x4'),()=>{_0x13deaf[_0x5f12('0x16')]();}),_0x13deaf[_0x5f12('0x13')](),_0x13deaf[_0x5f12('0x7')](_0x5f12('0x4'))['to'](this),_0x13deaf[_0x5f12('0x7')](_0x5f12('0x10'))['to'](this),_0x13deaf;}}
@@ -1,8 +1,12 @@
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
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/collapsedcommentsview
3
7
  */
4
- import { View } from 'ckeditor5/src/ui.js';
5
- import type { Locale } from 'ckeditor5/src/utils.js';
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
6
10
  export default class CollapsedCommentsView extends View {
7
11
  count: number | undefined;
8
12
  constructor(locale: Locale);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4379=['setTemplate','bindTemplate','count','set','NUMBER_OF_COMMENTS','ck-thread__comment-count'];(function(_0x329075,_0x4379e1){const _0x8d721a=function(_0x5655f0){while(--_0x5655f0){_0x329075['push'](_0x329075['shift']());}};_0x8d721a(++_0x4379e1);}(_0x4379,0x138));const _0x8d72=function(_0x329075,_0x4379e1){_0x329075=_0x329075-0x0;let _0x8d721a=_0x4379[_0x329075];return _0x8d721a;};import{View as _0x17b6cb}from'ckeditor5/src/ui.js';import{getTranslation as _0x1ee972}from'../../../utils/common-translations.js';export default class Zt extends _0x17b6cb{constructor(_0x5a6393){super(_0x5a6393);const _0x1db0a0=this[_0x8d72('0x1')];this[_0x8d72('0x3')](_0x8d72('0x2'),void 0x0),this[_0x8d72('0x0')]({'tag':'li','attributes':{'class':_0x8d72('0x5')},'children':[{'text':_0x1db0a0['to']('count',_0x4f8201=>_0x1ee972(_0x5a6393,_0x8d72('0x4'),_0x4f8201))}]});}}
23
+ const _0x5096=['ck-thread__comment-count','count','bindTemplate','set','NUMBER_OF_COMMENTS'];(function(_0x58abd4,_0x509633){const _0x50afe3=function(_0x18159d){while(--_0x18159d){_0x58abd4['push'](_0x58abd4['shift']());}};_0x50afe3(++_0x509633);}(_0x5096,0x1d8));const _0x50af=function(_0x58abd4,_0x509633){_0x58abd4=_0x58abd4-0x0;let _0x50afe3=_0x5096[_0x58abd4];return _0x50afe3;};import{View as _0x3c8c4c}from'ckeditor5/src/ui';import{getTranslation as _0x5ac8ca}from'../../../utils/common-translations';export default class Zt extends _0x3c8c4c{constructor(_0x465f1a){super(_0x465f1a);const _0x472aa7=this[_0x50af('0x0')];this[_0x50af('0x1')]('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x50af('0x3')},'children':[{'text':_0x472aa7['to'](_0x50af('0x4'),_0x359fcb=>_0x5ac8ca(_0x465f1a,_0x50af('0x2'),_0x359fcb))}]});}}
@@ -1,8 +1,12 @@
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
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentcontentview
3
7
  */
4
- import { View } from 'ckeditor5/src/ui.js';
5
- import type { Locale } from 'ckeditor5/src/utils.js';
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
6
10
  export default class CommentContentView extends View {
7
11
  content: string;
8
12
  constructor(locale: Locale);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3990=['element','setTemplate','div','content','set','render'];(function(_0x4faa1e,_0x399036){var _0x526331=function(_0x583847){while(--_0x583847){_0x4faa1e['push'](_0x4faa1e['shift']());}};_0x526331(++_0x399036);}(_0x3990,0x1b2));var _0x5263=function(_0x4faa1e,_0x399036){_0x4faa1e=_0x4faa1e-0x0;var _0x526331=_0x3990[_0x4faa1e];return _0x526331;};import{View as _0x25bf05}from'ckeditor5/src/ui.js';export default class Ut extends _0x25bf05{constructor(_0x31a186){super(_0x31a186),this[_0x5263('0x2')]('content',''),this[_0x5263('0x5')]({'tag':_0x5263('0x0'),'attributes':{'class':['ck-comment__content','ck-annotation__content']}});}[_0x5263('0x3')](){super[_0x5263('0x3')](),this['on']('change:content',(_0x57f9c2,_0x5de9a0,_0x536a8f)=>{this[_0x5263('0x4')]['innerHTML']=_0x536a8f;}),this[_0x5263('0x4')]['innerHTML']=this[_0x5263('0x1')];}}
23
+ var _0x5497=['set','ck-comment__content','innerHTML','element','content','setTemplate','change:content','ck-annotation__content'];(function(_0x1e8e1e,_0x54973e){var _0x5e9198=function(_0x26e303){while(--_0x26e303){_0x1e8e1e['push'](_0x1e8e1e['shift']());}};_0x5e9198(++_0x54973e);}(_0x5497,0xe4));var _0x5e91=function(_0x1e8e1e,_0x54973e){_0x1e8e1e=_0x1e8e1e-0x0;var _0x5e9198=_0x5497[_0x1e8e1e];return _0x5e9198;};import{View as _0x54369c}from'ckeditor5/src/ui';export default class Ut extends _0x54369c{constructor(_0x33529f){super(_0x33529f),this[_0x5e91('0x4')](_0x5e91('0x0'),''),this[_0x5e91('0x1')]({'tag':'div','attributes':{'class':[_0x5e91('0x5'),_0x5e91('0x3')]}});}['render'](){super['render'](),this['on'](_0x5e91('0x2'),(_0x3c66c7,_0x524936,_0x4bff60)=>{this['element'][_0x5e91('0x6')]=_0x4bff60;}),this[_0x5e91('0x7')][_0x5e91('0x6')]=this[_0x5e91('0x0')];}}
@@ -1,10 +1,14 @@
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
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentinputview
3
7
  */
4
- import { View, ButtonView } from 'ckeditor5/src/ui.js';
5
- import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
6
- import { type EditorConfig, type DataApi } from 'ckeditor5/src/core.js';
7
- import CommentEditor from '../commenteditor/commenteditor.js';
8
+ import { View, ButtonView } from 'ckeditor5/src/ui';
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
10
+ import { type EditorConfig, type DataApi } from 'ckeditor5/src/core';
11
+ import CommentEditor from '../commenteditor/commenteditor';
8
12
  /**
9
13
  * A view for the comment input section that includes a comment editor.
10
14
  */