@ckeditor/ckeditor5-comments 38.1.1 → 38.2.0-alpha.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/build/comments.js +1 -1
- package/package.json +4 -3
- package/src/annotations/annotation.d.ts +86 -86
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +94 -94
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +150 -150
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +228 -228
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +63 -63
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +86 -86
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +81 -81
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +96 -96
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +86 -86
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +51 -51
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +28 -28
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +73 -73
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +48 -48
- package/src/comments/addcommentthreadcommand.d.ts +31 -31
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +27 -27
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +34 -34
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +75 -75
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1088 -1088
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +29 -29
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +17 -17
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
- 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 +108 -108
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +108 -108
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +10 -10
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +82 -82
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +96 -96
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +113 -113
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +239 -239
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +31 -31
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +29 -29
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +172 -172
- package/src/index.d.ts +21 -21
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +13 -13
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e03=['push','innerView','_viewToController','length','find','low','CommentsListView','comment','plugins','addComment','view','comment:','icon','locale','listenTo','init','get','requires','getCommentThread','CommentThreadInputView','focusTracker','editor','focus','addSourceCollector','removeCommentThread','hasMarkerForId','change:activeAnnotations','activeMarker','hasCommentThread','_createUIButton','getAllMarkersForId','add','model','CommentsUI','Comment','isFocused','componentFactory','editing','tooltip','map','has'];(function(_0x16b380,_0x3e030d){const _0x4e0f3d=function(_0x38c441){while(--_0x38c441){_0x16b380['push'](_0x16b380['shift']());}};_0x4e0f3d(++_0x3e030d);}(_0x3e03,0xc3));const _0x4e0f=function(_0x16b380,_0x3e030d){_0x16b380=_0x16b380-0x0;let _0x4e0f3d=_0x3e03[_0x16b380];return _0x4e0f3d;};import{Plugin as _0x3c17af}from'ckeditor5/src/core.js';import _0x4bacda from'./commentsrepository.js';import _0x18113b from'./commentsediting.js';import _0x5d3eba from'../annotations/editorannotations.js';import{ButtonView as _0x148cc1}from'ckeditor5/src/ui.js';import _0x1b4b77 from'../../theme/icons/add-comment.svg';import _0x282a78 from'../annotations/annotations.js';import _0x54908c from'./ui/view/commentslistview.js';import _0x3566e6 from'./ui/view/commentthreadinputview.js';import{getTranslation as _0x24e95f}from'../utils/common-translations.js';export default class s extends _0x3c17af{static get['pluginName'](){return _0x4e0f('0x2');}static get[_0x4e0f('0x1b')](){return[_0x4bacda,_0x18113b,_0x5d3eba,_0x282a78];}get[_0x4e0f('0x10')](){return _0x54908c;}get[_0x4e0f('0x1d')](){return _0x3566e6;}[_0x4e0f('0x19')](){const _0x105efb=this[_0x4e0f('0x1f')],_0x32bb44=_0x105efb[_0x4e0f('0x12')][_0x4e0f('0x1a')](_0x4bacda),_0x17bd98=_0x105efb[_0x4e0f('0x12')]['get'](_0x18113b),_0x1448cc=_0x105efb[_0x4e0f('0x12')][_0x4e0f('0x1a')](_0x282a78),_0x4f0ed8=_0x105efb[_0x4e0f('0x12')][_0x4e0f('0x1a')](_0x5d3eba);_0x105efb['ui'][_0x4e0f('0x5')][_0x4e0f('0x0')](_0x4e0f('0x11'),()=>this[_0x4e0f('0x27')]()),_0x4f0ed8[_0x4e0f('0x21')](()=>{const _0x4ef0cc=[];for(const [_0x32257d,_0x41fa60]of _0x32bb44['_threadToController']){const _0xe7c141=_0x17bd98[_0x4e0f('0x28')](_0x32257d['id']),_0x47ca5a=_0xe7c141[_0x4e0f('0x8')](_0x28a2ce=>_0x28a2ce['getRange']());_0xe7c141['length']>0x0&&_0x4ef0cc[_0x4e0f('0xa')]([_0x41fa60['view'],_0x47ca5a]);}return _0x4ef0cc;}),this[_0x4e0f('0x18')](_0x1448cc,_0x4e0f('0x24'),(_0x4a3fcc,_0x31497a,_0x5c64af)=>{const _0x362ce1=Array['from'](_0x5c64af)[_0x4e0f('0x8')](_0x3cd2a1=>_0x3cd2a1[_0x4e0f('0xb')])[_0x4e0f('0xe')](_0x42f3bc=>_0x32bb44[_0x4e0f('0xc')][_0x4e0f('0x9')](_0x42f3bc));if(!_0x362ce1)return void(_0x17bd98[_0x4e0f('0x25')]=null);const _0x4d42ca=_0x32bb44[_0x4e0f('0xc')]['get'](_0x362ce1)[_0x4e0f('0x1')]['id'],_0x5d7a20=_0x4e0f('0x15')+_0x4d42ca;_0x4d42ca&&_0x17bd98['hasMarkerForId'](_0x4d42ca)?_0x17bd98[_0x4e0f('0x25')]=_0x5d7a20:_0x17bd98[_0x4e0f('0x25')]&&(_0x17bd98[_0x4e0f('0x25')]=null);}),this[_0x4e0f('0x18')](_0x32bb44,_0x4e0f('0x22'),(_0x48cd4c,{threadId:_0x4dae6d,isFromAdapter:_0x5c0454})=>{!_0x5c0454&&_0x105efb['ui'][_0x4e0f('0x1e')][_0x4e0f('0x4')]&&_0x17bd98[_0x4e0f('0x23')](_0x4dae6d)&&_0x105efb[_0x4e0f('0x6')][_0x4e0f('0x14')][_0x4e0f('0x20')]();},{'priority':'highest'}),this[_0x4e0f('0x18')](_0x32bb44,_0x4e0f('0x13'),(_0xaa5f6b,{threadId:_0x476381,isFromAdapter:_0x2e809e})=>{if(_0x2e809e||!_0x17bd98[_0x4e0f('0x23')](_0x476381)||!_0x32bb44[_0x4e0f('0x26')](_0x476381))return;0x1===_0x32bb44[_0x4e0f('0x1c')](_0x476381)[_0x4e0f('0xd')]&&(_0x105efb[_0x4e0f('0x6')][_0x4e0f('0x14')][_0x4e0f('0x20')](),_0xaa5f6b['stop']());},{'priority':_0x4e0f('0xf')});}['_createUIButton'](){const _0x4bbf65=this[_0x4e0f('0x1f')],_0x2324d7=new _0x148cc1(_0x4bbf65['locale']),_0x1418e6=_0x4bbf65['commands'][_0x4e0f('0x1a')]('addCommentThread');return _0x2324d7['label']=_0x24e95f(_0x4bbf65[_0x4e0f('0x17')],_0x4e0f('0x3')),_0x2324d7[_0x4e0f('0x7')]=_0x24e95f(_0x4bbf65[_0x4e0f('0x17')],_0x4e0f('0x3')),_0x2324d7[_0x4e0f('0x16')]=_0x1b4b77,_0x2324d7['bind']('isEnabled')['to'](_0x1418e6),this[_0x4e0f('0x18')](_0x2324d7,'execute',()=>_0x1418e6['execute']()),_0x2324d7;}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module comments/comments/integrations/commentsrestrictededitingmode
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides comments plugin integration for restricted editing mode feature from restricted editing package.
|
|
7
|
-
*/
|
|
8
|
-
export default class CommentsRestrictedEditingMode extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/integrations/commentsrestrictededitingmode
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides comments plugin integration for restricted editing mode feature from restricted editing package.
|
|
7
|
+
*/
|
|
8
|
+
export default class CommentsRestrictedEditingMode extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3164=['RestrictedEditingModeEditing','enableCommand','get','has'];(function(_0xc52bdb,_0x316408){const _0xb5507f=function(_0xed2bb3){while(--_0xed2bb3){_0xc52bdb['push'](_0xc52bdb['shift']());}};_0xb5507f(++_0x316408);}(_0x3164,0x97));const _0xb550=function(_0xc52bdb,_0x316408){_0xc52bdb=_0xc52bdb-0x0;let _0xb5507f=_0x3164[_0xc52bdb];return _0xb5507f;};import{Plugin as _0x471c6a}from'ckeditor5/src/core.js';export default class X extends _0x471c6a{['afterInit'](){const _0x3c43ec=this['editor'];if(!_0x3c43ec['plugins'][_0xb550('0x0')](_0xb550('0x1')))return;_0x3c43ec['plugins'][_0xb550('0x3')](_0xb550('0x1'))[_0xb550('0x2')]('addCommentThread');}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module comments/integrations/importword
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides comments plugin integration for the import from Word feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class CommentsImportWord extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
constructor(editor: Editor);
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/integrations/importword
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides comments plugin integration for the import from Word feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class CommentsImportWord extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
constructor(editor: Editor);
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5999=['dataInsert','plugins','commands','basic','importWord.commentsStyles','editor','define','forEach','map','config','afterInit','_handleImportedData','get','high','importWord','addCommentThread'];(function(_0x4a22d0,_0x599962){const _0x6b139=function(_0x560e27){while(--_0x560e27){_0x4a22d0['push'](_0x4a22d0['shift']());}};_0x6b139(++_0x599962);}(_0x5999,0x19b));const _0x6b13=function(_0x4a22d0,_0x599962){_0x4a22d0=_0x4a22d0-0x0;let _0x6b139=_0x5999[_0x4a22d0];return _0x6b139;};import{Plugin as _0x170650}from'ckeditor5/src/core.js';import{priorities as _0x3d1d2d}from'ckeditor5/src/utils.js';import{Users as _0x26222c}from'ckeditor5-collaboration';import _0x5c5c12 from'../commentsrepository.js';export default class Y extends _0x170650{constructor(_0x5dfb97){super(_0x5dfb97),this[_0x6b13('0xa')][_0x6b13('0xe')][_0x6b13('0xb')](_0x6b13('0x9'),_0x6b13('0x8'));}[_0x6b13('0xf')](){const _0x4cd385=this['editor'],_0x2fc56b=_0x4cd385[_0x6b13('0x7')][_0x6b13('0x1')](_0x6b13('0x3')),_0x447760=_0x4cd385['plugins']['get'](_0x26222c);_0x2fc56b&&(_0x2fc56b['on']('execute',(_0x5369dc,[,_0x526caa])=>{_0x526caa['collaboration_features']={'comments':!0x0,'user_id':_0x447760['me']['id'],'comments_styles':this[_0x6b13('0xa')]['config']['get'](_0x6b13('0x9'))};},{'priority':_0x3d1d2d[_0x6b13('0x2')]+0xa}),this['listenTo'](_0x2fc56b,_0x6b13('0x5'),this[_0x6b13('0x0')]));}[_0x6b13('0x0')](_0x219eaf,_0x302828){const {comment_threads:_0x2e26b6}=_0x302828;_0x2e26b6&&_0x2e26b6[_0x6b13('0xc')](({thread_id:_0x511222,comments:_0xc3cc57,is_resolved:_0xb2fbdf})=>{const _0x55e87d=new Date(),_0xfdd44f=_0xc3cc57[_0x6b13('0xd')](({author:_0x5ac574,content:_0x1faa45,created_at:_0x41d867})=>({'content':_0x1faa45,'authorId':this['editor']['plugins'][_0x6b13('0x1')](_0x26222c)['me']['id'],'createdAt':_0x55e87d,'attributes':{'@external':{'authorName':_0x5ac574,'createdAt':_0x41d867?new Date(_0x41d867):new Date(),'source':_0x6b13('0x3')}}})),_0x350465=this[_0x6b13('0xa')][_0x6b13('0xe')]['get']('collaboration.channelId');this['editor'][_0x6b13('0x6')]['get'](_0x5c5c12)[_0x6b13('0x4')]({'channelId':_0x350465,'threadId':_0x511222,'comments':_0xfdd44f,'resolvedAt':_0xb2fbdf?_0x55e87d:null});});}}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module comments/comments/ui/commenteditor/commenteditor
|
|
3
|
-
*/
|
|
4
|
-
import { Editor, type EditorConfig } from 'ckeditor5/src/core';
|
|
5
|
-
import CommentEditorUI from './commenteditorui';
|
|
6
|
-
import { type ViewElement } from 'ckeditor5/src/engine';
|
|
7
|
-
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
|
-
export default class CommentEditor extends CommentEditor_base {
|
|
9
|
-
static defaultPlugins: EditorConfig['plugins'];
|
|
10
|
-
/**
|
|
11
|
-
* The input placeholder.
|
|
12
|
-
*
|
|
13
|
-
* @observable
|
|
14
|
-
*/
|
|
15
|
-
placeholder: string;
|
|
16
|
-
placeholderElement: ViewElement | undefined;
|
|
17
|
-
ui: CommentEditorUI;
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
constructor(config?: EditorConfig);
|
|
22
|
-
create(): Promise<unknown>;
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
destroy(): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Place the selection at the end of the editor data and focus the editable.
|
|
29
|
-
*/
|
|
30
|
-
focus(): void;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/commenteditor/commenteditor
|
|
3
|
+
*/
|
|
4
|
+
import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
|
|
5
|
+
import CommentEditorUI from './commenteditorui.js';
|
|
6
|
+
import { type ViewElement } from 'ckeditor5/src/engine.js';
|
|
7
|
+
declare const CommentEditor_base: import("ckeditor5/src/utils.js").Mixed<import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/core.js").DataApi>, import("ckeditor5/src/utils.js").Observable>;
|
|
8
|
+
export default class CommentEditor extends CommentEditor_base {
|
|
9
|
+
static defaultPlugins: EditorConfig['plugins'];
|
|
10
|
+
/**
|
|
11
|
+
* The input placeholder.
|
|
12
|
+
*
|
|
13
|
+
* @observable
|
|
14
|
+
*/
|
|
15
|
+
placeholder: string;
|
|
16
|
+
placeholderElement: ViewElement | undefined;
|
|
17
|
+
ui: CommentEditorUI;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
constructor(config?: EditorConfig);
|
|
22
|
+
create(): Promise<unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
destroy(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Place the selection at the end of the editor data and focus the editable.
|
|
29
|
+
*/
|
|
30
|
+
focus(): void;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf396=['document','setSelection','init','getChild','placeholder','then','create','model','initPlugins','createRoot','change:placeholder','plugins','change','config','low','editing','childCount','get','getRoot','data','set','destroy','view','_updatePlaceholder','ready','placeholderElement'];(function(_0x750897,_0xf39601){const _0x3bec46=function(_0x54375f){while(--_0x54375f){_0x750897['push'](_0x750897['shift']());}};_0x3bec46(++_0xf39601);}(_0xf396,0x82));const _0x3bec=function(_0x750897,_0xf39601){_0x750897=_0x750897-0x0;let _0x3bec46=_0xf396[_0x750897];return _0x3bec46;};import{Editor as _0x378fa9,DataApiMixin as _0x4244d6}from'ckeditor5/src/core.js';import _0x3cc1d6 from'./commenteditorui.js';import{ObservableMixin as _0x1ddf41}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x3973d2,disablePlaceholder as _0x12522c}from'ckeditor5/src/engine.js';import{Clipboard as _0x28d31a}from'ckeditor5/src/clipboard.js';import{Enter as _0x3d70aa,ShiftEnter as _0x58d4b5}from'ckeditor5/src/enter.js';import{SelectAll as _0x4859fb}from'ckeditor5/src/select-all.js';import{Typing as _0x3a36c5}from'ckeditor5/src/typing.js';import{Undo as _0x7d9d2f}from'ckeditor5/src/undo.js';import{Paragraph as _0xd22cbc}from'ckeditor5/src/paragraph.js';const Kt=[_0x28d31a,_0x3d70aa,_0x58d4b5,_0x4859fb,_0x3a36c5,_0x7d9d2f,_0xd22cbc];export default class Lt extends _0x1ddf41(_0x4244d6(_0x378fa9)){constructor(_0x2e174b={}){(_0x2e174b=Object['assign']({},_0x2e174b))[_0x3bec('0xb')]||(_0x2e174b[_0x3bec('0xb')]=Lt['defaultPlugins']),super(_0x2e174b),this['ui']=new _0x3cc1d6(this),this[_0x3bec('0x14')]('placeholder',''),this['model'][_0x3bec('0x0')]['on'](_0x3bec('0xc'),()=>this[_0x3bec('0x17')](),{'priority':_0x3bec('0xe')}),this['on'](_0x3bec('0xa'),()=>this[_0x3bec('0x17')]()),this[_0x3bec('0x7')]['document'][_0x3bec('0x9')]();}[_0x3bec('0x6')](){const _0x259f04=this[_0x3bec('0xd')][_0x3bec('0x11')]('initialData')||'';return this[_0x3bec('0x8')]()[_0x3bec('0x5')](()=>this['ui'][_0x3bec('0x2')]())[_0x3bec('0x5')](()=>this[_0x3bec('0x13')][_0x3bec('0x2')](_0x259f04))['then'](()=>this['fire'](_0x3bec('0x18')));}[_0x3bec('0x15')](){return super['destroy']()[_0x3bec('0x5')](()=>this['ui'][_0x3bec('0x15')]());}['focus'](){this['model'][_0x3bec('0xc')](_0x4cb21a=>{const _0x4a9c02=this['model'][_0x3bec('0x0')][_0x3bec('0x12')](),_0x6b919c=_0x4a9c02&&_0x4a9c02[_0x3bec('0x3')](_0x4a9c02[_0x3bec('0x10')]-0x1);_0x4cb21a[_0x3bec('0x1')](_0x6b919c,'end'),this[_0x3bec('0xf')][_0x3bec('0x16')]['focus']();});}[_0x3bec('0x17')](){const _0x51c49c=this['editing'][_0x3bec('0x16')],_0x172e0b=_0x51c49c[_0x3bec('0x0')][_0x3bec('0x12')](),_0x5694c2=_0x172e0b[_0x3bec('0x3')](0x0);_0x172e0b[_0x3bec('0x10')]>0x1||!_0x5694c2||'p'!=_0x5694c2['name']?this['placeholderElement']&&(_0x12522c(_0x51c49c,this[_0x3bec('0x19')]),this['placeholderElement']=void 0x0):(_0x3973d2({'view':_0x51c49c,'element':_0x5694c2,'text':this[_0x3bec('0x4')],'keepOnFocus':!0x0}),this[_0x3bec('0x19')]=_0x5694c2);}}Lt['defaultPlugins']=Kt;
|
|
@@ -1,27 +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
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/commenteditor/commenteditorui
|
|
3
|
+
*/
|
|
4
|
+
import { EditorUI } from 'ckeditor5/src/ui.js';
|
|
5
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
|
+
import CommentEditorUIView from './commenteditoruiview.js';
|
|
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 _0x4da2=['document','name','isFocused','render','setEditableElement','rootName','bind','ready','editable','focusTracker','fire','editing','element','editor','view','destroy'];(function(_0x5e3152,_0x4da292){const _0x49631b=function(_0x2ad222){while(--_0x2ad222){_0x5e3152['push'](_0x5e3152['shift']());}};_0x49631b(++_0x4da292);}(_0x4da2,0x1f0));const _0x4963=function(_0x5e3152,_0x4da292){_0x5e3152=_0x5e3152-0x0;let _0x49631b=_0x4da2[_0x5e3152];return _0x49631b;};import{EditorUI as _0x47507a}from'ckeditor5/src/ui.js';import _0x187bca from'./commenteditoruiview.js';export default class Ft extends _0x47507a{constructor(_0xefc2ce){super(_0xefc2ce),this['view']=new _0x187bca(_0xefc2ce['locale'],_0xefc2ce[_0x4963('0xb')][_0x4963('0xe')]);}get[_0x4963('0xc')](){return this[_0x4963('0xe')]['element'];}['init'](){const _0x18a71f=this[_0x4963('0xd')][_0x4963('0xb')][_0x4963('0xe')],_0x39b0cd=this['view'][_0x4963('0x8')],_0x358845=_0x18a71f[_0x4963('0x0')]['getRoot']();_0x39b0cd[_0x4963('0x1')]=_0x358845[_0x4963('0x5')],this[_0x4963('0xe')][_0x4963('0x3')]();const _0x5ef505=_0x39b0cd[_0x4963('0xc')];this[_0x4963('0x4')](_0x39b0cd[_0x4963('0x1')],_0x5ef505),this[_0x4963('0xe')][_0x4963('0x8')][_0x4963('0x6')](_0x4963('0x2'))['to'](this[_0x4963('0x9')]),_0x18a71f['attachDomRoot'](_0x5ef505),this[_0x4963('0xa')](_0x4963('0x7'));}[_0x4963('0xf')](){super[_0x4963('0xf')](),this['view'][_0x4963('0xf')]();}}
|
|
@@ -1,32 +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
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/commenteditor/commenteditoruiview
|
|
3
|
+
*/
|
|
4
|
+
import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
5
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import type { View } from 'ckeditor5/src/engine.js';
|
|
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 _0x3fcd=['text','_voiceLabelView','ck-rounded-corners','ck-voice-label','focus','cke-editor__aria-label_','extendTemplate','element','div','ck-editor__main','comment','ck-comment__input','ck-editor__aria-label_','createCollection','editable','ck-reset','ck-editor','main','render','uiLanguage','Comment\x20editor','_createVoiceLabel'];(function(_0x5e4efd,_0x3fcd75){const _0x40dfab=function(_0x4cc4d9){while(--_0x4cc4d9){_0x5e4efd['push'](_0x5e4efd['shift']());}};_0x40dfab(++_0x3fcd75);}(_0x3fcd,0x1f0));const _0x40df=function(_0x5e4efd,_0x3fcd75){_0x5e4efd=_0x5e4efd-0x0;let _0x40dfab=_0x3fcd[_0x5e4efd];return _0x40dfab;};import{InlineEditableUIView as _0x59d270,EditorUIView as _0x51e2f4,LabelView as _0x3486fc}from'ckeditor5/src/ui.js';import{uid as _0x26f9b6}from'ckeditor5/src/utils.js';import{getTranslation as _0x1e094b}from'../../../utils/common-translations.js';export default class Nt extends _0x51e2f4{constructor(_0x3a783c,_0x3962a9){super(_0x3a783c);const _0x52b4ab=_0x26f9b6();this['main']=this[_0x40df('0x1')](),this[_0x40df('0x2')]=new _0x59d270(_0x3a783c,_0x3962a9),this['_voiceLabelView']=this[_0x40df('0x9')](_0x52b4ab,_0x3a783c),this['setTemplate']({'tag':_0x40df('0x12'),'attributes':{'class':[_0x40df('0x3'),_0x40df('0x4'),_0x40df('0xc'),_0x40df('0x15')],'role':_0x40df('0x14'),'dir':_0x3a783c['uiLanguageDirection'],'lang':_0x3a783c[_0x40df('0x7')],'aria-labelledby':_0x40df('0xf')+_0x52b4ab},'children':[this[_0x40df('0xb')],{'tag':_0x40df('0x12'),'attributes':{'class':_0x40df('0x13'),'role':'presentation'},'children':this[_0x40df('0x5')]}]});}[_0x40df('0x6')](){super[_0x40df('0x6')](),this[_0x40df('0x5')]['add'](this[_0x40df('0x2')]);}['focus'](){this['editable'][_0x40df('0x11')][_0x40df('0xe')]();}[_0x40df('0x9')](_0x285e1e,_0x34a7ea){const _0x27477d=new _0x3486fc();return _0x27477d[_0x40df('0xa')]=_0x1e094b(_0x34a7ea,_0x40df('0x8')),_0x27477d[_0x40df('0x10')]({'attributes':{'id':_0x40df('0x0')+_0x285e1e,'class':_0x40df('0xd')}}),_0x27477d;}}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module comments/comments/ui/commentthreadcontroller
|
|
3
|
-
* @publicApi
|
|
4
|
-
*/
|
|
5
|
-
import type { CommentThread } from '../commentsrepository';
|
|
6
|
-
import type { default as 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 {};
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/ui/commentthreadcontroller
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import type { CommentThread } from '../commentsrepository.js';
|
|
6
|
+
import type { default as BaseCommentThreadView } from './view/basecommentthreadview.js';
|
|
7
|
+
declare const CommentThreadController_base: {
|
|
8
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
9
|
+
prototype: import("ckeditor5/src/utils.js").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 _0x47aa=['resolve','getComment','stopListening','_localUser','view','removeComment','resolveCommentThread','update','submit','submitCommentThread','destroy','remove','isResolved','model','updateComment','addComment','_isAttached','listenTo','reopen'];(function(_0x43f787,_0x47aa80){var _0x4d709f=function(_0x3dead4){while(--_0x3dead4){_0x43f787['push'](_0x43f787['shift']());}};_0x4d709f(++_0x47aa80);}(_0x47aa,0x181));var _0x4d70=function(_0x43f787,_0x47aa80){_0x43f787=_0x43f787-0x0;var _0x4d709f=_0x47aa[_0x43f787];return _0x4d709f;};import{ObservableMixin as _0xc6ead2}from'ckeditor5/src/utils.js';export default class ct extends _0xc6ead2(){constructor(_0xc3f89f,_0x36b1cd){super(),this['model']=_0xc3f89f,this['model'][_0x4d70('0xb')]=!0x0,this[_0x4d70('0x12')]=_0x36b1cd,this[_0x4d70('0xc')](_0x36b1cd,_0x4d70('0x4'),()=>this[_0x4d70('0x3')]()),this[_0x4d70('0xc')](_0x36b1cd,'removeCommentThread',()=>this['remove']()),this[_0x4d70('0xc')](_0x36b1cd,_0x4d70('0x1'),()=>this['resolve']()),this[_0x4d70('0xc')](_0x36b1cd,'reopenCommentThread',()=>this[_0x4d70('0xd')]()),this[_0x4d70('0xc')](_0x36b1cd,_0x4d70('0xa'),(_0x59f24a,_0x1f097a)=>this[_0x4d70('0xa')](_0x1f097a)),this['listenTo'](_0x36b1cd,_0x4d70('0x9'),(_0x38e410,_0x113a47,_0x1f6107)=>this[_0x4d70('0x9')](_0x113a47,_0x1f6107)),this[_0x4d70('0xc')](_0x36b1cd,'removeComment',(_0x1df7b9,_0x1b23a6)=>this['removeComment'](_0x1b23a6));}[_0x4d70('0x3')](){this['model'][_0x4d70('0x3')]();}[_0x4d70('0x6')](){this[_0x4d70('0x8')]['remove']();}[_0x4d70('0xe')](){this['model'][_0x4d70('0x7')]||this[_0x4d70('0x8')][_0x4d70('0xe')]();}['reopen'](){this[_0x4d70('0x8')]['isResolved']&&this['model'][_0x4d70('0xd')]();}[_0x4d70('0xa')](_0x3ebe4e){this[_0x4d70('0x8')][_0x4d70('0xa')]({'content':_0x3ebe4e,'authorId':this[_0x4d70('0x12')][_0x4d70('0x11')]['id']});}[_0x4d70('0x9')](_0x402720,_0x263882){this[_0x4d70('0x8')][_0x4d70('0xf')](_0x402720)[_0x4d70('0x2')]({'content':_0x263882});}[_0x4d70('0x0')](_0xe38619){this[_0x4d70('0x8')][_0x4d70('0xf')](_0xe38619)[_0x4d70('0x6')]();}[_0x4d70('0x5')](){this[_0x4d70('0x10')](),this[_0x4d70('0x8')][_0x4d70('0xb')]=!0x1;}}
|