@ckeditor/ckeditor5-comments 38.1.0 → 38.1.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 +3 -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/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 _0x33b2=['add','stop','execute','requires','low','hasCommentThread','from','get','CommentThreadInputView','isEnabled','bind','_createUIButton','locale','map','_viewToController','pluginName','Comment','init','label','push','length','has','commands','highest','view','model','activeMarker','getRange','comment:','_threadToController','focus','CommentsListView','getAllMarkersForId','addSourceCollector','removeCommentThread','listenTo','icon','plugins','editor','getCommentThread','hasMarkerForId','innerView','addComment','CommentsUI','tooltip','find'];(function(_0x51d32c,_0x33b24c){const _0x5aa8fa=function(_0x3365b6){while(--_0x3365b6){_0x51d32c['push'](_0x51d32c['shift']());}};_0x5aa8fa(++_0x33b24c);}(_0x33b2,0x1bc));const _0x5aa8=function(_0x51d32c,_0x33b24c){_0x51d32c=_0x51d32c-0x0;let _0x5aa8fa=_0x33b2[_0x51d32c];return _0x5aa8fa;};import{Plugin as _0x470058}from'ckeditor5/src/core';import _0x34a166 from'./commentsrepository';import _0x36d0dd from'./commentsediting';import _0x454e4e from'../annotations/editorannotations';import{ButtonView as _0x22e7f0}from'ckeditor5/src/ui';import _0x3add33 from'../../theme/icons/add-comment.svg';import _0x2aef2b from'../annotations/annotations';import _0x3c95e4 from'./ui/view/commentslistview';import _0x218496 from'./ui/view/commentthreadinputview';import{getTranslation as _0x482413}from'../utils/common-translations';export default class e extends _0x470058{static get[_0x5aa8('0x1f')](){return _0x5aa8('0xd');}static get[_0x5aa8('0x13')](){return[_0x34a166,_0x36d0dd,_0x454e4e,_0x2aef2b];}get[_0x5aa8('0x1')](){return _0x3c95e4;}get[_0x5aa8('0x18')](){return _0x218496;}[_0x5aa8('0x21')](){const _0x22991f=this[_0x5aa8('0x8')],_0x102c25=_0x22991f[_0x5aa8('0x7')][_0x5aa8('0x17')](_0x34a166),_0x2ab1f2=_0x22991f[_0x5aa8('0x7')][_0x5aa8('0x17')](_0x36d0dd),_0x571048=_0x22991f['plugins'][_0x5aa8('0x17')](_0x2aef2b),_0x52716d=_0x22991f[_0x5aa8('0x7')][_0x5aa8('0x17')](_0x454e4e);_0x22991f['ui']['componentFactory'][_0x5aa8('0x10')]('comment',()=>this[_0x5aa8('0x1b')]()),_0x52716d[_0x5aa8('0x3')](()=>{const _0x344692=[];for(const [_0x564c26,_0x1c0004]of _0x102c25[_0x5aa8('0x2d')]){const _0x10117b=_0x2ab1f2[_0x5aa8('0x2')](_0x564c26['id']),_0x162867=_0x10117b[_0x5aa8('0x1d')](_0x3a897a=>_0x3a897a[_0x5aa8('0x2b')]());_0x10117b[_0x5aa8('0x24')]>0x0&&_0x344692[_0x5aa8('0x23')]([_0x1c0004[_0x5aa8('0x28')],_0x162867]);}return _0x344692;}),this['listenTo'](_0x571048,'change:activeAnnotations',(_0x22d56f,_0x262c20,_0x1d7448)=>{const _0x1ddba7=Array[_0x5aa8('0x16')](_0x1d7448)[_0x5aa8('0x1d')](_0x4a7d80=>_0x4a7d80[_0x5aa8('0xb')])[_0x5aa8('0xf')](_0x527eb0=>_0x102c25[_0x5aa8('0x1e')][_0x5aa8('0x25')](_0x527eb0));if(!_0x1ddba7)return void(_0x2ab1f2[_0x5aa8('0x2a')]=null);const _0x599c76=_0x102c25[_0x5aa8('0x1e')][_0x5aa8('0x17')](_0x1ddba7)[_0x5aa8('0x29')]['id'],_0x519c1f=_0x5aa8('0x2c')+_0x599c76;_0x599c76&&_0x2ab1f2['hasMarkerForId'](_0x599c76)?_0x2ab1f2[_0x5aa8('0x2a')]=_0x519c1f:_0x2ab1f2[_0x5aa8('0x2a')]&&(_0x2ab1f2[_0x5aa8('0x2a')]=null);}),this['listenTo'](_0x102c25,_0x5aa8('0x4'),(_0x46e486,{threadId:_0x3f6e82,isFromAdapter:_0x46341d})=>{!_0x46341d&&_0x22991f['ui']['focusTracker']['isFocused']&&_0x2ab1f2[_0x5aa8('0xa')](_0x3f6e82)&&_0x22991f['editing'][_0x5aa8('0x28')][_0x5aa8('0x0')]();},{'priority':_0x5aa8('0x27')}),this[_0x5aa8('0x5')](_0x102c25,_0x5aa8('0xc'),(_0x245c49,{threadId:_0x4ee3e5,isFromAdapter:_0xb7e32f})=>{if(_0xb7e32f||!_0x2ab1f2[_0x5aa8('0xa')](_0x4ee3e5)||!_0x102c25[_0x5aa8('0x15')](_0x4ee3e5))return;0x1===_0x102c25[_0x5aa8('0x9')](_0x4ee3e5)[_0x5aa8('0x24')]&&(_0x22991f['editing'][_0x5aa8('0x28')][_0x5aa8('0x0')](),_0x245c49[_0x5aa8('0x11')]());},{'priority':_0x5aa8('0x14')});}[_0x5aa8('0x1b')](){const _0x530de5=this[_0x5aa8('0x8')],_0x1308e1=new _0x22e7f0(_0x530de5[_0x5aa8('0x1c')]),_0x5a5936=_0x530de5[_0x5aa8('0x26')][_0x5aa8('0x17')]('addCommentThread');return _0x1308e1[_0x5aa8('0x22')]=_0x482413(_0x530de5[_0x5aa8('0x1c')],'Comment'),_0x1308e1[_0x5aa8('0xe')]=_0x482413(_0x530de5['locale'],_0x5aa8('0x20')),_0x1308e1[_0x5aa8('0x6')]=_0x3add33,_0x1308e1[_0x5aa8('0x1a')](_0x5aa8('0x19'))['to'](_0x5a5936),this[_0x5aa8('0x5')](_0x1308e1,_0x5aa8('0x12'),()=>_0x5a5936[_0x5aa8('0x12')]()),_0x1308e1;}}
|
|
@@ -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';
|
|
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 _0x111f=['get','plugins','RestrictedEditingModeEditing','addCommentThread','editor','has'];(function(_0x4d4aa8,_0x111f95){const _0x134cb6=function(_0xc69fcb){while(--_0xc69fcb){_0x4d4aa8['push'](_0x4d4aa8['shift']());}};_0x134cb6(++_0x111f95);}(_0x111f,0x1a8));const _0x134c=function(_0x4d4aa8,_0x111f95){_0x4d4aa8=_0x4d4aa8-0x0;let _0x134cb6=_0x111f[_0x4d4aa8];return _0x134cb6;};import{Plugin as _0x2a451f}from'ckeditor5/src/core';export default class Y extends _0x2a451f{['afterInit'](){const _0x249150=this[_0x134c('0x0')];if(!_0x249150[_0x134c('0x3')][_0x134c('0x1')](_0x134c('0x4')))return;_0x249150[_0x134c('0x3')][_0x134c('0x2')](_0x134c('0x4'))['enableCommand'](_0x134c('0x5'));}}
|
|
@@ -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';
|
|
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 _0x51f7=['get','editor','collaboration.channelId','basic','high','commands','config','_handleImportedData','addCommentThread','importWord','dataInsert','map','afterInit','define','plugins','listenTo','collaboration_features'];(function(_0x3941e2,_0x51f7ad){const _0x13c9c2=function(_0x2e19e0){while(--_0x2e19e0){_0x3941e2['push'](_0x3941e2['shift']());}};_0x13c9c2(++_0x51f7ad);}(_0x51f7,0x154));const _0x13c9=function(_0x3941e2,_0x51f7ad){_0x3941e2=_0x3941e2-0x0;let _0x13c9c2=_0x51f7[_0x3941e2];return _0x13c9c2;};import{Plugin as _0x22db1d}from'ckeditor5/src/core';import{priorities as _0x53c089}from'ckeditor5/src/utils';import{Users as _0x174057}from'ckeditor5-collaboration/src/collaboration-core';import _0x16ec8a from'../commentsrepository';export default class Z extends _0x22db1d{constructor(_0x409bec){super(_0x409bec),this['editor'][_0x13c9('0x6')][_0x13c9('0xd')]('importWord.commentsStyles',_0x13c9('0x3'));}[_0x13c9('0xc')](){const _0x2ea8de=this['editor'],_0x3fc82f=_0x2ea8de[_0x13c9('0x5')][_0x13c9('0x0')](_0x13c9('0x9')),_0x42e78f=_0x2ea8de['plugins'][_0x13c9('0x0')](_0x174057);_0x3fc82f&&(_0x3fc82f['on']('execute',(_0x3a49ab,[,_0x3f0b54])=>{_0x3f0b54[_0x13c9('0x10')]={'comments':!0x0,'user_id':_0x42e78f['me']['id'],'comments_styles':this['editor'][_0x13c9('0x6')]['get']('importWord.commentsStyles')};},{'priority':_0x53c089[_0x13c9('0x4')]+0xa}),this[_0x13c9('0xf')](_0x3fc82f,_0x13c9('0xa'),this[_0x13c9('0x7')]));}[_0x13c9('0x7')](_0xcccdfa,_0x4efc87){const {comment_threads:_0x280075}=_0x4efc87;_0x280075&&_0x280075['forEach'](({thread_id:_0x2f3026,comments:_0x29e1d9,is_resolved:_0x3f5078})=>{const _0x3cd129=new Date(),_0x2781fc=_0x29e1d9[_0x13c9('0xb')](({author:_0x442e1c,content:_0x359ef8,created_at:_0x24d33e})=>({'content':_0x359ef8,'authorId':this['editor'][_0x13c9('0xe')]['get'](_0x174057)['me']['id'],'createdAt':_0x3cd129,'attributes':{'@external':{'authorName':_0x442e1c,'createdAt':_0x24d33e?new Date(_0x24d33e):new Date(),'source':'importWord'}}})),_0x54fb8d=this[_0x13c9('0x1')][_0x13c9('0x6')][_0x13c9('0x0')](_0x13c9('0x2'));this[_0x13c9('0x1')][_0x13c9('0xe')][_0x13c9('0x0')](_0x16ec8a)[_0x13c9('0x8')]({'channelId':_0x54fb8d,'threadId':_0x2f3026,'comments':_0x2781fc,'resolvedAt':_0x3f5078?_0x3cd129: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';
|
|
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 {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1515=['getChild','focus','model','ready','_updatePlaceholder','then','change','destroy','data','childCount','low','document','create','initPlugins','end','view','defaultPlugins','config','init','set','createRoot','get','initialData','placeholderElement','fire','editing','getRoot','assign','placeholder','plugins'];(function(_0x539c02,_0x1515ed){const _0x292fc6=function(_0x4bd844){while(--_0x4bd844){_0x539c02['push'](_0x539c02['shift']());}};_0x292fc6(++_0x1515ed);}(_0x1515,0x1c3));const _0x292f=function(_0x539c02,_0x1515ed){_0x539c02=_0x539c02-0x0;let _0x292fc6=_0x1515[_0x539c02];return _0x292fc6;};import{Editor as _0x370a9e,DataApiMixin as _0x526c6a}from'ckeditor5/src/core';import _0x2b97c6 from'./commenteditorui';import{ObservableMixin as _0x385985}from'ckeditor5/src/utils';import{enablePlaceholder as _0x53d15f,disablePlaceholder as _0x2c0af3}from'ckeditor5/src/engine';import{Clipboard as _0x3a3095}from'ckeditor5/src/clipboard';import{Enter as _0x332843,ShiftEnter as _0x233dc3}from'ckeditor5/src/enter';import{SelectAll as _0x176ec3}from'ckeditor5/src/select-all';import{Typing as _0x558ad4}from'ckeditor5/src/typing';import{Undo as _0x4391a9}from'ckeditor5/src/undo';import{Paragraph as _0x4073d2}from'ckeditor5/src/paragraph';const Lt=[_0x3a3095,_0x332843,_0x233dc3,_0x176ec3,_0x558ad4,_0x4391a9,_0x4073d2];export default class Mt extends _0x385985(_0x526c6a(_0x370a9e)){constructor(_0x29da77={}){(_0x29da77=Object[_0x292f('0x1a')]({},_0x29da77))[_0x292f('0x1c')]||(_0x29da77[_0x292f('0x1c')]=Mt[_0x292f('0xf')]),super(_0x29da77),this['ui']=new _0x2b97c6(this),this[_0x292f('0x12')]('placeholder',''),this[_0x292f('0x1')]['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':_0x292f('0x9')}),this['on']('change:placeholder',()=>this[_0x292f('0x3')]()),this[_0x292f('0x1')][_0x292f('0xa')][_0x292f('0x13')]();}[_0x292f('0xb')](){const _0x58cafe=this[_0x292f('0x10')][_0x292f('0x14')](_0x292f('0x15'))||'';return this[_0x292f('0xc')]()[_0x292f('0x4')](()=>this['ui']['init']())[_0x292f('0x4')](()=>this[_0x292f('0x7')][_0x292f('0x11')](_0x58cafe))['then'](()=>this[_0x292f('0x17')](_0x292f('0x2')));}['destroy'](){return super[_0x292f('0x6')]()[_0x292f('0x4')](()=>this['ui'][_0x292f('0x6')]());}[_0x292f('0x0')](){this[_0x292f('0x1')][_0x292f('0x5')](_0x3cf534=>{const _0x2ac44a=this['model']['document'][_0x292f('0x19')](),_0x5ea6ed=_0x2ac44a&&_0x2ac44a[_0x292f('0x1d')](_0x2ac44a['childCount']-0x1);_0x3cf534['setSelection'](_0x5ea6ed,_0x292f('0xd')),this[_0x292f('0x18')][_0x292f('0xe')][_0x292f('0x0')]();});}[_0x292f('0x3')](){const _0x3c9728=this[_0x292f('0x18')][_0x292f('0xe')],_0x5f20aa=_0x3c9728[_0x292f('0xa')]['getRoot'](),_0x276b5d=_0x5f20aa['getChild'](0x0);_0x5f20aa[_0x292f('0x8')]>0x1||!_0x276b5d||'p'!=_0x276b5d['name']?this[_0x292f('0x16')]&&(_0x2c0af3(_0x3c9728,this[_0x292f('0x16')]),this[_0x292f('0x16')]=void 0x0):(_0x53d15f({'view':_0x3c9728,'element':_0x276b5d,'text':this[_0x292f('0x1b')],'keepOnFocus':!0x0}),this[_0x292f('0x16')]=_0x276b5d);}}Mt[_0x292f('0xf')]=Lt;
|
|
@@ -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';
|
|
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 _0x3d62=['fire','isFocused','attachDomRoot','element','ready','rootName','view','render','focusTracker','setEditableElement','editable','name','locale','editing','getRoot'];(function(_0x345961,_0x3d62b6){const _0x1ee54c=function(_0x3a3abb){while(--_0x3a3abb){_0x345961['push'](_0x345961['shift']());}};_0x1ee54c(++_0x3d62b6);}(_0x3d62,0x140));const _0x1ee5=function(_0x345961,_0x3d62b6){_0x345961=_0x345961-0x0;let _0x1ee54c=_0x3d62[_0x345961];return _0x1ee54c;};import{EditorUI as _0x1812d7}from'ckeditor5/src/ui';import _0x4c7c8e from'./commenteditoruiview';export default class Ft extends _0x1812d7{constructor(_0x29f7af){super(_0x29f7af),this['view']=new _0x4c7c8e(_0x29f7af[_0x1ee5('0x7')],_0x29f7af[_0x1ee5('0x8')]['view']);}get[_0x1ee5('0xd')](){return this[_0x1ee5('0x1')]['element'];}['init'](){const _0x1faacb=this['editor'][_0x1ee5('0x8')][_0x1ee5('0x1')],_0x3d28d0=this[_0x1ee5('0x1')][_0x1ee5('0x5')],_0x28b3ca=_0x1faacb['document'][_0x1ee5('0x9')]();_0x3d28d0[_0x1ee5('0x6')]=_0x28b3ca[_0x1ee5('0x0')],this[_0x1ee5('0x1')][_0x1ee5('0x2')]();const _0x3b1e09=_0x3d28d0[_0x1ee5('0xd')];this[_0x1ee5('0x4')](_0x3d28d0['name'],_0x3b1e09),this[_0x1ee5('0x1')][_0x1ee5('0x5')]['bind'](_0x1ee5('0xb'))['to'](this[_0x1ee5('0x3')]),_0x1faacb[_0x1ee5('0xc')](_0x3b1e09),this[_0x1ee5('0xa')](_0x1ee5('0xe'));}['destroy'](){super['destroy'](),this[_0x1ee5('0x1')]['destroy']();}}
|
|
@@ -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';
|
|
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 _0x3674=['uiLanguageDirection','_voiceLabelView','element','setTemplate','ck-voice-label','cke-editor__aria-label_','ck-reset','presentation','editable','uiLanguage','extendTemplate','add','div','_createVoiceLabel','text','focus','createCollection','main'];(function(_0x398242,_0x36746a){const _0x53c724=function(_0x590574){while(--_0x590574){_0x398242['push'](_0x398242['shift']());}};_0x53c724(++_0x36746a);}(_0x3674,0x73));const _0x53c7=function(_0x398242,_0x36746a){_0x398242=_0x398242-0x0;let _0x53c724=_0x3674[_0x398242];return _0x53c724;};import{InlineEditableUIView as _0x288419,EditorUIView as _0x47e88c,LabelView as _0x48e4f5}from'ckeditor5/src/ui';import{uid as _0x5a7dda}from'ckeditor5/src/utils';import{getTranslation as _0x2ffd57}from'../../../utils/common-translations';export default class Qt extends _0x47e88c{constructor(_0x26d8c3,_0x21aa3d){super(_0x26d8c3);const _0x8603d3=_0x5a7dda();this[_0x53c7('0xa')]=this[_0x53c7('0x9')](),this[_0x53c7('0x1')]=new _0x288419(_0x26d8c3,_0x21aa3d),this[_0x53c7('0xc')]=this[_0x53c7('0x6')](_0x8603d3,_0x26d8c3),this[_0x53c7('0xe')]({'tag':_0x53c7('0x5'),'attributes':{'class':[_0x53c7('0x11'),'ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x26d8c3[_0x53c7('0xb')],'lang':_0x26d8c3[_0x53c7('0x2')],'aria-labelledby':_0x53c7('0x10')+_0x8603d3},'children':[this[_0x53c7('0xc')],{'tag':_0x53c7('0x5'),'attributes':{'class':'ck-editor__main','role':_0x53c7('0x0')},'children':this[_0x53c7('0xa')]}]});}['render'](){super['render'](),this['main'][_0x53c7('0x4')](this[_0x53c7('0x1')]);}[_0x53c7('0x8')](){this[_0x53c7('0x1')][_0x53c7('0xd')][_0x53c7('0x8')]();}[_0x53c7('0x6')](_0x445b68,_0xe10c77){const _0x29eb7e=new _0x48e4f5();return _0x29eb7e[_0x53c7('0x7')]=_0x2ffd57(_0xe10c77,'Comment\x20editor'),_0x29eb7e[_0x53c7('0x3')]({'attributes':{'id':'ck-editor__aria-label_'+_0x445b68,'class':_0x53c7('0xf')}}),_0x29eb7e;}}
|
|
@@ -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';
|
|
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 {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5894=['resolve','view','reopen','submitCommentThread','reopenCommentThread','addComment','listenTo','remove','getComment','isResolved','submit','stopListening','destroy','resolveCommentThread','_isAttached','model','removeComment','updateComment','removeCommentThread'];(function(_0x1d2828,_0x5894ad){var _0x4917e5=function(_0x5859bf){while(--_0x5859bf){_0x1d2828['push'](_0x1d2828['shift']());}};_0x4917e5(++_0x5894ad);}(_0x5894,0xde));var _0x4917=function(_0x1d2828,_0x5894ad){_0x1d2828=_0x1d2828-0x0;var _0x4917e5=_0x5894[_0x1d2828];return _0x4917e5;};import{ObservableMixin as _0x501174}from'ckeditor5/src/utils';export default class ct extends _0x501174(){constructor(_0x48e9f2,_0x4e912f){super(),this[_0x4917('0x2')]=_0x48e9f2,this['model'][_0x4917('0x1')]=!0x0,this[_0x4917('0x7')]=_0x4e912f,this[_0x4917('0xc')](_0x4e912f,_0x4917('0x9'),()=>this['submit']()),this['listenTo'](_0x4e912f,_0x4917('0x5'),()=>this[_0x4917('0xd')]()),this[_0x4917('0xc')](_0x4e912f,_0x4917('0x0'),()=>this['resolve']()),this[_0x4917('0xc')](_0x4e912f,_0x4917('0xa'),()=>this[_0x4917('0x8')]()),this[_0x4917('0xc')](_0x4e912f,_0x4917('0xb'),(_0x3633c4,_0x41e65b)=>this[_0x4917('0xb')](_0x41e65b)),this[_0x4917('0xc')](_0x4e912f,'updateComment',(_0x1f13f0,_0x2fb7aa,_0x3b17ad)=>this[_0x4917('0x4')](_0x2fb7aa,_0x3b17ad)),this['listenTo'](_0x4e912f,_0x4917('0x3'),(_0x5cde86,_0xa9ef17)=>this[_0x4917('0x3')](_0xa9ef17));}[_0x4917('0x10')](){this[_0x4917('0x2')]['submit']();}[_0x4917('0xd')](){this[_0x4917('0x2')][_0x4917('0xd')]();}[_0x4917('0x6')](){this[_0x4917('0x2')][_0x4917('0xf')]||this[_0x4917('0x2')][_0x4917('0x6')]();}[_0x4917('0x8')](){this[_0x4917('0x2')][_0x4917('0xf')]&&this[_0x4917('0x2')][_0x4917('0x8')]();}[_0x4917('0xb')](_0x18c4e5){this['model'][_0x4917('0xb')]({'content':_0x18c4e5,'authorId':this['view']['_localUser']['id']});}[_0x4917('0x4')](_0x308a12,_0x3fbae0){this[_0x4917('0x2')][_0x4917('0xe')](_0x308a12)['update']({'content':_0x3fbae0});}[_0x4917('0x3')](_0x4299a0){this['model'][_0x4917('0xe')](_0x4299a0)['remove']();}[_0x4917('0x12')](){this[_0x4917('0x11')](),this['model'][_0x4917('0x1')]=!0x1;}}
|