@ckeditor/ckeditor5-comments 39.0.2 → 40.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 +3 -3
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/af.po +8 -0
- package/lang/translations/ar.po +8 -0
- package/lang/translations/bg.po +8 -0
- package/lang/translations/bn.po +8 -0
- package/lang/translations/bs.po +8 -0
- package/lang/translations/ca.po +8 -0
- package/lang/translations/cs.po +8 -0
- package/lang/translations/da.po +8 -0
- package/lang/translations/de-ch.po +8 -0
- package/lang/translations/de.po +8 -0
- package/lang/translations/el.po +8 -0
- package/lang/translations/en-au.po +8 -0
- package/lang/translations/en.po +8 -0
- package/lang/translations/es-co.po +8 -0
- package/lang/translations/es.po +8 -0
- package/lang/translations/et.po +8 -0
- package/lang/translations/fa.po +8 -0
- package/lang/translations/fi.po +8 -0
- package/lang/translations/fr.po +8 -0
- package/lang/translations/gl.po +8 -0
- package/lang/translations/he.po +8 -0
- package/lang/translations/hi.po +8 -0
- package/lang/translations/hr.po +8 -0
- package/lang/translations/hu.po +8 -0
- package/lang/translations/id.po +8 -0
- package/lang/translations/it.po +8 -0
- package/lang/translations/ja.po +8 -0
- package/lang/translations/jv.po +8 -0
- package/lang/translations/ko.po +8 -0
- package/lang/translations/lt.po +8 -0
- package/lang/translations/lv.po +8 -0
- package/lang/translations/ms.po +8 -0
- package/lang/translations/nl.po +8 -0
- package/lang/translations/no.po +8 -0
- package/lang/translations/pl.po +8 -0
- package/lang/translations/pt-br.po +11 -3
- package/lang/translations/pt.po +8 -0
- package/lang/translations/ro.po +8 -0
- package/lang/translations/ru.po +8 -0
- package/lang/translations/sk.po +8 -0
- package/lang/translations/sq.po +8 -0
- package/lang/translations/sr-latn.po +8 -0
- package/lang/translations/sr.po +8 -0
- package/lang/translations/sv.po +8 -0
- package/lang/translations/th.po +8 -0
- package/lang/translations/tk.po +8 -0
- package/lang/translations/tr.po +8 -0
- package/lang/translations/tt.po +8 -0
- package/lang/translations/ug.po +8 -0
- package/lang/translations/uk.po +8 -0
- package/lang/translations/ur.po +8 -0
- package/lang/translations/vi.po +8 -0
- package/lang/translations/zh-cn.po +8 -0
- package/lang/translations/zh.po +8 -0
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +2 -2
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +39 -15
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +7 -0
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +1 -0
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/annotation-inline.css +2 -1
- package/theme/annotation.css +2 -1
- package/theme/comment.css +3 -2
- package/theme/commentinput.css +2 -1
- package/theme/commentmarker.css +2 -1
- package/theme/commentsarchive.css +2 -1
- package/theme/commentthread.css +12 -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 +2 -1
- package/theme/sidebar.css +2 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d25=['change:isOpen','locale','requires','position','panelView','indexOf','_handleAnnotationFocusableElements','commentsArchive','config','add','focusableElements','plugins','_calculatePosition','splice','classList','pluginName','editor','listenTo','_pendingThreads','find','_threadToController','annotationViews','contains','buttonView','stopListening','archivedThreads','ck-body','_createArchiveUIDropdown','init','getByInnerView','filter','children','_visibleAnnotations','get','Annotations','commentsArchiveView','focusTracker','remove','channelId','componentFactory','isVisible','collaboration.channelId','CommentsArchiveUI','view','innerView','collection','CommentsRepository','push','extendTemplate','COMMENTS_ARCHIVE','findIndex'];(function(_0x416842,_0x3d2571){const _0x59d908=function(_0x4d9b5a){while(--_0x4d9b5a){_0x416842['push'](_0x416842['shift']());}};_0x59d908(++_0x3d2571);}(_0x3d25,0x177));const _0x59d9=function(_0x416842,_0x3d2571){_0x416842=_0x416842-0x0;let _0x59d908=_0x3d25[_0x416842];return _0x59d908;};import'../../theme/commentsarchive.css';import{Plugin as _0x246a99}from'ckeditor5/src/core';import{createDropdown as _0x5c697f,ViewCollection as _0x41bbe6}from'ckeditor5/src/ui';import _0x232463 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x376a89}from'../utils/common-translations';import _0x2306fa from'./ui/view/commentsarchiveview';import _0x8784b1 from'./commentsarchive';export default class a extends _0x246a99{static get[_0x59d9('0x30')](){return _0x59d9('0x18');}static get[_0x59d9('0x23')](){return[_0x8784b1];}constructor(_0x4385c0){super(_0x4385c0),this[_0x59d9('0x3')]=new _0x41bbe6(),this[_0x59d9('0x0')]=[];}[_0x59d9('0xa')](){this[_0x59d9('0x31')]['ui'][_0x59d9('0x15')][_0x59d9('0x2a')](_0x59d9('0x28'),()=>this[_0x59d9('0x9')]());const _0x34111d=this['editor']['plugins'][_0x59d9('0xf')](_0x8784b1),_0x48eeb1=this[_0x59d9('0x31')]['plugins']['get'](_0x59d9('0x10')),_0x5297a9=this[_0x59d9('0x31')][_0x59d9('0x2c')][_0x59d9('0xf')](_0x59d9('0x1c'));this[_0x59d9('0x32')](_0x34111d[_0x59d9('0x7')],_0x59d9('0x2a'),(_0x5441d4,_0x131ead)=>{const _0x4bb50d=this[_0x59d9('0x31')][_0x59d9('0x29')]['get'](_0x59d9('0x17'));if(!_0x4bb50d||_0x131ead[_0x59d9('0x14')]===_0x4bb50d){const _0x22e54d=this[_0x59d9('0x2d')](_0x131ead['archivedAt']),_0xdf384d=_0x5297a9[_0x59d9('0x2')][_0x59d9('0xf')](_0x131ead);if(!_0xdf384d)return void this[_0x59d9('0x0')][_0x59d9('0x1d')]({'thread':_0x131ead,'position':_0x22e54d});const _0x2dc2da=_0x48eeb1[_0x59d9('0xb')](_0xdf384d[_0x59d9('0x19')]);_0x2dc2da[_0x59d9('0x16')]&&_0x48eeb1[_0x59d9('0xe')][_0x59d9('0x13')](_0x2dc2da),this[_0x59d9('0x3')][_0x59d9('0x2a')](_0x2dc2da[_0x59d9('0x19')],_0x22e54d);}}),this['listenTo'](_0x48eeb1[_0x59d9('0x1b')],_0x59d9('0x2a'),(_0x1552e5,_0xec8925)=>{const _0x181272=this[_0x59d9('0x0')][_0x59d9('0x1')](({thread:_0x356e7d})=>{const _0x59970e=_0x5297a9[_0x59d9('0x2')][_0x59d9('0xf')](_0x356e7d);return _0x59970e&&_0xec8925[_0x59d9('0x1a')]===_0x59970e['view'];});_0x181272&&(this[_0x59d9('0x3')]['add'](_0xec8925['view'],_0x181272[_0x59d9('0x24')]),this[_0x59d9('0x0')][_0x59d9('0x2e')](this[_0x59d9('0x0')][_0x59d9('0x26')](_0x181272),0x1));}),this[_0x59d9('0x32')](_0x34111d[_0x59d9('0x7')],_0x59d9('0x13'),(_0x10f8fa,_0x522a82)=>{const _0x41d933=this[_0x59d9('0x31')][_0x59d9('0x29')][_0x59d9('0xf')](_0x59d9('0x17'));if(!_0x41d933||_0x522a82[_0x59d9('0x14')]===_0x41d933){const _0x4bd726=_0x5297a9[_0x59d9('0x2')]['get'](_0x522a82),_0x5413ab=_0x48eeb1[_0x59d9('0xb')](_0x4bd726['view']);this[_0x59d9('0x3')]['remove'](_0x5413ab['view']),this[_0x59d9('0x6')](_0x5413ab['focusableElements']);}});}[_0x59d9('0x27')](_0x2ebca8,_0x490ecb){for(const _0xd55fa2 of _0x490ecb[_0x59d9('0x2b')])_0xd55fa2['classList'][_0x59d9('0x4')]('ck-body')&&_0x2ebca8[_0x59d9('0x12')][_0x59d9('0x2a')](_0xd55fa2);this[_0x59d9('0x32')](_0x490ecb[_0x59d9('0x2b')],_0x59d9('0x2a'),(_0x4c6a8f,_0x3e0da1)=>{_0x3e0da1['classList'][_0x59d9('0x4')](_0x59d9('0x8'))&&_0x2ebca8[_0x59d9('0x12')]['add'](_0x3e0da1);}),this[_0x59d9('0x32')](_0x490ecb['focusableElements'],_0x59d9('0x13'),(_0x5d1236,_0x2d9a4a)=>{_0x2d9a4a[_0x59d9('0x2f')][_0x59d9('0x4')](_0x59d9('0x8'))&&_0x2ebca8['focusTracker'][_0x59d9('0x13')](_0x2d9a4a);});}[_0x59d9('0x2d')](_0x507800){const _0x7751cd=this[_0x59d9('0x31')][_0x59d9('0x29')][_0x59d9('0xf')](_0x59d9('0x17')),_0x1dc055=[...this['editor'][_0x59d9('0x2c')][_0x59d9('0xf')](_0x8784b1)['archivedThreads']][_0x59d9('0xc')](_0x5ba931=>_0x5ba931[_0x59d9('0x14')]===_0x7751cd)[_0x59d9('0x20')](_0x22b29d=>_0x22b29d['archivedAt']<_0x507800);return _0x1dc055>-0x1?_0x1dc055-0x1:this[_0x59d9('0x3')]['length'];}[_0x59d9('0x9')](){const _0x44821e=this['editor'],_0x189d9d=this[_0x59d9('0x31')][_0x59d9('0x2c')][_0x59d9('0xf')](_0x59d9('0x10')),_0x4f6ef5=_0x5c697f(_0x44821e[_0x59d9('0x22')]);_0x4f6ef5[_0x59d9('0x5')]['set']({'icon':_0x232463,'label':_0x376a89(_0x44821e['locale'],_0x59d9('0x1f')),'tooltip':!0x0}),_0x4f6ef5[_0x59d9('0x25')][_0x59d9('0x1e')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x4f6ef5['on'](_0x59d9('0x21'),(_0x56f59,_0x3da6c6,_0x4290bd)=>{this['commentsArchiveView']||(this[_0x59d9('0x11')]=new _0x2306fa(_0x44821e[_0x59d9('0x22')],this[_0x59d9('0x3')])),_0x4290bd?_0x4f6ef5['panelView'][_0x59d9('0xd')]['add'](this[_0x59d9('0x11')]):_0x4f6ef5[_0x59d9('0x25')][_0x59d9('0xd')][_0x59d9('0x13')](this[_0x59d9('0x11')]);});for(const _0x231a28 of this[_0x59d9('0x3')]){const _0x40cd23=_0x189d9d[_0x59d9('0xb')](_0x231a28['mainView']);this[_0x59d9('0x27')](_0x4f6ef5,_0x40cd23);}return _0x4f6ef5['listenTo'](this[_0x59d9('0x3')],_0x59d9('0x2a'),(_0x416c94,_0x1d1ec4)=>{const _0x46bb0c=_0x189d9d['getByInnerView'](_0x1d1ec4['mainView']);this[_0x59d9('0x27')](_0x4f6ef5,_0x46bb0c);}),_0x4f6ef5[_0x59d9('0x32')](this['annotationViews'],'remove',(_0x545bcb,_0x2af550)=>{const _0x3bd62b=_0x189d9d[_0x59d9('0xb')](_0x2af550['mainView']);for(const _0x4edd4f of _0x3bd62b[_0x59d9('0x2b')])_0x4edd4f[_0x59d9('0x2f')][_0x59d9('0x4')](_0x59d9('0x8'))&&_0x4f6ef5[_0x59d9('0x12')][_0x59d9('0x13')](_0x4edd4f);}),_0x4f6ef5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5841=['openNewCommentThread','reopenCommentThread','reconvertMarker','updateMarker','dataToMarker','change','map','registerAnnotation','addCommentThread','scrollToThreadMarker','isThreadsLoadingPaused','getRange','getWalker','change:isReadOnly','isResolved','view','$marker','refreshVisibility','activeMarker','length','end','addMarker:','split','hasDomSelection','conversion','getCommentThreads','ck-comment-marker--active','isObject','elementToElement','change:activeMarker','state','_threadToController','_autoResolvedThreads','focus','text','_detachCommentThread','newRange','hasMarkerForId','model','removeCommentThread','requires','delete','set','ck-comment-marker','render','listenTo','get','destroy','getByInnerView','plugins','enqueueChange','once','schema','_handleMarkerAddAndRemove','$textProxy','ready','differ','push','has','_attachResolvedThread','_initializeMarkerConverters','_getTextContext','start','_reconvertMarkers','resolveCommentThread','fetchCommentThread','getCommentThread','markers','rootName','commands','data','markerName','low','from','upcast','_removedThread','getChangedMarkers','registerPostFixer','substring','isEqual','config','editing','_attachMarkerToThread','collaboration.channelId','removeMarker:','filter','item','getAllMarkersForId','editor','dataDowncast','createPositionBefore','comment','consumable','createRange','_getTargetForId','isCollapsed','size','attachTo','ignoreResolvedComments','removeMarker','_attachedThreads','_hasTargetInContent','add','getAttribute','pluginName','setContext','root','_handleThreadMarker','for','reopen','document','CommentsEditing'];(function(_0x1a19bf,_0x5841f5){const _0x244f1c=function(_0x52948e){while(--_0x52948e){_0x1a19bf['push'](_0x1a19bf['shift']());}};_0x244f1c(++_0x5841f5);}(_0x5841,0xd1));const _0x244f=function(_0x1a19bf,_0x5841f5){_0x1a19bf=_0x1a19bf-0x0;let _0x244f1c=_0x5841[_0x1a19bf];return _0x244f1c;};import{Plugin as _0x31951f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x51ebf4}from'ckeditor5/src/utils';import _0x433bac from'./commentsrepository';import _0xfd7580 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x1e8424}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f90b7 from'../annotations/editorannotations';import _0x1f3e51 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x4d67a6 from'./integrations/importword';import _0x1d19e6 from'../annotations/annotations';export default class r extends _0x31951f{static get[_0x244f('0x37')](){return[_0x433bac,_0x3f90b7,_0x1f3e51,_0x4d67a6];}static get[_0x244f('0x7')](){return _0x244f('0xe');}constructor(_0x35fecf){super(_0x35fecf),this[_0x244f('0x5a')]=null,this[_0x244f('0x2f')]=new Set(),this[_0x244f('0x39')](_0x244f('0x19'),!0x0),_0x35fecf['data']['once'](_0x244f('0x46'),()=>this[_0x244f('0x19')]=!0x1),this[_0x244f('0x39')](_0x244f('0x21'),null),this['on'](_0x244f('0x2c'),(_0x16bfe8,_0x58ef6c,_0x36e0df,_0x2f18ba)=>{const _0x21243a=_0x36e0df?tt(_0x36e0df)['id']:null;if(_0x35fecf[_0x244f('0x35')][_0x244f('0x14')](()=>{if(_0x21243a){const _0x193407=this['getAllMarkersForId'](_0x21243a);for(const _0x5d81f5 of _0x193407)_0x35fecf[_0x244f('0x60')]['reconvertMarker'](_0x5d81f5);}if(_0x2f18ba){const {id:_0xbbb7c2}=tt(_0x2f18ba),_0x16a3b8=this[_0x244f('0x66')](_0xbbb7c2);for(const _0x21c5b5 of _0x16a3b8)_0x35fecf['editing'][_0x244f('0x11')](_0x21c5b5);}}),_0x21243a){const _0x595fef=_0x35fecf[_0x244f('0x40')][_0x244f('0x3d')](_0x433bac)[_0x244f('0x51')](_0x21243a);_0x595fef&&_0x595fef[_0x244f('0x1d')]&&this[_0x244f('0x18')](_0x21243a);}}),this['_attachedThreads']=new Map();}['init'](){const _0x147f3b=this[_0x244f('0x67')],_0x503c4d=_0x147f3b['plugins'][_0x244f('0x3d')](_0x433bac),_0x78e89=_0x147f3b[_0x244f('0x5f')][_0x244f('0x3d')]('collaboration.channelId');_0x147f3b[_0x244f('0x54')][_0x244f('0x5')](_0x244f('0x17'),new _0xfd7580(_0x147f3b)),this[_0x244f('0x3c')](_0x147f3b,_0x244f('0x1c'),(_0x410885,_0x3d8a3c,_0x364590)=>{_0x503c4d['switchReadOnly'](_0x364590,_0x147f3b[_0x244f('0x5f')][_0x244f('0x3d')](_0x244f('0x62')));}),this[_0x244f('0x3c')](_0x503c4d,Z('addCommentThread',_0x78e89),(_0xb6dc84,{threadId:_0x4501bf})=>{const _0x3141ef=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x433bac)[_0x244f('0x51')](_0x4501bf);_0x3141ef&&_0x3141ef[_0x244f('0x1d')]&&this[_0x244f('0x4a')](_0x4501bf);}),this[_0x244f('0x3c')](_0x503c4d,Z(_0x244f('0x36'),_0x78e89),(_0x23afad,{threadId:_0x310ea5})=>{_0x147f3b[_0x244f('0x35')]['enqueueChange']({'isUndoable':!0x1},_0x442f28=>{const _0x416a89=this[_0x244f('0x66')](_0x310ea5);this['_attachedThreads']['delete'](_0x310ea5),this[_0x244f('0x5a')]=_0x310ea5;for(const _0x1fe859 of _0x416a89)_0x442f28['removeMarker'](_0x1fe859);}),this[_0x244f('0x5a')]=null;},{'priority':'high'}),this[_0x244f('0x3c')](_0x503c4d,Z(_0x244f('0x4f'),_0x78e89),(_0x58c309,{threadId:_0xf4e753})=>{this[_0x244f('0x4a')](_0xf4e753),this['_reconvertMarkers'](_0xf4e753),this[_0x244f('0x67')]['editing'][_0x244f('0x1e')][_0x244f('0x26')]&&this[_0x244f('0x67')][_0x244f('0x60')][_0x244f('0x1e')][_0x244f('0x30')]();},{'priority':_0x244f('0x57')}),this[_0x244f('0x3c')](_0x503c4d,Z(_0x244f('0x10'),_0x78e89),(_0x54e4b5,{threadId:_0x51bfc6})=>{this[_0x244f('0x4e')](_0x51bfc6);},{'priority':'low'}),this[_0x244f('0x3c')](_0x503c4d,Z('addComment',_0x78e89),(_0x2669e6,{threadId:_0xffc33e,isFromAdapter:_0x52dbdb})=>{const _0x22cc8a=this['getAllMarkersForId'](_0xffc33e);if(_0x52dbdb||0x0==_0x22cc8a['length']||!_0x503c4d['hasCommentThread'](_0xffc33e))return;0x1===_0x503c4d[_0x244f('0x51')](_0xffc33e)[_0x244f('0x22')]&&_0x147f3b['model'][_0x244f('0x41')]({'isUndoable':!0x1},_0x3ad920=>{for(const _0x43c031 of _0x22cc8a)_0x3ad920['updateMarker'](_0x43c031,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x244f('0x57')}),this[_0x244f('0x4b')](),this[_0x244f('0x44')]();}[_0x244f('0x3e')](){const _0x31589a=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x433bac),_0x51fb27=this[_0x244f('0x67')][_0x244f('0x5f')][_0x244f('0x3d')](_0x244f('0x62'));for(const _0x258fc5 of _0x31589a[_0x244f('0x28')]({'channelId':_0x51fb27}))_0x31589a[_0x244f('0x32')](_0x258fc5['id']),_0x31589a['_threads']['delete'](_0x258fc5['id']);super['destroy']();}['hasMarkerForId'](_0x41b9ab){return this[_0x244f('0x66')](_0x41b9ab)[_0x244f('0x22')]>0x0;}[_0x244f('0x66')](_0x43a93c){return Array[_0x244f('0x58')](this[_0x244f('0x3')][_0x244f('0x3d')](_0x43a93c)||[])[_0x244f('0x15')](_0xe7bb98=>this['editor']['model'][_0x244f('0x52')][_0x244f('0x3d')](_0xe7bb98))[_0x244f('0x64')](_0x572c01=>_0x572c01);}[_0x244f('0x18')](_0xcc88ce){const _0x52ff8d=this['_getTargetForId'](_0xcc88ce);_0x52ff8d&&setTimeout(()=>{this[_0x244f('0x21')]&&tt(this[_0x244f('0x21')])['id']===_0xcc88ce&&_0x51ebf4({'target':_0x52ff8d[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x244f('0x4e')](_0x119637){this[_0x244f('0x67')]['model'][_0x244f('0x14')](()=>{for(const _0x394ab3 of this['getAllMarkersForId'](_0x119637))this[_0x244f('0x67')][_0x244f('0x60')][_0x244f('0x11')](_0x394ab3);});}['_attachResolvedThread'](_0x33a4f9){const _0x504fe1=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x433bac),_0x3ba2de=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x3f90b7),_0x16a7f1=_0x504fe1[_0x244f('0x51')](_0x33a4f9);if(!this[_0x244f('0x3')][_0x244f('0x49')](_0x33a4f9)){const _0x54e1d0=_0x16a7f1[_0x244f('0x0')](()=>this[_0x244f('0x6d')](_0x16a7f1['id']));_0x3ba2de[_0x244f('0x16')](_0x54e1d0),this['_attachedThreads'][_0x244f('0x39')](_0x33a4f9,new Set()),_0x16a7f1[_0x244f('0x4')]=!0x1;}}['_initializeMarkerConverters'](){const _0x2aeabc=this[_0x244f('0x67')];_0x2aeabc[_0x244f('0x27')]['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x15a99f,_0x795dad)=>{const {id:_0x45caa1}=tt(_0x15a99f[_0x244f('0x56')]),_0xe5dad1=_0x2aeabc[_0x244f('0x40')]['get'](_0x433bac)[_0x244f('0x51')](_0x45caa1),_0x5a729a=this[_0x244f('0x21')]&&tt(this[_0x244f('0x21')])['id']===_0x45caa1;if(_0xe5dad1&&_0xe5dad1['isResolved']&&!_0x5a729a&&_0x15a99f[_0x244f('0x65')])return _0x795dad['consumable']['consume'](_0x15a99f[_0x244f('0x65')],_0x244f('0x24')+_0x15a99f[_0x244f('0x56')]),_0x795dad[_0x244f('0x6b')]['consume'](_0x15a99f['item'],_0x244f('0x63')+_0x15a99f['markerName']),{'classes':[]};const _0x159eec=[_0x244f('0x3a')];return _0x5a729a&&_0x159eec[_0x244f('0x48')](_0x244f('0x29')),{'classes':_0x159eec,'attributes':{'data-comment':_0x45caa1}};}}),_0x2aeabc[_0x244f('0x27')][_0x244f('0xb')](_0x244f('0x68'))['markerToData']({'model':_0x244f('0x6a'),'view':(_0xd3e8ca,{options:_0x2aa960})=>{const _0x3825b9=_0x2aeabc['plugins'][_0x244f('0x3d')](_0x433bac),_0x29844e=_0x2aeabc[_0x244f('0x35')][_0x244f('0x52')][_0x244f('0x3d')](_0xd3e8ca),{id:_0x1b6af7,part:_0x45d7a1}=tt(_0xd3e8ca);if(_0x29844e&&!_0x29844e['affectsData'])return null;if(_0x2aa960[_0x244f('0x1')]){const _0x43d1ea=_0x3825b9[_0x244f('0x51')](_0x1b6af7);if(_0x43d1ea&&_0x43d1ea[_0x244f('0x1d')])return null;}return{'group':_0x244f('0x6a'),'name':_0x45d7a1?_0x1b6af7+':'+_0x45d7a1:_0x1b6af7};}}),_0x2aeabc[_0x244f('0x27')][_0x244f('0xb')](_0x244f('0x59'))[_0x244f('0x2b')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x577679,{writer:_0x414a1a})=>_0x414a1a['createElement'](_0x244f('0x1f'),{'data-name':'comment:'+_0x577679[_0x244f('0x6')]('id')})}),_0x2aeabc['conversion'][_0x244f('0xb')](_0x244f('0x59'))[_0x244f('0x13')]({'view':'comment'});}[_0x244f('0x44')](){const _0x150c2d=this[_0x244f('0x67')],_0x447c37=_0x150c2d['plugins']['get'](_0x433bac),_0x5426ef=new Set(),_0x28a9a5=new Set();_0x150c2d['model'][_0x244f('0xd')][_0x244f('0x5c')](_0x113b0e=>{let _0x2b7358=!0x1;for(const {name:_0x3aa681,data:_0x3a857c}of _0x150c2d['model'][_0x244f('0xd')][_0x244f('0x47')][_0x244f('0x5b')]()){const {group:_0x10571a,id:_0x256a35}=tt(_0x3aa681);let _0x1b85d=_0x3a857c[_0x244f('0x33')];if(_0x244f('0x6a')!==_0x10571a||!_0x1b85d)continue;const _0x46c671='$graveyard'===_0x1b85d[_0x244f('0x9')][_0x244f('0x53')];_0x46c671||(_0x1b85d=ot(_0x1b85d,_0x150c2d[_0x244f('0x35')]),!_0x1b85d||_0x1b85d[_0x244f('0x6e')]||!_0x3a857c[_0x244f('0x33')]||_0x1b85d[_0x244f('0x5e')](_0x3a857c['newRange']))?_0x150c2d[_0x244f('0x35')]['hasContent'](_0x1b85d)&&!_0x46c671?this[_0x244f('0x19')]?_0x5426ef[_0x244f('0x5')](_0x3aa681):this[_0x244f('0xa')](_0x3aa681,_0x256a35):(_0x28a9a5[_0x244f('0x5')](_0x3aa681),_0x5426ef[_0x244f('0x38')](_0x3aa681),_0x113b0e[_0x244f('0x2')](_0x3aa681),_0x2b7358=!0x0):(_0x113b0e[_0x244f('0x12')](_0x3aa681,{'range':_0x1b85d}),_0x2b7358=!0x0);}return _0x2b7358;}),this['on']('change:isThreadsLoadingPaused',(_0x4109a1,_0x297c7e,_0x3c1f57)=>{if(!_0x3c1f57&&_0x5426ef[_0x244f('0x6f')])for(const _0x27d131 of _0x5426ef){const {id:_0x260f33}=tt(_0x27d131);_0x5426ef[_0x244f('0x38')](_0x27d131),_0x150c2d[_0x244f('0x35')][_0x244f('0x52')][_0x244f('0x3d')](_0x27d131)&&this[_0x244f('0xa')](_0x27d131,_0x260f33);}}),this[_0x244f('0x3c')](_0x150c2d[_0x244f('0x35')][_0x244f('0xd')],_0x244f('0x14'),(_0x376568,_0x212f11)=>{for(const {name:_0x539d10,data:{newRange:_0x475c86}}of _0x150c2d[_0x244f('0x35')][_0x244f('0xd')][_0x244f('0x47')][_0x244f('0x5b')]()){const {group:_0x2f9009,id:_0x3efd0f}=tt(_0x539d10);if(_0x244f('0x6a')!==_0x2f9009)continue;const _0x480f06=_0x447c37[_0x244f('0x51')](_0x3efd0f),_0x1e260a=this['hasMarkerForId'](_0x3efd0f);_0x480f06&&(_0x480f06[_0x244f('0x4')]||_0x150c2d[_0x244f('0x60')][_0x244f('0x1e')]['once'](_0x244f('0x3b'),()=>{const _0x25e18d=_0x150c2d[_0x244f('0x40')][_0x244f('0x3d')](_0x1d19e6),_0x105bfb=_0x447c37[_0x244f('0x2e')][_0x244f('0x3d')](_0x480f06)['view'];_0x25e18d[_0x244f('0x3f')](_0x105bfb)[_0x244f('0x20')]();},{'priority':_0x244f('0x57')}),_0x480f06[_0x244f('0x4')]=_0x1e260a||!!_0x475c86),_0x475c86||(_0x28a9a5[_0x244f('0x5')](_0x539d10),_0x5426ef['delete'](_0x539d10),this[_0x244f('0x3')][_0x244f('0x49')](_0x3efd0f)&&this[_0x244f('0x3')]['get'](_0x3efd0f)[_0x244f('0x38')](_0x539d10));}if(_0x212f11['isLocal'])for(const _0x5ea3c6 of _0x28a9a5){const {id:_0x1cb4b5}=tt(_0x5ea3c6),_0x51de8f=_0x447c37[_0x244f('0x51')](_0x1cb4b5),_0x155671=this[_0x244f('0x34')](_0x1cb4b5);_0x5426ef[_0x244f('0x38')](_0x5ea3c6),!_0x51de8f||_0x155671||_0x51de8f[_0x244f('0x1d')]||this[_0x244f('0x5a')]===_0x1cb4b5||(this['_autoResolvedThreads'][_0x244f('0x5')](_0x51de8f),_0x51de8f['resolve']());}_0x28a9a5['clear']();});}[_0x244f('0x6d')](_0x3672ed){const _0x178451=this[_0x244f('0x67')],_0x1d74ad=this[_0x244f('0x66')](_0x3672ed);return _0x1e8424(_0x178451[_0x244f('0x60')],_0x1d74ad);}['_getTextContext'](_0x4ddb45){const _0x1a83fd=this[_0x244f('0x66')](_0x4ddb45);let _0x3f2d84='',_0x3666e8=!0x1;for(const _0x2e19e9 of _0x1a83fd){const _0x26ede0=_0x2e19e9[_0x244f('0x1a')]();for(const _0x4e21f4 of Array[_0x244f('0x58')](_0x26ede0['getItems']()))_0x4e21f4['is'](_0x244f('0x45'))?(_0x3f2d84&&_0x3666e8&&(_0x3f2d84+='\x20',_0x3666e8=!0x1),_0x3f2d84+=_0x4e21f4[_0x244f('0x55')]):_0x3666e8=!0x0;_0x3666e8=!0x0;}return _0x3f2d84[_0x244f('0x5d')](0x0,0x96);}['_attachMarkerToThread'](_0x4b0817,_0x351359){const _0xc21dac=this[_0x244f('0x67')],_0x10b073=_0xc21dac[_0x244f('0x40')][_0x244f('0x3d')](_0x433bac);let _0x19c68f=_0x10b073[_0x244f('0x51')](_0x351359);if(this[_0x244f('0x3')]['has'](_0x351359)){const _0xd3edcd=this[_0x244f('0x3')]['get'](_0x351359);_0xd3edcd[_0x244f('0x49')](_0x4b0817)||_0xd3edcd['add'](_0x4b0817);}const _0x4d551c=_0xc21dac['config'][_0x244f('0x3d')]('collaboration.channelId'),_0x20ed20=_0xc21dac[_0x244f('0x40')][_0x244f('0x3d')](_0x3f90b7);if(_0x19c68f&&_0x19c68f[_0x244f('0x1d')]&&this[_0x244f('0x2f')][_0x244f('0x49')](_0x19c68f)&&(this[_0x244f('0x2f')][_0x244f('0x38')](_0x19c68f),_0x19c68f[_0x244f('0xc')]()),this[_0x244f('0x3')]['has'](_0x351359))return _0x19c68f;return this[_0x244f('0x3')][_0x244f('0x39')](_0x351359,new Set([_0x4b0817])),(!this['getAllMarkersForId'](_0x351359)[0x0]['managedUsingOperations']?_0xc21dac['editing'][_0x244f('0x1e')][_0x244f('0x42')](_0x244f('0x3b'),()=>{const _0x7ea96=_0xc21dac['plugins'][_0x244f('0x3d')](_0x1d19e6);_0x19c68f=_0x10b073[_0x244f('0xf')]({'channelId':_0x4d551c,'threadId':_0x351359,'target':()=>this[_0x244f('0x6d')](_0x351359),'context':{'type':'text','value':this[_0x244f('0x4c')](_0x351359)}});const _0x4c2a8b=_0x10b073[_0x244f('0x2e')][_0x244f('0x3d')](_0x19c68f)[_0x244f('0x1e')],_0x4df5de=_0x7ea96[_0x244f('0x3f')](_0x4c2a8b);_0x4df5de&&_0x20ed20[_0x244f('0x16')](_0x4df5de);},{'priority':'low'}):_0x10b073[_0x244f('0x50')]({'channelId':_0x4d551c,'threadId':_0x351359})['then'](_0x315a90=>{if('destroyed'!==_0xc21dac[_0x244f('0x2d')]){if(_0x19c68f=_0x315a90,_0x19c68f){const _0x19f1a4=_0x19c68f[_0x244f('0x0')](()=>this[_0x244f('0x6d')](_0x351359));_0x20ed20[_0x244f('0x16')](_0x19f1a4),_0x19c68f[_0x244f('0x1d')]&&this['_reconvertMarkers'](_0x351359);}else{const _0x42e32d=this[_0x244f('0x66')](_0x351359);_0xc21dac[_0x244f('0x35')][_0x244f('0x14')](_0x38454c=>{for(const _0x17d56c of _0x42e32d)_0x38454c[_0x244f('0x2')](_0x17d56c);});}}}),_0x19c68f);}[_0x244f('0xa')](_0x36d267,_0x2c5f37){const _0x276c85=this[_0x244f('0x61')](_0x36d267,_0x2c5f37);_0x276c85&&!_0x276c85['context']&&_0x276c85[_0x244f('0x8')]({'type':_0x244f('0x31'),'value':this[_0x244f('0x4c')](_0x2c5f37)});}}function Z(_0x1e399c,_0x246f3e){return _0x246f3e?_0x1e399c+':'+_0x246f3e:_0x1e399c;}function tt(_0x3d3f58){const _0x5c38b9=_0x3d3f58[_0x244f('0x25')](':');return{'group':_0x5c38b9[0x0],'id':_0x5c38b9[0x1],'part':_0x5c38b9[0x2]};}function ot(_0x4065c8,_0x5a74e4){const _0x1bce91=_0x5a74e4[_0x244f('0x43')],_0x13d69e=_0x5a74e4[_0x244f('0x6c')](_0x4065c8[_0x244f('0x4d')]);for(const _0x97b363 of _0x4065c8[_0x244f('0x1b')]()){const {type:_0x5f0b3f,item:_0x548e0a,nextPosition:_0x4b7611}=_0x97b363;if(_0x244f('0x31')===_0x5f0b3f||_0x1bce91[_0x244f('0x2a')](_0x548e0a)){const _0x2775a8=_0x5a74e4[_0x244f('0x69')](_0x548e0a);_0x13d69e[_0x244f('0x6e')]&&(_0x13d69e[_0x244f('0x4d')]=_0x2775a8),_0x13d69e[_0x244f('0x23')]=_0x4b7611;}}return _0x13d69e;}
|
|
23
|
+
const _0x37b7=['archivedAt','$marker','unlinkedAt','isLocal','ck-comment-marker--active','_hasTargetInContent','getAllMarkersForId','refreshVisibility','getWalker','createRange','name','elementToElement','once','push','focus','add','comment','enqueueChange','change:isReadOnly','openNewCommentThread','dataToMarker','schema','from','updateMarker','setUnlinkedAt','rootName','listenTo','$graveyard','data','ready','createPositionBefore','resolveCommentThread','_handleThreadMarker','view','isEqual','_initAriaMarkerChangeAnnouncements','get','clear','markerName','hasContent','init','config','set','removeMarker:','low','addComment','requires','for','collaboration.channelId','pluginName','announce','removeCommentThread','switchReadOnly','registerAnnotation','group','text','_attachMarkerToThread','start','plugins','activeMarker','editor','isThreadsLoadingPaused','registerPostFixer','getCommentThread','destroy','managedUsingOperations','comments','document','ariaLiveAnnouncer','substring','scrollToThreadMarker','ck-comment-marker','root','context','isResolved','LEAVE_COMMENT_ANNOUNCEMENT','split','join','isObject','editing','reconvertMarker','setContext','change:isThreadsLoadingPaused','consume','affectsData','_attachResolvedThread','model','markerToData','differ','ENTER_COMMENT_ANNOUNCEMENT','length','render','state','delete','_getTargetForId','conversion','_detachCommentThread','upcast','end','attachTo','consumable','locale','markers','getCommentThreads','_reconvertMarkers','fetchCommentThread','change','isCollapsed','_handleMarkerAddAndRemove','size','newRange','CommentsEditing','comment:','addCommentThread','removeMarker','_initializeMarkerConverters','hasMarkerForId','item'];(function(_0x2cfa16,_0x37b714){const _0x21891a=function(_0x26c97e){while(--_0x26c97e){_0x2cfa16['push'](_0x2cfa16['shift']());}};_0x21891a(++_0x37b714);}(_0x37b7,0x121));const _0x2189=function(_0x2cfa16,_0x37b714){_0x2cfa16=_0x2cfa16-0x0;let _0x21891a=_0x37b7[_0x2cfa16];return _0x21891a;};import{Plugin as _0x535a35}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2cfaf0}from'ckeditor5/src/utils';import _0x245908 from'./commentsrepository';import _0x304944 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x3054af,getAllMarkersDomElementsSorted as _0xb81199}from'ckeditor5-collaboration/src/collaboration-core';import _0x54592a from'../annotations/editorannotations';import _0x2797d9 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x17dbd6 from'./integrations/importword';import _0x435ced from'../annotations/annotations';import{getTranslation as _0x21d138}from'../utils/common-translations';export default class r extends _0x535a35{static get[_0x2189('0x6f')](){return[_0x245908,_0x54592a,_0x2797d9,_0x17dbd6];}static get[_0x2189('0x72')](){return _0x2189('0x3a');}constructor(_0x1a492c){super(_0x1a492c),this[_0x2189('0x6b')](_0x2189('0x8'),!0x0),_0x1a492c[_0x2189('0x5d')][_0x2189('0x4d')](_0x2189('0x5e'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x2189('0x6'),null),this['on']('change:activeMarker',(_0x14ae39,_0x1d19d3,_0x4a9abe,_0x5ca27e)=>{const _0x344e9a=_0x4a9abe?ot(_0x4a9abe)['id']:null;if(_0x1a492c[_0x2189('0x21')]['change'](()=>{if(_0x344e9a){const _0x2ca366=this[_0x2189('0x47')](_0x344e9a);for(const _0x2e9868 of _0x2ca366)_0x1a492c[_0x2189('0x1a')][_0x2189('0x1b')](_0x2e9868);}if(_0x5ca27e){const {id:_0x2ced0e}=ot(_0x5ca27e),_0x483c11=this[_0x2189('0x47')](_0x2ced0e);for(const _0x2940bc of _0x483c11)_0x1a492c['editing'][_0x2189('0x1b')](_0x2940bc);}}),_0x344e9a){const _0x4423f6=_0x1a492c[_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x344e9a);_0x4423f6&&_0x4423f6[_0x2189('0x15')]&&this['scrollToThreadMarker'](_0x344e9a);}}),this[_0x2189('0x64')]();}[_0x2189('0x69')](){const _0x555703=this[_0x2189('0x7')],_0x83302d=_0x555703['plugins'][_0x2189('0x65')](_0x245908),_0x4906b0=_0x555703['config']['get'](_0x2189('0x71'));_0x555703['commands'][_0x2189('0x50')]('addCommentThread',new _0x304944(_0x555703)),this[_0x2189('0x5b')](_0x555703,_0x2189('0x53'),(_0x321f37,_0x28ea33,_0x185ac8)=>{_0x83302d[_0x2189('0x75')](_0x185ac8,_0x555703['config'][_0x2189('0x65')](_0x2189('0x71')));}),this[_0x2189('0x5b')](_0x83302d,tt(_0x2189('0x3c'),_0x4906b0),(_0x5d974e,{threadId:_0x430e69})=>{const _0x3e73fc=this['editor'][_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x430e69);_0x3e73fc&&_0x3e73fc[_0x2189('0x41')]&&this['_attachResolvedThread'](_0x430e69);}),this['listenTo'](_0x83302d,tt(_0x2189('0x74'),_0x4906b0),(_0x4f5ea5,{threadId:_0x3e866e})=>{_0x555703[_0x2189('0x21')]['enqueueChange']({'isUndoable':!0x1},_0x56147a=>{const _0x5f22ce=this[_0x2189('0x47')](_0x3e866e);for(const _0x1c7d2b of _0x5f22ce)_0x56147a['removeMarker'](_0x1c7d2b);});}),this['listenTo'](_0x83302d,tt(_0x2189('0x60'),_0x4906b0),(_0x30db10,{threadId:_0x2f5563})=>{(this['_attachResolvedThread'](_0x2f5563),this['_reconvertMarkers'](_0x2f5563),this[_0x2189('0x7')][_0x2189('0x1a')]['view']['hasDomSelection'])&&(this[_0x2189('0x7')][_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x2f5563)[_0x2189('0x43')]||this['editor'][_0x2189('0x1a')]['view'][_0x2189('0x4f')]());},{'priority':_0x2189('0x6d')}),this[_0x2189('0x5b')](_0x83302d,tt('reopenCommentThread',_0x4906b0),(_0x3b921f,{threadId:_0x48cd09})=>{this[_0x2189('0x33')](_0x48cd09);},{'priority':_0x2189('0x6d')}),this[_0x2189('0x5b')](_0x83302d,tt(_0x2189('0x6e'),_0x4906b0),(_0x492eff,{threadId:_0x35265c,isFromAdapter:_0x2393a7})=>{const _0x496cbc=this['getAllMarkersForId'](_0x35265c);if(_0x2393a7||0x0==_0x496cbc[_0x2189('0x25')]||!_0x83302d['hasCommentThread'](_0x35265c))return;0x1===_0x83302d['getCommentThread'](_0x35265c)[_0x2189('0x25')]&&_0x555703['model'][_0x2189('0x52')]({'isUndoable':!0x1},_0x725643=>{for(const _0x3f5468 of _0x496cbc)_0x725643[_0x2189('0x58')](_0x3f5468,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x2189('0x6d')}),this[_0x2189('0x3e')](),this['_handleMarkerAddAndRemove']();}[_0x2189('0xb')](){const _0x689ef5=this[_0x2189('0x7')][_0x2189('0x5')][_0x2189('0x65')](_0x245908),_0x1d31e5=this[_0x2189('0x7')][_0x2189('0x6a')][_0x2189('0x65')](_0x2189('0x71'));for(const _0x2baad6 of _0x689ef5[_0x2189('0x32')]({'channelId':_0x1d31e5}))_0x689ef5[_0x2189('0x2b')](_0x2baad6['id']),_0x689ef5['_threads'][_0x2189('0x28')](_0x2baad6['id']);super[_0x2189('0xb')]();}[_0x2189('0x3f')](_0x275634){return this[_0x2189('0x47')](_0x275634)[_0x2189('0x25')]>0x0;}[_0x2189('0x47')](_0x37f4de){const _0x56c0d4=[];for(const _0x2e8ce7 of this[_0x2189('0x7')][_0x2189('0x21')][_0x2189('0x31')])_0x2e8ce7[_0x2189('0x4b')]['startsWith']('comment:'+_0x37f4de)&&_0x56c0d4['push'](_0x2e8ce7);return _0x56c0d4;}[_0x2189('0x11')](_0x4b79f3){const _0xead53a=this[_0x2189('0x29')](_0x4b79f3);_0xead53a&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x2189('0x6')])['id']===_0x4b79f3&&_0x2cfaf0({'target':_0xead53a[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x2189('0x33')](_0x54b516){this[_0x2189('0x7')][_0x2189('0x21')][_0x2189('0x35')](()=>{for(const _0x847bb2 of this[_0x2189('0x47')](_0x54b516))this[_0x2189('0x7')][_0x2189('0x1a')][_0x2189('0x1b')](_0x847bb2);});}[_0x2189('0x20')](_0x5b5b04){const _0x2f0859=this['editor']['plugins'][_0x2189('0x65')](_0x245908),_0x377a86=this[_0x2189('0x7')]['plugins'][_0x2189('0x65')](_0x54592a),_0x5775a4=_0x2f0859[_0x2189('0xa')](_0x5b5b04);if(!_0x5775a4['isAttached']){const _0x3bd035=_0x5775a4[_0x2189('0x2e')](()=>this[_0x2189('0x29')](_0x5775a4['id']));_0x377a86[_0x2189('0x0')](_0x3bd035),_0x5775a4['_hasTargetInContent']=!0x1;}}[_0x2189('0x3e')](){const _0x1f728=this[_0x2189('0x7')];_0x1f728[_0x2189('0x2a')][_0x2189('0x70')]('editingDowncast')['markerToHighlight']({'model':_0x2189('0x51'),'view':(_0x500a04,_0x43bbb9)=>{const {id:_0x4e574f}=ot(_0x500a04[_0x2189('0x67')]),_0x21b41e=_0x1f728[_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x4e574f),_0x305d2b=this['activeMarker']&&ot(this[_0x2189('0x6')])['id']===_0x4e574f;if(_0x21b41e&&_0x21b41e[_0x2189('0x15')]&&!_0x305d2b&&_0x500a04['item'])return _0x43bbb9[_0x2189('0x2f')][_0x2189('0x1e')](_0x500a04[_0x2189('0x40')],'addMarker:'+_0x500a04[_0x2189('0x67')]),_0x43bbb9['consumable'][_0x2189('0x1e')](_0x500a04['item'],_0x2189('0x6c')+_0x500a04['markerName']),{'classes':[]};const _0x574d55=[_0x2189('0x12')];return _0x305d2b&&_0x574d55[_0x2189('0x4e')](_0x2189('0x45')),{'classes':_0x574d55,'attributes':{'data-comment':_0x4e574f}};}}),_0x1f728[_0x2189('0x2a')]['for']('dataDowncast')[_0x2189('0x22')]({'model':_0x2189('0x51'),'view':(_0x1ddf15,{options:_0x2fbb50})=>{const _0x11c903=_0x1f728[_0x2189('0x5')][_0x2189('0x65')](_0x245908),_0x59cc69=_0x1f728[_0x2189('0x21')][_0x2189('0x31')][_0x2189('0x65')](_0x1ddf15),{id:_0x206fe2,part:_0x27eb06}=ot(_0x1ddf15);if(_0x59cc69&&!_0x59cc69[_0x2189('0x1f')])return null;if(_0x2fbb50['ignoreResolvedComments']){const _0xfdddda=_0x11c903[_0x2189('0xa')](_0x206fe2);if(_0xfdddda&&_0xfdddda[_0x2189('0x15')])return null;}return{'group':_0x2189('0x51'),'name':_0x27eb06?_0x206fe2+':'+_0x27eb06:_0x206fe2};}}),_0x1f728['conversion']['for'](_0x2189('0x2c'))[_0x2189('0x4c')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2c2236,{writer:_0x1222f3})=>_0x1222f3['createElement'](_0x2189('0x42'),{'data-name':_0x2189('0x3b')+_0x2c2236['getAttribute']('id')})}),_0x1f728['conversion']['for'](_0x2189('0x2c'))[_0x2189('0x55')]({'view':_0x2189('0x51')});}[_0x2189('0x37')](){const _0x53dc54=this[_0x2189('0x7')],_0x5fb2c=_0x53dc54[_0x2189('0x5')][_0x2189('0x65')](_0x245908),_0x44bfd5=new Set(),_0x136968=new Set();_0x53dc54[_0x2189('0x21')][_0x2189('0xe')][_0x2189('0x9')](_0x230f6f=>{let _0x279555=!0x1;for(const {name:_0x193d6a,data:_0x1d6931}of _0x53dc54[_0x2189('0x21')][_0x2189('0xe')][_0x2189('0x23')]['getChangedMarkers']()){const {group:_0x193179,id:_0x3f145a}=ot(_0x193d6a);let _0x17c70c=_0x1d6931['newRange'];if(_0x2189('0x51')!==_0x193179||!_0x17c70c)continue;const _0x364621=_0x2189('0x5c')===_0x17c70c[_0x2189('0x13')][_0x2189('0x5a')];_0x364621||(_0x17c70c=et(_0x17c70c,_0x53dc54[_0x2189('0x21')]),!_0x17c70c||_0x17c70c[_0x2189('0x36')]||!_0x1d6931[_0x2189('0x39')]||_0x17c70c[_0x2189('0x63')](_0x1d6931[_0x2189('0x39')]))?_0x53dc54[_0x2189('0x21')][_0x2189('0x68')](_0x17c70c)&&!_0x364621?this[_0x2189('0x8')]?_0x44bfd5[_0x2189('0x50')](_0x193d6a):this[_0x2189('0x61')](_0x193d6a,_0x3f145a):(_0x136968[_0x2189('0x50')](_0x193d6a),_0x44bfd5[_0x2189('0x28')](_0x193d6a),_0x230f6f['removeMarker'](_0x193d6a),_0x279555=!0x0):(_0x230f6f[_0x2189('0x58')](_0x193d6a,{'range':_0x17c70c}),_0x279555=!0x0);}return _0x279555;}),this['on'](_0x2189('0x1d'),(_0x4b43f3,_0x1f1173,_0x331270)=>{if(!_0x331270&&_0x44bfd5[_0x2189('0x38')])for(const _0x4351f9 of _0x44bfd5){const {id:_0x28ccc0}=ot(_0x4351f9);_0x44bfd5['delete'](_0x4351f9),_0x53dc54[_0x2189('0x21')]['markers']['get'](_0x4351f9)&&this['_handleThreadMarker'](_0x4351f9,_0x28ccc0);}}),this[_0x2189('0x5b')](_0x53dc54[_0x2189('0x21')][_0x2189('0xe')],_0x2189('0x35'),(_0x7d442c,_0x586df9)=>{for(const {name:_0x46cb4d,data:{newRange:_0x2b0482}}of _0x53dc54['model'][_0x2189('0xe')][_0x2189('0x23')]['getChangedMarkers']()){const {group:_0x3a2a89,id:_0x3fdc30}=ot(_0x46cb4d);if('comment'!==_0x3a2a89)continue;const _0x4417d8=_0x5fb2c[_0x2189('0xa')](_0x3fdc30),_0x2275ac=this[_0x2189('0x3f')](_0x3fdc30);_0x4417d8&&(_0x4417d8[_0x2189('0x46')]||_0x53dc54[_0x2189('0x1a')][_0x2189('0x62')][_0x2189('0x4d')]('render',()=>{const _0x34dc05=_0x53dc54['plugins'][_0x2189('0x65')](_0x435ced),_0x20b1f4=_0x5fb2c['_threadToController'][_0x2189('0x65')](_0x4417d8)['view'];_0x34dc05['getByInnerView'](_0x20b1f4)[_0x2189('0x48')]();},{'priority':_0x2189('0x6d')}),_0x4417d8['_hasTargetInContent']=_0x2275ac||!!_0x2b0482),_0x2b0482||(_0x136968[_0x2189('0x50')](_0x46cb4d),_0x44bfd5[_0x2189('0x28')](_0x46cb4d));}if(_0x586df9[_0x2189('0x44')])for(const _0x877a7e of _0x136968){const {id:_0x11f168}=ot(_0x877a7e),_0x2e792a=_0x5fb2c[_0x2189('0xa')](_0x11f168),_0x39bc2a=this['hasMarkerForId'](_0x11f168);_0x44bfd5[_0x2189('0x28')](_0x877a7e),!_0x2e792a||_0x39bc2a||_0x2e792a['unlinkedAt']||_0x2e792a[_0x2189('0x59')](new Date());}_0x136968[_0x2189('0x66')]();});}['_getTargetForId'](_0x53e59d){const _0x22fbfb=this[_0x2189('0x7')],_0x252823=this['getAllMarkersForId'](_0x53e59d);return _0xb81199(_0x22fbfb[_0x2189('0x1a')],_0x252823);}['_getTextContext'](_0x1348db){const _0x5aa43a=this[_0x2189('0x47')](_0x1348db);let _0x1301e1='',_0x5dc133=!0x1;for(const _0x5d67a2 of _0x5aa43a){const _0x16a9f3=_0x5d67a2['getRange']();for(const _0xfda0d5 of Array[_0x2189('0x57')](_0x16a9f3['getItems']()))_0xfda0d5['is']('$textProxy')?(_0x1301e1&&_0x5dc133&&(_0x1301e1+='\x20',_0x5dc133=!0x1),_0x1301e1+=_0xfda0d5['data']):_0x5dc133=!0x0;_0x5dc133=!0x0;}return _0x1301e1[_0x2189('0x10')](0x0,0x96);}[_0x2189('0x3')](_0x5af644,_0x26d428){const _0x47e399=this[_0x2189('0x7')],_0x430753=_0x47e399[_0x2189('0x5')][_0x2189('0x65')](_0x245908);let _0xe2e397=_0x430753['getCommentThread'](_0x26d428);const _0x1fe4f9=_0x47e399['config'][_0x2189('0x65')](_0x2189('0x71')),_0xcc2d4b=_0x47e399[_0x2189('0x5')][_0x2189('0x65')](_0x54592a);if(_0xe2e397&&(_0xe2e397[_0x2189('0x43')]&&_0xe2e397[_0x2189('0x59')](null),_0xe2e397['isAttached']))return _0xe2e397;return!this[_0x2189('0x47')](_0x26d428)[0x0][_0x2189('0xc')]?_0x47e399[_0x2189('0x1a')][_0x2189('0x62')]['once'](_0x2189('0x26'),()=>{if(_0x430753[_0x2189('0xa')](_0x26d428))return;const _0x4408ce=_0x47e399[_0x2189('0x5')][_0x2189('0x65')](_0x435ced);_0xe2e397=_0x430753[_0x2189('0x54')]({'channelId':_0x1fe4f9,'threadId':_0x26d428,'target':()=>this['_getTargetForId'](_0x26d428),'context':{'type':_0x2189('0x2'),'value':this['_getTextContext'](_0x26d428)}});const _0x24a31e=_0x430753['_threadToController'][_0x2189('0x65')](_0xe2e397)[_0x2189('0x62')],_0x115b35=_0x4408ce['getByInnerView'](_0x24a31e);_0x115b35&&_0xcc2d4b[_0x2189('0x0')](_0x115b35);},{'priority':_0x2189('0x6d')}):_0x430753[_0x2189('0x34')]({'channelId':_0x1fe4f9,'threadId':_0x26d428})['then'](_0x3c4215=>{if('destroyed'!==_0x47e399[_0x2189('0x27')]){if(_0xe2e397=_0x3c4215,_0xe2e397&&!_0xe2e397['isAttached']){const _0x269ae2=_0xe2e397[_0x2189('0x2e')](()=>this[_0x2189('0x29')](_0x26d428));_0xcc2d4b['registerAnnotation'](_0x269ae2),_0xe2e397[_0x2189('0x15')]&&this[_0x2189('0x33')](_0x26d428);}else{if(!_0xe2e397){const _0x1a69d4=this[_0x2189('0x47')](_0x26d428);_0x47e399[_0x2189('0x21')]['change'](_0x486407=>{for(const _0x3d8f51 of _0x1a69d4)_0x486407[_0x2189('0x3d')](_0x3d8f51);});}}}}),_0xe2e397;}[_0x2189('0x61')](_0x51bf06,_0x7fa525){const _0x45896e=this[_0x2189('0x3')](_0x51bf06,_0x7fa525);_0x45896e&&!_0x45896e[_0x2189('0x14')]&&_0x45896e[_0x2189('0x1c')]({'type':'text','value':this['_getTextContext'](_0x7fa525)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5d9f16=this['editor'];_0x3054af(_0x5d9f16[_0x2189('0x21')],({left:_0x685593,entered:_0x2404a5})=>{const _0x1bc90d=[];for(const _0x1d8962 of _0x685593)if(rt(_0x1d8962)){_0x1bc90d['push'](_0x21d138(_0x5d9f16[_0x2189('0x30')],_0x2189('0x16')));break;}for(const _0x547af9 of _0x2404a5)if(rt(_0x547af9)){_0x1bc90d[_0x2189('0x4e')](_0x21d138(_0x5d9f16['locale'],_0x2189('0x24')));break;}_0x1bc90d['length']&&_0x5d9f16['ui'][_0x2189('0xf')][_0x2189('0x73')](_0x2189('0xd'),_0x1bc90d[_0x2189('0x18')]('\x20'));});}}function tt(_0x18ff37,_0xb8f760){return _0xb8f760?_0x18ff37+':'+_0xb8f760:_0x18ff37;}function ot(_0xa5c93a){const _0x11dd8e=_0xa5c93a[_0x2189('0x17')](':');return{'group':_0x11dd8e[0x0],'id':_0x11dd8e[0x1],'part':_0x11dd8e[0x2]};}function et(_0x1e8a5b,_0x57ea7e){const _0x353ebc=_0x57ea7e[_0x2189('0x56')],_0x2602ba=_0x57ea7e[_0x2189('0x4a')](_0x1e8a5b['start']);for(const _0xb8a8f of _0x1e8a5b[_0x2189('0x49')]()){const {type:_0x29b059,item:_0x4fbe34,nextPosition:_0x2295f2}=_0xb8a8f;if(_0x2189('0x2')===_0x29b059||_0x353ebc[_0x2189('0x19')](_0x4fbe34)){const _0x46ecc0=_0x57ea7e[_0x2189('0x5f')](_0x4fbe34);_0x2602ba[_0x2189('0x36')]&&(_0x2602ba[_0x2189('0x4')]=_0x46ecc0),_0x2602ba[_0x2189('0x2d')]=_0x2295f2;}}return _0x2602ba;}function rt(_0x20d85d){return _0x2189('0x51')===ot(_0x20d85d['name'])[_0x2189('0x1')];}
|
|
@@ -127,12 +127,14 @@ export default class CommentsRepository extends ContextPlugin {
|
|
|
127
127
|
* @param data.channelId The ID of a document or context to which the comment thread is added.
|
|
128
128
|
* @param data.threadId The ID of the added comment thread.
|
|
129
129
|
* @param data.comments Comments in the comment thread. See the example above.
|
|
130
|
+
* @param data.unlinkedAt The date when the content related to the comment thread was lost (usually, the commented content was
|
|
131
|
+
* removed from the document).
|
|
130
132
|
* @param data.resolvedAt The date when the comment thread has been resolved.
|
|
131
133
|
* @param data.resolvedBy The ID of user who resolved the comment thread.
|
|
132
134
|
* @param data.target The target that the comment
|
|
133
135
|
* balloon should be attached to. If a function is passed, it should return a DOM element or `Rect`.
|
|
134
|
-
* @param data.context The text on which the comment thread was created on or
|
|
135
|
-
*
|
|
136
|
+
* @param data.context The text on which the comment thread was created on or similar contextual information for the comment thread.
|
|
137
|
+
* To be displayed as an additional hint for archived comment threads.
|
|
136
138
|
* @param data.attributes Custom comment attributes. See also
|
|
137
139
|
* {@link module:comments/comments/commentsrepository~CommentThread#setAttribute} and
|
|
138
140
|
* {@link module:comments/comments/commentsrepository~CommentThread#removeAttribute}.
|
|
@@ -146,7 +148,7 @@ export default class CommentsRepository extends ContextPlugin {
|
|
|
146
148
|
* comment data will be added only in the editor and will not be sent to the adapter.
|
|
147
149
|
* @returns The added comment thread.
|
|
148
150
|
*/
|
|
149
|
-
addCommentThread({ channelId, threadId, comments, resolvedAt, resolvedBy, target, context, attributes, isResolvable, isSubmitted,
|
|
151
|
+
addCommentThread({ channelId, threadId, comments, unlinkedAt, resolvedAt, resolvedBy, target, context, attributes, isResolvable, isSubmitted, isFromAdapter }?: AddCommentThreadEventData): CommentThread | undefined;
|
|
150
152
|
/**
|
|
151
153
|
* Creates a new, empty comment thread.
|
|
152
154
|
*
|
|
@@ -181,14 +183,19 @@ export default class CommentsRepository extends ContextPlugin {
|
|
|
181
183
|
* @param data The data of the comment thread to add.
|
|
182
184
|
* @param data.channelId The ID of a document or context to which the comment thread is added.
|
|
183
185
|
* @param data.threadId The ID of the updated comment thread.
|
|
184
|
-
* @param data.
|
|
185
|
-
*
|
|
186
|
+
* @param data.unlinkedAt The date when the content related to the comment thread was lost (usually, the commented content was
|
|
187
|
+
* removed from the document).
|
|
188
|
+
* @param data.context The text on which the comment thread was created on or similar contextual information for the comment thread.
|
|
189
|
+
* To be displayed as an additional hint for archived comment threads.
|
|
190
|
+
* @param data.attributes Custom comment attributes. See also
|
|
191
|
+
* {@link module:comments/comments/commentsrepository~CommentThread#setAttribute} and
|
|
192
|
+
* {@link module:comments/comments/commentsrepository~CommentThread#removeAttribute}.
|
|
186
193
|
* @param data.isFromAdapter A flag describing whether the added data
|
|
187
194
|
* comes from an adapter (`true`) or is a new data (`false`). If set to `true`, the
|
|
188
195
|
* comment data will be added only in the editor and will not be sent to the adapter.
|
|
189
196
|
* @returns The updated comment thread.
|
|
190
197
|
*/
|
|
191
|
-
updateCommentThread({ channelId, threadId, context, attributes, isFromAdapter }: UpdateCommentThreadEventData): CommentThread;
|
|
198
|
+
updateCommentThread({ channelId, threadId, context, unlinkedAt, attributes, isFromAdapter }: UpdateCommentThreadEventData): CommentThread;
|
|
192
199
|
/**
|
|
193
200
|
* Returns comment thread of given id.
|
|
194
201
|
*/
|
|
@@ -289,23 +296,32 @@ export declare class CommentThread extends CommentThread_base {
|
|
|
289
296
|
*/
|
|
290
297
|
canComment: boolean;
|
|
291
298
|
/**
|
|
292
|
-
*
|
|
299
|
+
* Date when the comment thread has been archived.
|
|
300
|
+
*
|
|
301
|
+
* Comment threads become archived after they are {@link #resolvedAt resolved} or {@link #unlinkedAt unlinked}.
|
|
302
|
+
* If the comment thread is resolved and/or unlinked, this value is set to the earliest of the dates. Otherwise, it is `null`.
|
|
293
303
|
*
|
|
294
304
|
* @observable
|
|
295
305
|
*/
|
|
296
|
-
|
|
306
|
+
archivedAt: Date | null;
|
|
297
307
|
/**
|
|
298
|
-
*
|
|
308
|
+
* The date when the content related to the comment thread was lost (usually, the commented content was removed from the document).
|
|
299
309
|
*
|
|
300
310
|
* @observable
|
|
301
311
|
*/
|
|
302
|
-
|
|
312
|
+
unlinkedAt: Date | null;
|
|
303
313
|
/**
|
|
304
|
-
*
|
|
314
|
+
* User id which resolved the comment thread.
|
|
305
315
|
*
|
|
306
316
|
* @observable
|
|
307
317
|
*/
|
|
308
|
-
|
|
318
|
+
resolvedBy: User | null;
|
|
319
|
+
/**
|
|
320
|
+
* Date when the comment thread has been resolved.
|
|
321
|
+
*
|
|
322
|
+
* @observable
|
|
323
|
+
*/
|
|
324
|
+
resolvedAt: Date | null;
|
|
309
325
|
/**
|
|
310
326
|
* Informs if the comment thread is resolved.
|
|
311
327
|
*
|
|
@@ -337,9 +353,9 @@ export declare class CommentThread extends CommentThread_base {
|
|
|
337
353
|
id: string;
|
|
338
354
|
context: CommentThreadContext;
|
|
339
355
|
attributes: Record<string, unknown>;
|
|
356
|
+
unlinkedAt: Date | null;
|
|
340
357
|
resolvedAt: Date | null;
|
|
341
358
|
resolvedBy: User | null;
|
|
342
|
-
deletedAt: Date | null;
|
|
343
359
|
isResolvable: boolean;
|
|
344
360
|
isSubmitted: boolean;
|
|
345
361
|
});
|
|
@@ -363,6 +379,10 @@ export declare class CommentThread extends CommentThread_base {
|
|
|
363
379
|
* Submits the locally created comment thread draft.
|
|
364
380
|
*/
|
|
365
381
|
submit(): void;
|
|
382
|
+
/**
|
|
383
|
+
* Updates the unlinked date.
|
|
384
|
+
*/
|
|
385
|
+
setUnlinkedAt(unlinkedAt: Date | null): void;
|
|
366
386
|
/**
|
|
367
387
|
* Resolves the comment thread.
|
|
368
388
|
*/
|
|
@@ -712,6 +732,7 @@ export type AddCommentThreadEvent = {
|
|
|
712
732
|
export type CommentThreadData = BaseCommentThread & Partial<{
|
|
713
733
|
context: CommentThreadContext;
|
|
714
734
|
attributes: Record<string, any>;
|
|
735
|
+
unlinkedAt: Date | null;
|
|
715
736
|
resolvedAt: Date | null;
|
|
716
737
|
resolvedBy: string | null;
|
|
717
738
|
}>;
|
|
@@ -724,7 +745,6 @@ export type AddCommentThreadEventData = CommentThreadData & {
|
|
|
724
745
|
target?: AnnotationTarget;
|
|
725
746
|
isResolvable?: boolean;
|
|
726
747
|
isSubmitted?: boolean;
|
|
727
|
-
deletedAt?: Date | null;
|
|
728
748
|
};
|
|
729
749
|
/**
|
|
730
750
|
* Fired whenever a new comment thread is submitted and occurs after creating the first comment.
|
|
@@ -779,7 +799,10 @@ export type ResolveCommentThreadEvent = {
|
|
|
779
799
|
name: string;
|
|
780
800
|
args: [ResolveCommentThreadEventData];
|
|
781
801
|
};
|
|
782
|
-
export type ResolveCommentThreadEventData =
|
|
802
|
+
export type ResolveCommentThreadEventData = BaseCommentThread & {
|
|
803
|
+
resolvedAt: Date | null;
|
|
804
|
+
resolvedBy: string | null;
|
|
805
|
+
};
|
|
783
806
|
/**
|
|
784
807
|
* Fired whenever a comment thread is reopened.
|
|
785
808
|
*
|
|
@@ -908,6 +931,7 @@ export type CommentDataJSON = Omit<CommentData, 'isFromAdapter'>;
|
|
|
908
931
|
export type CommentThreadDataJSON = {
|
|
909
932
|
threadId: string;
|
|
910
933
|
context: CommentThreadContext;
|
|
934
|
+
unlinkedAt: Date | null;
|
|
911
935
|
resolvedAt: Date | null;
|
|
912
936
|
resolvedBy: string | null;
|
|
913
937
|
comments: Array<CommentDataJSON>;
|