@ckeditor/ckeditor5-comments 40.2.0 → 41.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/lang/translations/af.po +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/bs.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-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- 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/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.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-br.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/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.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 -3
- package/src/annotations/annotation.d.ts +7 -7
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +4 -4
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +7 -7
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +6 -6
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +5 -5
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +7 -7
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +7 -7
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +6 -6
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +3 -3
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +3 -3
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +3 -3
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +3 -3
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +6 -6
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +2 -2
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +5 -5
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +6 -6
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +7 -7
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +12 -12
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.d.ts +6 -6
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +2 -2
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +5 -5
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -4
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +5 -5
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +5 -5
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +9 -9
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +5 -5
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +3 -3
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +3 -3
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +5 -5
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +4 -4
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +6 -6
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -4
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +6 -6
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +8 -8
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +9 -9
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +11 -11
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +3 -3
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +4 -4
- package/src/config.js +1 -1
- package/src/index.d.ts +21 -21
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +2 -2
- package/theme/annotation-inline.css +1 -1
- package/theme/annotation.css +5 -1
- package/theme/comment.css +1 -1
- package/theme/commentinput.css +1 -1
- package/theme/commentmarker.css +1 -1
- package/theme/commentsarchive.css +2 -2
- package/theme/commentthread.css +5 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/comments-archive.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +1 -1
- package/theme/sidebar.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x44de=['get','_viewToController','model','editing','add','icon','addCommentThread','addSourceCollector','pluginName','listenTo','view','execute','stop','addComment','highest','map','isFocused','getRange','_createUIButton','change:activeAnnotations','Comment','componentFactory','CommentThreadInputView','init','from','comment:','tooltip','plugins','innerView','activeMarker','label','getAllMarkersForId','bind','isEnabled','removeCommentThread','locale','commands','hasMarkerForId','length','_threadToController','focus','editor','find','comment'];(function(_0x2de574,_0x44de0d){const _0x47a34f=function(_0x387760){while(--_0x387760){_0x2de574['push'](_0x2de574['shift']());}};_0x47a34f(++_0x44de0d);}(_0x44de,0x124));const _0x47a3=function(_0x2de574,_0x44de0d){_0x2de574=_0x2de574-0x0;let _0x47a34f=_0x44de[_0x2de574];return _0x47a34f;};import{Plugin as _0x2f3550}from'ckeditor5/src/core.js';import _0x18d26d from'./commentsrepository.js';import _0x1137c0 from'./commentsediting.js';import _0x2f8b83 from'../annotations/editorannotations.js';import{ButtonView as _0x2b729b}from'ckeditor5/src/ui.js';import _0x5a8b77 from'../../theme/icons/add-comment.svg';import _0x4be674 from'../annotations/annotations.js';import _0x5cf315 from'./ui/view/commentslistview.js';import _0x304349 from'./ui/view/commentthreadinputview.js';import{getTranslation as _0x4f9711}from'../utils/common-translations.js';export default class s extends _0x2f3550{static get[_0x47a3('0x18')](){return'CommentsUI';}static get['requires'](){return[_0x18d26d,_0x1137c0,_0x2f8b83,_0x4be674];}get['CommentsListView'](){return _0x5cf315;}get[_0x47a3('0x26')](){return _0x304349;}[_0x47a3('0x27')](){const _0x196ccc=this[_0x47a3('0xd')],_0x316655=_0x196ccc[_0x47a3('0x2b')][_0x47a3('0x10')](_0x18d26d),_0x279100=_0x196ccc[_0x47a3('0x2b')][_0x47a3('0x10')](_0x1137c0),_0x10bf7b=_0x196ccc['plugins'][_0x47a3('0x10')](_0x4be674),_0x3ccca7=_0x196ccc[_0x47a3('0x2b')][_0x47a3('0x10')](_0x2f8b83);_0x196ccc['ui'][_0x47a3('0x25')][_0x47a3('0x14')](_0x47a3('0xf'),()=>this[_0x47a3('0x22')]()),_0x3ccca7[_0x47a3('0x17')](()=>{const _0x2f78fb=[];for(const [_0x5724f3,_0x570f80]of _0x316655[_0x47a3('0xb')]){const _0x18cda3=_0x279100[_0x47a3('0x3')](_0x5724f3['id']),_0x3c89e6=_0x18cda3[_0x47a3('0x1f')](_0x4b5318=>_0x4b5318[_0x47a3('0x21')]());_0x18cda3[_0x47a3('0xa')]>0x0&&_0x2f78fb['push']([_0x570f80[_0x47a3('0x1a')],_0x3c89e6]);}return _0x2f78fb;}),this[_0x47a3('0x19')](_0x10bf7b,_0x47a3('0x23'),(_0x1802b8,_0x3a5923,_0x305e87)=>{const _0xb7fe30=Array[_0x47a3('0x28')](_0x305e87)['map'](_0x18ffbe=>_0x18ffbe[_0x47a3('0x0')])[_0x47a3('0xe')](_0x3346ed=>_0x316655[_0x47a3('0x11')]['has'](_0x3346ed));if(!_0xb7fe30)return void(_0x279100[_0x47a3('0x1')]=null);const _0x3cebf8=_0x316655[_0x47a3('0x11')][_0x47a3('0x10')](_0xb7fe30)[_0x47a3('0x12')]['id'],_0x23ab94=_0x47a3('0x29')+_0x3cebf8;_0x3cebf8&&_0x279100[_0x47a3('0x9')](_0x3cebf8)?_0x279100[_0x47a3('0x1')]=_0x23ab94:_0x279100['activeMarker']&&(_0x279100[_0x47a3('0x1')]=null);}),this['listenTo'](_0x316655,_0x47a3('0x6'),(_0x1b4b8e,{threadId:_0x22b9e7,isFromAdapter:_0xa95000})=>{!_0xa95000&&_0x196ccc['ui']['focusTracker'][_0x47a3('0x20')]&&_0x279100['hasMarkerForId'](_0x22b9e7)&&_0x196ccc[_0x47a3('0x13')][_0x47a3('0x1a')]['focus']();},{'priority':_0x47a3('0x1e')}),this[_0x47a3('0x19')](_0x316655,_0x47a3('0x1d'),(_0x521c9c,{threadId:_0x2b2de4,isFromAdapter:_0x2f4902})=>{if(_0x2f4902||!_0x279100['hasMarkerForId'](_0x2b2de4)||!_0x316655['hasCommentThread'](_0x2b2de4))return;0x1===_0x316655['getCommentThread'](_0x2b2de4)[_0x47a3('0xa')]&&(_0x196ccc[_0x47a3('0x13')][_0x47a3('0x1a')][_0x47a3('0xc')](),_0x521c9c[_0x47a3('0x1c')]());},{'priority':'low'});}[_0x47a3('0x22')](){const _0x192c24=this[_0x47a3('0xd')],_0x5b4209=new _0x2b729b(_0x192c24[_0x47a3('0x7')]),_0x2f9404=_0x192c24[_0x47a3('0x8')][_0x47a3('0x10')](_0x47a3('0x16'));return _0x5b4209[_0x47a3('0x2')]=_0x4f9711(_0x192c24['locale'],_0x47a3('0x24')),_0x5b4209[_0x47a3('0x2a')]=_0x4f9711(_0x192c24[_0x47a3('0x7')],'Comment'),_0x5b4209[_0x47a3('0x15')]=_0x5a8b77,_0x5b4209[_0x47a3('0x4')](_0x47a3('0x5'))['to'](_0x2f9404),this[_0x47a3('0x19')](_0x5b4209,_0x47a3('0x1b'),()=>_0x2f9404[_0x47a3('0x1b')]()),_0x5b4209;}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/integrations/commentsrestrictededitingmode
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides comments plugin integration for restricted editing mode feature from restricted editing package.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x5bd4=['editor','afterInit','has','plugins','enableCommand','addCommentThread','get'];(function(_0x349167,_0x5bd442){const _0x57fc0c=function(_0x207e5d){while(--_0x207e5d){_0x349167['push'](_0x349167['shift']());}};_0x57fc0c(++_0x5bd442);}(_0x5bd4,0x141));const _0x57fc=function(_0x349167,_0x5bd442){_0x349167=_0x349167-0x0;let _0x57fc0c=_0x5bd4[_0x349167];return _0x57fc0c;};import{Plugin as _0x4fbf3e}from'ckeditor5/src/core.js';export default class Y extends _0x4fbf3e{[_0x57fc('0x2')](){const _0x5994ae=this[_0x57fc('0x1')];if(!_0x5994ae[_0x57fc('0x4')][_0x57fc('0x3')]('RestrictedEditingModeEditing'))return;_0x5994ae[_0x57fc('0x4')][_0x57fc('0x0')]('RestrictedEditingModeEditing')[_0x57fc('0x5')](_0x57fc('0x6'));}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/integrations/importword
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides comments plugin integration for the import from Word feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x3b08=['collaboration_features','listenTo','config','get','importWord','importWord.formatting.comments','define','map','dataInsert','plugins','editor','addCommentThread','basic','_handleImportedData','collaboration.channelId','commands'];(function(_0x168a8f,_0x3b085){const _0x424d77=function(_0x22a8f9){while(--_0x22a8f9){_0x168a8f['push'](_0x168a8f['shift']());}};_0x424d77(++_0x3b085);}(_0x3b08,0xc2));const _0x424d=function(_0x168a8f,_0x3b085){_0x168a8f=_0x168a8f-0x0;let _0x424d77=_0x3b08[_0x168a8f];return _0x424d77;};import{Plugin as _0x2a45b4}from'ckeditor5/src/core.js';import{priorities as _0x64cc9e}from'ckeditor5/src/utils.js';import{Users as _0x1d449c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5df313 from'../commentsrepository.js';export default class Z extends _0x2a45b4{constructor(_0xf22a8b){super(_0xf22a8b),this[_0x424d('0x8')][_0x424d('0x0')][_0x424d('0x4')](_0x424d('0x3'),_0x424d('0xa'));}['afterInit'](){const _0xd3733e=this['editor'],_0x26377=_0xd3733e[_0x424d('0xd')]['get']('importWord'),_0x5785c3=_0xd3733e['plugins'][_0x424d('0x1')](_0x1d449c);_0x26377&&(_0x26377['on']('execute',(_0xdc2c66,[,_0xf5a26d])=>{_0xf5a26d[_0x424d('0xe')]={'comments':!0x0,'user_id':_0x5785c3['me']['id']};},{'priority':_0x64cc9e['high']+0xa}),this[_0x424d('0xf')](_0x26377,_0x424d('0x6'),this[_0x424d('0xb')]));}[_0x424d('0xb')](_0x55a841,_0x25130c){const {comment_threads:_0xbb73af}=_0x25130c;_0xbb73af&&_0xbb73af['forEach'](({thread_id:_0x176c71,comments:_0x100319,is_resolved:_0x7e532c})=>{const _0x3db457=new Date(),_0x539d64=_0x100319[_0x424d('0x5')](({author:_0x8960cc,content:_0x2e97fd,created_at:_0x5b03f3})=>({'content':_0x2e97fd,'authorId':this[_0x424d('0x8')][_0x424d('0x7')][_0x424d('0x1')](_0x1d449c)['me']['id'],'createdAt':_0x3db457,'attributes':{'@external':{'authorName':_0x8960cc,'createdAt':_0x5b03f3?new Date(_0x5b03f3):new Date(),'source':_0x424d('0x2')}}})),_0x47006e=this[_0x424d('0x8')][_0x424d('0x0')][_0x424d('0x1')](_0x424d('0xc'));this[_0x424d('0x8')][_0x424d('0x7')][_0x424d('0x1')](_0x5df313)[_0x424d('0x9')]({'channelId':_0x47006e,'threadId':_0x176c71,'comments':_0x539d64,'resolvedAt':_0x7e532c?_0x3db457:null});});}}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/commenteditor/commenteditor
|
|
7
7
|
*/
|
|
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
|
+
import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
|
|
9
|
+
import CommentEditorUI from './commenteditorui.js';
|
|
10
|
+
import { type PlaceholderableElement } from 'ckeditor5/src/engine.js';
|
|
11
|
+
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>;
|
|
12
12
|
export default class CommentEditor extends CommentEditor_base {
|
|
13
13
|
static defaultPlugins: EditorConfig['plugins'];
|
|
14
14
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x4091=['_updatePlaceholder','initPlugins','create','data','get','then','end','model','setSelection','low','config','childCount','change','name','init','placeholder','defaultPlugins','plugins','createRoot','destroy','getChild','document','ready','focus','fire','editing','assign','change:placeholder','view','initialData','getRoot','placeholderElement'];(function(_0x211ef9,_0x40919b){const _0x6b88e9=function(_0x4b763f){while(--_0x4b763f){_0x211ef9['push'](_0x211ef9['shift']());}};_0x6b88e9(++_0x40919b);}(_0x4091,0xef));const _0x6b88=function(_0x211ef9,_0x40919b){_0x211ef9=_0x211ef9-0x0;let _0x6b88e9=_0x4091[_0x211ef9];return _0x6b88e9;};import{Editor as _0x3fc9ba,DataApiMixin as _0x1e4f2d}from'ckeditor5/src/core.js';import _0x5a445c from'./commenteditorui.js';import{ObservableMixin as _0x4a9b03}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x3d70ff,disablePlaceholder as _0x3a70c4}from'ckeditor5/src/engine.js';import{Clipboard as _0xa8beb3}from'ckeditor5/src/clipboard.js';import{Enter as _0x3282e1,ShiftEnter as _0x1b2b14}from'ckeditor5/src/enter.js';import{SelectAll as _0xbc51e9}from'ckeditor5/src/select-all.js';import{Typing as _0x27efa0}from'ckeditor5/src/typing.js';import{Undo as _0x1482e1}from'ckeditor5/src/undo.js';import{Paragraph as _0x3e2575}from'ckeditor5/src/paragraph.js';const Mt=[_0xa8beb3,_0x3282e1,_0x1b2b14,_0xbc51e9,_0x27efa0,_0x1482e1,_0x3e2575];class Nt extends _0x4a9b03(_0x1e4f2d(_0x3fc9ba)){constructor(_0x1e8985={}){(_0x1e8985=Object[_0x6b88('0xb')]({},_0x1e8985))[_0x6b88('0x2')]||(_0x1e8985[_0x6b88('0x2')]=Nt[_0x6b88('0x1')]),super(_0x1e8985),this['ui']=new _0x5a445c(this),this['set'](_0x6b88('0x0'),''),this[_0x6b88('0x18')]['document']['on'](_0x6b88('0x1d'),()=>this[_0x6b88('0x11')](),{'priority':_0x6b88('0x1a')}),this['on'](_0x6b88('0xc'),()=>this[_0x6b88('0x11')]()),this['model'][_0x6b88('0x6')][_0x6b88('0x3')]();}[_0x6b88('0x13')](){const _0xf7c096=this[_0x6b88('0x1b')][_0x6b88('0x15')](_0x6b88('0xe'))||'';return this[_0x6b88('0x12')]()[_0x6b88('0x16')](()=>this['ui'][_0x6b88('0x1f')]())[_0x6b88('0x16')](()=>this[_0x6b88('0x14')][_0x6b88('0x1f')](_0xf7c096))[_0x6b88('0x16')](()=>this[_0x6b88('0x9')](_0x6b88('0x7')));}[_0x6b88('0x4')](){return super[_0x6b88('0x4')]()[_0x6b88('0x16')](()=>this['ui'][_0x6b88('0x4')]());}[_0x6b88('0x8')](){this[_0x6b88('0x18')][_0x6b88('0x1d')](_0x1c17cf=>{const _0x9ad17f=this['model'][_0x6b88('0x6')][_0x6b88('0xf')](),_0x1cd369=_0x9ad17f&&_0x9ad17f[_0x6b88('0x5')](_0x9ad17f[_0x6b88('0x1c')]-0x1);_0x1c17cf[_0x6b88('0x19')](_0x1cd369,_0x6b88('0x17')),this[_0x6b88('0xa')][_0x6b88('0xd')][_0x6b88('0x8')]();});}[_0x6b88('0x11')](){const _0x51e50c=this['editing'][_0x6b88('0xd')],_0x1bceae=_0x51e50c['document'][_0x6b88('0xf')](),_0xd5af07=_0x1bceae[_0x6b88('0x5')](0x0);_0x1bceae[_0x6b88('0x1c')]>0x1||!_0xd5af07||'p'!=_0xd5af07[_0x6b88('0x1e')]?this[_0x6b88('0x10')]&&this[_0x6b88('0x10')]['placeholder']&&(_0x3a70c4(_0x51e50c,this[_0x6b88('0x10')]),this['placeholderElement']=void 0x0):(this[_0x6b88('0x0')]&&(_0xd5af07['placeholder']=this[_0x6b88('0x0')]),_0x3d70ff({'view':_0x51e50c,'element':_0xd5af07,'keepOnFocus':!0x0}),this[_0x6b88('0x10')]=_0xd5af07);}}Nt[_0x6b88('0x1')]=Mt;export default Nt;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/commenteditor/commenteditorui
|
|
7
7
|
*/
|
|
8
|
-
import { EditorUI } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import CommentEditorUIView from './commenteditoruiview';
|
|
8
|
+
import { EditorUI } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import CommentEditorUIView from './commenteditoruiview.js';
|
|
11
11
|
export default class CommentEditorUI extends EditorUI {
|
|
12
12
|
/**
|
|
13
13
|
* The main (top–most) view of the editor UI.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x4075=['name','editing','element','init','editor','setEditableElement','fire','getRoot','focusTracker','locale','ready','destroy','view','editable','render','bind'];(function(_0x36abfd,_0x4075ce){const _0xe451fe=function(_0x1c5fd3){while(--_0x1c5fd3){_0x36abfd['push'](_0x36abfd['shift']());}};_0xe451fe(++_0x4075ce);}(_0x4075,0x149));const _0xe451=function(_0x36abfd,_0x4075ce){_0x36abfd=_0x36abfd-0x0;let _0xe451fe=_0x4075[_0x36abfd];return _0xe451fe;};import{EditorUI as _0x4dc5f6}from'ckeditor5/src/ui.js';import _0x1004c6 from'./commenteditoruiview.js';export default class Ft extends _0x4dc5f6{constructor(_0x1a3d99){super(_0x1a3d99),this[_0xe451('0x3')]=new _0x1004c6(_0x1a3d99[_0xe451('0x0')],_0x1a3d99[_0xe451('0x8')]['view']);}get[_0xe451('0x9')](){return this[_0xe451('0x3')][_0xe451('0x9')];}[_0xe451('0xa')](){const _0x143d6c=this[_0xe451('0xb')]['editing']['view'],_0x568640=this[_0xe451('0x3')][_0xe451('0x4')],_0x2024f0=_0x143d6c['document'][_0xe451('0xe')]();_0x568640['name']=_0x2024f0['rootName'],this[_0xe451('0x3')][_0xe451('0x5')]();const _0x34d469=_0x568640[_0xe451('0x9')];this[_0xe451('0xc')](_0x568640[_0xe451('0x7')],_0x34d469),this[_0xe451('0x3')][_0xe451('0x4')][_0xe451('0x6')]('isFocused')['to'](this[_0xe451('0xf')]),_0x143d6c['attachDomRoot'](_0x34d469),this[_0xe451('0xd')](_0xe451('0x1'));}[_0xe451('0x2')](){super['destroy'](),this[_0xe451('0x3')][_0xe451('0x2')]();}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/commenteditor/commenteditoruiview
|
|
7
7
|
*/
|
|
8
|
-
import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import type {
|
|
8
|
+
import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type { EditingView } from 'ckeditor5/src/engine.js';
|
|
11
11
|
export default class CommentEditorUIView extends EditorUIView {
|
|
12
12
|
/**
|
|
13
13
|
* Collection of the child views located in the main (`.ck-editor__main`)
|
|
@@ -24,7 +24,7 @@ export default class CommentEditorUIView extends EditorUIView {
|
|
|
24
24
|
* @param locale The locale instance.
|
|
25
25
|
* @param editingView The editing view instance this view is related to.
|
|
26
26
|
*/
|
|
27
|
-
constructor(locale: Locale, editingView:
|
|
27
|
+
constructor(locale: Locale, editingView: EditingView);
|
|
28
28
|
/**
|
|
29
29
|
* @inheritDoc
|
|
30
30
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x48ec=['div','ck-editor__main','setTemplate','ck-rounded-corners','_voiceLabelView','uiLanguageDirection','createCollection','_createVoiceLabel','Comment\x20editor','focus','text','main','ck-reset','cke-editor__aria-label_','uiLanguage','ck-editor__aria-label_','add','render','editable','comment','ck-comment__input'];(function(_0x1ddc4d,_0x48ec39){const _0x5a9122=function(_0x3223d7){while(--_0x3223d7){_0x1ddc4d['push'](_0x1ddc4d['shift']());}};_0x5a9122(++_0x48ec39);}(_0x48ec,0xe1));const _0x5a91=function(_0x1ddc4d,_0x48ec39){_0x1ddc4d=_0x1ddc4d-0x0;let _0x5a9122=_0x48ec[_0x1ddc4d];return _0x5a9122;};import{InlineEditableUIView as _0xfb6670,EditorUIView as _0x1a06c8,LabelView as _0x2a063f}from'ckeditor5/src/ui.js';import{uid as _0x24eb28}from'ckeditor5/src/utils.js';import{getTranslation as _0x1b3275}from'../../../utils/common-translations.js';export default class Rt extends _0x1a06c8{constructor(_0x12e41d,_0x1995d5){super(_0x12e41d);const _0x3ce748=_0x24eb28();this['main']=this[_0x5a91('0xc')](),this[_0x5a91('0x3')]=new _0xfb6670(_0x12e41d,_0x1995d5),this[_0x5a91('0xa')]=this['_createVoiceLabel'](_0x3ce748,_0x12e41d),this[_0x5a91('0x8')]({'tag':_0x5a91('0x6'),'attributes':{'class':[_0x5a91('0x12'),'ck-editor',_0x5a91('0x9'),_0x5a91('0x5')],'role':_0x5a91('0x4'),'dir':_0x12e41d[_0x5a91('0xb')],'lang':_0x12e41d[_0x5a91('0x14')],'aria-labelledby':_0x5a91('0x13')+_0x3ce748},'children':[this[_0x5a91('0xa')],{'tag':_0x5a91('0x6'),'attributes':{'class':_0x5a91('0x7'),'role':'presentation'},'children':this[_0x5a91('0x11')]}]});}[_0x5a91('0x2')](){super['render'](),this['main'][_0x5a91('0x1')](this[_0x5a91('0x3')]);}[_0x5a91('0xf')](){this[_0x5a91('0x3')]['element']['focus']();}[_0x5a91('0xd')](_0x539f39,_0x1f4d9a){const _0x518642=new _0x2a063f();return _0x518642[_0x5a91('0x10')]=_0x1b3275(_0x1f4d9a,_0x5a91('0xe')),_0x518642['extendTemplate']({'attributes':{'id':_0x5a91('0x0')+_0x539f39,'class':'ck-voice-label'}}),_0x518642;}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
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.js';
|
|
6
|
+
import type { default as BaseCommentThreadView } from './view/basecommentthreadview.js';
|
|
7
7
|
declare const CommentThreadController_base: {
|
|
8
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
9
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
8
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
9
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Controller for a comment thread.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x4d0a=['updateComment','_isAttached','removeCommentThread','submitCommentThread','addComment','reopenCommentThread','resolve','listenTo','remove','submit','resolveCommentThread','isResolved','destroy','reopen','getComment','removeComment','update','view','model'];(function(_0x1d57fb,_0x4d0a24){var _0x2c0a6a=function(_0x5073d4){while(--_0x5073d4){_0x1d57fb['push'](_0x1d57fb['shift']());}};_0x2c0a6a(++_0x4d0a24);}(_0x4d0a,0xdf));var _0x2c0a=function(_0x1d57fb,_0x4d0a24){_0x1d57fb=_0x1d57fb-0x0;var _0x2c0a6a=_0x4d0a[_0x1d57fb];return _0x2c0a6a;};import{ObservableMixin as _0x42d29f}from'ckeditor5/src/utils.js';export default class ut extends _0x42d29f(){constructor(_0x492a60,_0x3b386b){super(),this[_0x2c0a('0x4')]=_0x492a60,this[_0x2c0a('0x4')][_0x2c0a('0x6')]=!0x0,this[_0x2c0a('0x3')]=_0x3b386b,this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x8'),()=>this[_0x2c0a('0xe')]()),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x7'),()=>this[_0x2c0a('0xd')]()),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0xf'),()=>this['resolve']()),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0xa'),()=>this[_0x2c0a('0x12')]()),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x9'),(_0x379349,_0x4dda23)=>this[_0x2c0a('0x9')](_0x4dda23)),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x5'),(_0x5046be,_0x371720,_0x15b094)=>this[_0x2c0a('0x5')](_0x371720,_0x15b094)),this[_0x2c0a('0xc')](_0x3b386b,_0x2c0a('0x1'),(_0x80b1b3,_0x329ccc)=>this[_0x2c0a('0x1')](_0x329ccc));}[_0x2c0a('0xe')](){this[_0x2c0a('0x4')][_0x2c0a('0xe')]();}['remove'](){this['model']['remove']();}[_0x2c0a('0xb')](){this['model'][_0x2c0a('0x10')]||this[_0x2c0a('0x4')][_0x2c0a('0xb')]();}[_0x2c0a('0x12')](){this[_0x2c0a('0x4')][_0x2c0a('0x10')]&&this[_0x2c0a('0x4')][_0x2c0a('0x12')]();}[_0x2c0a('0x9')](_0x3405f7){this[_0x2c0a('0x4')][_0x2c0a('0x9')]({'content':_0x3405f7,'authorId':this['view']['_localUser']['id']});}[_0x2c0a('0x5')](_0x3f08fb,_0x334881){this[_0x2c0a('0x4')][_0x2c0a('0x0')](_0x3f08fb)[_0x2c0a('0x2')]({'content':_0x334881});}['removeComment'](_0x5d323d){this[_0x2c0a('0x4')][_0x2c0a('0x0')](_0x5d323d)[_0x2c0a('0xd')]();}[_0x2c0a('0x11')](){this['stopListening'](),this[_0x2c0a('0x4')]['_isAttached']=!0x1;}}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/view/basecommentthreadview
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { View } from 'ckeditor5/src/ui';
|
|
10
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
11
|
-
import CommentThreadInputView from './commentthreadinputview';
|
|
12
|
-
import CommentsListView from './commentslistview';
|
|
13
|
-
import CommentThreadHeaderView from './commentthreadheaderview';
|
|
14
|
-
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
15
|
-
import type { CommentThread } from '../../commentsrepository';
|
|
16
|
-
import type { CommentThreadConfig } from '../../../config';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import CommentThreadInputView from './commentthreadinputview.js';
|
|
12
|
+
import CommentsListView from './commentslistview.js';
|
|
13
|
+
import CommentThreadHeaderView from './commentthreadheaderview.js';
|
|
14
|
+
import type { User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
15
|
+
import type { CommentThread } from '../../commentsrepository.js';
|
|
16
|
+
import type { CommentThreadConfig } from '../../../config.js';
|
|
17
17
|
/**
|
|
18
18
|
* An abstract comment thread view class that should be used as a base for comment thread view implementations.
|
|
19
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) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x40ce=['Reply','locale','focus','assign','element','set','change:isActive','cancel','showInput','editorDestroyed','Reply...','isDirty','_model','commentThreadHeaderView','listenTo','removeCommentThread','isResolvable','bind','value','isActive','disabledSubmit','submit','removeComment','reopenCommentThread','destroy','isUnlinked','_createCommentThreadInputView','addComment','isReadOnly','_localUser','editorReady','commentThreadInputView','archivedAt','isSubmitted','isResolved','submitLabel','unlinkedAt','commentsListView','hasDirtyComment','commentInputView','fire','resolveCommentThread','_config','placeholder','delegate','Write\x20a\x20comment...','canComment','length'];(function(_0x35ea1b,_0x40ce2b){const _0x17eda5=function(_0xe97ae0){while(--_0xe97ae0){_0x35ea1b['push'](_0x35ea1b['shift']());}};_0x17eda5(++_0x40ce2b);}(_0x40ce,0x146));const _0x17ed=function(_0x35ea1b,_0x40ce2b){_0x35ea1b=_0x35ea1b-0x0;let _0x17eda5=_0x40ce[_0x35ea1b];return _0x17eda5;};import{View as _0x23ba80}from'ckeditor5/src/ui.js';import _0x4650c8 from'./commentthreadinputview.js';import _0xc3cf4d from'./commentslistview.js';import _0x25915c from'./commentthreadheaderview.js';import{getTranslation as _0x39e706}from'../../../utils/common-translations.js';export default class Ut extends _0x23ba80{constructor(_0x54d02a,_0x47c301,_0x229a71,_0x5a3bad){super(_0x54d02a),this[_0x17ed('0xf')]('isActive',!0x1),this[_0x17ed('0xf')](_0x17ed('0x15'),!0x1),this['_model']=_0x47c301,this[_0x17ed('0x27')]=_0x229a71,this[_0x17ed('0x4')]=_0x5a3bad,this[_0x17ed('0x17')]=new _0x25915c(_0x54d02a,_0x47c301),this[_0x17ed('0x17')][_0x17ed('0x6')](_0x17ed('0x21'))['to'](this),this[_0x17ed('0x18')](this,_0x17ed('0x21'),()=>{this['focus']();}),this['commentsListView']=new _0xc3cf4d(_0x54d02a,_0x47c301,Object[_0x17ed('0xd')]({'CommentView':this[_0x17ed('0x4')]['CommentView']},_0x5a3bad)),this['commentsListView'][_0x17ed('0x6')]('removeComment')['to'](this),this[_0x17ed('0x2f')][_0x17ed('0x6')]('updateComment')['to'](this),this['commentsListView'][_0x17ed('0x6')](_0x17ed('0x3'))['to'](this),this[_0x17ed('0x2f')][_0x17ed('0x6')](_0x17ed('0x28'))['to'](this),this[_0x17ed('0x2f')]['delegate']('editorDestroyed')['to'](this),this[_0x17ed('0x2f')][_0x17ed('0x1b')](_0x17ed('0x1d'))['to'](this),this[_0x17ed('0x18')](this,_0x17ed('0x3'),()=>{this[_0x17ed('0xc')]();}),this[_0x17ed('0xf')](_0x17ed('0x9'),this[_0x17ed('0x2f')][_0x17ed('0x9')]),this[_0x17ed('0x1b')](_0x17ed('0x9'))['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this[_0x17ed('0x24')](),this[_0x17ed('0x29')][_0x17ed('0x6')](_0x17ed('0x28'))['to'](this),this[_0x17ed('0x29')][_0x17ed('0x6')](_0x17ed('0x13'))['to'](this),this['on'](_0x17ed('0x20'),()=>this[_0x17ed('0xc')]()),this[_0x17ed('0x1b')](_0x17ed('0x15'))['to'](this[_0x17ed('0x2f')],_0x17ed('0x0'),this[_0x17ed('0x29')]['commentInputView'],_0x17ed('0x1c'),(_0x36df07,_0x23a57d)=>_0x36df07||!!_0x23a57d),this[_0x17ed('0x1b')](_0x17ed('0x23'))['to'](_0x47c301,_0x17ed('0x2e'),_0x3746ad=>!!_0x3746ad);}[_0x17ed('0xc')](){this[_0x17ed('0xe')][_0x17ed('0xc')]();}async[_0x17ed('0x22')](){this[_0x17ed('0x15')]=!0x1,this[_0x17ed('0x2f')][_0x17ed('0x22')](),await this[_0x17ed('0x29')][_0x17ed('0x22')](),super[_0x17ed('0x22')]();}['_createCommentThreadInputView'](){const _0x5d0ba4=new _0x4650c8(this[_0x17ed('0xb')],this[_0x17ed('0x27')],this[_0x17ed('0x4')]['editorConfig']),_0x569292=_0x5d0ba4[_0x17ed('0x1')];return _0x5d0ba4['bind'](_0x17ed('0x12'))['to'](this,_0x17ed('0x1d'),this[_0x17ed('0x16')],'isReadOnly',this[_0x17ed('0x16')],_0x17ed('0x8'),this[_0x17ed('0x16')],_0x17ed('0x2a'),_0x569292,_0x17ed('0x1c'),(_0x4420ba,_0x2e3179,_0x5eadba,_0x8562cd,_0x2aadf8)=>!!_0x2aadf8||!!_0x8562cd&&_0x5eadba&&!_0x2e3179||_0x4420ba&&_0x5eadba&&!_0x2e3179),_0x569292['bind'](_0x17ed('0x5'))['to'](this,'length',this[_0x17ed('0x16')],_0x17ed('0x1a'),this['_model'],'isResolved',(_0x114b2b,_0x186eb1,_0x4ec1b1)=>{let _0x1d03da;return _0x1d03da=_0x4ec1b1&&_0x186eb1?'Reply\x20to\x20reopen\x20discussion...':_0x114b2b?_0x17ed('0x14'):_0x17ed('0x7'),_0x39e706(this['locale'],_0x1d03da);}),_0x569292['bind'](_0x17ed('0x2d'))['to'](this,_0x17ed('0x9'),_0x5a4f35=>_0x39e706(this[_0x17ed('0xb')],_0x5a4f35?_0x17ed('0xa'):'Comment')),_0x569292['on'](_0x17ed('0x1f'),(_0x4559a7,_0x3d9b0a)=>{this[_0x17ed('0x2')](_0x17ed('0x25'),_0x3d9b0a),this[_0x17ed('0x16')][_0x17ed('0x2c')]&&this[_0x17ed('0x16')]['isResolvable']&&this[_0x17ed('0x2')]('reopenCommentThread',this[_0x17ed('0x16')]['id']),this[_0x17ed('0x16')][_0x17ed('0x2b')]||this[_0x17ed('0x2')]('submitCommentThread');}),_0x569292['on'](_0x17ed('0x11'),()=>{this['focus']();}),_0x569292[_0x17ed('0x1b')](_0x17ed('0x1e'))['to'](this[_0x17ed('0x16')],_0x17ed('0x26')),_0x569292['on'](_0x17ed('0x11'),_0x1c11de=>{0x0==this[_0x17ed('0x9')]&&(this[_0x17ed('0x2')]('removeCommentThread'),_0x1c11de['stop']());}),this['on'](_0x17ed('0x10'),(_0x3fdb2f,_0x305933,_0x5e5e16)=>{_0x5e5e16||this[_0x17ed('0x9')]||_0x569292[_0x17ed('0x1c')]||this[_0x17ed('0x2')](_0x17ed('0x19'));}),_0x5d0ba4;}}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/view/basecommentview
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
11
|
-
import type { Comment } from '../../commentsrepository';
|
|
12
|
-
import type { CommentViewConfig } from '../../../config';
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import type { Comment } from '../../commentsrepository.js';
|
|
12
|
+
import type { CommentViewConfig } from '../../../config.js';
|
|
13
13
|
/**
|
|
14
14
|
* An abstract comment view class that should be used as a base for comment view implementations.
|
|
15
15
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x52d0=['editorDestroyed','remove','destroy','content','editorConfig','set','visibleView','_createCommentInputView','isEditMode','submitLabel','delegate','cancel','switchToDisplayMode','isCollapsed','updateComment','focus','collapse','_model','locale','value','isSystemComment','_createCommentContentView','_config','disabledSubmit','expand','isReadOnly','bind','editorReady','once','Save'];(function(_0x5c04a9,_0x52d063){const _0x28a590=function(_0x37c167){while(--_0x37c167){_0x5c04a9['push'](_0x5c04a9['shift']());}};_0x28a590(++_0x52d063);}(_0x52d0,0x1e6));const _0x28a5=function(_0x5c04a9,_0x52d063){_0x5c04a9=_0x5c04a9-0x0;let _0x28a590=_0x52d0[_0x5c04a9];return _0x28a590;};import{View as _0x11bb6e}from'ckeditor5/src/ui.js';import{trimHtml as _0x370637}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4e095d from'./commentcontentview.js';import _0x2bbf21 from'./commentinputview.js';import{getTranslation as _0x5b0f78}from'../../../utils/common-translations.js';export default class ti extends _0x11bb6e{constructor(_0x404c35,_0x2ee431,_0x5beae0){super(_0x404c35),this[_0x28a5('0xb')]=_0x2ee431,this['_config']=_0x5beae0,this[_0x28a5('0xe')]=!!this[_0x28a5('0x10')]['isSystemComment'],this[_0x28a5('0x1d')](_0x28a5('0x2'),!0x1),this[_0x28a5('0x1d')](_0x28a5('0x7'),!0x0),this[_0x28a5('0x0')]=this['createCollection'](),this[_0x28a5('0x0')]['add'](this[_0x28a5('0xf')]());}[_0x28a5('0x12')](){this[_0x28a5('0x7')]=!0x1;}[_0x28a5('0xa')](){this[_0x28a5('0x2')]||(this['isCollapsed']=!0x0);}[_0x28a5('0x9')](){this['element'][_0x28a5('0x9')]();}async[_0x28a5('0x1a')](){await this[_0x28a5('0x0')]['get'](0x0)[_0x28a5('0x1a')](),super[_0x28a5('0x1a')]();}['switchToEditMode'](){this[_0x28a5('0x2')]||(this[_0x28a5('0x2')]=!0x0,this[_0x28a5('0x0')][_0x28a5('0x19')](0x0)['destroy'](),this[_0x28a5('0x0')]['add'](this[_0x28a5('0x1')]()));}[_0x28a5('0x6')](){this['isEditMode']&&(this[_0x28a5('0x2')]=!0x1,this[_0x28a5('0x0')]['remove'](0x0)['destroy'](),this[_0x28a5('0x0')]['add'](this['_createCommentContentView']()));}[_0x28a5('0xf')](){const _0xba5ade=new _0x4e095d(this[_0x28a5('0xc')]);return _0xba5ade[_0x28a5('0x14')]('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4e746c,_0x3b57bb)=>_0x3b57bb?_0x370637(_0x4e746c,{'limit':this[_0x28a5('0x10')]['maxCommentCharsWhenCollapsed']}):_0x4e746c),_0xba5ade;}[_0x28a5('0x1')](){this['_config'][_0x28a5('0x1c')]||(this[_0x28a5('0x10')][_0x28a5('0x1c')]={}),this[_0x28a5('0x10')][_0x28a5('0x1c')]['initialData']=this['_model']['content'];const _0x4c93ff=new _0x2bbf21(this[_0x28a5('0xc')],this[_0x28a5('0x10')]['editorConfig']);return _0x4c93ff[_0x28a5('0xd')]=this[_0x28a5('0xb')][_0x28a5('0x1b')],_0x4c93ff[_0x28a5('0x14')](_0x28a5('0x11'))['to'](this['_model'],_0x28a5('0x13')),_0x4c93ff[_0x28a5('0x3')]=_0x5b0f78(this[_0x28a5('0xc')],_0x28a5('0x17')),_0x4c93ff['on']('submit',(_0x5e52cb,_0x129d6f)=>{this['fire'](_0x28a5('0x8'),this[_0x28a5('0xb')]['id'],_0x129d6f),this[_0x28a5('0x6')](),this[_0x28a5('0x9')]();}),_0x4c93ff['on'](_0x28a5('0x5'),()=>{this[_0x28a5('0x6')](),this['focus']();}),_0x4c93ff[_0x28a5('0x16')](_0x28a5('0x15'),()=>{_0x4c93ff['focus']();}),_0x4c93ff['createEditor'](),_0x4c93ff['delegate'](_0x28a5('0x15'))['to'](this),_0x4c93ff[_0x28a5('0x4')](_0x28a5('0x18'))['to'](this),_0x4c93ff;}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/view/collapsedcommentsview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
export default class CollapsedCommentsView extends View {
|
|
11
11
|
count: number | undefined;
|
|
12
12
|
constructor(locale: Locale);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0xc116=['setTemplate','count','ck-thread__comment-count','NUMBER_OF_COMMENTS'];(function(_0x11b8db,_0xc116b9){const _0x457b82=function(_0x38ebb4){while(--_0x38ebb4){_0x11b8db['push'](_0x11b8db['shift']());}};_0x457b82(++_0xc116b9);}(_0xc116,0xae));const _0x457b=function(_0x11b8db,_0xc116b9){_0x11b8db=_0x11b8db-0x0;let _0x457b82=_0xc116[_0x11b8db];return _0x457b82;};import{View as _0x565851}from'ckeditor5/src/ui.js';import{getTranslation as _0x27455a}from'../../../utils/common-translations.js';export default class ts extends _0x565851{constructor(_0x662f45){super(_0x662f45);const _0x61c4f5=this['bindTemplate'];this['set']('count',void 0x0),this[_0x457b('0x2')]({'tag':'li','attributes':{'class':_0x457b('0x0')},'children':[{'text':_0x61c4f5['to'](_0x457b('0x3'),_0x246d3e=>_0x27455a(_0x662f45,_0x457b('0x1'),_0x246d3e))}]});}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module comments/comments/ui/view/commentcontentview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
export default class CommentContentView extends View {
|
|
11
11
|
content: string;
|
|
12
12
|
constructor(locale: Locale);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x12f1=['ck-comment__content','div','render','content','ck-annotation__content','element','set','change:content','setTemplate'];(function(_0x823908,_0x12f1b1){var _0x1d407d=function(_0x5cca35){while(--_0x5cca35){_0x823908['push'](_0x823908['shift']());}};_0x1d407d(++_0x12f1b1);}(_0x12f1,0x86));var _0x1d40=function(_0x823908,_0x12f1b1){_0x823908=_0x823908-0x0;var _0x1d407d=_0x12f1[_0x823908];return _0x1d407d;};import{View as _0x2a89c4}from'ckeditor5/src/ui.js';export default class Yt extends _0x2a89c4{constructor(_0x58a044){super(_0x58a044),this[_0x1d40('0x7')](_0x1d40('0x4'),''),this[_0x1d40('0x0')]({'tag':_0x1d40('0x2'),'attributes':{'class':[_0x1d40('0x1'),_0x1d40('0x5')]}});}[_0x1d40('0x3')](){super[_0x1d40('0x3')](),this['on'](_0x1d40('0x8'),(_0x737711,_0x5b4088,_0x2cf0ec)=>{this[_0x1d40('0x6')]['innerHTML']=_0x2cf0ec;}),this[_0x1d40('0x6')]['innerHTML']=this['content'];}}
|