@ckeditor/ckeditor5-comments 40.1.0 → 41.0.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/CHANGELOG.md +19 -19
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/build/translations/gl.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/ug.js +1 -1
- 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 +3 -3
- 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 +4 -4
- 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 +11 -11
- 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 +13 -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 +1 -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 +1 -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 _0x339d=['execute','addSourceCollector','view','icon','push','requires','locale','bind','from','focusTracker','has','stop','listenTo','getAllMarkersForId','tooltip','model','removeCommentThread','add','focus','editing','commands','pluginName','highest','hasMarkerForId','plugins','innerView','length','init','get','addCommentThread','CommentsListView','low','comment','comment:','CommentThreadInputView','map','label','editor','CommentsUI','Comment','getRange','activeMarker','_viewToController','find'];(function(_0x3263f4,_0x339d8b){const _0x431871=function(_0x3efbd0){while(--_0x3efbd0){_0x3263f4['push'](_0x3263f4['shift']());}};_0x431871(++_0x339d8b);}(_0x339d,0x137));const _0x4318=function(_0x3263f4,_0x339d8b){_0x3263f4=_0x3263f4-0x0;let _0x431871=_0x339d[_0x3263f4];return _0x431871;};import{Plugin as _0x37288b}from'ckeditor5/src/core.js';import _0x4b136c from'./commentsrepository.js';import _0x5f5036 from'./commentsediting.js';import _0x4cf39b from'../annotations/editorannotations.js';import{ButtonView as _0x506b5d}from'ckeditor5/src/ui.js';import _0x174db9 from'../../theme/icons/add-comment.svg';import _0x38579a from'../annotations/annotations.js';import _0xdb7e70 from'./ui/view/commentslistview.js';import _0x1c4599 from'./ui/view/commentthreadinputview.js';import{getTranslation as _0x5468d3}from'../utils/common-translations.js';export default class s extends _0x37288b{static get[_0x4318('0x12')](){return _0x4318('0x23');}static get[_0x4318('0x2')](){return[_0x4b136c,_0x5f5036,_0x4cf39b,_0x38579a];}get[_0x4318('0x1b')](){return _0xdb7e70;}get[_0x4318('0x1f')](){return _0x1c4599;}[_0x4318('0x18')](){const _0xd08745=this[_0x4318('0x22')],_0x49ca83=_0xd08745[_0x4318('0x15')][_0x4318('0x19')](_0x4b136c),_0xedf2c=_0xd08745[_0x4318('0x15')]['get'](_0x5f5036),_0xedc02=_0xd08745['plugins']['get'](_0x38579a),_0x35d708=_0xd08745['plugins'][_0x4318('0x19')](_0x4cf39b);_0xd08745['ui']['componentFactory'][_0x4318('0xe')](_0x4318('0x1d'),()=>this['_createUIButton']()),_0x35d708[_0x4318('0x2a')](()=>{const _0xd6b144=[];for(const [_0x26504e,_0x325a92]of _0x49ca83['_threadToController']){const _0x2f1e7b=_0xedf2c[_0x4318('0xa')](_0x26504e['id']),_0x3abdb1=_0x2f1e7b[_0x4318('0x20')](_0x10428b=>_0x10428b[_0x4318('0x25')]());_0x2f1e7b[_0x4318('0x17')]>0x0&&_0xd6b144[_0x4318('0x1')]([_0x325a92[_0x4318('0x2b')],_0x3abdb1]);}return _0xd6b144;}),this[_0x4318('0x9')](_0xedc02,'change:activeAnnotations',(_0x91ba83,_0x2ff5e9,_0x4f0625)=>{const _0x567dda=Array[_0x4318('0x5')](_0x4f0625)['map'](_0x3ae169=>_0x3ae169[_0x4318('0x16')])[_0x4318('0x28')](_0x14d862=>_0x49ca83[_0x4318('0x27')][_0x4318('0x7')](_0x14d862));if(!_0x567dda)return void(_0xedf2c[_0x4318('0x26')]=null);const _0x58fe41=_0x49ca83['_viewToController'][_0x4318('0x19')](_0x567dda)[_0x4318('0xc')]['id'],_0x56b553=_0x4318('0x1e')+_0x58fe41;_0x58fe41&&_0xedf2c[_0x4318('0x14')](_0x58fe41)?_0xedf2c[_0x4318('0x26')]=_0x56b553:_0xedf2c[_0x4318('0x26')]&&(_0xedf2c['activeMarker']=null);}),this[_0x4318('0x9')](_0x49ca83,_0x4318('0xd'),(_0x51f11b,{threadId:_0x55b2ba,isFromAdapter:_0x3e5bf6})=>{!_0x3e5bf6&&_0xd08745['ui'][_0x4318('0x6')]['isFocused']&&_0xedf2c['hasMarkerForId'](_0x55b2ba)&&_0xd08745[_0x4318('0x10')][_0x4318('0x2b')]['focus']();},{'priority':_0x4318('0x13')}),this[_0x4318('0x9')](_0x49ca83,'addComment',(_0xad5b92,{threadId:_0x4684bc,isFromAdapter:_0x2ddfb8})=>{if(_0x2ddfb8||!_0xedf2c[_0x4318('0x14')](_0x4684bc)||!_0x49ca83['hasCommentThread'](_0x4684bc))return;0x1===_0x49ca83['getCommentThread'](_0x4684bc)[_0x4318('0x17')]&&(_0xd08745[_0x4318('0x10')]['view'][_0x4318('0xf')](),_0xad5b92[_0x4318('0x8')]());},{'priority':_0x4318('0x1c')});}['_createUIButton'](){const _0x21d874=this[_0x4318('0x22')],_0xfdbfa=new _0x506b5d(_0x21d874[_0x4318('0x3')]),_0x4de9e6=_0x21d874[_0x4318('0x11')][_0x4318('0x19')](_0x4318('0x1a'));return _0xfdbfa[_0x4318('0x21')]=_0x5468d3(_0x21d874[_0x4318('0x3')],_0x4318('0x24')),_0xfdbfa[_0x4318('0xb')]=_0x5468d3(_0x21d874[_0x4318('0x3')],'Comment'),_0xfdbfa[_0x4318('0x0')]=_0x174db9,_0xfdbfa[_0x4318('0x4')]('isEnabled')['to'](_0x4de9e6),this[_0x4318('0x9')](_0xfdbfa,_0x4318('0x29'),()=>_0x4de9e6[_0x4318('0x29')]()),_0xfdbfa;}}
|
|
@@ -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 _0x583c=['plugins','editor','has','addCommentThread','RestrictedEditingModeEditing'];(function(_0x2c7c36,_0x583c71){const _0x15f150=function(_0x18182f){while(--_0x18182f){_0x2c7c36['push'](_0x2c7c36['shift']());}};_0x15f150(++_0x583c71);}(_0x583c,0x11f));const _0x15f1=function(_0x2c7c36,_0x583c71){_0x2c7c36=_0x2c7c36-0x0;let _0x15f150=_0x583c[_0x2c7c36];return _0x15f150;};import{Plugin as _0x3bbf47}from'ckeditor5/src/core.js';export default class Y extends _0x3bbf47{['afterInit'](){const _0x470c5e=this[_0x15f1('0x4')];if(!_0x470c5e['plugins'][_0x15f1('0x0')](_0x15f1('0x2')))return;_0x470c5e[_0x15f1('0x3')]['get'](_0x15f1('0x2'))['enableCommand'](_0x15f1('0x1'));}}
|
|
@@ -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 _0x333c=['forEach','define','plugins','execute','map','collaboration.channelId','listenTo','_handleImportedData','config','commands','afterInit','importWord','high','editor','get','collaboration_features','importWord.formatting.comments'];(function(_0x2ccdd5,_0x333c2b){const _0x36e591=function(_0xeb6096){while(--_0xeb6096){_0x2ccdd5['push'](_0x2ccdd5['shift']());}};_0x36e591(++_0x333c2b);}(_0x333c,0x120));const _0x36e5=function(_0x2ccdd5,_0x333c2b){_0x2ccdd5=_0x2ccdd5-0x0;let _0x36e591=_0x333c[_0x2ccdd5];return _0x36e591;};import{Plugin as _0x5d5ffa}from'ckeditor5/src/core.js';import{priorities as _0x235ed7}from'ckeditor5/src/utils.js';import{Users as _0x3b2ce0}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x50485e from'../commentsrepository.js';export default class Z extends _0x5d5ffa{constructor(_0x1587fb){super(_0x1587fb),this[_0x36e5('0xe')][_0x36e5('0x9')][_0x36e5('0x2')](_0x36e5('0x0'),'basic');}[_0x36e5('0xb')](){const _0x41de8d=this[_0x36e5('0xe')],_0x3effb9=_0x41de8d[_0x36e5('0xa')][_0x36e5('0xf')](_0x36e5('0xc')),_0x1a7bca=_0x41de8d[_0x36e5('0x3')][_0x36e5('0xf')](_0x3b2ce0);_0x3effb9&&(_0x3effb9['on'](_0x36e5('0x4'),(_0x14fb78,[,_0x18cf02])=>{_0x18cf02[_0x36e5('0x10')]={'comments':!0x0,'user_id':_0x1a7bca['me']['id']};},{'priority':_0x235ed7[_0x36e5('0xd')]+0xa}),this[_0x36e5('0x7')](_0x3effb9,'dataInsert',this[_0x36e5('0x8')]));}[_0x36e5('0x8')](_0x437e2c,_0x4172a2){const {comment_threads:_0x59be9}=_0x4172a2;_0x59be9&&_0x59be9[_0x36e5('0x1')](({thread_id:_0x37d3ff,comments:_0x56bced,is_resolved:_0x17cc9f})=>{const _0x2bf8de=new Date(),_0x12349e=_0x56bced[_0x36e5('0x5')](({author:_0x49d692,content:_0x3e295c,created_at:_0x6c8411})=>({'content':_0x3e295c,'authorId':this[_0x36e5('0xe')][_0x36e5('0x3')]['get'](_0x3b2ce0)['me']['id'],'createdAt':_0x2bf8de,'attributes':{'@external':{'authorName':_0x49d692,'createdAt':_0x6c8411?new Date(_0x6c8411):new Date(),'source':_0x36e5('0xc')}}})),_0x560f1e=this['editor'][_0x36e5('0x9')][_0x36e5('0xf')](_0x36e5('0x6'));this[_0x36e5('0xe')]['plugins'][_0x36e5('0xf')](_0x50485e)['addCommentThread']({'channelId':_0x560f1e,'threadId':_0x37d3ff,'comments':_0x12349e,'resolvedAt':_0x17cc9f?_0x2bf8de: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 _0x3664=['view','editing','destroy','document','initialData','name','getChild','assign','ready','config','focus','placeholder','defaultPlugins','change','init','create','setSelection','plugins','end','initPlugins','placeholderElement','getRoot','get','then','_updatePlaceholder','low','childCount','model'];(function(_0x39a919,_0x3664de){const _0x11fee4=function(_0x4146ed){while(--_0x4146ed){_0x39a919['push'](_0x39a919['shift']());}};_0x11fee4(++_0x3664de);}(_0x3664,0x156));const _0x11fe=function(_0x39a919,_0x3664de){_0x39a919=_0x39a919-0x0;let _0x11fee4=_0x3664[_0x39a919];return _0x11fee4;};import{Editor as _0x357ba0,DataApiMixin as _0x4d7080}from'ckeditor5/src/core.js';import _0x1cadf2 from'./commenteditorui.js';import{ObservableMixin as _0x35de2b}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x37d62c,disablePlaceholder as _0x5e17ea}from'ckeditor5/src/engine.js';import{Clipboard as _0x5bf2c1}from'ckeditor5/src/clipboard.js';import{Enter as _0x4591c5,ShiftEnter as _0x3940ce}from'ckeditor5/src/enter.js';import{SelectAll as _0xb2d37e}from'ckeditor5/src/select-all.js';import{Typing as _0x4f22b1}from'ckeditor5/src/typing.js';import{Undo as _0x6a8513}from'ckeditor5/src/undo.js';import{Paragraph as _0x49d09b}from'ckeditor5/src/paragraph.js';const Mt=[_0x5bf2c1,_0x4591c5,_0x3940ce,_0xb2d37e,_0x4f22b1,_0x6a8513,_0x49d09b];class Nt extends _0x35de2b(_0x4d7080(_0x357ba0)){constructor(_0x46d3cd={}){(_0x46d3cd=Object[_0x11fe('0x1')]({},_0x46d3cd))[_0x11fe('0xb')]||(_0x46d3cd['plugins']=Nt[_0x11fe('0x6')]),super(_0x46d3cd),this['ui']=new _0x1cadf2(this),this['set'](_0x11fe('0x5'),''),this[_0x11fe('0x15')][_0x11fe('0x19')]['on'](_0x11fe('0x7'),()=>this[_0x11fe('0x12')](),{'priority':_0x11fe('0x13')}),this['on']('change:placeholder',()=>this[_0x11fe('0x12')]()),this['model'][_0x11fe('0x19')]['createRoot']();}[_0x11fe('0x9')](){const _0x36e989=this[_0x11fe('0x3')][_0x11fe('0x10')](_0x11fe('0x1a'))||'';return this[_0x11fe('0xd')]()[_0x11fe('0x11')](()=>this['ui']['init']())['then'](()=>this['data'][_0x11fe('0x8')](_0x36e989))[_0x11fe('0x11')](()=>this['fire'](_0x11fe('0x2')));}[_0x11fe('0x18')](){return super['destroy']()[_0x11fe('0x11')](()=>this['ui'][_0x11fe('0x18')]());}[_0x11fe('0x4')](){this['model'][_0x11fe('0x7')](_0x2c8083=>{const _0xab50c2=this[_0x11fe('0x15')][_0x11fe('0x19')][_0x11fe('0xf')](),_0x10f29f=_0xab50c2&&_0xab50c2[_0x11fe('0x0')](_0xab50c2['childCount']-0x1);_0x2c8083[_0x11fe('0xa')](_0x10f29f,_0x11fe('0xc')),this[_0x11fe('0x17')][_0x11fe('0x16')]['focus']();});}['_updatePlaceholder'](){const _0x3be0e0=this[_0x11fe('0x17')]['view'],_0x5de328=_0x3be0e0[_0x11fe('0x19')][_0x11fe('0xf')](),_0x18862d=_0x5de328[_0x11fe('0x0')](0x0);_0x5de328[_0x11fe('0x14')]>0x1||!_0x18862d||'p'!=_0x18862d[_0x11fe('0x1b')]?this[_0x11fe('0xe')]&&this[_0x11fe('0xe')][_0x11fe('0x5')]&&(_0x5e17ea(_0x3be0e0,this[_0x11fe('0xe')]),this[_0x11fe('0xe')]=void 0x0):(this[_0x11fe('0x5')]&&(_0x18862d[_0x11fe('0x5')]=this[_0x11fe('0x5')]),_0x37d62c({'view':_0x3be0e0,'element':_0x18862d,'keepOnFocus':!0x0}),this[_0x11fe('0xe')]=_0x18862d);}}Nt['defaultPlugins']=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 _0x33aa=['ready','focusTracker','view','editable','getRoot','editing','destroy','document','init','isFocused','rootName','locale','element','setEditableElement','name'];(function(_0x173adb,_0x33aa5e){const _0x15e227=function(_0x21472b){while(--_0x21472b){_0x173adb['push'](_0x173adb['shift']());}};_0x15e227(++_0x33aa5e);}(_0x33aa,0xc5));const _0x15e2=function(_0x173adb,_0x33aa5e){_0x173adb=_0x173adb-0x0;let _0x15e227=_0x33aa[_0x173adb];return _0x15e227;};import{EditorUI as _0x2b881b}from'ckeditor5/src/ui.js';import _0x383441 from'./commenteditoruiview.js';export default class Ft extends _0x2b881b{constructor(_0x5cc990){super(_0x5cc990),this[_0x15e2('0x0')]=new _0x383441(_0x5cc990[_0x15e2('0x9')],_0x5cc990[_0x15e2('0x3')][_0x15e2('0x0')]);}get[_0x15e2('0xa')](){return this[_0x15e2('0x0')][_0x15e2('0xa')];}[_0x15e2('0x6')](){const _0xe6f4d8=this['editor'][_0x15e2('0x3')][_0x15e2('0x0')],_0x5ee7c3=this[_0x15e2('0x0')][_0x15e2('0x1')],_0x4309a1=_0xe6f4d8[_0x15e2('0x5')][_0x15e2('0x2')]();_0x5ee7c3[_0x15e2('0xc')]=_0x4309a1[_0x15e2('0x8')],this[_0x15e2('0x0')]['render']();const _0x10b4f9=_0x5ee7c3[_0x15e2('0xa')];this[_0x15e2('0xb')](_0x5ee7c3['name'],_0x10b4f9),this['view'][_0x15e2('0x1')]['bind'](_0x15e2('0x7'))['to'](this[_0x15e2('0xe')]),_0xe6f4d8['attachDomRoot'](_0x10b4f9),this['fire'](_0x15e2('0xd'));}[_0x15e2('0x4')](){super[_0x15e2('0x4')](),this['view'][_0x15e2('0x4')]();}}
|
|
@@ -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 _0x60cc=['ck-voice-label','_voiceLabelView','text','_createVoiceLabel','comment','createCollection','setTemplate','Comment\x20editor','div','element','ck-rounded-corners','add','uiLanguageDirection','focus','main','ck-reset','cke-editor__aria-label_','render','editable','ck-comment__input','uiLanguage'];(function(_0x4c703a,_0x60cc35){const _0x5042b1=function(_0x26b46a){while(--_0x26b46a){_0x4c703a['push'](_0x4c703a['shift']());}};_0x5042b1(++_0x60cc35);}(_0x60cc,0x1a5));const _0x5042=function(_0x4c703a,_0x60cc35){_0x4c703a=_0x4c703a-0x0;let _0x5042b1=_0x60cc[_0x4c703a];return _0x5042b1;};import{InlineEditableUIView as _0x4cccb4,EditorUIView as _0x49c6b6,LabelView as _0x39c8e8}from'ckeditor5/src/ui.js';import{uid as _0x2b4a2e}from'ckeditor5/src/utils.js';import{getTranslation as _0x446979}from'../../../utils/common-translations.js';export default class Rt extends _0x49c6b6{constructor(_0x3f2a8d,_0x3c3f21){super(_0x3f2a8d);const _0x2ade86=_0x2b4a2e();this[_0x5042('0xd')]=this[_0x5042('0x4')](),this['editable']=new _0x4cccb4(_0x3f2a8d,_0x3c3f21),this[_0x5042('0x0')]=this[_0x5042('0x2')](_0x2ade86,_0x3f2a8d),this[_0x5042('0x5')]({'tag':_0x5042('0x7'),'attributes':{'class':[_0x5042('0xe'),'ck-editor',_0x5042('0x9'),_0x5042('0x12')],'role':_0x5042('0x3'),'dir':_0x3f2a8d[_0x5042('0xb')],'lang':_0x3f2a8d[_0x5042('0x13')],'aria-labelledby':_0x5042('0xf')+_0x2ade86},'children':[this[_0x5042('0x0')],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}[_0x5042('0x10')](){super[_0x5042('0x10')](),this[_0x5042('0xd')][_0x5042('0xa')](this[_0x5042('0x11')]);}[_0x5042('0xc')](){this[_0x5042('0x11')][_0x5042('0x8')][_0x5042('0xc')]();}['_createVoiceLabel'](_0x518ad3,_0x1abfa0){const _0x2e231d=new _0x39c8e8();return _0x2e231d[_0x5042('0x1')]=_0x446979(_0x1abfa0,_0x5042('0x6')),_0x2e231d['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x518ad3,'class':_0x5042('0x14')}}),_0x2e231d;}}
|
|
@@ -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 _0x329f=['remove','resolve','_localUser','submitCommentThread','reopenCommentThread','getComment','removeCommentThread','model','_isAttached','addComment','view','listenTo','resolveCommentThread','update','submit','updateComment','reopen','removeComment'];(function(_0x449a10,_0x329f9b){var _0x59de44=function(_0x34a2d4){while(--_0x34a2d4){_0x449a10['push'](_0x449a10['shift']());}};_0x59de44(++_0x329f9b);}(_0x329f,0x184));var _0x59de=function(_0x449a10,_0x329f9b){_0x449a10=_0x449a10-0x0;var _0x59de44=_0x329f[_0x449a10];return _0x59de44;};import{ObservableMixin as _0x3b79e0}from'ckeditor5/src/utils.js';export default class ut extends _0x3b79e0(){constructor(_0x3535e6,_0x2b9109){super(),this['model']=_0x3535e6,this[_0x59de('0xf')][_0x59de('0x10')]=!0x0,this[_0x59de('0x0')]=_0x2b9109,this[_0x59de('0x1')](_0x2b9109,_0x59de('0xb'),()=>this[_0x59de('0x4')]()),this[_0x59de('0x1')](_0x2b9109,_0x59de('0xe'),()=>this['remove']()),this['listenTo'](_0x2b9109,_0x59de('0x2'),()=>this[_0x59de('0x9')]()),this[_0x59de('0x1')](_0x2b9109,_0x59de('0xc'),()=>this[_0x59de('0x6')]()),this[_0x59de('0x1')](_0x2b9109,_0x59de('0x11'),(_0x583975,_0xe44726)=>this[_0x59de('0x11')](_0xe44726)),this[_0x59de('0x1')](_0x2b9109,_0x59de('0x5'),(_0xe50615,_0x36b94c,_0x268d3d)=>this['updateComment'](_0x36b94c,_0x268d3d)),this[_0x59de('0x1')](_0x2b9109,_0x59de('0x7'),(_0x292bc4,_0x31f7bb)=>this[_0x59de('0x7')](_0x31f7bb));}[_0x59de('0x4')](){this[_0x59de('0xf')][_0x59de('0x4')]();}['remove'](){this[_0x59de('0xf')]['remove']();}[_0x59de('0x9')](){this['model']['isResolved']||this[_0x59de('0xf')][_0x59de('0x9')]();}[_0x59de('0x6')](){this[_0x59de('0xf')]['isResolved']&&this[_0x59de('0xf')][_0x59de('0x6')]();}['addComment'](_0x5afb2c){this[_0x59de('0xf')]['addComment']({'content':_0x5afb2c,'authorId':this[_0x59de('0x0')][_0x59de('0xa')]['id']});}['updateComment'](_0x51ed12,_0x1c6fc0){this['model'][_0x59de('0xd')](_0x51ed12)[_0x59de('0x3')]({'content':_0x1c6fc0});}[_0x59de('0x7')](_0xff8850){this['model'][_0x59de('0xd')](_0xff8850)[_0x59de('0x8')]();}['destroy'](){this['stopListening'](),this[_0x59de('0xf')]['_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 _0x3fc3=['Comment','assign','value','hasDirtyComment','bind','removeComment','updateComment','removeCommentThread','_model','delegate','reopenCommentThread','element','Write\x20a\x20comment...','cancel','focus','commentThreadHeaderView','_config','submitCommentThread','isActive','change:isActive','destroy','isResolvable','isResolved','isDirty','isReadOnly','isUnlinked','canComment','submitLabel','length','commentThreadInputView','editorReady','listenTo','set','isSubmitted','Reply\x20to\x20reopen\x20discussion...','resolveCommentThread','placeholder','archivedAt','Reply...','commentInputView','commentsListView','editorDestroyed','_createCommentThreadInputView','stop','_localUser','showInput','submit','locale','fire'];(function(_0xa03536,_0x3fc37e){const _0x1235a4=function(_0x3561ae){while(--_0x3561ae){_0xa03536['push'](_0xa03536['shift']());}};_0x1235a4(++_0x3fc37e);}(_0x3fc3,0x8e));const _0x1235=function(_0xa03536,_0x3fc37e){_0xa03536=_0xa03536-0x0;let _0x1235a4=_0x3fc3[_0xa03536];return _0x1235a4;};import{View as _0x25e55b}from'ckeditor5/src/ui.js';import _0x495eb5 from'./commentthreadinputview.js';import _0xdbffbd from'./commentslistview.js';import _0x45dc13 from'./commentthreadheaderview.js';import{getTranslation as _0x12946f}from'../../../utils/common-translations.js';export default class Ut extends _0x25e55b{constructor(_0x397b3d,_0x2734e0,_0x473bb,_0x4474ff){super(_0x397b3d),this[_0x1235('0x25')]('isActive',!0x1),this[_0x1235('0x25')](_0x1235('0x1c'),!0x1),this[_0x1235('0xd')]=_0x2734e0,this['_localUser']=_0x473bb,this[_0x1235('0x15')]=_0x4474ff,this['commentThreadHeaderView']=new _0x45dc13(_0x397b3d,_0x2734e0),this[_0x1235('0x14')][_0x1235('0xe')](_0x1235('0xf'))['to'](this),this[_0x1235('0x24')](this,_0x1235('0xf'),()=>{this[_0x1235('0x13')]();}),this[_0x1235('0x2d')]=new _0xdbffbd(_0x397b3d,_0x2734e0,Object[_0x1235('0x6')]({'CommentView':this[_0x1235('0x15')]['CommentView']},_0x4474ff)),this[_0x1235('0x2d')][_0x1235('0xe')](_0x1235('0xa'))['to'](this),this[_0x1235('0x2d')]['delegate'](_0x1235('0xb'))['to'](this),this[_0x1235('0x2d')][_0x1235('0xe')](_0x1235('0x28'))['to'](this),this[_0x1235('0x2d')][_0x1235('0xe')](_0x1235('0x23'))['to'](this),this[_0x1235('0x2d')][_0x1235('0xe')](_0x1235('0x2e'))['to'](this),this[_0x1235('0x2d')][_0x1235('0x9')](_0x1235('0x17'))['to'](this),this[_0x1235('0x24')](this,_0x1235('0x28'),()=>{this[_0x1235('0x13')]();}),this[_0x1235('0x25')]('length',this[_0x1235('0x2d')][_0x1235('0x21')]),this[_0x1235('0x9')](_0x1235('0x21'))['to'](this[_0x1235('0x2d')],_0x1235('0x21')),this[_0x1235('0x22')]=this[_0x1235('0x2f')](),this[_0x1235('0x22')][_0x1235('0xe')](_0x1235('0x23'))['to'](this),this[_0x1235('0x22')][_0x1235('0xe')]('editorDestroyed')['to'](this),this['on'](_0x1235('0xa'),()=>this[_0x1235('0x13')]()),this[_0x1235('0x9')](_0x1235('0x1c'))['to'](this[_0x1235('0x2d')],_0x1235('0x8'),this['commentThreadInputView'][_0x1235('0x2c')],'value',(_0x3700c2,_0x2ee41c)=>_0x3700c2||!!_0x2ee41c),this[_0x1235('0x9')](_0x1235('0x1e'))['to'](_0x2734e0,'unlinkedAt',_0x3c9f57=>!!_0x3c9f57);}[_0x1235('0x13')](){this[_0x1235('0x10')]['focus']();}async[_0x1235('0x19')](){this[_0x1235('0x1c')]=!0x1,this[_0x1235('0x2d')][_0x1235('0x19')](),await this[_0x1235('0x22')][_0x1235('0x19')](),super[_0x1235('0x19')]();}['_createCommentThreadInputView'](){const _0x10ba6e=new _0x495eb5(this[_0x1235('0x3')],this[_0x1235('0x0')],this['_config']['editorConfig']),_0x32ca87=_0x10ba6e['commentInputView'];return _0x10ba6e[_0x1235('0x9')](_0x1235('0x1'))['to'](this,_0x1235('0x17'),this[_0x1235('0xd')],_0x1235('0x1d'),this[_0x1235('0xd')],_0x1235('0x1f'),this['_model'],_0x1235('0x2a'),_0x32ca87,_0x1235('0x7'),(_0x1a0102,_0x48b2b0,_0x5ddd68,_0x44d892,_0x27d256)=>!!_0x27d256||!!_0x44d892&&_0x5ddd68&&!_0x48b2b0||_0x1a0102&&_0x5ddd68&&!_0x48b2b0),_0x32ca87[_0x1235('0x9')](_0x1235('0x29'))['to'](this,_0x1235('0x21'),this[_0x1235('0xd')],_0x1235('0x1a'),this['_model'],_0x1235('0x1b'),(_0x1b9d00,_0x38661e,_0x3a301f)=>{let _0x37557e;return _0x37557e=_0x3a301f&&_0x38661e?_0x1235('0x27'):_0x1b9d00?_0x1235('0x2b'):_0x1235('0x11'),_0x12946f(this[_0x1235('0x3')],_0x37557e);}),_0x32ca87[_0x1235('0x9')](_0x1235('0x20'))['to'](this,_0x1235('0x21'),_0x1567b2=>_0x12946f(this[_0x1235('0x3')],_0x1567b2?'Reply':_0x1235('0x5'))),_0x32ca87['on'](_0x1235('0x2'),(_0x29b5a2,_0x411b23)=>{this['fire']('addComment',_0x411b23),this[_0x1235('0xd')][_0x1235('0x1b')]&&this[_0x1235('0xd')][_0x1235('0x1a')]&&this['fire']('reopenCommentThread',this[_0x1235('0xd')]['id']),this[_0x1235('0xd')][_0x1235('0x26')]||this['fire'](_0x1235('0x16'));}),_0x32ca87['on'](_0x1235('0x12'),()=>{this[_0x1235('0x13')]();}),_0x32ca87[_0x1235('0x9')]('disabledSubmit')['to'](this[_0x1235('0xd')],_0x1235('0x1d')),_0x32ca87['on'](_0x1235('0x12'),_0x79d235=>{0x0==this[_0x1235('0x21')]&&(this[_0x1235('0x4')](_0x1235('0xc')),_0x79d235[_0x1235('0x30')]());}),this['on'](_0x1235('0x18'),(_0x46f335,_0x85c709,_0x44298f)=>{_0x44298f||this[_0x1235('0x21')]||_0x32ca87[_0x1235('0x7')]||this[_0x1235('0x4')](_0x1235('0xc'));}),_0x10ba6e;}}
|
|
@@ -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 _0x2534=['isEditMode','_model','expand','isReadOnly','Save','initialData','_config','value','fire','disabledSubmit','destroy','isCollapsed','editorConfig','get','set','cancel','locale','focus','editorReady','remove','isSystemComment','content','switchToDisplayMode','_createCommentContentView','once','delegate','createCollection','element','editorDestroyed','visibleView','switchToEditMode','submit','updateComment','add'];(function(_0x35ba3e,_0x253454){const _0x2d0c24=function(_0x193c0d){while(--_0x193c0d){_0x35ba3e['push'](_0x35ba3e['shift']());}};_0x2d0c24(++_0x253454);}(_0x2534,0x145));const _0x2d0c=function(_0x35ba3e,_0x253454){_0x35ba3e=_0x35ba3e-0x0;let _0x2d0c24=_0x2534[_0x35ba3e];return _0x2d0c24;};import{View as _0x19cd64}from'ckeditor5/src/ui.js';import{trimHtml as _0x5cc121}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x368603 from'./commentcontentview.js';import _0x11be4e from'./commentinputview.js';import{getTranslation as _0x2a2f06}from'../../../utils/common-translations.js';export default class ti extends _0x19cd64{constructor(_0x219470,_0x34cf37,_0x3c2b2f){super(_0x219470),this[_0x2d0c('0x10')]=_0x34cf37,this[_0x2d0c('0x15')]=_0x3c2b2f,this[_0x2d0c('0x1')]=!!this[_0x2d0c('0x15')][_0x2d0c('0x1')],this['set']('isEditMode',!0x1),this[_0x2d0c('0x1d')](_0x2d0c('0x1a'),!0x0),this['visibleView']=this[_0x2d0c('0x7')](),this['visibleView'][_0x2d0c('0xe')](this['_createCommentContentView']());}[_0x2d0c('0x11')](){this['isCollapsed']=!0x1;}['collapse'](){this[_0x2d0c('0xf')]||(this[_0x2d0c('0x1a')]=!0x0);}[_0x2d0c('0x20')](){this[_0x2d0c('0x8')]['focus']();}async[_0x2d0c('0x19')](){await this[_0x2d0c('0xa')][_0x2d0c('0x1c')](0x0)[_0x2d0c('0x19')](),super[_0x2d0c('0x19')]();}[_0x2d0c('0xb')](){this[_0x2d0c('0xf')]||(this[_0x2d0c('0xf')]=!0x0,this['visibleView'][_0x2d0c('0x0')](0x0)[_0x2d0c('0x19')](),this[_0x2d0c('0xa')][_0x2d0c('0xe')](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x2d0c('0xa')]['remove'](0x0)[_0x2d0c('0x19')](),this[_0x2d0c('0xa')]['add'](this[_0x2d0c('0x4')]()));}['_createCommentContentView'](){const _0x8d50b6=new _0x368603(this[_0x2d0c('0x1f')]);return _0x8d50b6['bind']('content')['to'](this[_0x2d0c('0x10')],'content',this,_0x2d0c('0x1a'),(_0x25c0c7,_0xef894b)=>_0xef894b?_0x5cc121(_0x25c0c7,{'limit':this[_0x2d0c('0x15')]['maxCommentCharsWhenCollapsed']}):_0x25c0c7),_0x8d50b6;}['_createCommentInputView'](){this[_0x2d0c('0x15')]['editorConfig']||(this[_0x2d0c('0x15')][_0x2d0c('0x1b')]={}),this['_config'][_0x2d0c('0x1b')][_0x2d0c('0x14')]=this[_0x2d0c('0x10')]['content'];const _0x1fa167=new _0x11be4e(this[_0x2d0c('0x1f')],this['_config'][_0x2d0c('0x1b')]);return _0x1fa167[_0x2d0c('0x16')]=this['_model'][_0x2d0c('0x2')],_0x1fa167['bind'](_0x2d0c('0x18'))['to'](this[_0x2d0c('0x10')],_0x2d0c('0x12')),_0x1fa167['submitLabel']=_0x2a2f06(this[_0x2d0c('0x1f')],_0x2d0c('0x13')),_0x1fa167['on'](_0x2d0c('0xc'),(_0x3c8903,_0x521e76)=>{this[_0x2d0c('0x17')](_0x2d0c('0xd'),this[_0x2d0c('0x10')]['id'],_0x521e76),this[_0x2d0c('0x3')](),this[_0x2d0c('0x20')]();}),_0x1fa167['on'](_0x2d0c('0x1e'),()=>{this[_0x2d0c('0x3')](),this[_0x2d0c('0x20')]();}),_0x1fa167[_0x2d0c('0x5')](_0x2d0c('0x21'),()=>{_0x1fa167['focus']();}),_0x1fa167['createEditor'](),_0x1fa167[_0x2d0c('0x6')]('editorReady')['to'](this),_0x1fa167[_0x2d0c('0x6')](_0x2d0c('0x9'))['to'](this),_0x1fa167;}}
|
|
@@ -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 _0xa706=['ck-thread__comment-count','count','setTemplate','bindTemplate','set'];(function(_0x56ca5f,_0xa70681){const _0x344ff0=function(_0x5ac686){while(--_0x5ac686){_0x56ca5f['push'](_0x56ca5f['shift']());}};_0x344ff0(++_0xa70681);}(_0xa706,0x1d0));const _0x344f=function(_0x56ca5f,_0xa70681){_0x56ca5f=_0x56ca5f-0x0;let _0x344ff0=_0xa706[_0x56ca5f];return _0x344ff0;};import{View as _0x3258a9}from'ckeditor5/src/ui.js';import{getTranslation as _0x46c5a0}from'../../../utils/common-translations.js';export default class ts extends _0x3258a9{constructor(_0x530143){super(_0x530143);const _0x17ae67=this[_0x344f('0x4')];this[_0x344f('0x0')](_0x344f('0x2'),void 0x0),this[_0x344f('0x3')]({'tag':'li','attributes':{'class':_0x344f('0x1')},'children':[{'text':_0x17ae67['to'](_0x344f('0x2'),_0x44b709=>_0x46c5a0(_0x530143,'NUMBER_OF_COMMENTS',_0x44b709))}]});}}
|
|
@@ -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 _0x42b4=['element','ck-annotation__content','content','ck-comment__content','set','div','innerHTML','render'];(function(_0x1435b5,_0x42b4b4){var _0x34c11a=function(_0x3c4ab3){while(--_0x3c4ab3){_0x1435b5['push'](_0x1435b5['shift']());}};_0x34c11a(++_0x42b4b4);}(_0x42b4,0xb8));var _0x34c1=function(_0x1435b5,_0x42b4b4){_0x1435b5=_0x1435b5-0x0;var _0x34c11a=_0x42b4[_0x1435b5];return _0x34c11a;};import{View as _0x25ec55}from'ckeditor5/src/ui.js';export default class Yt extends _0x25ec55{constructor(_0xd8d62e){super(_0xd8d62e),this[_0x34c1('0x4')]('content',''),this['setTemplate']({'tag':_0x34c1('0x5'),'attributes':{'class':[_0x34c1('0x3'),_0x34c1('0x1')]}});}[_0x34c1('0x7')](){super['render'](),this['on']('change:content',(_0x2e3063,_0x38199b,_0x2890dd)=>{this[_0x34c1('0x0')][_0x34c1('0x6')]=_0x2890dd;}),this[_0x34c1('0x0')][_0x34c1('0x6')]=this[_0x34c1('0x2')];}}
|