@ckeditor/ckeditor5-comments 36.0.1 → 37.0.0-rc.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/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/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 +8 -1
- package/lang/translations/af.po +28 -0
- package/lang/translations/ar.po +28 -0
- package/lang/translations/bg.po +28 -0
- package/lang/translations/bn.po +28 -0
- package/lang/translations/bs.po +28 -0
- package/lang/translations/ca.po +28 -0
- package/lang/translations/cs.po +28 -0
- package/lang/translations/da.po +28 -0
- package/lang/translations/de-ch.po +28 -0
- package/lang/translations/de.po +28 -0
- package/lang/translations/el.po +28 -0
- package/lang/translations/en-au.po +28 -0
- package/lang/translations/en.po +28 -0
- package/lang/translations/es-co.po +28 -0
- package/lang/translations/es.po +28 -0
- package/lang/translations/et.po +28 -0
- package/lang/translations/fa.po +28 -0
- package/lang/translations/fi.po +28 -0
- package/lang/translations/fr.po +28 -0
- package/lang/translations/gl.po +28 -0
- package/lang/translations/he.po +28 -0
- package/lang/translations/hi.po +28 -0
- package/lang/translations/hr.po +28 -0
- package/lang/translations/hu.po +28 -0
- package/lang/translations/id.po +28 -0
- package/lang/translations/it.po +28 -0
- package/lang/translations/ja.po +28 -0
- package/lang/translations/jv.po +28 -0
- package/lang/translations/ko.po +28 -0
- package/lang/translations/lt.po +28 -0
- package/lang/translations/lv.po +28 -0
- package/lang/translations/ms.po +28 -0
- package/lang/translations/nl.po +28 -0
- package/lang/translations/no.po +28 -0
- package/lang/translations/pl.po +28 -0
- package/lang/translations/pt-br.po +28 -0
- package/lang/translations/pt.po +28 -0
- package/lang/translations/ro.po +28 -0
- package/lang/translations/ru.po +28 -0
- package/lang/translations/sk.po +28 -0
- package/lang/translations/sr-latn.po +28 -0
- package/lang/translations/sr.po +29 -1
- package/lang/translations/sv.po +28 -0
- package/lang/translations/th.po +28 -0
- package/lang/translations/tk.po +28 -0
- package/lang/translations/tr.po +28 -0
- package/lang/translations/tt.po +28 -0
- package/lang/translations/ug.po +28 -0
- package/lang/translations/uk.po +28 -0
- package/lang/translations/ur.po +28 -0
- package/lang/translations/vi.po +28 -0
- package/lang/translations/zh-cn.po +28 -0
- package/lang/translations/zh.po +28 -0
- package/package.json +19 -3
- package/src/annotations/annotation.d.ts +86 -0
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +94 -0
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +150 -0
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +227 -0
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +62 -0
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +84 -0
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +80 -0
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +96 -0
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -0
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +86 -0
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +51 -0
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +28 -0
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +72 -0
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +54 -0
- package/src/augmentation.js +23 -0
- package/src/comments/addcommentthreadcommand.d.ts +31 -0
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +25 -0
- package/src/comments/commentsarchive.js +23 -0
- package/src/comments/commentsarchiveui.d.ts +32 -0
- package/src/comments/commentsarchiveui.js +23 -0
- package/src/comments/commentsediting.d.ts +71 -0
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1009 -0
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +25 -0
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -0
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +17 -0
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -0
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -0
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -0
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -0
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +108 -0
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +108 -0
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -0
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +10 -0
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +76 -0
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +34 -0
- package/src/comments/ui/view/commentsarchiveview.js +23 -0
- package/src/comments/ui/view/commentslistview.d.ts +96 -0
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -0
- package/src/comments/ui/view/commentthreadheaderview.js +23 -0
- package/src/comments/ui/view/commentthreadinputview.d.ts +37 -0
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +108 -0
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +231 -0
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +22 -0
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +28 -0
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +172 -0
- package/src/config.js +23 -0
- package/src/index.d.ts +19 -0
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +5 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +13 -0
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/annotation.css +1 -0
- package/theme/comment.css +31 -0
- package/theme/commentsarchive.css +40 -0
- package/theme/commentthread.css +68 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/comments-archive.svg +11 -0
- package/theme/icons/undo.svg +1 -0
- package/theme/sidebar.css +4 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x463e=['_updatePlaceholder','getRoot','createRoot','defaultPlugins','get','destroy','init','create','placeholder','view','getChild','change','end','childCount','low','initialData','model','document','focus','then','assign','setSelection','set','editing','placeholderElement'];(function(_0x3780d2,_0x463e3c){const _0x5123e1=function(_0x2b0ab2){while(--_0x2b0ab2){_0x3780d2['push'](_0x3780d2['shift']());}};_0x5123e1(++_0x463e3c);}(_0x463e,0x14d));const _0x5123=function(_0x3780d2,_0x463e3c){_0x3780d2=_0x3780d2-0x0;let _0x5123e1=_0x463e[_0x3780d2];return _0x5123e1;};import{Editor as _0x11841d,DataApiMixin as _0x3cea9e}from'ckeditor5/src/core';import _0x520b13 from'./commenteditorui';import{ObservableMixin as _0x4732f3}from'ckeditor5/src/utils';import{enablePlaceholder as _0x2ae715,disablePlaceholder as _0x71a514}from'ckeditor5/src/engine';import{Clipboard as _0x576fcf}from'ckeditor5/src/clipboard';import{Enter as _0x27ec04,ShiftEnter as _0x581c5f}from'ckeditor5/src/enter';import{SelectAll as _0x4d51a4}from'ckeditor5/src/select-all';import{Typing as _0x88aa9d}from'ckeditor5/src/typing';import{Undo as _0x275e08}from'ckeditor5/src/undo';import{Paragraph as _0x48222b}from'ckeditor5/src/paragraph';const Jt=[_0x576fcf,_0x27ec04,_0x581c5f,_0x4d51a4,_0x88aa9d,_0x275e08,_0x48222b];export default class Kt extends _0x4732f3(_0x3cea9e(_0x11841d)){constructor(_0x822afb={}){(_0x822afb=Object[_0x5123('0xc')]({},_0x822afb))['plugins']||(_0x822afb['plugins']=Kt[_0x5123('0x14')]),super(_0x822afb),this['ui']=new _0x520b13(this),this[_0x5123('0xe')](_0x5123('0x0'),''),this[_0x5123('0x8')][_0x5123('0x9')]['on'](_0x5123('0x3'),()=>this[_0x5123('0x11')](),{'priority':_0x5123('0x6')}),this['on']('change:placeholder',()=>this[_0x5123('0x11')]()),this['model'][_0x5123('0x9')][_0x5123('0x13')]();}[_0x5123('0x18')](){const _0x14f6b5=this['config'][_0x5123('0x15')](_0x5123('0x7'))||'';return this['initPlugins']()['then'](()=>this['ui'][_0x5123('0x17')]())[_0x5123('0xb')](()=>this['data']['init'](_0x14f6b5))[_0x5123('0xb')](()=>this['fire']('ready'));}[_0x5123('0x16')](){return super[_0x5123('0x16')]()[_0x5123('0xb')](()=>this['ui'][_0x5123('0x16')]());}[_0x5123('0xa')](){this[_0x5123('0x8')]['change'](_0x431d7b=>{const _0x445bd5=this['model'][_0x5123('0x9')][_0x5123('0x12')](),_0x5acb76=_0x445bd5&&_0x445bd5[_0x5123('0x2')](_0x445bd5[_0x5123('0x5')]-0x1);_0x431d7b[_0x5123('0xd')](_0x5acb76,_0x5123('0x4')),this[_0x5123('0xf')][_0x5123('0x1')]['focus']();});}[_0x5123('0x11')](){const _0x20231e=this[_0x5123('0xf')][_0x5123('0x1')],_0x1a15c6=_0x20231e[_0x5123('0x9')][_0x5123('0x12')](),_0x5e2c78=_0x1a15c6[_0x5123('0x2')](0x0);_0x1a15c6[_0x5123('0x5')]>0x1||!_0x5e2c78||'p'!=_0x5e2c78['name']?this['placeholderElement']&&(_0x71a514(_0x20231e,this[_0x5123('0x10')]),this['placeholderElement']=void 0x0):(_0x2ae715({'view':_0x20231e,'element':_0x5e2c78,'text':this[_0x5123('0x0')],'keepOnFocus':!0x0}),this[_0x5123('0x10')]=_0x5e2c78);}}Kt['defaultPlugins']=Jt;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/commenteditor/commenteditorui
|
|
3
|
+
*/
|
|
4
|
+
import { EditorUI } from 'ckeditor5/src/ui';
|
|
5
|
+
import type { Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import CommentEditorUIView from './commenteditoruiview';
|
|
7
|
+
export default class CommentEditorUI extends EditorUI {
|
|
8
|
+
/**
|
|
9
|
+
* The main (top–most) view of the editor UI.
|
|
10
|
+
*/
|
|
11
|
+
readonly view: CommentEditorUIView;
|
|
12
|
+
/**
|
|
13
|
+
* Creates an instance of the classic editor UI class.
|
|
14
|
+
*
|
|
15
|
+
* @param editor The editor instance.
|
|
16
|
+
*/
|
|
17
|
+
constructor(editor: Editor);
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
get element(): HTMLElement | null;
|
|
22
|
+
init(): void;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
destroy(): void;
|
|
27
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ad7=['getRoot','name','destroy','view','editing','rootName','element','editor','render','bind','ready','editable','attachDomRoot','isFocused','setEditableElement'];(function(_0x5d5c82,_0x1ad7f6){const _0x2de100=function(_0x569beb){while(--_0x569beb){_0x5d5c82['push'](_0x5d5c82['shift']());}};_0x2de100(++_0x1ad7f6);}(_0x1ad7,0x1ec));const _0x2de1=function(_0x5d5c82,_0x1ad7f6){_0x5d5c82=_0x5d5c82-0x0;let _0x2de100=_0x1ad7[_0x5d5c82];return _0x2de100;};import{EditorUI as _0x43395d}from'ckeditor5/src/ui';import _0xa50d53 from'./commenteditoruiview';export default class Dt extends _0x43395d{constructor(_0x12959e){super(_0x12959e),this[_0x2de1('0x6')]=new _0xa50d53(_0x12959e['locale'],_0x12959e[_0x2de1('0x7')][_0x2de1('0x6')]);}get['element'](){return this['view'][_0x2de1('0x9')];}['init'](){const _0x1a7d35=this[_0x2de1('0xa')][_0x2de1('0x7')][_0x2de1('0x6')],_0x989f0e=this[_0x2de1('0x6')]['editable'],_0x5190c2=_0x1a7d35['document'][_0x2de1('0x3')]();_0x989f0e[_0x2de1('0x4')]=_0x5190c2[_0x2de1('0x8')],this[_0x2de1('0x6')][_0x2de1('0xb')]();const _0x268318=_0x989f0e[_0x2de1('0x9')];this[_0x2de1('0x2')](_0x989f0e['name'],_0x268318),this[_0x2de1('0x6')][_0x2de1('0xe')][_0x2de1('0xc')](_0x2de1('0x1'))['to'](this['focusTracker']),_0x1a7d35[_0x2de1('0x0')](_0x268318),this['fire'](_0x2de1('0xd'));}['destroy'](){super['destroy'](),this['view'][_0x2de1('0x5')]();}}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/commenteditor/commenteditoruiview
|
|
3
|
+
*/
|
|
4
|
+
import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
5
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
6
|
+
import type { View } from 'ckeditor5/src/engine';
|
|
7
|
+
export default class CommentEditorUIView extends EditorUIView {
|
|
8
|
+
/**
|
|
9
|
+
* Collection of the child views located in the main (`.ck-editor__main`)
|
|
10
|
+
* area of the UI.
|
|
11
|
+
*/
|
|
12
|
+
readonly main: ViewCollection;
|
|
13
|
+
/**
|
|
14
|
+
* Editable UI view.
|
|
15
|
+
*/
|
|
16
|
+
editable: InlineEditableUIView;
|
|
17
|
+
/**
|
|
18
|
+
* Creates an instance of the comments editor UI view.
|
|
19
|
+
*
|
|
20
|
+
* @param locale The locale instance.
|
|
21
|
+
* @param editingView The editing view instance this view is related to.
|
|
22
|
+
*/
|
|
23
|
+
constructor(locale: Locale, editingView: View);
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
render(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Focusable interface required by a FocusCycler.
|
|
30
|
+
*/
|
|
31
|
+
focus(): void;
|
|
32
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x456b=['text','editable','div','createCollection','main','setTemplate','ck-comment__input','focus','presentation','Comment\x20editor','uiLanguageDirection','add','ck-rounded-corners','_createVoiceLabel','ck-voice-label','ck-editor__aria-label_','render','uiLanguage','extendTemplate','ck-editor__main','cke-editor__aria-label_','ck-reset','ck-editor'];(function(_0x4d3832,_0x456b23){const _0x42416e=function(_0x7015c){while(--_0x7015c){_0x4d3832['push'](_0x4d3832['shift']());}};_0x42416e(++_0x456b23);}(_0x456b,0x1a8));const _0x4241=function(_0x4d3832,_0x456b23){_0x4d3832=_0x4d3832-0x0;let _0x42416e=_0x456b[_0x4d3832];return _0x42416e;};import{InlineEditableUIView as _0xff886e,EditorUIView as _0x188c1d,LabelView as _0x29f472}from'ckeditor5/src/ui';import{uid as _0x5363eb}from'ckeditor5/src/utils';import{getTranslation as _0x4b26e6}from'../../../utils/common-translations';export default class Nt extends _0x188c1d{constructor(_0x3eaa62,_0x40768b){super(_0x3eaa62);const _0x21dea0=_0x5363eb();this['main']=this[_0x4241('0x10')](),this[_0x4241('0xe')]=new _0xff886e(_0x3eaa62,_0x40768b),this['_voiceLabelView']=this[_0x4241('0x3')](_0x21dea0,_0x3eaa62),this[_0x4241('0x12')]({'tag':_0x4241('0xf'),'attributes':{'class':[_0x4241('0xb'),_0x4241('0xc'),_0x4241('0x2'),_0x4241('0x13')],'role':'comment','dir':_0x3eaa62[_0x4241('0x0')],'lang':_0x3eaa62[_0x4241('0x7')],'aria-labelledby':_0x4241('0xa')+_0x21dea0},'children':[this['_voiceLabelView'],{'tag':_0x4241('0xf'),'attributes':{'class':_0x4241('0x9'),'role':_0x4241('0x15')},'children':this[_0x4241('0x11')]}]});}[_0x4241('0x6')](){super[_0x4241('0x6')](),this[_0x4241('0x11')][_0x4241('0x1')](this[_0x4241('0xe')]);}[_0x4241('0x14')](){this[_0x4241('0xe')]['element']['focus']();}[_0x4241('0x3')](_0xf645a0,_0x2370ab){const _0x414e03=new _0x29f472();return _0x414e03[_0x4241('0xd')]=_0x4b26e6(_0x2370ab,_0x4241('0x16')),_0x414e03[_0x4241('0x8')]({'attributes':{'id':_0x4241('0x5')+_0xf645a0,'class':_0x4241('0x4')}}),_0x414e03;}}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/commentthreadcontroller
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import type { CommentThread } from '../commentsrepository';
|
|
6
|
+
import type BaseCommentThreadView from './view/basecommentthreadview';
|
|
7
|
+
declare const CommentThreadController_base: {
|
|
8
|
+
new (): import("ckeditor5/src/utils").Observable;
|
|
9
|
+
prototype: import("ckeditor5/src/utils").Observable;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Controller for a comment thread.
|
|
13
|
+
*
|
|
14
|
+
* It takes a comment thread view, listens to events fired by that view and based on them performs actions on a comment thread model.
|
|
15
|
+
*/
|
|
16
|
+
export default class CommentThreadController extends CommentThreadController_base {
|
|
17
|
+
model: CommentThread;
|
|
18
|
+
view: BaseCommentThreadView;
|
|
19
|
+
/**
|
|
20
|
+
* @param model Comment thread model.
|
|
21
|
+
* @param view Comment thread view.
|
|
22
|
+
*/
|
|
23
|
+
constructor(model: CommentThread, view: BaseCommentThreadView);
|
|
24
|
+
/**
|
|
25
|
+
* Submits the comment thread.
|
|
26
|
+
*/
|
|
27
|
+
submit(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Removes the comment thread.
|
|
30
|
+
*/
|
|
31
|
+
remove(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Resolves the comment thread.
|
|
34
|
+
*/
|
|
35
|
+
resolve(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Reopens the comment thread.
|
|
38
|
+
*/
|
|
39
|
+
reopen(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Adds a comment to the comment thread.
|
|
42
|
+
*
|
|
43
|
+
* @param commentContent Comment content.
|
|
44
|
+
*/
|
|
45
|
+
addComment(commentContent: string): void;
|
|
46
|
+
/**
|
|
47
|
+
* Updates a comment that belongs to the comment thread.
|
|
48
|
+
*
|
|
49
|
+
* @param commentId Id of the comment to update.
|
|
50
|
+
* @param commentContent Updated comment content.
|
|
51
|
+
*/
|
|
52
|
+
updateComment(commentId: string, commentContent: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* Removes a comment from the comment thread.
|
|
55
|
+
*
|
|
56
|
+
* @param commentId Id of the comment to remove.
|
|
57
|
+
*/
|
|
58
|
+
removeComment(commentId: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* Destroys `CommentThreadController` instance.
|
|
61
|
+
*/
|
|
62
|
+
destroy(): void;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5ced=['remove','reopenCommentThread','resolveCommentThread','listenTo','view','updateComment','_isAttached','_localUser','submitCommentThread','stopListening','reopen','submit','update','getComment','removeComment','resolve','removeCommentThread','model','addComment','isResolved'];(function(_0x41f304,_0x5cede3){var _0x1dab92=function(_0x4b695b){while(--_0x4b695b){_0x41f304['push'](_0x41f304['shift']());}};_0x1dab92(++_0x5cede3);}(_0x5ced,0x179));var _0x1dab=function(_0x41f304,_0x5cede3){_0x41f304=_0x41f304-0x0;var _0x1dab92=_0x5ced[_0x41f304];return _0x1dab92;};import{ObservableMixin as _0x2fcaf6}from'ckeditor5/src/utils';export default class at extends _0x2fcaf6(){constructor(_0x465a57,_0x2da391){super(),this[_0x1dab('0x0')]=_0x465a57,this['model'][_0x1dab('0x9')]=!0x0,this[_0x1dab('0x7')]=_0x2da391,this[_0x1dab('0x6')](_0x2da391,_0x1dab('0xb'),()=>this['submit']()),this[_0x1dab('0x6')](_0x2da391,_0x1dab('0x13'),()=>this['remove']()),this[_0x1dab('0x6')](_0x2da391,_0x1dab('0x5'),()=>this[_0x1dab('0x12')]()),this[_0x1dab('0x6')](_0x2da391,_0x1dab('0x4'),()=>this[_0x1dab('0xd')]()),this[_0x1dab('0x6')](_0x2da391,_0x1dab('0x1'),(_0xad713c,_0x43ff2c)=>this['addComment'](_0x43ff2c)),this[_0x1dab('0x6')](_0x2da391,_0x1dab('0x8'),(_0x472820,_0x5f9d43,_0x188912)=>this[_0x1dab('0x8')](_0x5f9d43,_0x188912)),this['listenTo'](_0x2da391,_0x1dab('0x11'),(_0x4137a7,_0x2b7bf3)=>this[_0x1dab('0x11')](_0x2b7bf3));}[_0x1dab('0xe')](){this[_0x1dab('0x0')][_0x1dab('0xe')]();}[_0x1dab('0x3')](){this[_0x1dab('0x0')][_0x1dab('0x3')]();}[_0x1dab('0x12')](){this[_0x1dab('0x0')][_0x1dab('0x2')]||this[_0x1dab('0x0')][_0x1dab('0x12')]();}['reopen'](){this['model'][_0x1dab('0x2')]&&this[_0x1dab('0x0')][_0x1dab('0xd')]();}[_0x1dab('0x1')](_0x386704){this[_0x1dab('0x0')][_0x1dab('0x1')]({'content':_0x386704,'authorId':this[_0x1dab('0x7')][_0x1dab('0xa')]['id']});}[_0x1dab('0x8')](_0x38f641,_0x4d6e29){this['model'][_0x1dab('0x10')](_0x38f641)[_0x1dab('0xf')]({'content':_0x4d6e29});}['removeComment'](_0x3d5ea8){this[_0x1dab('0x0')]['getComment'](_0x3d5ea8)[_0x1dab('0x3')]();}['destroy'](){this[_0x1dab('0xc')](),this[_0x1dab('0x0')]['_isAttached']=!0x1;}}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/view/basecommentthreadview
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { View } from 'ckeditor5/src/ui';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
7
|
+
import CommentThreadInputView from './commentthreadinputview';
|
|
8
|
+
import CommentsListView from './commentslistview';
|
|
9
|
+
import CommentThreadHeaderView from './commentthreadheaderview';
|
|
10
|
+
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
11
|
+
import type { CommentThread } from '../../commentsrepository';
|
|
12
|
+
import type { CommentThreadConfig } from '../../../config';
|
|
13
|
+
/**
|
|
14
|
+
* An abstract comment thread view class that should be used as a base for comment thread view implementations.
|
|
15
|
+
* It provides some behaviors, flags and building blocks to use when creating a custom comment thread view class.
|
|
16
|
+
*
|
|
17
|
+
* For the usage examples check the {@glink features/collaboration/annotations/annotations-custom-view Custom annotation view} guide.
|
|
18
|
+
*/
|
|
19
|
+
export default class BaseCommentThreadView extends View {
|
|
20
|
+
locale: Locale;
|
|
21
|
+
/**
|
|
22
|
+
* Informs whether the comment thread view is in active state ("highlighted").
|
|
23
|
+
* A comment thread view is in this state when it is focused or was activated by the user in any other way.
|
|
24
|
+
*
|
|
25
|
+
* @observable
|
|
26
|
+
*/
|
|
27
|
+
isActive: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Informs whether the comment thread has any changes that have not been saved.
|
|
30
|
+
*
|
|
31
|
+
* @observable
|
|
32
|
+
*/
|
|
33
|
+
isDirty: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The number of comments.
|
|
36
|
+
*
|
|
37
|
+
* @observable
|
|
38
|
+
*/
|
|
39
|
+
readonly length: number;
|
|
40
|
+
/**
|
|
41
|
+
* The list of comment views. It should be used as a part of the view template.
|
|
42
|
+
*
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
readonly commentsListView: CommentsListView;
|
|
46
|
+
/**
|
|
47
|
+
* The comment thread header. It should be used as a part of the view template.
|
|
48
|
+
* This header is used only for resolved comment threads.
|
|
49
|
+
*
|
|
50
|
+
* @readonly
|
|
51
|
+
*/
|
|
52
|
+
readonly commentThreadHeaderView: CommentThreadHeaderView;
|
|
53
|
+
/**
|
|
54
|
+
* The comment input area view. It should be used as a part of the view template.
|
|
55
|
+
*
|
|
56
|
+
* @readonly
|
|
57
|
+
*/
|
|
58
|
+
readonly commentThreadInputView: CommentThreadInputView;
|
|
59
|
+
/**
|
|
60
|
+
* @param locale The localization service instance.
|
|
61
|
+
* @param model The model on which the view will base.
|
|
62
|
+
* @param localUser The current local user.
|
|
63
|
+
* @param config Additional view configuration.
|
|
64
|
+
*/
|
|
65
|
+
constructor(locale: Locale, model: CommentThread, localUser: User, config: CommentThreadConfig);
|
|
66
|
+
/**
|
|
67
|
+
* Focuses the view.
|
|
68
|
+
*/
|
|
69
|
+
focus(): void;
|
|
70
|
+
/**
|
|
71
|
+
* @inheritDoc
|
|
72
|
+
*/
|
|
73
|
+
destroy(): void;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Fired when a user created a first comment in the comment thread. Then the comment thread is submitted and saved.
|
|
77
|
+
*
|
|
78
|
+
* @eventName ~BaseCommentThreadView#submitCommentThread
|
|
79
|
+
*/
|
|
80
|
+
export type UISubmitCommentThreadEvent = {
|
|
81
|
+
name: 'submitCommentThread';
|
|
82
|
+
args: [];
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Fired when a user performed an action that should lead to removing the comment thread.
|
|
86
|
+
*
|
|
87
|
+
* This event is not fired by default by any component created by `BaseCommentThreadView`.
|
|
88
|
+
* If you create a view class extending `BaseCommentThreadView`, you should provide
|
|
89
|
+
* a UI element that will fire this event.
|
|
90
|
+
*
|
|
91
|
+
* This event is fired by default when an empty comment thread view (with no comments)
|
|
92
|
+
* loses focus.
|
|
93
|
+
*
|
|
94
|
+
* @eventName ~BaseCommentThreadView#removeCommentThread
|
|
95
|
+
*/
|
|
96
|
+
export type UIRemoveCommentThreadEvent = {
|
|
97
|
+
name: 'removeCommentThread';
|
|
98
|
+
args: [];
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Fired when a user performed an action that should lead to resolve the comment thread.
|
|
102
|
+
*
|
|
103
|
+
* @eventName ~BaseCommentThreadView#resolveCommentThread
|
|
104
|
+
*/
|
|
105
|
+
export type UIResolveCommentThreadEvent = {
|
|
106
|
+
name: 'resolveCommentThread';
|
|
107
|
+
args: [id: string];
|
|
108
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5223=['_config','commentsListView','locale','stop','commentInputView','isReadOnly','commentThreadHeaderView','value','Reply...','focus','removeCommentThread','assign','element','destroy','resolveCommentThread','submitCommentThread','disabledSubmit','isActive','resolvedAt','hasDirtyComment','length','isResolvable','_model','isDirty','delegate','set','updateComment','placeholder','reopenCommentThread','isSubmitted','Reply\x20to\x20reopen\x20discussion...','removeComment','_localUser','bind','change:isActive','_createCommentThreadInputView','CommentView','commentThreadInputView','isResolved','fire'];(function(_0x4aa25c,_0x522330){const _0x3fc8f8=function(_0x349173){while(--_0x349173){_0x4aa25c['push'](_0x4aa25c['shift']());}};_0x3fc8f8(++_0x522330);}(_0x5223,0x19d));const _0x3fc8=function(_0x4aa25c,_0x522330){_0x4aa25c=_0x4aa25c-0x0;let _0x3fc8f8=_0x5223[_0x4aa25c];return _0x3fc8f8;};import{View as _0x502322}from'ckeditor5/src/ui';import _0x401837 from'./commentthreadinputview';import _0x263b50 from'./commentslistview';import _0x140461 from'./commentthreadheaderview';import{getTranslation as _0x32663f}from'../../../utils/common-translations';export default class Rt extends _0x502322{constructor(_0x43ca49,_0x12a363,_0x3a705d,_0x4e3068){super(_0x43ca49),this[_0x3fc8('0xc')](_0x3fc8('0x4'),!0x1),this[_0x3fc8('0xc')](_0x3fc8('0xa'),!0x1),this[_0x3fc8('0x9')]=_0x12a363,this[_0x3fc8('0x13')]=_0x3a705d,this['_config']=_0x4e3068,this[_0x3fc8('0x21')]=new _0x140461(_0x43ca49,_0x12a363),this[_0x3fc8('0x21')]['delegate'](_0x3fc8('0xf'))['to'](this),this[_0x3fc8('0x1c')]=new _0x263b50(_0x43ca49,_0x12a363,Object[_0x3fc8('0x26')]({'CommentView':this[_0x3fc8('0x1b')][_0x3fc8('0x17')]},_0x4e3068)),this[_0x3fc8('0x1c')][_0x3fc8('0xb')](_0x3fc8('0x12'))['to'](this),this[_0x3fc8('0x1c')][_0x3fc8('0xb')](_0x3fc8('0xd'))['to'](this),this['commentsListView'][_0x3fc8('0xb')](_0x3fc8('0x1'))['to'](this),this[_0x3fc8('0x1c')]['bind'](_0x3fc8('0x4'))['to'](this),this['set']('length',this['commentsListView'][_0x3fc8('0x7')]),this['bind'](_0x3fc8('0x7'))['to'](this['commentsListView'],_0x3fc8('0x7')),this[_0x3fc8('0x18')]=this[_0x3fc8('0x16')](),this['on']('removeComment',()=>this[_0x3fc8('0x24')]()),this[_0x3fc8('0x14')](_0x3fc8('0xa'))['to'](this['commentsListView'],_0x3fc8('0x6'),this[_0x3fc8('0x18')][_0x3fc8('0x1f')],_0x3fc8('0x22'),(_0x2a5947,_0x576b7a)=>_0x2a5947||!!_0x576b7a);}[_0x3fc8('0x24')](){this[_0x3fc8('0x27')]['focus']();}[_0x3fc8('0x0')](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this[_0x3fc8('0x18')][_0x3fc8('0x0')](),super[_0x3fc8('0x0')]();}[_0x3fc8('0x16')](){const _0x5b7b95=new _0x401837(this[_0x3fc8('0x1d')],this[_0x3fc8('0x13')],this[_0x3fc8('0x1b')]['editorConfig']),_0x3c8969=_0x5b7b95[_0x3fc8('0x1f')];return _0x5b7b95[_0x3fc8('0x14')]('showInput')['to'](this,_0x3fc8('0x4'),this[_0x3fc8('0x9')],_0x3fc8('0x20'),this[_0x3fc8('0x9')],'isResolved',_0x3c8969,'value',(_0x4a6f99,_0x88696a,_0x2d767b,_0x354935)=>!!_0x354935||_0x2d767b||_0x4a6f99&&!_0x88696a),_0x3c8969[_0x3fc8('0x14')](_0x3fc8('0xe'))['to'](this,_0x3fc8('0x7'),this['_model'],_0x3fc8('0x8'),this[_0x3fc8('0x9')],_0x3fc8('0x5'),(_0x5706c4,_0x23139c,_0x5bff07)=>{let _0x56cadb;return _0x56cadb=_0x5bff07&&_0x23139c?_0x3fc8('0x11'):_0x5706c4?_0x3fc8('0x23'):'Write\x20a\x20comment...',_0x32663f(this['locale'],_0x56cadb);}),_0x3c8969['on']('submit',(_0x27ef87,_0x41d3b9)=>{this[_0x3fc8('0x1a')]('addComment',_0x41d3b9),this['_model'][_0x3fc8('0x19')]&&this['_model'][_0x3fc8('0x8')]&&this['fire'](_0x3fc8('0xf'),this[_0x3fc8('0x9')]['id']),this[_0x3fc8('0x9')][_0x3fc8('0x10')]||this[_0x3fc8('0x1a')](_0x3fc8('0x2'));}),_0x3c8969['on']('cancel',()=>{this[_0x3fc8('0x24')]();}),_0x3c8969[_0x3fc8('0x14')](_0x3fc8('0x3'))['to'](this[_0x3fc8('0x9')],_0x3fc8('0x20')),_0x3c8969['on']('cancel',_0x3376f6=>{0x0==this['length']&&(this[_0x3fc8('0x1a')](_0x3fc8('0x25')),_0x3376f6[_0x3fc8('0x1e')]());}),this['on'](_0x3fc8('0x15'),(_0x56cf13,_0x313540,_0x3e0d47)=>{_0x3e0d47||this[_0x3fc8('0x7')]||_0x3c8969[_0x3fc8('0x22')]||this['fire'](_0x3fc8('0x25'));}),_0x5b7b95;}}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/view/basecommentview
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
7
|
+
import type { Comment } from '../../commentsrepository';
|
|
8
|
+
import type { CommentViewConfig } from '../../../config';
|
|
9
|
+
/**
|
|
10
|
+
* An abstract comment view class that should be used as a base for comment view implementations.
|
|
11
|
+
*
|
|
12
|
+
* It provides some behaviors, flags and building blocks to use when creating a custom comment view class.
|
|
13
|
+
*/
|
|
14
|
+
export default class BaseCommentView extends View {
|
|
15
|
+
locale: Locale;
|
|
16
|
+
/**
|
|
17
|
+
* Informs whether the comment view is in the editing mode.
|
|
18
|
+
*
|
|
19
|
+
* @observable
|
|
20
|
+
*/
|
|
21
|
+
isEditMode: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Flag indicating whether the comment view displays an actual comment (`false`) or is a system message (`true`).
|
|
24
|
+
* System message comment should not include any UI elements which allow for editing the comment as it is not an actual comment.
|
|
25
|
+
*
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
isSystemComment: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Stores the currently displayed sub-view.
|
|
31
|
+
*
|
|
32
|
+
* This is a collection that always includes one view: comment content view or comment input view.
|
|
33
|
+
* Depending whether the comment is in editing mode or not, one of the views is in the collection.
|
|
34
|
+
* When the comment mode changes, the content of this collection also changes.
|
|
35
|
+
*
|
|
36
|
+
* By default, the comment is in the "content mode" and this view collection stores the comment content view.
|
|
37
|
+
*/
|
|
38
|
+
readonly visibleView: ViewCollection;
|
|
39
|
+
/**
|
|
40
|
+
* @param locale The localization service instance.
|
|
41
|
+
* @param model The model on which the view will base.
|
|
42
|
+
* @param config Additional view configuration.
|
|
43
|
+
*/
|
|
44
|
+
constructor(locale: Locale, model: Comment, config: CommentViewConfig);
|
|
45
|
+
/**
|
|
46
|
+
* Expands the view.
|
|
47
|
+
*/
|
|
48
|
+
expand(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Collapses the view.
|
|
51
|
+
*/
|
|
52
|
+
collapse(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Focuses the view.
|
|
55
|
+
*/
|
|
56
|
+
focus(): void;
|
|
57
|
+
/**
|
|
58
|
+
* @inheritDoc
|
|
59
|
+
*/
|
|
60
|
+
destroy(): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Switches the comment to the editing mode.
|
|
63
|
+
*/
|
|
64
|
+
switchToEditMode(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Switches the comment back from the editing mode to the content display mode.
|
|
67
|
+
*/
|
|
68
|
+
switchToDisplayMode(): void;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Fired when a user performed an action that should lead to creating a new comment in the comment thread.
|
|
72
|
+
*
|
|
73
|
+
* This event is fired by default when the comment input field of the comment thread is submitted.
|
|
74
|
+
*
|
|
75
|
+
* @eventName ~BaseCommentView#addComment
|
|
76
|
+
* @param content The content of the new comment.
|
|
77
|
+
*/
|
|
78
|
+
export type UIAddCommentEvent = {
|
|
79
|
+
name: 'addComment';
|
|
80
|
+
args: [content: string];
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Fired when a user performed an action that should lead to updating the comment content.
|
|
84
|
+
*
|
|
85
|
+
* This event is fired by default when the comment input field of a comment is submitted.
|
|
86
|
+
*
|
|
87
|
+
* @param commentId The ID of the updated comment.
|
|
88
|
+
* @param commentContent The updated comment content.
|
|
89
|
+
* @eventName ~BaseCommentView#updateComment
|
|
90
|
+
*/
|
|
91
|
+
export type UIUpdateCommentEvent = {
|
|
92
|
+
name: 'updateComment';
|
|
93
|
+
args: [commentId: string, commentContent: string];
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Fired when a user performed an action that should lead to removing a comment.
|
|
97
|
+
*
|
|
98
|
+
* This event is not fired by default by any component created by {@link module:comments/comments/ui/view/basecommentview~BaseCommentView}.
|
|
99
|
+
* If you create a view class extending {@link module:comments/comments/ui/view/basecommentview~BaseCommentView} you should provide
|
|
100
|
+
* a UI element that will fire this event.
|
|
101
|
+
*
|
|
102
|
+
* @param commentId The ID of the removed comment.
|
|
103
|
+
* @eventName ~BaseCommentView#removeComment
|
|
104
|
+
*/
|
|
105
|
+
export type UIRemoveCommentEvent = {
|
|
106
|
+
name: 'removeComment';
|
|
107
|
+
args: [commentId: string];
|
|
108
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3003=['_config','_createCommentInputView','disabledSubmit','value','editorConfig','submit','createEditor','_model','element','createCollection','initialData','locale','switchToEditMode','get','fire','remove','bind','collapse','set','add','_createCommentContentView','content','switchToDisplayMode','isCollapsed','isEditMode','destroy','updateComment','visibleView','maxCommentCharsWhenCollapsed','focus','expand','once','isReadOnly','isSystemComment'];(function(_0x2f5cec,_0x3003ef){const _0x287b6c=function(_0x3af382){while(--_0x3af382){_0x2f5cec['push'](_0x2f5cec['shift']());}};_0x287b6c(++_0x3003ef);}(_0x3003,0x12b));const _0x287b=function(_0x2f5cec,_0x3003ef){_0x2f5cec=_0x2f5cec-0x0;let _0x287b6c=_0x3003[_0x2f5cec];return _0x287b6c;};import{View as _0x15c350}from'ckeditor5/src/ui';import{trimHtml as _0x162e32}from'ckeditor5-collaboration/src/collaboration-core';import _0x3e6cf5 from'./commentcontentview';import _0x5d5524 from'./commentinputview';export default class Xt extends _0x15c350{constructor(_0x4135f7,_0x235540,_0xd11112){super(_0x4135f7),this[_0x287b('0xe')]=_0x235540,this[_0x287b('0x7')]=_0xd11112,this[_0x287b('0x6')]=!!this[_0x287b('0x7')][_0x287b('0x6')],this[_0x287b('0x19')](_0x287b('0x1f'),!0x1),this[_0x287b('0x19')](_0x287b('0x1e'),!0x0),this[_0x287b('0x0')]=this[_0x287b('0x10')](),this[_0x287b('0x0')]['add'](this['_createCommentContentView']());}[_0x287b('0x3')](){this[_0x287b('0x1e')]=!0x1;}[_0x287b('0x18')](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this[_0x287b('0xf')]['focus']();}async[_0x287b('0x20')](){await this[_0x287b('0x0')][_0x287b('0x14')](0x0)[_0x287b('0x20')](),super['destroy']();}[_0x287b('0x13')](){this[_0x287b('0x1f')]||(this[_0x287b('0x1f')]=!0x0,this[_0x287b('0x0')][_0x287b('0x16')](0x0)['destroy'](),this[_0x287b('0x0')]['add'](this[_0x287b('0x8')]()));}[_0x287b('0x1d')](){this['isEditMode']&&(this[_0x287b('0x1f')]=!0x1,this[_0x287b('0x0')][_0x287b('0x16')](0x0)[_0x287b('0x20')](),this[_0x287b('0x0')][_0x287b('0x1a')](this[_0x287b('0x1b')]()));}[_0x287b('0x1b')](){const _0x54f18=new _0x3e6cf5(this[_0x287b('0x12')]);return _0x54f18[_0x287b('0x17')](_0x287b('0x1c'))['to'](this[_0x287b('0xe')],_0x287b('0x1c'),this,_0x287b('0x1e'),(_0x34542b,_0x15477b)=>_0x15477b?_0x162e32(_0x34542b,{'limit':this[_0x287b('0x7')][_0x287b('0x1')]}):_0x34542b),_0x54f18;}[_0x287b('0x8')](){this['_config'][_0x287b('0xb')]||(this[_0x287b('0x7')][_0x287b('0xb')]={}),this[_0x287b('0x7')][_0x287b('0xb')][_0x287b('0x11')]=this[_0x287b('0xe')][_0x287b('0x1c')];const _0x447781=new _0x5d5524(this[_0x287b('0x12')],this[_0x287b('0x7')][_0x287b('0xb')]);return _0x447781[_0x287b('0xa')]=this['_model'][_0x287b('0x1c')],_0x447781[_0x287b('0x17')](_0x287b('0x9'))['to'](this[_0x287b('0xe')],_0x287b('0x5')),_0x447781['on'](_0x287b('0xc'),(_0x240b1a,_0x45c63a)=>{this[_0x287b('0x15')](_0x287b('0x21'),this[_0x287b('0xe')]['id'],_0x45c63a),this['switchToDisplayMode'](),this[_0x287b('0x2')]();}),_0x447781['on']('cancel',()=>{this['switchToDisplayMode'](),this[_0x287b('0x2')]();}),_0x447781[_0x287b('0x4')]('editorReady',()=>{_0x447781[_0x287b('0x2')]();}),_0x447781[_0x287b('0xd')](),_0x447781;}}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/view/collapsedcommentsview
|
|
3
|
+
*/
|
|
4
|
+
import { View } from 'ckeditor5/src/ui';
|
|
5
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
+
export default class CollapsedCommentsView extends View {
|
|
7
|
+
count: number | undefined;
|
|
8
|
+
constructor(locale: Locale);
|
|
9
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46fd=['NUMBER_OF_COMMENTS','count','setTemplate','bindTemplate','set','ck-thread__comment-count'];(function(_0x416142,_0x46fdf6){const _0x1c1859=function(_0x405f44){while(--_0x405f44){_0x416142['push'](_0x416142['shift']());}};_0x1c1859(++_0x46fdf6);}(_0x46fd,0x75));const _0x1c18=function(_0x416142,_0x46fdf6){_0x416142=_0x416142-0x0;let _0x1c1859=_0x46fd[_0x416142];return _0x1c1859;};import{View as _0x775240}from'ckeditor5/src/ui';import{getTranslation as _0x4aaed3}from'../../../utils/common-translations';export default class Yt extends _0x775240{constructor(_0x25f0b4){super(_0x25f0b4);const _0xcad456=this[_0x1c18('0x0')];this[_0x1c18('0x1')]('count',void 0x0),this[_0x1c18('0x5')]({'tag':'li','attributes':{'class':_0x1c18('0x2')},'children':[{'text':_0xcad456['to'](_0x1c18('0x4'),_0x406bc7=>_0x4aaed3(_0x25f0b4,_0x1c18('0x3'),_0x406bc7))}]});}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/view/commentcontentview
|
|
3
|
+
*/
|
|
4
|
+
import { View } from 'ckeditor5/src/ui';
|
|
5
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
+
export default class CommentContentView extends View {
|
|
7
|
+
content: string;
|
|
8
|
+
constructor(locale: Locale);
|
|
9
|
+
render(): void;
|
|
10
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5bfe=['ck-comment__content','set','change:content','element','render','innerHTML','content'];(function(_0x30bbaf,_0x5bfe0f){var _0x3248df=function(_0x21fdc8){while(--_0x21fdc8){_0x30bbaf['push'](_0x30bbaf['shift']());}};_0x3248df(++_0x5bfe0f);}(_0x5bfe,0x70));var _0x3248=function(_0x30bbaf,_0x5bfe0f){_0x30bbaf=_0x30bbaf-0x0;var _0x3248df=_0x5bfe[_0x30bbaf];return _0x3248df;};import{View as _0x440cba}from'ckeditor5/src/ui';export default class Ut extends _0x440cba{constructor(_0x34f59a){super(_0x34f59a),this[_0x3248('0x1')](_0x3248('0x6'),''),this['setTemplate']({'tag':'div','attributes':{'class':[_0x3248('0x0'),'ck-annotation__content']}});}[_0x3248('0x4')](){super[_0x3248('0x4')](),this['on'](_0x3248('0x2'),(_0x10a346,_0x5c2f5c,_0x909b3d)=>{this[_0x3248('0x3')][_0x3248('0x5')]=_0x909b3d;}),this['element']['innerHTML']=this['content'];}}
|