@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.
- package/LICENSE.md +3 -3
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/af.po +8 -0
- package/lang/translations/ar.po +8 -0
- package/lang/translations/bg.po +8 -0
- package/lang/translations/bn.po +8 -0
- package/lang/translations/bs.po +8 -0
- package/lang/translations/ca.po +8 -0
- package/lang/translations/cs.po +8 -0
- package/lang/translations/da.po +8 -0
- package/lang/translations/de-ch.po +8 -0
- package/lang/translations/de.po +8 -0
- package/lang/translations/el.po +8 -0
- package/lang/translations/en-au.po +8 -0
- package/lang/translations/en.po +8 -0
- package/lang/translations/es-co.po +8 -0
- package/lang/translations/es.po +8 -0
- package/lang/translations/et.po +8 -0
- package/lang/translations/fa.po +8 -0
- package/lang/translations/fi.po +8 -0
- package/lang/translations/fr.po +8 -0
- package/lang/translations/gl.po +8 -0
- package/lang/translations/he.po +8 -0
- package/lang/translations/hi.po +8 -0
- package/lang/translations/hr.po +8 -0
- package/lang/translations/hu.po +8 -0
- package/lang/translations/id.po +8 -0
- package/lang/translations/it.po +8 -0
- package/lang/translations/ja.po +8 -0
- package/lang/translations/jv.po +8 -0
- package/lang/translations/ko.po +8 -0
- package/lang/translations/lt.po +8 -0
- package/lang/translations/lv.po +8 -0
- package/lang/translations/ms.po +8 -0
- package/lang/translations/nl.po +8 -0
- package/lang/translations/no.po +8 -0
- package/lang/translations/pl.po +8 -0
- package/lang/translations/pt-br.po +8 -0
- package/lang/translations/pt.po +8 -0
- package/lang/translations/ro.po +8 -0
- package/lang/translations/ru.po +8 -0
- package/lang/translations/sk.po +8 -0
- package/lang/translations/sq.po +8 -0
- package/lang/translations/sr-latn.po +8 -0
- package/lang/translations/sr.po +8 -0
- package/lang/translations/sv.po +8 -0
- package/lang/translations/th.po +8 -0
- package/lang/translations/tk.po +8 -0
- package/lang/translations/tr.po +8 -0
- package/lang/translations/tt.po +8 -0
- package/lang/translations/ug.po +8 -0
- package/lang/translations/uk.po +8 -0
- package/lang/translations/ur.po +8 -0
- package/lang/translations/vi.po +8 -0
- package/lang/translations/zh-cn.po +8 -0
- package/lang/translations/zh.po +8 -0
- package/package.json +3 -3
- package/src/annotations/annotation.d.ts +90 -90
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +98 -98
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +154 -154
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +232 -232
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +67 -67
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +90 -90
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +85 -85
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +100 -100
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +90 -90
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +55 -55
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +32 -32
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +77 -77
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +52 -52
- package/src/comments/addcommentthreadcommand.d.ts +35 -35
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +31 -31
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +38 -38
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +79 -79
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1129 -1129
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +33 -33
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +21 -21
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +112 -112
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +14 -14
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +86 -86
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +100 -100
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +118 -118
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +243 -243
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +35 -35
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +33 -33
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +176 -176
- package/src/index.d.ts +24 -24
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +14 -14
- package/src/utils/createmutationobserver.js +1 -1
- 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
|
|
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
|
|
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
|
|
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
|
+
}
|