@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.1
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/README.md +0 -1
- package/build/comments.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/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.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/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.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.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sq.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/tr.js +1 -1
- package/build/translations/uk.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/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +12 -12
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sq.po +2 -2
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -5
- package/src/annotations/annotation.d.ts +10 -6
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +7 -3
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +10 -6
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +9 -5
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +8 -4
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +10 -6
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +10 -6
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +9 -5
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +6 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +6 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +6 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +6 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +9 -5
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +5 -1
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +5 -1
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +8 -4
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +9 -5
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +10 -6
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +30 -13
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.d.ts +9 -5
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +5 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +5 -1
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +9 -5
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +6 -6
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +12 -8
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +8 -4
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +6 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +6 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +8 -4
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +7 -3
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +9 -5
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +7 -3
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +9 -5
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +11 -7
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +12 -8
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +14 -10
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +6 -2
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +11 -7
- package/src/config.js +1 -1
- package/src/index.d.ts +24 -21
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +2 -1
- package/src/utils/createmutationobserver.js +2 -2
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/integrations/commentsrestrictededitingmode
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides comments plugin integration for restricted editing mode feature from restricted editing package.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x350f=['afterInit','enableCommand','plugins','addCommentThread','get','RestrictedEditingModeEditing'];(function(_0x5acf91,_0x350f39){const _0x33180e=function(_0x145738){while(--_0x145738){_0x5acf91['push'](_0x5acf91['shift']());}};_0x33180e(++_0x350f39);}(_0x350f,0x1e1));const _0x3318=function(_0x5acf91,_0x350f39){_0x5acf91=_0x5acf91-0x0;let _0x33180e=_0x350f[_0x5acf91];return _0x33180e;};import{Plugin as _0x14d57e}from'ckeditor5/src/core';export default class X extends _0x14d57e{[_0x3318('0x5')](){const _0x3b526a=this['editor'];if(!_0x3b526a[_0x3318('0x1')]['has']('RestrictedEditingModeEditing'))return;_0x3b526a[_0x3318('0x1')][_0x3318('0x3')](_0x3318('0x4'))[_0x3318('0x0')](_0x3318('0x2'));}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/integrations/importword
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides comments plugin integration for the import from Word feature.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f6f=['addCommentThread','plugins','execute','config','map','importWord','commands','collaboration_features','_handleImportedData','collaboration.channelId','afterInit','forEach','get','editor','importWord.commentsStyles'];(function(_0x22668c,_0x1f6f17){const _0x1b7d62=function(_0x5292cb){while(--_0x5292cb){_0x22668c['push'](_0x22668c['shift']());}};_0x1b7d62(++_0x1f6f17);}(_0x1f6f,0xf4));const _0x1b7d=function(_0x22668c,_0x1f6f17){_0x22668c=_0x22668c-0x0;let _0x1b7d62=_0x1f6f[_0x22668c];return _0x1b7d62;};import{Plugin as _0x248ac5}from'ckeditor5/src/core';import{priorities as _0x43f8af}from'ckeditor5/src/utils';import{Users as _0x2a177d}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a8b5b from'../commentsrepository';export default class Y extends _0x248ac5{constructor(_0x31e8ad){super(_0x31e8ad),this['editor'][_0x1b7d('0xe')]['define'](_0x1b7d('0xa'),'basic');}[_0x1b7d('0x6')](){const _0x142e28=this[_0x1b7d('0x9')],_0x591434=_0x142e28[_0x1b7d('0x2')][_0x1b7d('0x8')]('importWord'),_0x5e5ad5=_0x142e28[_0x1b7d('0xc')][_0x1b7d('0x8')](_0x2a177d);_0x591434&&(_0x591434['on'](_0x1b7d('0xd'),(_0x35632f,[,_0x5a9d8e])=>{_0x5a9d8e[_0x1b7d('0x3')]={'comments':!0x0,'user_id':_0x5e5ad5['me']['id'],'comments_styles':this[_0x1b7d('0x9')][_0x1b7d('0xe')]['get'](_0x1b7d('0xa'))};},{'priority':_0x43f8af['high']+0xa}),this['listenTo'](_0x591434,'dataInsert',this[_0x1b7d('0x4')]));}[_0x1b7d('0x4')](_0x326eb0,_0x147e06){const {comment_threads:_0x1b6f5c}=_0x147e06;_0x1b6f5c&&_0x1b6f5c[_0x1b7d('0x7')](({thread_id:_0x2e93aa,comments:_0x45b52a,is_resolved:_0x4ad6a5})=>{const _0x1476a1=new Date(),_0x4932fb=_0x45b52a[_0x1b7d('0x0')](({author:_0x209896,content:_0x38be1b,created_at:_0xd11ec4})=>({'content':_0x38be1b,'authorId':this[_0x1b7d('0x9')]['plugins'][_0x1b7d('0x8')](_0x2a177d)['me']['id'],'createdAt':_0x1476a1,'attributes':{'@external':{'authorName':_0x209896,'createdAt':_0xd11ec4?new Date(_0xd11ec4):new Date(),'source':_0x1b7d('0x1')}}})),_0x304be9=this['editor']['config'][_0x1b7d('0x8')](_0x1b7d('0x5'));this[_0x1b7d('0x9')][_0x1b7d('0xc')][_0x1b7d('0x8')](_0x3a8b5b)[_0x1b7d('0xb')]({'channelId':_0x304be9,'threadId':_0x2e93aa,'comments':_0x4932fb,'resolvedAt':_0x4ad6a5?_0x1476a1:null});});}}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/ui/commenteditor/commenteditor
|
|
3
7
|
*/
|
|
4
|
-
import { Editor, type EditorConfig } from 'ckeditor5/src/core
|
|
5
|
-
import CommentEditorUI from './commenteditorui
|
|
6
|
-
import { type
|
|
7
|
-
declare const CommentEditor_base: import("ckeditor5/src/utils
|
|
8
|
+
import { Editor, type EditorConfig } from 'ckeditor5/src/core';
|
|
9
|
+
import CommentEditorUI from './commenteditorui';
|
|
10
|
+
import { type PlaceholderableElement } from 'ckeditor5/src/engine';
|
|
11
|
+
declare const CommentEditor_base: import("ckeditor5/src/utils").Mixed<import("ckeditor5/src/utils").Mixed<typeof Editor, import("ckeditor5/src/core").DataApi>, import("ckeditor5/src/utils").Observable>;
|
|
8
12
|
export default class CommentEditor extends CommentEditor_base {
|
|
9
13
|
static defaultPlugins: EditorConfig['plugins'];
|
|
10
14
|
/**
|
|
@@ -13,7 +17,7 @@ export default class CommentEditor extends CommentEditor_base {
|
|
|
13
17
|
* @observable
|
|
14
18
|
*/
|
|
15
19
|
placeholder: string;
|
|
16
|
-
placeholderElement:
|
|
20
|
+
placeholderElement: PlaceholderableElement | undefined;
|
|
17
21
|
ui: CommentEditorUI;
|
|
18
22
|
/**
|
|
19
23
|
* @inheritDoc
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a0a=['name','create','model','initialData','defaultPlugins','destroy','document','set','config','childCount','end','change','placeholderElement','change:placeholder','setSelection','_updatePlaceholder','then','init','get','assign','getChild','editing','view','createRoot','focus','low','getRoot','ready','initPlugins','plugins','data','fire','placeholder'];(function(_0x429827,_0x1a0adc){const _0x433f1d=function(_0x1f89e0){while(--_0x1f89e0){_0x429827['push'](_0x429827['shift']());}};_0x433f1d(++_0x1a0adc);}(_0x1a0a,0x17c));const _0x433f=function(_0x429827,_0x1a0adc){_0x429827=_0x429827-0x0;let _0x433f1d=_0x1a0a[_0x429827];return _0x433f1d;};import{Editor as _0x69c584,DataApiMixin as _0x3a3a65}from'ckeditor5/src/core';import _0x3b82a6 from'./commenteditorui';import{ObservableMixin as _0x290df3}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4dd525,disablePlaceholder as _0xea7753}from'ckeditor5/src/engine';import{Clipboard as _0x4cf5a3}from'ckeditor5/src/clipboard';import{Enter as _0x5ada5b,ShiftEnter as _0x5d2244}from'ckeditor5/src/enter';import{SelectAll as _0x445eed}from'ckeditor5/src/select-all';import{Typing as _0x195d44}from'ckeditor5/src/typing';import{Undo as _0x14d8b2}from'ckeditor5/src/undo';import{Paragraph as _0x43b608}from'ckeditor5/src/paragraph';const Kt=[_0x4cf5a3,_0x5ada5b,_0x5d2244,_0x445eed,_0x195d44,_0x14d8b2,_0x43b608];export default class Lt extends _0x290df3(_0x3a3a65(_0x69c584)){constructor(_0x37ac08={}){(_0x37ac08=Object[_0x433f('0x2')]({},_0x37ac08))[_0x433f('0xc')]||(_0x37ac08[_0x433f('0xc')]=Lt['defaultPlugins']),super(_0x37ac08),this['ui']=new _0x3b82a6(this),this[_0x433f('0x17')](_0x433f('0xf'),''),this[_0x433f('0x12')]['document']['on']('change',()=>this[_0x433f('0x1f')](),{'priority':_0x433f('0x8')}),this['on'](_0x433f('0x1d'),()=>this[_0x433f('0x1f')]()),this['model']['document'][_0x433f('0x6')]();}[_0x433f('0x11')](){const _0x421c3a=this[_0x433f('0x18')][_0x433f('0x1')](_0x433f('0x13'))||'';return this[_0x433f('0xb')]()[_0x433f('0x20')](()=>this['ui'][_0x433f('0x0')]())['then'](()=>this[_0x433f('0xd')][_0x433f('0x0')](_0x421c3a))[_0x433f('0x20')](()=>this[_0x433f('0xe')](_0x433f('0xa')));}[_0x433f('0x15')](){return super[_0x433f('0x15')]()[_0x433f('0x20')](()=>this['ui'][_0x433f('0x15')]());}[_0x433f('0x7')](){this[_0x433f('0x12')][_0x433f('0x1b')](_0x4c8432=>{const _0x1e141d=this['model'][_0x433f('0x16')][_0x433f('0x9')](),_0x34237e=_0x1e141d&&_0x1e141d[_0x433f('0x3')](_0x1e141d[_0x433f('0x19')]-0x1);_0x4c8432[_0x433f('0x1e')](_0x34237e,_0x433f('0x1a')),this[_0x433f('0x4')][_0x433f('0x5')][_0x433f('0x7')]();});}[_0x433f('0x1f')](){const _0x4759e6=this['editing']['view'],_0x5b1011=_0x4759e6[_0x433f('0x16')][_0x433f('0x9')](),_0x2e6e3a=_0x5b1011[_0x433f('0x3')](0x0);_0x5b1011[_0x433f('0x19')]>0x1||!_0x2e6e3a||'p'!=_0x2e6e3a[_0x433f('0x10')]?this['placeholderElement']&&this['placeholderElement'][_0x433f('0xf')]&&(_0xea7753(_0x4759e6,this[_0x433f('0x1c')]),this[_0x433f('0x1c')]=void 0x0):(this[_0x433f('0xf')]&&(_0x2e6e3a[_0x433f('0xf')]=this['placeholder']),_0x4dd525({'view':_0x4759e6,'element':_0x2e6e3a,'keepOnFocus':!0x0}),this[_0x433f('0x1c')]=_0x2e6e3a);}}Lt[_0x433f('0x14')]=Kt;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/ui/commenteditor/commenteditorui
|
|
3
7
|
*/
|
|
4
|
-
import { EditorUI } from 'ckeditor5/src/ui
|
|
5
|
-
import type { Editor } from 'ckeditor5/src/core
|
|
6
|
-
import CommentEditorUIView from './commenteditoruiview
|
|
8
|
+
import { EditorUI } from 'ckeditor5/src/ui';
|
|
9
|
+
import type { Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import CommentEditorUIView from './commenteditoruiview';
|
|
7
11
|
export default class CommentEditorUI extends EditorUI {
|
|
8
12
|
/**
|
|
9
13
|
* The main (top–most) view of the editor UI.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d19=['destroy','view','locale','bind','name','editor','getRoot','focusTracker','render','document','fire','attachDomRoot','setEditableElement','isFocused','editable','ready','editing','element'];(function(_0x5aa63d,_0x3d19b6){const _0x2e8eed=function(_0x3cd800){while(--_0x3cd800){_0x5aa63d['push'](_0x5aa63d['shift']());}};_0x2e8eed(++_0x3d19b6);}(_0x3d19,0x1e1));const _0x2e8e=function(_0x5aa63d,_0x3d19b6){_0x5aa63d=_0x5aa63d-0x0;let _0x2e8eed=_0x3d19[_0x5aa63d];return _0x2e8eed;};import{EditorUI as _0x19b5b2}from'ckeditor5/src/ui';import _0xab86db from'./commenteditoruiview';export default class jt extends _0x19b5b2{constructor(_0x1ab263){super(_0x1ab263),this[_0x2e8e('0x6')]=new _0xab86db(_0x1ab263[_0x2e8e('0x7')],_0x1ab263[_0x2e8e('0x3')][_0x2e8e('0x6')]);}get[_0x2e8e('0x4')](){return this[_0x2e8e('0x6')]['element'];}['init'](){const _0xb08dd9=this[_0x2e8e('0xa')][_0x2e8e('0x3')][_0x2e8e('0x6')],_0xbb29bc=this[_0x2e8e('0x6')][_0x2e8e('0x1')],_0x1d250b=_0xb08dd9[_0x2e8e('0xe')][_0x2e8e('0xb')]();_0xbb29bc[_0x2e8e('0x9')]=_0x1d250b['rootName'],this[_0x2e8e('0x6')][_0x2e8e('0xd')]();const _0x357e17=_0xbb29bc[_0x2e8e('0x4')];this[_0x2e8e('0x11')](_0xbb29bc[_0x2e8e('0x9')],_0x357e17),this[_0x2e8e('0x6')][_0x2e8e('0x1')][_0x2e8e('0x8')](_0x2e8e('0x0'))['to'](this[_0x2e8e('0xc')]),_0xb08dd9[_0x2e8e('0x10')](_0x357e17),this[_0x2e8e('0xf')](_0x2e8e('0x2'));}[_0x2e8e('0x5')](){super['destroy'](),this['view'][_0x2e8e('0x5')]();}}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/ui/commenteditor/commenteditoruiview
|
|
3
7
|
*/
|
|
4
|
-
import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui
|
|
5
|
-
import { type Locale } from 'ckeditor5/src/utils
|
|
6
|
-
import type { View } from 'ckeditor5/src/engine
|
|
8
|
+
import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import type { View } from 'ckeditor5/src/engine';
|
|
7
11
|
export default class CommentEditorUIView extends EditorUIView {
|
|
8
12
|
/**
|
|
9
13
|
* Collection of the child views located in the main (`.ck-editor__main`)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26b6=['uiLanguage','add','div','editable','ck-reset','ck-comment__input','main','focus','_voiceLabelView','element','presentation','ck-editor__main','cke-editor__aria-label_','text','ck-rounded-corners','setTemplate','render'];(function(_0xf0b522,_0x26b610){const _0x1cdf41=function(_0x1c182c){while(--_0x1c182c){_0xf0b522['push'](_0xf0b522['shift']());}};_0x1cdf41(++_0x26b610);}(_0x26b6,0xa3));const _0x1cdf=function(_0xf0b522,_0x26b610){_0xf0b522=_0xf0b522-0x0;let _0x1cdf41=_0x26b6[_0xf0b522];return _0x1cdf41;};import{InlineEditableUIView as _0x2c8d9e,EditorUIView as _0x81bdf3,LabelView as _0x54527e}from'ckeditor5/src/ui';import{uid as _0x1dd437}from'ckeditor5/src/utils';import{getTranslation as _0xc37eeb}from'../../../utils/common-translations';export default class Nt extends _0x81bdf3{constructor(_0x1a9c50,_0x113df1){super(_0x1a9c50);const _0x5a4eb0=_0x1dd437();this['main']=this['createCollection'](),this[_0x1cdf('0xa')]=new _0x2c8d9e(_0x1a9c50,_0x113df1),this['_voiceLabelView']=this['_createVoiceLabel'](_0x5a4eb0,_0x1a9c50),this[_0x1cdf('0x5')]({'tag':'div','attributes':{'class':[_0x1cdf('0xb'),'ck-editor',_0x1cdf('0x4'),_0x1cdf('0xc')],'role':'comment','dir':_0x1a9c50['uiLanguageDirection'],'lang':_0x1a9c50[_0x1cdf('0x7')],'aria-labelledby':_0x1cdf('0x2')+_0x5a4eb0},'children':[this[_0x1cdf('0xf')],{'tag':_0x1cdf('0x9'),'attributes':{'class':_0x1cdf('0x1'),'role':_0x1cdf('0x0')},'children':this[_0x1cdf('0xd')]}]});}[_0x1cdf('0x6')](){super[_0x1cdf('0x6')](),this['main'][_0x1cdf('0x8')](this['editable']);}[_0x1cdf('0xe')](){this[_0x1cdf('0xa')][_0x1cdf('0x10')]['focus']();}['_createVoiceLabel'](_0x3ad84a,_0x471be1){const _0x2848ac=new _0x54527e();return _0x2848ac[_0x1cdf('0x3')]=_0xc37eeb(_0x471be1,'Comment\x20editor'),_0x2848ac['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x3ad84a,'class':'ck-voice-label'}}),_0x2848ac;}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { CommentThread } from '../commentsrepository
|
|
6
|
-
import type { default as BaseCommentThreadView } from './view/basecommentthreadview
|
|
5
|
+
import type { CommentThread } from '../commentsrepository';
|
|
6
|
+
import type { default as BaseCommentThreadView } from './view/basecommentthreadview';
|
|
7
7
|
declare const CommentThreadController_base: {
|
|
8
|
-
new (): import("ckeditor5/src/utils
|
|
9
|
-
prototype: import("ckeditor5/src/utils
|
|
8
|
+
new (): import("ckeditor5/src/utils").Observable;
|
|
9
|
+
prototype: import("ckeditor5/src/utils").Observable;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Controller for a comment thread.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1db5=['_isAttached','resolveCommentThread','_localUser','addComment','reopenCommentThread','updateComment','resolve','view','listenTo','submitCommentThread','remove','getComment','reopen','model','stopListening','removeComment','destroy','isResolved','submit'];(function(_0xcd4274,_0x1db5b6){var _0x3616d5=function(_0x3037f5){while(--_0x3037f5){_0xcd4274['push'](_0xcd4274['shift']());}};_0x3616d5(++_0x1db5b6);}(_0x1db5,0x99));var _0x3616=function(_0xcd4274,_0x1db5b6){_0xcd4274=_0xcd4274-0x0;var _0x3616d5=_0x1db5[_0xcd4274];return _0x3616d5;};import{ObservableMixin as _0x2fea9f}from'ckeditor5/src/utils';export default class ct extends _0x2fea9f(){constructor(_0x158cae,_0x477577){super(),this[_0x3616('0xc')]=_0x158cae,this[_0x3616('0xc')]['_isAttached']=!0x0,this[_0x3616('0x6')]=_0x477577,this[_0x3616('0x7')](_0x477577,_0x3616('0x8'),()=>this['submit']()),this[_0x3616('0x7')](_0x477577,'removeCommentThread',()=>this[_0x3616('0x9')]()),this[_0x3616('0x7')](_0x477577,_0x3616('0x0'),()=>this[_0x3616('0x5')]()),this[_0x3616('0x7')](_0x477577,_0x3616('0x3'),()=>this[_0x3616('0xb')]()),this[_0x3616('0x7')](_0x477577,'addComment',(_0x372337,_0x128da9)=>this[_0x3616('0x2')](_0x128da9)),this[_0x3616('0x7')](_0x477577,'updateComment',(_0x138e99,_0x8d7f32,_0x462d8e)=>this['updateComment'](_0x8d7f32,_0x462d8e)),this[_0x3616('0x7')](_0x477577,_0x3616('0xe'),(_0x308ba2,_0x57f915)=>this['removeComment'](_0x57f915));}[_0x3616('0x11')](){this[_0x3616('0xc')]['submit']();}[_0x3616('0x9')](){this[_0x3616('0xc')]['remove']();}[_0x3616('0x5')](){this['model'][_0x3616('0x10')]||this[_0x3616('0xc')]['resolve']();}['reopen'](){this[_0x3616('0xc')][_0x3616('0x10')]&&this['model'][_0x3616('0xb')]();}[_0x3616('0x2')](_0x5a28ae){this['model'][_0x3616('0x2')]({'content':_0x5a28ae,'authorId':this[_0x3616('0x6')][_0x3616('0x1')]['id']});}[_0x3616('0x4')](_0x29cf75,_0x5bf01c){this[_0x3616('0xc')][_0x3616('0xa')](_0x29cf75)['update']({'content':_0x5bf01c});}[_0x3616('0xe')](_0x886347){this['model'][_0x3616('0xa')](_0x886347)[_0x3616('0x9')]();}[_0x3616('0xf')](){this[_0x3616('0xd')](),this[_0x3616('0xc')][_0x3616('0x12')]=!0x1;}}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/ui/view/basecommentthreadview
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { View } from 'ckeditor5/src/ui
|
|
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';
|
|
11
|
-
import type { CommentThread } from '../../commentsrepository
|
|
12
|
-
import type { CommentThreadConfig } from '../../../config
|
|
9
|
+
import { View } from 'ckeditor5/src/ui';
|
|
10
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
11
|
+
import CommentThreadInputView from './commentthreadinputview';
|
|
12
|
+
import CommentsListView from './commentslistview';
|
|
13
|
+
import CommentThreadHeaderView from './commentthreadheaderview';
|
|
14
|
+
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
15
|
+
import type { CommentThread } from '../../commentsrepository';
|
|
16
|
+
import type { CommentThreadConfig } from '../../../config';
|
|
13
17
|
/**
|
|
14
18
|
* An abstract comment thread view class that should be used as a base for comment thread view implementations.
|
|
15
19
|
* It provides some behaviors, flags and building blocks to use when creating a custom comment thread view class.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e95=['value','editorDestroyed','addComment','removeComment','placeholder','commentThreadHeaderView','isResolvable','submit','isSubmitted','bind','editorConfig','change:isActive','assign','showInput','locale','_model','destroy','_config','submitCommentThread','focus','canComment','updateComment','resolveCommentThread','cancel','Write\x20a\x20comment...','Reply','_localUser','disabledSubmit','commentsListView','stop','isResolved','isActive','set','commentInputView','CommentView','length','reopenCommentThread','fire','removeCommentThread','editorReady','isReadOnly','delegate','commentThreadInputView','isDirty','Comment'];(function(_0x3dc067,_0x4e95cc){const _0x9b64cb=function(_0x2b5fbd){while(--_0x2b5fbd){_0x3dc067['push'](_0x3dc067['shift']());}};_0x9b64cb(++_0x4e95cc);}(_0x4e95,0x167));const _0x9b64=function(_0x3dc067,_0x4e95cc){_0x3dc067=_0x3dc067-0x0;let _0x9b64cb=_0x4e95[_0x3dc067];return _0x9b64cb;};import{View as _0xcf3971}from'ckeditor5/src/ui';import _0x1c29da from'./commentthreadinputview';import _0x243af0 from'./commentslistview';import _0x40fd57 from'./commentthreadheaderview';import{getTranslation as _0x3b5300}from'../../../utils/common-translations';export default class Tt extends _0xcf3971{constructor(_0x238ef6,_0x1eeefa,_0x2a89ed,_0x167e9d){super(_0x238ef6),this[_0x9b64('0x21')](_0x9b64('0x20'),!0x1),this[_0x9b64('0x21')]('isDirty',!0x1),this[_0x9b64('0x10')]=_0x1eeefa,this[_0x9b64('0x1b')]=_0x2a89ed,this['_config']=_0x167e9d,this[_0x9b64('0x6')]=new _0x40fd57(_0x238ef6,_0x1eeefa),this['commentThreadHeaderView'][_0x9b64('0x2a')]('reopenCommentThread')['to'](this),this[_0x9b64('0x1d')]=new _0x243af0(_0x238ef6,_0x1eeefa,Object[_0x9b64('0xd')]({'CommentView':this['_config'][_0x9b64('0x23')]},_0x167e9d)),this[_0x9b64('0x1d')]['delegate'](_0x9b64('0x4'))['to'](this),this[_0x9b64('0x1d')][_0x9b64('0x2a')](_0x9b64('0x16'))['to'](this),this[_0x9b64('0x1d')]['delegate'](_0x9b64('0x17'))['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView'][_0x9b64('0x2a')](_0x9b64('0x2'))['to'](this),this[_0x9b64('0x1d')][_0x9b64('0xa')](_0x9b64('0x20'))['to'](this),this['set']('length',this[_0x9b64('0x1d')][_0x9b64('0x24')]),this[_0x9b64('0xa')](_0x9b64('0x24'))['to'](this[_0x9b64('0x1d')],_0x9b64('0x24')),this[_0x9b64('0x2b')]=this['_createCommentThreadInputView'](),this[_0x9b64('0x2b')][_0x9b64('0x2a')](_0x9b64('0x28'))['to'](this),this['commentThreadInputView']['delegate'](_0x9b64('0x2'))['to'](this),this['on'](_0x9b64('0x4'),()=>this[_0x9b64('0x14')]()),this[_0x9b64('0xa')](_0x9b64('0x2c'))['to'](this[_0x9b64('0x1d')],'hasDirtyComment',this['commentThreadInputView'][_0x9b64('0x22')],_0x9b64('0x1'),(_0x540c6f,_0x1cf7db)=>_0x540c6f||!!_0x1cf7db);}['focus'](){this['element'][_0x9b64('0x14')]();}[_0x9b64('0x11')](){this[_0x9b64('0x2c')]=!0x1,this[_0x9b64('0x1d')][_0x9b64('0x11')](),this[_0x9b64('0x2b')][_0x9b64('0x11')](),super[_0x9b64('0x11')]();}['_createCommentThreadInputView'](){const _0x116dfa=new _0x1c29da(this[_0x9b64('0xf')],this['_localUser'],this[_0x9b64('0x12')][_0x9b64('0xb')]),_0x5a0ea9=_0x116dfa['commentInputView'];return _0x116dfa[_0x9b64('0xa')](_0x9b64('0xe'))['to'](this,'isActive',this['_model'],_0x9b64('0x29'),this[_0x9b64('0x10')],_0x9b64('0x15'),this[_0x9b64('0x10')],_0x9b64('0x1f'),_0x5a0ea9,_0x9b64('0x1'),(_0x5e26c2,_0x5a9c16,_0x377a40,_0x2dd620,_0x5ca671)=>!!_0x5ca671||_0x2dd620&&_0x377a40&&!_0x5a9c16||_0x5e26c2&&_0x377a40&&!_0x5a9c16),_0x5a0ea9['bind'](_0x9b64('0x5'))['to'](this,_0x9b64('0x24'),this[_0x9b64('0x10')],_0x9b64('0x7'),this[_0x9b64('0x10')],_0x9b64('0x1f'),(_0x23ef0c,_0x544aa1,_0x2bc400)=>{let _0x8d0c6c;return _0x8d0c6c=_0x2bc400&&_0x544aa1?'Reply\x20to\x20reopen\x20discussion...':_0x23ef0c?'Reply...':_0x9b64('0x19'),_0x3b5300(this['locale'],_0x8d0c6c);}),_0x5a0ea9[_0x9b64('0xa')]('submitLabel')['to'](this,_0x9b64('0x24'),_0x32ecca=>_0x3b5300(this[_0x9b64('0xf')],_0x32ecca?_0x9b64('0x1a'):_0x9b64('0x0'))),_0x5a0ea9['on'](_0x9b64('0x8'),(_0xc9cfb5,_0x3481c5)=>{this['fire'](_0x9b64('0x3'),_0x3481c5),this[_0x9b64('0x10')][_0x9b64('0x1f')]&&this[_0x9b64('0x10')]['isResolvable']&&this[_0x9b64('0x26')](_0x9b64('0x25'),this['_model']['id']),this['_model'][_0x9b64('0x9')]||this[_0x9b64('0x26')](_0x9b64('0x13'));}),_0x5a0ea9['on']('cancel',()=>{this['focus']();}),_0x5a0ea9[_0x9b64('0xa')](_0x9b64('0x1c'))['to'](this['_model'],_0x9b64('0x29')),_0x5a0ea9['on'](_0x9b64('0x18'),_0x1cebce=>{0x0==this[_0x9b64('0x24')]&&(this[_0x9b64('0x26')](_0x9b64('0x27')),_0x1cebce[_0x9b64('0x1e')]());}),this['on'](_0x9b64('0xc'),(_0x4c73f4,_0x1f3261,_0x22806a)=>{_0x22806a||this[_0x9b64('0x24')]||_0x5a0ea9[_0x9b64('0x1')]||this[_0x9b64('0x26')](_0x9b64('0x27'));}),_0x116dfa;}}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/ui/view/basecommentview
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui
|
|
6
|
-
import type { Locale } from 'ckeditor5/src/utils
|
|
7
|
-
import type { Comment } from '../../commentsrepository
|
|
8
|
-
import type { CommentViewConfig } from '../../../config
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
11
|
+
import type { Comment } from '../../commentsrepository';
|
|
12
|
+
import type { CommentViewConfig } from '../../../config';
|
|
9
13
|
/**
|
|
10
14
|
* An abstract comment view class that should be used as a base for comment view implementations.
|
|
11
15
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf96e=['switchToDisplayMode','isCollapsed','initialData','isSystemComment','once','fire','_createCommentContentView','updateComment','delegate','set','submitLabel','focus','bind','switchToEditMode','cancel','get','content','destroy','Save','disabledSubmit','expand','isReadOnly','editorConfig','_model','maxCommentCharsWhenCollapsed','_createCommentInputView','element','isEditMode','visibleView','add','remove','createEditor','_config','locale'];(function(_0x4dee08,_0xf96e6f){const _0x29fb98=function(_0x29d430){while(--_0x29d430){_0x4dee08['push'](_0x4dee08['shift']());}};_0x29fb98(++_0xf96e6f);}(_0xf96e,0x1ab));const _0x29fb=function(_0x4dee08,_0xf96e6f){_0x4dee08=_0x4dee08-0x0;let _0x29fb98=_0xf96e[_0x4dee08];return _0x29fb98;};import{View as _0x5cf5b2}from'ckeditor5/src/ui';import{trimHtml as _0xd06ceb}from'ckeditor5-collaboration/src/collaboration-core';import _0x7fe7e3 from'./commentcontentview';import _0x1e6e6f from'./commentinputview';import{getTranslation as _0x13d270}from'../../../utils/common-translations';export default class Yt extends _0x5cf5b2{constructor(_0x27b397,_0x342271,_0x106401){super(_0x27b397),this['_model']=_0x342271,this[_0x29fb('0xd')]=_0x106401,this[_0x29fb('0x12')]=!!this[_0x29fb('0xd')]['isSystemComment'],this[_0x29fb('0x18')](_0x29fb('0x8'),!0x1),this[_0x29fb('0x18')]('isCollapsed',!0x0),this['visibleView']=this['createCollection'](),this[_0x29fb('0x9')][_0x29fb('0xa')](this['_createCommentContentView']());}[_0x29fb('0x1')](){this[_0x29fb('0x10')]=!0x1;}['collapse'](){this[_0x29fb('0x8')]||(this['isCollapsed']=!0x0);}[_0x29fb('0x1a')](){this[_0x29fb('0x7')][_0x29fb('0x1a')]();}async['destroy'](){await this[_0x29fb('0x9')][_0x29fb('0x1e')](0x0)[_0x29fb('0x20')](),super[_0x29fb('0x20')]();}[_0x29fb('0x1c')](){this[_0x29fb('0x8')]||(this[_0x29fb('0x8')]=!0x0,this[_0x29fb('0x9')][_0x29fb('0xb')](0x0)['destroy'](),this[_0x29fb('0x9')][_0x29fb('0xa')](this[_0x29fb('0x6')]()));}[_0x29fb('0xf')](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x29fb('0x9')][_0x29fb('0xb')](0x0)[_0x29fb('0x20')](),this[_0x29fb('0x9')][_0x29fb('0xa')](this['_createCommentContentView']()));}[_0x29fb('0x15')](){const _0x5c80dd=new _0x7fe7e3(this[_0x29fb('0xe')]);return _0x5c80dd[_0x29fb('0x1b')]('content')['to'](this[_0x29fb('0x4')],_0x29fb('0x1f'),this,_0x29fb('0x10'),(_0x47a2d0,_0x4dd333)=>_0x4dd333?_0xd06ceb(_0x47a2d0,{'limit':this[_0x29fb('0xd')][_0x29fb('0x5')]}):_0x47a2d0),_0x5c80dd;}[_0x29fb('0x6')](){this[_0x29fb('0xd')][_0x29fb('0x3')]||(this[_0x29fb('0xd')][_0x29fb('0x3')]={}),this[_0x29fb('0xd')][_0x29fb('0x3')][_0x29fb('0x11')]=this[_0x29fb('0x4')][_0x29fb('0x1f')];const _0x490975=new _0x1e6e6f(this[_0x29fb('0xe')],this['_config'][_0x29fb('0x3')]);return _0x490975['value']=this[_0x29fb('0x4')]['content'],_0x490975[_0x29fb('0x1b')](_0x29fb('0x0'))['to'](this[_0x29fb('0x4')],_0x29fb('0x2')),_0x490975[_0x29fb('0x19')]=_0x13d270(this[_0x29fb('0xe')],_0x29fb('0x21')),_0x490975['on']('submit',(_0x17d2d6,_0x4ed81a)=>{this[_0x29fb('0x14')](_0x29fb('0x16'),this['_model']['id'],_0x4ed81a),this[_0x29fb('0xf')](),this[_0x29fb('0x1a')]();}),_0x490975['on'](_0x29fb('0x1d'),()=>{this[_0x29fb('0xf')](),this[_0x29fb('0x1a')]();}),_0x490975[_0x29fb('0x13')]('editorReady',()=>{_0x490975[_0x29fb('0x1a')]();}),_0x490975[_0x29fb('0xc')](),_0x490975[_0x29fb('0x17')]('editorReady')['to'](this),_0x490975[_0x29fb('0x17')]('editorDestroyed')['to'](this),_0x490975;}}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/ui/view/collapsedcommentsview
|
|
3
7
|
*/
|
|
4
|
-
import { View } from 'ckeditor5/src/ui
|
|
5
|
-
import type { Locale } from 'ckeditor5/src/utils
|
|
8
|
+
import { View } from 'ckeditor5/src/ui';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
10
|
export default class CollapsedCommentsView extends View {
|
|
7
11
|
count: number | undefined;
|
|
8
12
|
constructor(locale: Locale);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2084=['setTemplate','NUMBER_OF_COMMENTS','set','count','bindTemplate','ck-thread__comment-count'];(function(_0x209e50,_0x20843d){const _0xd2be33=function(_0x15f9f0){while(--_0x15f9f0){_0x209e50['push'](_0x209e50['shift']());}};_0xd2be33(++_0x20843d);}(_0x2084,0xed));const _0xd2be=function(_0x209e50,_0x20843d){_0x209e50=_0x209e50-0x0;let _0xd2be33=_0x2084[_0x209e50];return _0xd2be33;};import{View as _0x4921a4}from'ckeditor5/src/ui';import{getTranslation as _0x3527a4}from'../../../utils/common-translations';export default class Zt extends _0x4921a4{constructor(_0x219528){super(_0x219528);const _0x3f0c33=this[_0xd2be('0x1')];this[_0xd2be('0x5')]('count',void 0x0),this[_0xd2be('0x3')]({'tag':'li','attributes':{'class':_0xd2be('0x2')},'children':[{'text':_0x3f0c33['to'](_0xd2be('0x0'),_0x1a0fdd=>_0x3527a4(_0x219528,_0xd2be('0x4'),_0x1a0fdd))}]});}}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/ui/view/commentcontentview
|
|
3
7
|
*/
|
|
4
|
-
import { View } from 'ckeditor5/src/ui
|
|
5
|
-
import type { Locale } from 'ckeditor5/src/utils
|
|
8
|
+
import { View } from 'ckeditor5/src/ui';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
10
|
export default class CommentContentView extends View {
|
|
7
11
|
content: string;
|
|
8
12
|
constructor(locale: Locale);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x8e20=['ck-comment__content','ck-annotation__content','change:content','innerHTML','setTemplate','element','content'];(function(_0x119528,_0x8e206){var _0x4f3134=function(_0x28dba6){while(--_0x28dba6){_0x119528['push'](_0x119528['shift']());}};_0x4f3134(++_0x8e206);}(_0x8e20,0xad));var _0x4f31=function(_0x119528,_0x8e206){_0x119528=_0x119528-0x0;var _0x4f3134=_0x8e20[_0x119528];return _0x4f3134;};import{View as _0x577ed0}from'ckeditor5/src/ui';export default class Ut extends _0x577ed0{constructor(_0x1575ec){super(_0x1575ec),this['set']('content',''),this[_0x4f31('0x6')]({'tag':'div','attributes':{'class':[_0x4f31('0x2'),_0x4f31('0x3')]}});}['render'](){super['render'](),this['on'](_0x4f31('0x4'),(_0x4522a4,_0x3d6a10,_0x56d255)=>{this['element'][_0x4f31('0x5')]=_0x56d255;}),this[_0x4f31('0x0')][_0x4f31('0x5')]=this[_0x4f31('0x1')];}}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/ui/view/commentinputview
|
|
3
7
|
*/
|
|
4
|
-
import { View, ButtonView } from 'ckeditor5/src/ui
|
|
5
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils
|
|
6
|
-
import { type EditorConfig, type DataApi } from 'ckeditor5/src/core
|
|
7
|
-
import CommentEditor from '../commenteditor/commenteditor
|
|
8
|
+
import { View, ButtonView } from 'ckeditor5/src/ui';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import { type EditorConfig, type DataApi } from 'ckeditor5/src/core';
|
|
11
|
+
import CommentEditor from '../commenteditor/commenteditor';
|
|
8
12
|
/**
|
|
9
13
|
* A view for the comment input section that includes a comment editor.
|
|
10
14
|
*/
|