@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
@@ -1,119 +1,119 @@
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/view/basecommentthreadview
7
- * @publicApi
8
- */
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';
17
- /**
18
- * An abstract comment thread view class that should be used as a base for comment thread view implementations.
19
- * It provides some behaviors, flags and building blocks to use when creating a custom comment thread view class.
20
- *
21
- * For the usage examples check the {@glink features/collaboration/annotations/annotations-custom-view Custom annotation view} guide.
22
- */
23
- export default class BaseCommentThreadView extends View {
24
- locale: Locale;
25
- /**
26
- * Informs whether the comment thread view is in active state ("highlighted").
27
- * A comment thread view is in this state when it is focused or was activated by the user in any other way.
28
- *
29
- * @observable
30
- */
31
- isActive: boolean;
32
- /**
33
- * Informs whether the comment thread view is in unlinked state.
34
- * A comment thread view is in this state when its corresponding target has been removed from the content.
35
- *
36
- * @observable
37
- */
38
- isUnlinked: boolean;
39
- /**
40
- * Informs whether the comment thread has any changes that have not been saved.
41
- *
42
- * @observable
43
- */
44
- isDirty: boolean;
45
- /**
46
- * The number of comments.
47
- *
48
- * @observable
49
- */
50
- readonly length: number;
51
- /**
52
- * The list of comment views. It should be used as a part of the view template.
53
- *
54
- * @readonly
55
- */
56
- readonly commentsListView: CommentsListView;
57
- /**
58
- * The comment thread header. It should be used as a part of the view template.
59
- * This header is used only for resolved comment threads.
60
- *
61
- * @readonly
62
- */
63
- readonly commentThreadHeaderView: CommentThreadHeaderView;
64
- /**
65
- * The comment input area view. It should be used as a part of the view template.
66
- *
67
- * @readonly
68
- */
69
- readonly commentThreadInputView: CommentThreadInputView;
70
- /**
71
- * @param locale The localization service instance.
72
- * @param model The model on which the view will base.
73
- * @param localUser The current local user.
74
- * @param config Additional view configuration.
75
- */
76
- constructor(locale: Locale, model: CommentThread, localUser: User, config: CommentThreadConfig);
77
- /**
78
- * Focuses the view.
79
- */
80
- focus(): void;
81
- /**
82
- * @inheritDoc
83
- */
84
- destroy(): Promise<void>;
85
- }
86
- /**
87
- * Fired when a user created a first comment in the comment thread. Then the comment thread is submitted and saved.
88
- *
89
- * @eventName ~BaseCommentThreadView#submitCommentThread
90
- */
91
- export type UISubmitCommentThreadEvent = {
92
- name: 'submitCommentThread';
93
- args: [];
94
- };
95
- /**
96
- * Fired when a user performed an action that should lead to removing the comment thread.
97
- *
98
- * This event is not fired by default by any component created by `BaseCommentThreadView`.
99
- * If you create a view class extending `BaseCommentThreadView`, you should provide
100
- * a UI element that will fire this event.
101
- *
102
- * This event is fired by default when an empty comment thread view (with no comments)
103
- * loses focus.
104
- *
105
- * @eventName ~BaseCommentThreadView#removeCommentThread
106
- */
107
- export type UIRemoveCommentThreadEvent = {
108
- name: 'removeCommentThread';
109
- args: [];
110
- };
111
- /**
112
- * Fired when a user performed an action that should lead to resolve the comment thread.
113
- *
114
- * @eventName ~BaseCommentThreadView#resolveCommentThread
115
- */
116
- export type UIResolveCommentThreadEvent = {
117
- name: 'resolveCommentThread';
118
- args: [id: string];
119
- };
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/view/basecommentthreadview
7
+ * @publicApi
8
+ */
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';
17
+ /**
18
+ * An abstract comment thread view class that should be used as a base for comment thread view implementations.
19
+ * It provides some behaviors, flags and building blocks to use when creating a custom comment thread view class.
20
+ *
21
+ * For the usage examples check the {@glink features/collaboration/annotations/annotations-custom-view Custom annotation view} guide.
22
+ */
23
+ export default class BaseCommentThreadView extends View {
24
+ locale: Locale;
25
+ /**
26
+ * Informs whether the comment thread view is in active state ("highlighted").
27
+ * A comment thread view is in this state when it is focused or was activated by the user in any other way.
28
+ *
29
+ * @observable
30
+ */
31
+ isActive: boolean;
32
+ /**
33
+ * Informs whether the comment thread view is in unlinked state.
34
+ * A comment thread view is in this state when its corresponding target has been removed from the content.
35
+ *
36
+ * @observable
37
+ */
38
+ isUnlinked: boolean;
39
+ /**
40
+ * Informs whether the comment thread has any changes that have not been saved.
41
+ *
42
+ * @observable
43
+ */
44
+ isDirty: boolean;
45
+ /**
46
+ * The number of comments.
47
+ *
48
+ * @observable
49
+ */
50
+ readonly length: number;
51
+ /**
52
+ * The list of comment views. It should be used as a part of the view template.
53
+ *
54
+ * @readonly
55
+ */
56
+ readonly commentsListView: CommentsListView;
57
+ /**
58
+ * The comment thread header. It should be used as a part of the view template.
59
+ * This header is used only for resolved comment threads.
60
+ *
61
+ * @readonly
62
+ */
63
+ readonly commentThreadHeaderView: CommentThreadHeaderView;
64
+ /**
65
+ * The comment input area view. It should be used as a part of the view template.
66
+ *
67
+ * @readonly
68
+ */
69
+ readonly commentThreadInputView: CommentThreadInputView;
70
+ /**
71
+ * @param locale The localization service instance.
72
+ * @param model The model on which the view will base.
73
+ * @param localUser The current local user.
74
+ * @param config Additional view configuration.
75
+ */
76
+ constructor(locale: Locale, model: CommentThread, localUser: User, config: CommentThreadConfig);
77
+ /**
78
+ * Focuses the view.
79
+ */
80
+ focus(): void;
81
+ /**
82
+ * @inheritDoc
83
+ */
84
+ destroy(): Promise<void>;
85
+ }
86
+ /**
87
+ * Fired when a user created a first comment in the comment thread. Then the comment thread is submitted and saved.
88
+ *
89
+ * @eventName ~BaseCommentThreadView#submitCommentThread
90
+ */
91
+ export type UISubmitCommentThreadEvent = {
92
+ name: 'submitCommentThread';
93
+ args: [];
94
+ };
95
+ /**
96
+ * Fired when a user performed an action that should lead to removing the comment thread.
97
+ *
98
+ * This event is not fired by default by any component created by `BaseCommentThreadView`.
99
+ * If you create a view class extending `BaseCommentThreadView`, you should provide
100
+ * a UI element that will fire this event.
101
+ *
102
+ * This event is fired by default when an empty comment thread view (with no comments)
103
+ * loses focus.
104
+ *
105
+ * @eventName ~BaseCommentThreadView#removeCommentThread
106
+ */
107
+ export type UIRemoveCommentThreadEvent = {
108
+ name: 'removeCommentThread';
109
+ args: [];
110
+ };
111
+ /**
112
+ * Fired when a user performed an action that should lead to resolve the comment thread.
113
+ *
114
+ * @eventName ~BaseCommentThreadView#resolveCommentThread
115
+ */
116
+ export type UIResolveCommentThreadEvent = {
117
+ name: 'resolveCommentThread';
118
+ args: [id: string];
119
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b6c=['_createCommentThreadInputView','Comment','showInput','resolveCommentThread','isActive','removeCommentThread','focus','editorConfig','listenTo','reopenCommentThread','addComment','bind','placeholder','length','stop','locale','editorReady','isReadOnly','canComment','Reply','fire','unlinkedAt','submitLabel','_config','Write\x20a\x20comment...','CommentView','isResolvable','Reply\x20to\x20reopen\x20discussion...','hasDirtyComment','set','_localUser','commentThreadHeaderView','value','editorDestroyed','_model','disabledSubmit','commentThreadInputView','element','delegate','commentsListView','archivedAt','change:isActive','isDirty','commentInputView','removeComment','destroy','cancel','isUnlinked'];(function(_0xee3074,_0x1b6cb9){const _0x5c2374=function(_0xdbab66){while(--_0xdbab66){_0xee3074['push'](_0xee3074['shift']());}};_0x5c2374(++_0x1b6cb9);}(_0x1b6c,0xa2));const _0x5c23=function(_0xee3074,_0x1b6cb9){_0xee3074=_0xee3074-0x0;let _0x5c2374=_0x1b6c[_0xee3074];return _0x5c2374;};import{View as _0x4044a1}from'ckeditor5/src/ui';import _0x47a6fe from'./commentthreadinputview';import _0x19ac68 from'./commentslistview';import _0x1bf516 from'./commentthreadheaderview';import{getTranslation as _0x3a447b}from'../../../utils/common-translations';export default class Tt extends _0x4044a1{constructor(_0x303ac1,_0x10e5c0,_0x53e414,_0x42f783){super(_0x303ac1),this[_0x5c23('0xb')](_0x5c23('0x22'),!0x1),this[_0x5c23('0xb')]('isDirty',!0x1),this['_model']=_0x10e5c0,this['_localUser']=_0x53e414,this[_0x5c23('0x5')]=_0x42f783,this[_0x5c23('0xd')]=new _0x1bf516(_0x303ac1,_0x10e5c0),this['commentThreadHeaderView']['delegate'](_0x5c23('0x27'))['to'](this),this[_0x5c23('0x26')](this,_0x5c23('0x27'),()=>{this[_0x5c23('0x24')]();}),this[_0x5c23('0x15')]=new _0x19ac68(_0x303ac1,_0x10e5c0,Object['assign']({'CommentView':this[_0x5c23('0x5')][_0x5c23('0x7')]},_0x42f783)),this['commentsListView'][_0x5c23('0x14')](_0x5c23('0x1a'))['to'](this),this['commentsListView'][_0x5c23('0x14')]('updateComment')['to'](this),this['commentsListView'][_0x5c23('0x14')](_0x5c23('0x21'))['to'](this),this[_0x5c23('0x15')][_0x5c23('0x14')](_0x5c23('0x2e'))['to'](this),this['commentsListView']['delegate'](_0x5c23('0xf'))['to'](this),this[_0x5c23('0x15')][_0x5c23('0x29')](_0x5c23('0x22'))['to'](this),this[_0x5c23('0x26')](this,_0x5c23('0x21'),()=>{this[_0x5c23('0x24')]();}),this[_0x5c23('0xb')](_0x5c23('0x2b'),this[_0x5c23('0x15')]['length']),this[_0x5c23('0x29')]('length')['to'](this[_0x5c23('0x15')],_0x5c23('0x2b')),this[_0x5c23('0x12')]=this[_0x5c23('0x1e')](),this[_0x5c23('0x12')]['delegate']('editorReady')['to'](this),this['commentThreadInputView'][_0x5c23('0x14')](_0x5c23('0xf'))['to'](this),this['on']('removeComment',()=>this[_0x5c23('0x24')]()),this[_0x5c23('0x29')]('isDirty')['to'](this[_0x5c23('0x15')],_0x5c23('0xa'),this['commentThreadInputView'][_0x5c23('0x19')],_0x5c23('0xe'),(_0x3e7135,_0x2a95e8)=>_0x3e7135||!!_0x2a95e8),this[_0x5c23('0x29')](_0x5c23('0x1d'))['to'](_0x10e5c0,_0x5c23('0x3'),_0x26fe4c=>!!_0x26fe4c);}[_0x5c23('0x24')](){this[_0x5c23('0x13')][_0x5c23('0x24')]();}async['destroy'](){this[_0x5c23('0x18')]=!0x1,this[_0x5c23('0x15')][_0x5c23('0x1b')](),await this['commentThreadInputView'][_0x5c23('0x1b')](),super[_0x5c23('0x1b')]();}[_0x5c23('0x1e')](){const _0x51bebd=new _0x47a6fe(this[_0x5c23('0x2d')],this[_0x5c23('0xc')],this[_0x5c23('0x5')][_0x5c23('0x25')]),_0x536da3=_0x51bebd[_0x5c23('0x19')];return _0x51bebd[_0x5c23('0x29')](_0x5c23('0x20'))['to'](this,_0x5c23('0x22'),this[_0x5c23('0x10')],_0x5c23('0x2f'),this[_0x5c23('0x10')],_0x5c23('0x0'),this['_model'],_0x5c23('0x16'),_0x536da3,'value',(_0x5d2cc6,_0x5a42bd,_0x45ee1a,_0x5e91ce,_0x3c40b0)=>!!_0x3c40b0||!!_0x5e91ce&&_0x45ee1a&&!_0x5a42bd||_0x5d2cc6&&_0x45ee1a&&!_0x5a42bd),_0x536da3[_0x5c23('0x29')](_0x5c23('0x2a'))['to'](this,_0x5c23('0x2b'),this['_model'],_0x5c23('0x8'),this[_0x5c23('0x10')],'isResolved',(_0x1b4b8d,_0x4b26f1,_0x107fc6)=>{let _0x3a446a;return _0x3a446a=_0x107fc6&&_0x4b26f1?_0x5c23('0x9'):_0x1b4b8d?'Reply...':_0x5c23('0x6'),_0x3a447b(this[_0x5c23('0x2d')],_0x3a446a);}),_0x536da3[_0x5c23('0x29')](_0x5c23('0x4'))['to'](this,_0x5c23('0x2b'),_0x5ed5c=>_0x3a447b(this[_0x5c23('0x2d')],_0x5ed5c?_0x5c23('0x1'):_0x5c23('0x1f'))),_0x536da3['on']('submit',(_0x5876fa,_0x15b011)=>{this['fire'](_0x5c23('0x28'),_0x15b011),this['_model']['isResolved']&&this[_0x5c23('0x10')]['isResolvable']&&this[_0x5c23('0x2')]('reopenCommentThread',this['_model']['id']),this[_0x5c23('0x10')]['isSubmitted']||this[_0x5c23('0x2')]('submitCommentThread');}),_0x536da3['on'](_0x5c23('0x1c'),()=>{this[_0x5c23('0x24')]();}),_0x536da3[_0x5c23('0x29')](_0x5c23('0x11'))['to'](this[_0x5c23('0x10')],'isReadOnly'),_0x536da3['on'](_0x5c23('0x1c'),_0x1423f5=>{0x0==this[_0x5c23('0x2b')]&&(this[_0x5c23('0x2')](_0x5c23('0x23')),_0x1423f5[_0x5c23('0x2c')]());}),this['on'](_0x5c23('0x17'),(_0x410219,_0x5e1c38,_0x529346)=>{_0x529346||this[_0x5c23('0x2b')]||_0x536da3['value']||this['fire'](_0x5c23('0x23'));}),_0x51bebd;}}
23
+ const _0x5908=['hasDirtyComment','change:isActive','commentThreadHeaderView','updateComment','reopenCommentThread','submit','commentThreadInputView','removeComment','destroy','addComment','removeCommentThread','editorReady','delegate','length','stop','Reply','cancel','submitLabel','showInput','focus','unlinkedAt','commentsListView','value','isReadOnly','placeholder','isActive','isResolved','Reply\x20to\x20reopen\x20discussion...','_createCommentThreadInputView','isUnlinked','isDirty','_model','fire','listenTo','archivedAt','editorConfig','Comment','bind','_config','isSubmitted','set','isResolvable','resolveCommentThread','commentInputView','assign','_localUser','locale','Write\x20a\x20comment...'];(function(_0x5d6db3,_0x5908a2){const _0x130bce=function(_0x22ab0a){while(--_0x22ab0a){_0x5d6db3['push'](_0x5d6db3['shift']());}};_0x130bce(++_0x5908a2);}(_0x5908,0x1ec));const _0x130b=function(_0x5d6db3,_0x5908a2){_0x5d6db3=_0x5d6db3-0x0;let _0x130bce=_0x5908[_0x5d6db3];return _0x130bce;};import{View as _0x393511}from'ckeditor5/src/ui';import _0x4633a4 from'./commentthreadinputview';import _0x22548e from'./commentslistview';import _0x42683c from'./commentthreadheaderview';import{getTranslation as _0xea8397}from'../../../utils/common-translations';export default class Ut extends _0x393511{constructor(_0x2f3b1b,_0x429b42,_0x2e5827,_0x15d588){super(_0x2f3b1b),this['set'](_0x130b('0xd'),!0x1),this[_0x130b('0x1c')](_0x130b('0x12'),!0x1),this[_0x130b('0x13')]=_0x429b42,this['_localUser']=_0x2e5827,this[_0x130b('0x1a')]=_0x15d588,this[_0x130b('0x26')]=new _0x42683c(_0x2f3b1b,_0x429b42),this['commentThreadHeaderView'][_0x130b('0x0')](_0x130b('0x28'))['to'](this),this[_0x130b('0x15')](this,_0x130b('0x28'),()=>{this['focus']();}),this[_0x130b('0x9')]=new _0x22548e(_0x2f3b1b,_0x429b42,Object[_0x130b('0x20')]({'CommentView':this[_0x130b('0x1a')]['CommentView']},_0x15d588)),this[_0x130b('0x9')][_0x130b('0x0')](_0x130b('0x2b'))['to'](this),this['commentsListView'][_0x130b('0x0')](_0x130b('0x27'))['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this[_0x130b('0x9')][_0x130b('0x0')]('editorReady')['to'](this),this[_0x130b('0x9')]['delegate']('editorDestroyed')['to'](this),this[_0x130b('0x9')]['bind'](_0x130b('0xd'))['to'](this),this[_0x130b('0x15')](this,_0x130b('0x1e'),()=>{this[_0x130b('0x7')]();}),this[_0x130b('0x1c')](_0x130b('0x1'),this[_0x130b('0x9')][_0x130b('0x1')]),this[_0x130b('0x19')](_0x130b('0x1'))['to'](this[_0x130b('0x9')],_0x130b('0x1')),this[_0x130b('0x2a')]=this[_0x130b('0x10')](),this[_0x130b('0x2a')][_0x130b('0x0')](_0x130b('0x2f'))['to'](this),this[_0x130b('0x2a')]['delegate']('editorDestroyed')['to'](this),this['on'](_0x130b('0x2b'),()=>this[_0x130b('0x7')]()),this[_0x130b('0x19')](_0x130b('0x12'))['to'](this[_0x130b('0x9')],_0x130b('0x24'),this[_0x130b('0x2a')][_0x130b('0x1f')],_0x130b('0xa'),(_0x508bea,_0x22b7d5)=>_0x508bea||!!_0x22b7d5),this[_0x130b('0x19')](_0x130b('0x11'))['to'](_0x429b42,_0x130b('0x8'),_0x3363af=>!!_0x3363af);}['focus'](){this['element'][_0x130b('0x7')]();}async[_0x130b('0x2c')](){this['isDirty']=!0x1,this[_0x130b('0x9')][_0x130b('0x2c')](),await this['commentThreadInputView'][_0x130b('0x2c')](),super['destroy']();}[_0x130b('0x10')](){const _0x5b5a7d=new _0x4633a4(this[_0x130b('0x22')],this[_0x130b('0x21')],this[_0x130b('0x1a')][_0x130b('0x17')]),_0x320a6c=_0x5b5a7d[_0x130b('0x1f')];return _0x5b5a7d[_0x130b('0x19')](_0x130b('0x6'))['to'](this,'isActive',this['_model'],_0x130b('0xb'),this[_0x130b('0x13')],'canComment',this[_0x130b('0x13')],_0x130b('0x16'),_0x320a6c,_0x130b('0xa'),(_0x324a56,_0x346b50,_0x3313b7,_0x106bd0,_0x85ab29)=>!!_0x85ab29||!!_0x106bd0&&_0x3313b7&&!_0x346b50||_0x324a56&&_0x3313b7&&!_0x346b50),_0x320a6c['bind'](_0x130b('0xc'))['to'](this,_0x130b('0x1'),this[_0x130b('0x13')],_0x130b('0x1d'),this['_model'],_0x130b('0xe'),(_0x420c32,_0x5e090c,_0x1bea9a)=>{let _0x13f046;return _0x13f046=_0x1bea9a&&_0x5e090c?_0x130b('0xf'):_0x420c32?'Reply...':_0x130b('0x23'),_0xea8397(this['locale'],_0x13f046);}),_0x320a6c[_0x130b('0x19')](_0x130b('0x5'))['to'](this,'length',_0xca3597=>_0xea8397(this[_0x130b('0x22')],_0xca3597?_0x130b('0x3'):_0x130b('0x18'))),_0x320a6c['on'](_0x130b('0x29'),(_0x16ea61,_0x35ebb3)=>{this[_0x130b('0x14')](_0x130b('0x2d'),_0x35ebb3),this[_0x130b('0x13')][_0x130b('0xe')]&&this['_model'][_0x130b('0x1d')]&&this[_0x130b('0x14')](_0x130b('0x28'),this[_0x130b('0x13')]['id']),this[_0x130b('0x13')][_0x130b('0x1b')]||this[_0x130b('0x14')]('submitCommentThread');}),_0x320a6c['on'](_0x130b('0x4'),()=>{this['focus']();}),_0x320a6c['bind']('disabledSubmit')['to'](this[_0x130b('0x13')],_0x130b('0xb')),_0x320a6c['on'](_0x130b('0x4'),_0x346273=>{0x0==this[_0x130b('0x1')]&&(this[_0x130b('0x14')]('removeCommentThread'),_0x346273[_0x130b('0x2')]());}),this['on'](_0x130b('0x25'),(_0x483ba5,_0x1f4e83,_0x3b4526)=>{_0x3b4526||this['length']||_0x320a6c[_0x130b('0xa')]||this[_0x130b('0x14')](_0x130b('0x2e'));}),_0x5b5a7d;}}
@@ -1,112 +1,112 @@
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/view/basecommentview
7
- * @publicApi
8
- */
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';
13
- /**
14
- * An abstract comment view class that should be used as a base for comment view implementations.
15
- *
16
- * It provides some behaviors, flags and building blocks to use when creating a custom comment view class.
17
- */
18
- export default class BaseCommentView extends View {
19
- locale: Locale;
20
- /**
21
- * Informs whether the comment view is in the editing mode.
22
- *
23
- * @observable
24
- */
25
- isEditMode: boolean;
26
- /**
27
- * Flag indicating whether the comment view displays an actual comment (`false`) or is a system message (`true`).
28
- * System message comment should not include any UI elements which allow for editing the comment as it is not an actual comment.
29
- *
30
- * @readonly
31
- */
32
- isSystemComment: boolean;
33
- /**
34
- * Stores the currently displayed sub-view.
35
- *
36
- * This is a collection that always includes one view: comment content view or comment input view.
37
- * Depending whether the comment is in editing mode or not, one of the views is in the collection.
38
- * When the comment mode changes, the content of this collection also changes.
39
- *
40
- * By default, the comment is in the "content mode" and this view collection stores the comment content view.
41
- */
42
- readonly visibleView: ViewCollection;
43
- /**
44
- * @param locale The localization service instance.
45
- * @param model The model on which the view will base.
46
- * @param config Additional view configuration.
47
- */
48
- constructor(locale: Locale, model: Comment, config: CommentViewConfig);
49
- /**
50
- * Expands the view.
51
- */
52
- expand(): void;
53
- /**
54
- * Collapses the view.
55
- */
56
- collapse(): void;
57
- /**
58
- * Focuses the view.
59
- */
60
- focus(): void;
61
- /**
62
- * @inheritDoc
63
- */
64
- destroy(): Promise<void>;
65
- /**
66
- * Switches the comment to the editing mode.
67
- */
68
- switchToEditMode(): void;
69
- /**
70
- * Switches the comment back from the editing mode to the content display mode.
71
- */
72
- switchToDisplayMode(): void;
73
- }
74
- /**
75
- * Fired when a user performed an action that should lead to creating a new comment in the comment thread.
76
- *
77
- * This event is fired by default when the comment input field of the comment thread is submitted.
78
- *
79
- * @eventName ~BaseCommentView#addComment
80
- * @param content The content of the new comment.
81
- */
82
- export type UIAddCommentEvent = {
83
- name: 'addComment';
84
- args: [content: string];
85
- };
86
- /**
87
- * Fired when a user performed an action that should lead to updating the comment content.
88
- *
89
- * This event is fired by default when the comment input field of a comment is submitted.
90
- *
91
- * @param commentId The ID of the updated comment.
92
- * @param commentContent The updated comment content.
93
- * @eventName ~BaseCommentView#updateComment
94
- */
95
- export type UIUpdateCommentEvent = {
96
- name: 'updateComment';
97
- args: [commentId: string, commentContent: string];
98
- };
99
- /**
100
- * Fired when a user performed an action that should lead to removing a comment.
101
- *
102
- * This event is not fired by default by any component created by {@link module:comments/comments/ui/view/basecommentview~BaseCommentView}.
103
- * If you create a view class extending {@link module:comments/comments/ui/view/basecommentview~BaseCommentView} you should provide
104
- * a UI element that will fire this event.
105
- *
106
- * @param commentId The ID of the removed comment.
107
- * @eventName ~BaseCommentView#removeComment
108
- */
109
- export type UIRemoveCommentEvent = {
110
- name: 'removeComment';
111
- args: [commentId: string];
112
- };
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/view/basecommentview
7
+ * @publicApi
8
+ */
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';
13
+ /**
14
+ * An abstract comment view class that should be used as a base for comment view implementations.
15
+ *
16
+ * It provides some behaviors, flags and building blocks to use when creating a custom comment view class.
17
+ */
18
+ export default class BaseCommentView extends View {
19
+ locale: Locale;
20
+ /**
21
+ * Informs whether the comment view is in the editing mode.
22
+ *
23
+ * @observable
24
+ */
25
+ isEditMode: boolean;
26
+ /**
27
+ * Flag indicating whether the comment view displays an actual comment (`false`) or is a system message (`true`).
28
+ * System message comment should not include any UI elements which allow for editing the comment as it is not an actual comment.
29
+ *
30
+ * @readonly
31
+ */
32
+ isSystemComment: boolean;
33
+ /**
34
+ * Stores the currently displayed sub-view.
35
+ *
36
+ * This is a collection that always includes one view: comment content view or comment input view.
37
+ * Depending whether the comment is in editing mode or not, one of the views is in the collection.
38
+ * When the comment mode changes, the content of this collection also changes.
39
+ *
40
+ * By default, the comment is in the "content mode" and this view collection stores the comment content view.
41
+ */
42
+ readonly visibleView: ViewCollection;
43
+ /**
44
+ * @param locale The localization service instance.
45
+ * @param model The model on which the view will base.
46
+ * @param config Additional view configuration.
47
+ */
48
+ constructor(locale: Locale, model: Comment, config: CommentViewConfig);
49
+ /**
50
+ * Expands the view.
51
+ */
52
+ expand(): void;
53
+ /**
54
+ * Collapses the view.
55
+ */
56
+ collapse(): void;
57
+ /**
58
+ * Focuses the view.
59
+ */
60
+ focus(): void;
61
+ /**
62
+ * @inheritDoc
63
+ */
64
+ destroy(): Promise<void>;
65
+ /**
66
+ * Switches the comment to the editing mode.
67
+ */
68
+ switchToEditMode(): void;
69
+ /**
70
+ * Switches the comment back from the editing mode to the content display mode.
71
+ */
72
+ switchToDisplayMode(): void;
73
+ }
74
+ /**
75
+ * Fired when a user performed an action that should lead to creating a new comment in the comment thread.
76
+ *
77
+ * This event is fired by default when the comment input field of the comment thread is submitted.
78
+ *
79
+ * @eventName ~BaseCommentView#addComment
80
+ * @param content The content of the new comment.
81
+ */
82
+ export type UIAddCommentEvent = {
83
+ name: 'addComment';
84
+ args: [content: string];
85
+ };
86
+ /**
87
+ * Fired when a user performed an action that should lead to updating the comment content.
88
+ *
89
+ * This event is fired by default when the comment input field of a comment is submitted.
90
+ *
91
+ * @param commentId The ID of the updated comment.
92
+ * @param commentContent The updated comment content.
93
+ * @eventName ~BaseCommentView#updateComment
94
+ */
95
+ export type UIUpdateCommentEvent = {
96
+ name: 'updateComment';
97
+ args: [commentId: string, commentContent: string];
98
+ };
99
+ /**
100
+ * Fired when a user performed an action that should lead to removing a comment.
101
+ *
102
+ * This event is not fired by default by any component created by {@link module:comments/comments/ui/view/basecommentview~BaseCommentView}.
103
+ * If you create a view class extending {@link module:comments/comments/ui/view/basecommentview~BaseCommentView} you should provide
104
+ * a UI element that will fire this event.
105
+ *
106
+ * @param commentId The ID of the removed comment.
107
+ * @eventName ~BaseCommentView#removeComment
108
+ */
109
+ export type UIRemoveCommentEvent = {
110
+ name: 'removeComment';
111
+ args: [commentId: string];
112
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b9d=['content','destroy','visibleView','add','focus','locale','editorDestroyed','set','isReadOnly','_model','createCollection','updateComment','collapse','submit','isEditMode','editorReady','_config','cancel','value','isCollapsed','isSystemComment','bind','fire','editorConfig','get','_createCommentInputView','switchToEditMode','createEditor','disabledSubmit','maxCommentCharsWhenCollapsed','delegate','element','_createCommentContentView','remove','Save','switchToDisplayMode','expand'];(function(_0x59c774,_0x5b9de8){const _0x238a3e=function(_0x4b86d8){while(--_0x4b86d8){_0x59c774['push'](_0x59c774['shift']());}};_0x238a3e(++_0x5b9de8);}(_0x5b9d,0x1dd));const _0x238a=function(_0x59c774,_0x5b9de8){_0x59c774=_0x59c774-0x0;let _0x238a3e=_0x5b9d[_0x59c774];return _0x238a3e;};import{View as _0x3b0ed9}from'ckeditor5/src/ui';import{trimHtml as _0x21531d}from'ckeditor5-collaboration/src/collaboration-core';import _0x31fb72 from'./commentcontentview';import _0x2dc584 from'./commentinputview';import{getTranslation as _0x49642d}from'../../../utils/common-translations';export default class Yt extends _0x3b0ed9{constructor(_0x4552f8,_0x3f88ed,_0x21c089){super(_0x4552f8),this[_0x238a('0xd')]=_0x3f88ed,this[_0x238a('0x14')]=_0x21c089,this[_0x238a('0x18')]=!!this[_0x238a('0x14')]['isSystemComment'],this[_0x238a('0xb')]('isEditMode',!0x1),this[_0x238a('0xb')]('isCollapsed',!0x0),this['visibleView']=this[_0x238a('0xe')](),this['visibleView'][_0x238a('0x7')](this[_0x238a('0x24')]());}[_0x238a('0x3')](){this[_0x238a('0x17')]=!0x1;}[_0x238a('0x10')](){this['isEditMode']||(this['isCollapsed']=!0x0);}[_0x238a('0x8')](){this[_0x238a('0x23')][_0x238a('0x8')]();}async[_0x238a('0x5')](){await this[_0x238a('0x6')][_0x238a('0x1c')](0x0)[_0x238a('0x5')](),super[_0x238a('0x5')]();}[_0x238a('0x1e')](){this[_0x238a('0x12')]||(this['isEditMode']=!0x0,this[_0x238a('0x6')][_0x238a('0x0')](0x0)[_0x238a('0x5')](),this[_0x238a('0x6')][_0x238a('0x7')](this[_0x238a('0x1d')]()));}[_0x238a('0x2')](){this['isEditMode']&&(this[_0x238a('0x12')]=!0x1,this[_0x238a('0x6')][_0x238a('0x0')](0x0)[_0x238a('0x5')](),this[_0x238a('0x6')][_0x238a('0x7')](this[_0x238a('0x24')]()));}[_0x238a('0x24')](){const _0x5ec9d0=new _0x31fb72(this[_0x238a('0x9')]);return _0x5ec9d0[_0x238a('0x19')](_0x238a('0x4'))['to'](this[_0x238a('0xd')],_0x238a('0x4'),this,'isCollapsed',(_0x11acaf,_0x39e40a)=>_0x39e40a?_0x21531d(_0x11acaf,{'limit':this[_0x238a('0x14')][_0x238a('0x21')]}):_0x11acaf),_0x5ec9d0;}[_0x238a('0x1d')](){this['_config'][_0x238a('0x1b')]||(this['_config'][_0x238a('0x1b')]={}),this['_config'][_0x238a('0x1b')]['initialData']=this[_0x238a('0xd')][_0x238a('0x4')];const _0x59f1c0=new _0x2dc584(this[_0x238a('0x9')],this[_0x238a('0x14')][_0x238a('0x1b')]);return _0x59f1c0[_0x238a('0x16')]=this[_0x238a('0xd')][_0x238a('0x4')],_0x59f1c0[_0x238a('0x19')](_0x238a('0x20'))['to'](this[_0x238a('0xd')],_0x238a('0xc')),_0x59f1c0['submitLabel']=_0x49642d(this['locale'],_0x238a('0x1')),_0x59f1c0['on'](_0x238a('0x11'),(_0x2e0233,_0x48e319)=>{this[_0x238a('0x1a')](_0x238a('0xf'),this['_model']['id'],_0x48e319),this[_0x238a('0x2')](),this[_0x238a('0x8')]();}),_0x59f1c0['on'](_0x238a('0x15'),()=>{this[_0x238a('0x2')](),this[_0x238a('0x8')]();}),_0x59f1c0['once'](_0x238a('0x13'),()=>{_0x59f1c0[_0x238a('0x8')]();}),_0x59f1c0[_0x238a('0x1f')](),_0x59f1c0['delegate'](_0x238a('0x13'))['to'](this),_0x59f1c0[_0x238a('0x22')](_0x238a('0xa'))['to'](this),_0x59f1c0;}}
23
+ const _0x5697=['collapse','isSystemComment','add','submitLabel','focus','_createCommentInputView','createEditor','visibleView','once','editorReady','value','content','set','remove','_model','maxCommentCharsWhenCollapsed','disabledSubmit','editorConfig','switchToDisplayMode','editorDestroyed','_config','submit','isEditMode','destroy','updateComment','cancel','switchToEditMode','Save','locale','isCollapsed','bind','delegate','initialData','_createCommentContentView'];(function(_0x2d785e,_0x5697db){const _0x5da951=function(_0x278953){while(--_0x278953){_0x2d785e['push'](_0x2d785e['shift']());}};_0x5da951(++_0x5697db);}(_0x5697,0x123));const _0x5da9=function(_0x2d785e,_0x5697db){_0x2d785e=_0x2d785e-0x0;let _0x5da951=_0x5697[_0x2d785e];return _0x5da951;};import{View as _0x153643}from'ckeditor5/src/ui';import{trimHtml as _0x559fdc}from'ckeditor5-collaboration/src/collaboration-core';import _0x90ab25 from'./commentcontentview';import _0x254b0d from'./commentinputview';import{getTranslation as _0x493959}from'../../../utils/common-translations';export default class ti extends _0x153643{constructor(_0x43da63,_0x268b6e,_0x22a43a){super(_0x43da63),this[_0x5da9('0x1d')]=_0x268b6e,this[_0x5da9('0x1')]=_0x22a43a,this[_0x5da9('0x10')]=!!this[_0x5da9('0x1')][_0x5da9('0x10')],this[_0x5da9('0x1b')](_0x5da9('0x3'),!0x1),this['set'](_0x5da9('0xa'),!0x0),this[_0x5da9('0x16')]=this['createCollection'](),this[_0x5da9('0x16')]['add'](this[_0x5da9('0xe')]());}['expand'](){this[_0x5da9('0xa')]=!0x1;}[_0x5da9('0xf')](){this[_0x5da9('0x3')]||(this[_0x5da9('0xa')]=!0x0);}[_0x5da9('0x13')](){this['element'][_0x5da9('0x13')]();}async[_0x5da9('0x4')](){await this[_0x5da9('0x16')]['get'](0x0)[_0x5da9('0x4')](),super[_0x5da9('0x4')]();}[_0x5da9('0x7')](){this[_0x5da9('0x3')]||(this[_0x5da9('0x3')]=!0x0,this['visibleView'][_0x5da9('0x1c')](0x0)[_0x5da9('0x4')](),this['visibleView'][_0x5da9('0x11')](this[_0x5da9('0x14')]()));}['switchToDisplayMode'](){this['isEditMode']&&(this[_0x5da9('0x3')]=!0x1,this[_0x5da9('0x16')][_0x5da9('0x1c')](0x0)[_0x5da9('0x4')](),this['visibleView']['add'](this[_0x5da9('0xe')]()));}[_0x5da9('0xe')](){const _0x326016=new _0x90ab25(this[_0x5da9('0x9')]);return _0x326016['bind'](_0x5da9('0x1a'))['to'](this['_model'],_0x5da9('0x1a'),this,'isCollapsed',(_0x42cc4c,_0x172725)=>_0x172725?_0x559fdc(_0x42cc4c,{'limit':this[_0x5da9('0x1')][_0x5da9('0x1e')]}):_0x42cc4c),_0x326016;}[_0x5da9('0x14')](){this['_config'][_0x5da9('0x20')]||(this[_0x5da9('0x1')][_0x5da9('0x20')]={}),this[_0x5da9('0x1')]['editorConfig'][_0x5da9('0xd')]=this[_0x5da9('0x1d')][_0x5da9('0x1a')];const _0x2606df=new _0x254b0d(this['locale'],this['_config'][_0x5da9('0x20')]);return _0x2606df[_0x5da9('0x19')]=this[_0x5da9('0x1d')][_0x5da9('0x1a')],_0x2606df[_0x5da9('0xb')](_0x5da9('0x1f'))['to'](this[_0x5da9('0x1d')],'isReadOnly'),_0x2606df[_0x5da9('0x12')]=_0x493959(this['locale'],_0x5da9('0x8')),_0x2606df['on'](_0x5da9('0x2'),(_0x4bae93,_0x20cf6d)=>{this['fire'](_0x5da9('0x5'),this[_0x5da9('0x1d')]['id'],_0x20cf6d),this[_0x5da9('0x21')](),this[_0x5da9('0x13')]();}),_0x2606df['on'](_0x5da9('0x6'),()=>{this[_0x5da9('0x21')](),this[_0x5da9('0x13')]();}),_0x2606df[_0x5da9('0x17')](_0x5da9('0x18'),()=>{_0x2606df[_0x5da9('0x13')]();}),_0x2606df[_0x5da9('0x15')](),_0x2606df['delegate'](_0x5da9('0x18'))['to'](this),_0x2606df[_0x5da9('0xc')](_0x5da9('0x0'))['to'](this),_0x2606df;}}
@@ -1,13 +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
- */
5
- /**
6
- * @module comments/comments/ui/view/collapsedcommentsview
7
- */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- export default class CollapsedCommentsView extends View {
11
- count: number | undefined;
12
- constructor(locale: Locale);
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
+ */
5
+ /**
6
+ * @module comments/comments/ui/view/collapsedcommentsview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ export default class CollapsedCommentsView extends View {
11
+ count: number | undefined;
12
+ constructor(locale: Locale);
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1099=['ck-thread__comment-count','set','count','bindTemplate'];(function(_0x1bedd6,_0x10996b){const _0xba9f1a=function(_0x3bd25f){while(--_0x3bd25f){_0x1bedd6['push'](_0x1bedd6['shift']());}};_0xba9f1a(++_0x10996b);}(_0x1099,0xd9));const _0xba9f=function(_0x1bedd6,_0x10996b){_0x1bedd6=_0x1bedd6-0x0;let _0xba9f1a=_0x1099[_0x1bedd6];return _0xba9f1a;};import{View as _0x42856c}from'ckeditor5/src/ui';import{getTranslation as _0x1d556f}from'../../../utils/common-translations';export default class Zt extends _0x42856c{constructor(_0xd158e2){super(_0xd158e2);const _0x4633aa=this[_0xba9f('0x2')];this[_0xba9f('0x0')](_0xba9f('0x1'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0xba9f('0x3')},'children':[{'text':_0x4633aa['to'](_0xba9f('0x1'),_0x4604a7=>_0x1d556f(_0xd158e2,'NUMBER_OF_COMMENTS',_0x4604a7))}]});}}
23
+ const _0x29f1=['NUMBER_OF_COMMENTS','setTemplate','bindTemplate','count'];(function(_0x20db72,_0x29f1bf){const _0x5367bd=function(_0x51602a){while(--_0x51602a){_0x20db72['push'](_0x20db72['shift']());}};_0x5367bd(++_0x29f1bf);}(_0x29f1,0xee));const _0x5367=function(_0x20db72,_0x29f1bf){_0x20db72=_0x20db72-0x0;let _0x5367bd=_0x29f1[_0x20db72];return _0x5367bd;};import{View as _0x5237d3}from'ckeditor5/src/ui';import{getTranslation as _0x1d72d8}from'../../../utils/common-translations';export default class to extends _0x5237d3{constructor(_0x476fcc){super(_0x476fcc);const _0x57777f=this[_0x5367('0x0')];this['set'](_0x5367('0x1'),void 0x0),this[_0x5367('0x3')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x57777f['to']('count',_0x414bc8=>_0x1d72d8(_0x476fcc,_0x5367('0x2'),_0x414bc8))}]});}}
@@ -1,14 +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
- */
5
- /**
6
- * @module comments/comments/ui/view/commentcontentview
7
- */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- export default class CommentContentView extends View {
11
- content: string;
12
- constructor(locale: Locale);
13
- render(): void;
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
+ */
5
+ /**
6
+ * @module comments/comments/ui/view/commentcontentview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ export default class CommentContentView extends View {
11
+ content: string;
12
+ constructor(locale: Locale);
13
+ render(): void;
14
+ }