@ckeditor/ckeditor5-comments 45.2.1 → 46.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/dist/index-editor.css +69 -67
- package/dist/index.css +80 -78
- package/dist/index.js +11 -9
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +19 -19
- package/src/annotations/annotation.d.ts +4 -4
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +2 -2
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +4 -4
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +4 -4
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +4 -4
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +5 -5
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +5 -5
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +14 -13
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +1 -1
- package/src/annotations/view/sidebaritemview.js +2 -1
- package/src/annotations/view/sidebarview.d.ts +4 -4
- package/src/annotations/view/sidebarview.js +2 -1
- package/src/annotations/widesidebar.d.ts +5 -5
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +2 -2
- package/src/comments/addcommentthreadcommand.d.ts +48 -9
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +3 -3
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +4 -4
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +7 -7
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +14 -6
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.d.ts +5 -5
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.d.ts +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/integrations/showcommenthighlights.d.ts +1 -1
- package/src/comments/integrations/showcommenthighlights.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +4 -4
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +4 -4
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +2 -2
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +2 -2
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +3 -3
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +10 -10
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +2 -2
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +3 -3
- package/src/index.d.ts +29 -25
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +2 -1
- package/theme/commentinput.css +2 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x4631e9=_0x3482;(function(_0x5c4f3b,_0x19279b){const _0x533324=_0x3482,_0x58b73b=_0x5c4f3b();while(!![]){try{const _0x94b5d1=-parseInt(_0x533324(0x187))/0x1+-parseInt(_0x533324(0x1ca))/0x2*(parseInt(_0x533324(0x181))/0x3)+parseInt(_0x533324(0x1b1))/0x4*(parseInt(_0x533324(0x191))/0x5)+parseInt(_0x533324(0x1ed))/0x6+-parseInt(_0x533324(0x19a))/0x7+-parseInt(_0x533324(0x1c4))/0x8*(parseInt(_0x533324(0x1e4))/0x9)+parseInt(_0x533324(0x184))/0xa*(parseInt(_0x533324(0x19c))/0xb);if(_0x94b5d1===_0x19279b)break;else _0x58b73b['push'](_0x58b73b['shift']());}catch(_0x2a7a60){_0x58b73b['push'](_0x58b73b['shift']());}}}(_0x1f79,0x1cdef));import{IconRemoveComment as _0xab4f21,IconPencil as _0x26bd12,IconThreeVerticalDots as _0x45994e}from'ckeditor5/src/icons.js';function _0x3482(_0x5adab2,_0x299a16){const _0x1f79f7=_0x1f79();return _0x3482=function(_0x3482af,_0x28f159){_0x3482af=_0x3482af-0x174;let _0x235c75=_0x1f79f7[_0x3482af];return _0x235c75;},_0x3482(_0x5adab2,_0x299a16);}function _0x1f79(){const _0x2f7bdd=['693498aDJzLR','showConfirm','div','removeButton','ck-comment__external','ck-comment--info','buttonView','set','setTemplate','formatDateTime','ck-annotation__info-name','isEnabled','_createCommentInputView','locale','2019OVfcAG','ck-annotation__user','ck-comment__info-time','40qPLRqA','_createRemoveButton','isEditMode','41033ozdLlR','unbind','items','getExternalCommentNote','time','span','children','Delete\x20comment?','_model','ck-comment__actions','18635hcWLeZ','ck-hidden','ck-annotation__actions','some','focus','fire','ck-comment','resolvedAt','then','640738qyUtRE','author','547217HUxDGt','authoredAt','length','element','focusables','ck-comment--remove-confirmation','actionIndicator','Show\x20more\x20items','actionBar','isReadOnly','withText','ck-annotation__info-time','placeholder','cancelConfirm','group','toMany','find','isSystemComment','ck-comment__wrapper','Reply...','_createEditButton','44IDbcDY','visibleView','ck-annotation__content-wrapper','ariaDescriptionView','push','userView','ck-comment__info','remove','addMany','ariaLabel','isConfirm','ck-comment__info-name','listitem','ck-comment__actions--hidden','_createDropdown','getUserViewNotificationText','ck-comment__main','ck-comment__user','ck-annotation__actions--hidden','32BTiqGQ','add','Edit','edit','ck-annotation__main','panelPosition','28bRcSYP','isEditable','editButton','createCollection','render','ck-comment--edit','mouseleave','isVisible','Remove','ck-annotation','getTemplate','label','mouseenter','_config','execute','dropdown','name','blur','isRemovable','panelView','_attachActions','removeComment','ck-comment--remove','switchToEditMode','isExternal','change:isRemovable','214479sbbHEm','bind','extendTemplate','icon','ck-comment--','bindTemplate','from','listenTo','ck-annotation__info'];_0x1f79=function(){return _0x2f7bdd;};return _0x1f79();}import{ButtonView as _0x140529,createDropdown as _0x2d7588,ListView as _0x33e984,ListItemView as _0x39f656,focusChildOnDropdownOpen as _0x6c8687}from'ckeditor5/src/ui.js';import{UserView as _0x3d8657,ConfirmMixin as _0x5ef770,LateFocusDropdownButtonView as _0x2d4e1e}from'ckeditor5-collaboration/src/collaboration-core.js';import{BaseCommentView as _0x4d959f}from'./basecommentview.js';import{getTranslation as _0x2b5009}from'../../../utils/common-translations.js';export class CommentView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5ef770(_0x4d959f){[_0x4631e9(0x1a4)];[_0x4631e9(0x1b6)];constructor(_0x32dd05,_0x4e0c8a,_0x4a0449){const _0x2c1f08=_0x4631e9;super(_0x32dd05,_0x4e0c8a,_0x4a0449),this[_0x2c1f08(0x17a)](_0x2c1f08(0x1a2),null),this[_0x2c1f08(0x17a)](_0x2c1f08(0x1a8),_0x2b5009(_0x32dd05,_0x2c1f08(0x1af))),this[_0x2c1f08(0x1e5)](_0x2c1f08(0x19d))['to'](_0x4e0c8a),this[_0x2c1f08(0x1e5)](_0x2c1f08(0x198))['to'](_0x4e0c8a),this[_0x2c1f08(0x1a4)]=this[_0x2c1f08(0x1cd)](),this[_0x2c1f08(0x1ad)]||(this[_0x2c1f08(0x1cc)]=this[_0x2c1f08(0x1b0)](),this[_0x2c1f08(0x176)]=this[_0x2c1f08(0x185)](),this[_0x2c1f08(0x189)]=this[_0x2c1f08(0x1cd)](),this[_0x2c1f08(0x189)][_0x2c1f08(0x1b9)]([this[_0x2c1f08(0x1cc)],this[_0x2c1f08(0x176)]]),this[_0x2c1f08(0x1d9)]=this[_0x2c1f08(0x1bf)](),this[_0x2c1f08(0x1a4)][_0x2c1f08(0x1c5)](this[_0x2c1f08(0x1d9)]),this[_0x2c1f08(0x1a0)][_0x2c1f08(0x1c5)](this[_0x2c1f08(0x1d9)])),this[_0x2c1f08(0x1b6)]=new _0x3d8657(_0x32dd05,_0x4e0c8a[_0x2c1f08(0x19b)],this[_0x2c1f08(0x1c0)]()),this[_0x2c1f08(0x1b6)][_0x2c1f08(0x1e6)]({'attributes':{'class':[_0x2c1f08(0x1c2),_0x2c1f08(0x182)],'aria-hidden':!0x0}}),this[_0x2c1f08(0x1eb)](_0x4e0c8a,_0x2c1f08(0x1e3),()=>this[_0x2c1f08(0x1a9)]()),this[_0x2c1f08(0x17b)](this[_0x2c1f08(0x1d4)]());}[_0x4631e9(0x1d4)](){const _0x106f83=_0x4631e9,_0xc5dc79=this[_0x106f83(0x1e9)],_0x2e10d6=[{'tag':_0x106f83(0x175),'attributes':{'class':[_0x106f83(0x1b7),_0x106f83(0x1ec)]},'children':[{'tag':_0x106f83(0x18c),'children':[{'text':this[_0x106f83(0x1b6)][_0x106f83(0x1da)]}],'attributes':{'class':[_0x106f83(0x1bc),_0x106f83(0x17d)],'data-cke-tooltip-text':this[_0x106f83(0x1b6)][_0x106f83(0x1da)]}},{'tag':_0x106f83(0x18b),'attributes':{'datetime':_0xc5dc79['to'](_0x106f83(0x19d)),'class':[_0x106f83(0x183),_0x106f83(0x1a7)]},'children':[{'text':_0xc5dc79['to'](_0x106f83(0x19d),_0x201ffe=>this[_0x106f83(0x1d7)][_0x106f83(0x17c)](_0x201ffe))}]}]},{'tag':_0x106f83(0x175),'attributes':{'class':[_0x106f83(0x190),_0x106f83(0x193),_0xc5dc79['if'](_0x106f83(0x186),_0x106f83(0x1be)),_0xc5dc79['if'](_0x106f83(0x186),_0x106f83(0x1c3))]},'children':this[_0x106f83(0x1a4)]},{'tag':_0x106f83(0x175),'attributes':{'class':[_0x106f83(0x1b3)]},'children':this[_0x106f83(0x1b2)]},this[_0x106f83(0x1b4)]];return this[_0x106f83(0x18f)][_0x106f83(0x1e2)]&&_0x2e10d6[_0x106f83(0x1b5)]({'tag':_0x106f83(0x175),'attributes':{'class':[_0x106f83(0x177)]},'children':[{'text':this[_0x106f83(0x18a)]()}]}),{'tag':'li','attributes':{'class':[_0x106f83(0x1ae),_0xc5dc79['if'](_0x106f83(0x1bb),_0x106f83(0x1a1))],'tabindex':-0x1,'aria-label':_0xc5dc79['to'](_0x106f83(0x1ba)),'aria-describedby':this[_0x106f83(0x1b4)]['id'],'role':_0x106f83(0x1bd)},'children':[{'tag':_0x106f83(0x175),'attributes':{'class':[_0x106f83(0x197),_0x106f83(0x1d3),_0xc5dc79['if'](_0x106f83(0x186),_0x106f83(0x1cf)),_0xc5dc79['if'](_0x106f83(0x1ad),_0x106f83(0x178)),_0xc5dc79['to'](_0x106f83(0x1a2),_0x1ed2de=>_0x1ed2de?_0x106f83(0x1e8)+_0x1ed2de:'')],'data-author-id':this[_0x106f83(0x18f)][_0x106f83(0x19b)]['id'],'data-comment-id':this[_0x106f83(0x18f)]['id'],'role':_0x106f83(0x1aa)},'children':[this[_0x106f83(0x1b6)],{'tag':_0x106f83(0x175),'attributes':{'class':[_0x106f83(0x1c1),_0x106f83(0x1c8)]},'children':_0x2e10d6}]}]};}[_0x4631e9(0x1b0)](){const _0x40ba2b=_0x4631e9,_0x3a7eb0=new _0x140529(this[_0x40ba2b(0x180)]);return _0x3a7eb0[_0x40ba2b(0x1d5)]=_0x2b5009(this[_0x40ba2b(0x180)],_0x40ba2b(0x1c6)),_0x3a7eb0[_0x40ba2b(0x1e7)]=_0x26bd12,_0x3a7eb0[_0x40ba2b(0x1a6)]=!0x0,_0x3a7eb0[_0x40ba2b(0x1e6)]({'attributes':{'class':_0x40ba2b(0x1cf)}}),_0x3a7eb0[_0x40ba2b(0x1e5)](_0x40ba2b(0x17e))['to'](this[_0x40ba2b(0x18f)],_0x40ba2b(0x1a5),_0x286d81=>!_0x286d81),_0x3a7eb0[_0x40ba2b(0x1e5)](_0x40ba2b(0x1d1))['to'](this[_0x40ba2b(0x18f)],_0x40ba2b(0x1cb)),_0x3a7eb0['on'](_0x40ba2b(0x1d8),()=>this[_0x40ba2b(0x1e1)]()),_0x3a7eb0;}[_0x4631e9(0x185)](){const _0xc9ba6a=_0x4631e9,_0xb6fa1=new _0x140529(this[_0xc9ba6a(0x180)]);return _0xb6fa1[_0xc9ba6a(0x1d5)]=_0x2b5009(this[_0xc9ba6a(0x180)],_0xc9ba6a(0x1d2)),_0xb6fa1[_0xc9ba6a(0x1e7)]=_0xab4f21,_0xb6fa1[_0xc9ba6a(0x1a6)]=!0x0,_0xb6fa1[_0xc9ba6a(0x1e6)]({'attributes':{'class':_0xc9ba6a(0x1e0)}}),_0xb6fa1[_0xc9ba6a(0x1e5)](_0xc9ba6a(0x17e))['to'](this[_0xc9ba6a(0x18f)],_0xc9ba6a(0x1a5),_0x107610=>!_0x107610),_0xb6fa1[_0xc9ba6a(0x1e5)](_0xc9ba6a(0x1d1))['to'](this[_0xc9ba6a(0x18f)],_0xc9ba6a(0x1dc)),_0xb6fa1['on'](_0xc9ba6a(0x1d8),()=>{const _0x52539d=_0xc9ba6a;this[_0x52539d(0x174)](_0x2b5009(this[_0x52539d(0x180)],_0x52539d(0x18e)),this[_0x52539d(0x19f)])[_0x52539d(0x199)](()=>{const _0x11ccd6=_0x52539d;this[_0x11ccd6(0x196)](_0x11ccd6(0x1df),this[_0x11ccd6(0x18f)]['id']);});}),_0xb6fa1;}[_0x4631e9(0x1bf)](){const _0x406b43=_0x4631e9,_0x394cda=_0x2d7588(this[_0x406b43(0x180)],_0x2d4e1e),_0x4e7555=_0x394cda[_0x406b43(0x1dd)][_0x406b43(0x18d)],_0x197c1e=new _0x33e984(this[_0x406b43(0x180)]),_0x41778d=_0x394cda[_0x406b43(0x1e9)];_0x6c8687(_0x394cda,()=>this[_0x406b43(0x189)][_0x406b43(0x1ac)](_0x3c3dcd=>_0x3c3dcd[_0x406b43(0x1d1)])),_0x394cda[_0x406b43(0x1e6)]({'attributes':{'class':[_0x41778d['if'](_0x406b43(0x1d1),_0x406b43(0x192),_0x2f7289=>!_0x2f7289)]}});const _0x5d979d=(_0xedbdf5,_0x36ada9=-0x1)=>{const _0x304f52=_0x406b43,_0x22265a=new _0x39f656(this[_0x304f52(0x180)]);_0x22265a[_0x304f52(0x18d)][_0x304f52(0x1c5)](_0xedbdf5);const _0x4ff633=_0x36ada9>-0x1?_0x36ada9:_0x197c1e[_0x304f52(0x189)][_0x304f52(0x19e)];_0x197c1e[_0x304f52(0x189)][_0x304f52(0x1c5)](_0x22265a,_0x4ff633);const _0x2a7839=Array[_0x304f52(0x1ea)](this[_0x304f52(0x189)]);_0x394cda[_0x304f52(0x188)](_0x304f52(0x17e),_0x304f52(0x1d1)),_0x394cda[_0x304f52(0x1e5)](_0x304f52(0x17e))[_0x304f52(0x1ab)](_0x2a7839,_0x304f52(0x17e),(..._0x3e79f4)=>_0x3e79f4[_0x304f52(0x194)](_0x3c3ad2=>_0x3c3ad2)),_0x394cda[_0x304f52(0x1e5)](_0x304f52(0x1d1))[_0x304f52(0x1ab)](_0x2a7839,_0x304f52(0x1d1),(..._0x1e26f3)=>_0x1e26f3[_0x304f52(0x194)](_0x2528b7=>_0x2528b7));};_0x394cda[_0x406b43(0x1c9)]='sw',_0x394cda[_0x406b43(0x179)][_0x406b43(0x17a)]({'label':_0x2b5009(this[_0x406b43(0x180)],_0x406b43(0x1a3)),'icon':_0x45994e});for(const _0x92ad93 of this[_0x406b43(0x189)])_0x5d979d(_0x92ad93);return _0x4e7555[_0x406b43(0x1c5)](_0x197c1e),_0x394cda[_0x406b43(0x1eb)](this[_0x406b43(0x189)],_0x406b43(0x1c5),(_0x3ef823,_0x1fb96a,_0x4b34b1)=>{_0x5d979d(_0x1fb96a,_0x4b34b1);}),_0x394cda[_0x406b43(0x1eb)](this[_0x406b43(0x189)],_0x406b43(0x1b8),(_0x8d54ca,_0x417eca,_0x2abcad)=>{const _0x59bdcd=_0x406b43;_0x197c1e[_0x59bdcd(0x189)][_0x59bdcd(0x1b8)](_0x2abcad);}),_0x394cda;}[_0x4631e9(0x1de)](_0x196cce,_0x13ace9){const _0x5a660e=_0x4631e9,_0x2dc20c=_0x196cce&&_0x196cce[_0x5a660e(0x19f)];_0x2dc20c&&(this[_0x5a660e(0x1eb)](_0x2dc20c,_0x5a660e(0x1d6),()=>this[_0x5a660e(0x1a2)]=_0x13ace9),this[_0x5a660e(0x1eb)](_0x2dc20c,_0x5a660e(0x195),()=>this[_0x5a660e(0x1a2)]=_0x13ace9),this[_0x5a660e(0x1eb)](_0x2dc20c,_0x5a660e(0x1d0),()=>this[_0x5a660e(0x1a2)]=null),this[_0x5a660e(0x1eb)](_0x2dc20c,_0x5a660e(0x1db),()=>this[_0x5a660e(0x1a2)]=null));}[_0x4631e9(0x17f)](){const _0xbe9899=_0x4631e9,_0x2d7471=super[_0xbe9899(0x17f)]();return _0x2d7471[_0xbe9899(0x1e5)](_0xbe9899(0x1a8))['to'](this),_0x2d7471;}[_0x4631e9(0x1ce)](){const _0x26f01b=_0x4631e9;super[_0x26f01b(0x1ce)](),this[_0x26f01b(0x1de)](this[_0x26f01b(0x1cc)],_0x26f01b(0x1c7)),this[_0x26f01b(0x1de)](this[_0x26f01b(0x176)],_0x26f01b(0x1b8));}}
|
package/src/comments.d.ts
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
-
import CommentsRepository from './comments/commentsrepository.js';
|
|
11
|
-
import CommentsEditing from './comments/commentsediting.js';
|
|
12
|
-
import CommentsUI from './comments/commentsui.js';
|
|
13
|
-
import CommentsOnly from './commentsonly.js';
|
|
14
|
-
import WideSidebar from './annotations/widesidebar.js';
|
|
15
|
-
import NarrowSidebar from './annotations/narrowsidebar.js';
|
|
16
|
-
import InlineAnnotations from './annotations/inlineannotations.js';
|
|
17
|
-
import CommentsArchiveUI from './comments/commentsarchiveui.js';
|
|
18
|
-
import CommentsArchive from './comments/commentsarchive.js';
|
|
10
|
+
import { CommentsRepository } from './comments/commentsrepository.js';
|
|
11
|
+
import { CommentsEditing } from './comments/commentsediting.js';
|
|
12
|
+
import { CommentsUI } from './comments/commentsui.js';
|
|
13
|
+
import { CommentsOnly } from './commentsonly.js';
|
|
14
|
+
import { WideSidebar } from './annotations/widesidebar.js';
|
|
15
|
+
import { NarrowSidebar } from './annotations/narrowsidebar.js';
|
|
16
|
+
import { InlineAnnotations } from './annotations/inlineannotations.js';
|
|
17
|
+
import { CommentsArchiveUI } from './comments/commentsarchiveui.js';
|
|
18
|
+
import { CommentsArchive } from './comments/commentsarchive.js';
|
|
19
19
|
/**
|
|
20
20
|
* The comments plugin, which brings both the UI part and the editing part of this feature.
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ import CommentsArchive from './comments/commentsarchive.js';
|
|
|
23
23
|
*
|
|
24
24
|
* To learn more about the comments feature refer to the {@glink features/collaboration/comments/comments Comments} guide.
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export declare class Comments extends Plugin {
|
|
27
27
|
/**
|
|
28
28
|
* @inheritDoc
|
|
29
29
|
*/
|
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3050fb=_0x3011;(function(_0x228101,_0x396288){var _0x9751fd=_0x3011,_0x2f45ff=_0x228101();while(!![]){try{var _0x2a5486=parseInt(_0x9751fd(0x10b))/0x1+-parseInt(_0x9751fd(0x104))/0x2+-parseInt(_0x9751fd(0x103))/0x3+parseInt(_0x9751fd(0x107))/0x4*(-parseInt(_0x9751fd(0x10d))/0x5)+-parseInt(_0x9751fd(0x10e))/0x6*(-parseInt(_0x9751fd(0x101))/0x7)+parseInt(_0x9751fd(0x102))/0x8+parseInt(_0x9751fd(0x105))/0x9*(parseInt(_0x9751fd(0x10c))/0xa);if(_0x2a5486===_0x396288)break;else _0x2f45ff['push'](_0x2f45ff['shift']());}catch(_0x2576b0){_0x2f45ff['push'](_0x2f45ff['shift']());}}}(_0x5657,0xbdf06));import{Plugin as _0x2ef2e0}from'ckeditor5/src/core.js';import{CommentsRepository as _0x426ca4}from'./comments/commentsrepository.js';function _0x5657(){var _0x1157d5=['pluginName','isOfficialPlugin','329117SBEjGk','110DzqSCo','5BSgqUk','339978XOcQSi','requires','105wNLcaJ','1755864yoeJVL','4441716JxWsxO','359612CJkMtk','879435gKAjaX','Comments','140168HyRBRG','isPremiumPlugin'];_0x5657=function(){return _0x1157d5;};return _0x5657();}import{CommentsEditing as _0x4245e9}from'./comments/commentsediting.js';function _0x3011(_0x32a32b,_0x432dc2){var _0x5657d0=_0x5657();return _0x3011=function(_0x301110,_0xb38337){_0x301110=_0x301110-0x101;var _0x441122=_0x5657d0[_0x301110];return _0x441122;},_0x3011(_0x32a32b,_0x432dc2);}import{CommentsUI as _0x1b80d1}from'./comments/commentsui.js';import{CommentsOnly as _0x2f07c4}from'./commentsonly.js';import{WideSidebar as _0x192081}from'./annotations/widesidebar.js';import{NarrowSidebar as _0x32fbf3}from'./annotations/narrowsidebar.js';import{InlineAnnotations as _0xe96723}from'./annotations/inlineannotations.js';import{CommentsArchiveUI as _0x4f21b8}from'./comments/commentsarchiveui.js';import{CommentsArchive as _0x41c31f}from'./comments/commentsarchive.js';export class Comments extends _0x2ef2e0{static get[_0x3050fb(0x10f)](){return[_0x426ca4,_0x4245e9,_0x1b80d1,_0x41c31f,_0x4f21b8,_0x2f07c4,_0x192081,_0x32fbf3,_0xe96723];}static get[_0x3050fb(0x109)](){var _0x23ee47=_0x3050fb;return _0x23ee47(0x106);}static get[_0x3050fb(0x10a)](){return!0x0;}static get[_0x3050fb(0x108)](){return!0x0;}}
|
package/src/commentsonly.d.ts
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import CommentsEditing from './comments/commentsediting.js';
|
|
10
|
+
import { CommentsEditing } from './comments/commentsediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
|
|
13
13
|
*
|
|
14
14
|
* Check the {@glink features/collaboration/comments/comments-only-mode Comments-only mode} guide to learn how to use this plugin.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class CommentsOnly extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x29ec(_0x1b6ac9,_0x2f1ee0){const _0xd00ac6=_0xd00a();return _0x29ec=function(_0x29ec77,_0x5d906d){_0x29ec77=_0x29ec77-0x160;let _0x205195=_0xd00ac6[_0x29ec77];return _0x205195;},_0x29ec(_0x1b6ac9,_0x2f1ee0);}const _0x2c937e=_0x29ec;function _0xd00a(){const _0x3a4f39=['clipboardInput','editing','DragDrop','SourceEditing','highest','717708bPNwtb','forceDisabled','plugins','commands','isEnabled','5204626kdCIMf','135065dQgewe','change:isEnabled','get','listenTo','isOfficialPlugin','_enableCommentsOnlyMode','2076824zDpWKz','stopListening','pluginName','commentsOnly','afterInit','affectsData','view','requires','1151950MCUVQT','commentsOnlyMode','cut','CommentsOnly','editor','delete','clearForceDisabled','addCommentThread','document','isPremiumPlugin','set','105006BIzCKE','_disableCommentsOnlyMode','editSource','has','config','stop','1513326JQdKoC'];_0xd00a=function(){return _0x3a4f39;};return _0xd00a();}(function(_0xff47d1,_0x3a6044){const _0x43f3fd=_0x29ec,_0x535420=_0xff47d1();while(!![]){try{const _0x892821=parseInt(_0x43f3fd(0x17c))/0x1+-parseInt(_0x43f3fd(0x176))/0x2+parseInt(_0x43f3fd(0x170))/0x3+-parseInt(_0x43f3fd(0x182))/0x4+-parseInt(_0x43f3fd(0x18a))/0x5+parseInt(_0x43f3fd(0x16a))/0x6+parseInt(_0x43f3fd(0x17b))/0x7;if(_0x892821===_0x3a6044)break;else _0x535420['push'](_0x535420['shift']());}catch(_0x184f68){_0x535420['push'](_0x535420['shift']());}}}(_0xd00a,0x474ec));import{Plugin as _0x5ceb72}from'ckeditor5/src/core.js';import{CommentsEditing as _0x1b95e8}from'./comments/commentsediting.js';export class CommentsOnly extends _0x5ceb72{static get[_0x2c937e(0x184)](){const _0x502bec=_0x2c937e;return _0x502bec(0x162);}static get[_0x2c937e(0x180)](){return!0x0;}static get[_0x2c937e(0x168)](){return!0x0;}static get[_0x2c937e(0x189)](){return[_0x1b95e8];}constructor(_0xf3d2ad){const _0x265fee=_0x2c937e;super(_0xf3d2ad),this[_0x265fee(0x169)](_0x265fee(0x17a),!0x1),this['on'](_0x265fee(0x17d),(_0x164613,_0xf27c6c,_0x1d2e8e)=>{const _0x4128f4=_0x265fee;_0x1d2e8e?this[_0x4128f4(0x181)]():this[_0x4128f4(0x16b)]();});}[_0x2c937e(0x186)](){const _0x34cde5=_0x2c937e;!this[_0x34cde5(0x17a)]&&this[_0x34cde5(0x163)][_0x34cde5(0x16e)][_0x34cde5(0x17e)](_0x34cde5(0x185))&&(this[_0x34cde5(0x17a)]=!0x0);}[_0x2c937e(0x181)](){const _0x13631a=_0x2c937e;for(const [_0x58ddb0,_0x3c72e3]of this[_0x13631a(0x163)][_0x13631a(0x179)])_0x3c72e3[_0x13631a(0x187)]&&_0x13631a(0x166)!==_0x58ddb0&&_0x3c72e3[_0x13631a(0x177)](_0x13631a(0x160));(this[_0x13631a(0x163)][_0x13631a(0x178)][_0x13631a(0x16d)](_0x13631a(0x173))&&this[_0x13631a(0x163)][_0x13631a(0x178)][_0x13631a(0x17e)](_0x13631a(0x173))[_0x13631a(0x177)](_0x13631a(0x160)),this[_0x13631a(0x163)][_0x13631a(0x178)][_0x13631a(0x16d)](_0x13631a(0x174)))&&this[_0x13631a(0x163)][_0x13631a(0x178)][_0x13631a(0x17e)](_0x13631a(0x174))[_0x13631a(0x177)](_0x13631a(0x160));this[_0x13631a(0x163)][_0x13631a(0x179)][_0x13631a(0x17e)](_0x13631a(0x16c))?.[_0x13631a(0x177)](_0x13631a(0x160));const _0x37a28d=this[_0x13631a(0x163)][_0x13631a(0x172)][_0x13631a(0x188)][_0x13631a(0x167)];this[_0x13631a(0x17f)](_0x37a28d,_0x13631a(0x161),_0x440606=>_0x440606[_0x13631a(0x16f)](),{'priority':_0x13631a(0x175)}),this[_0x13631a(0x17f)](_0x37a28d,_0x13631a(0x171),_0x4ff2dc=>_0x4ff2dc[_0x13631a(0x16f)](),{'priority':_0x13631a(0x175)}),this[_0x13631a(0x17f)](_0x37a28d,_0x13631a(0x164),_0x2dabfb=>_0x2dabfb[_0x13631a(0x16f)](),{'priority':_0x13631a(0x175)});}[_0x2c937e(0x16b)](){const _0x3e6c6c=_0x2c937e;for(const [_0x149346,_0x36142b]of this[_0x3e6c6c(0x163)][_0x3e6c6c(0x179)])_0x36142b[_0x3e6c6c(0x187)]&&_0x3e6c6c(0x166)!==_0x149346&&_0x36142b[_0x3e6c6c(0x165)](_0x3e6c6c(0x160));this[_0x3e6c6c(0x163)][_0x3e6c6c(0x178)][_0x3e6c6c(0x16d)](_0x3e6c6c(0x174))&&this[_0x3e6c6c(0x163)][_0x3e6c6c(0x178)][_0x3e6c6c(0x17e)](_0x3e6c6c(0x174))[_0x3e6c6c(0x165)](_0x3e6c6c(0x160)),this[_0x3e6c6c(0x163)][_0x3e6c6c(0x179)][_0x3e6c6c(0x17e)](_0x3e6c6c(0x16c))?.[_0x3e6c6c(0x165)](_0x3e6c6c(0x160)),this[_0x3e6c6c(0x183)](this[_0x3e6c6c(0x163)][_0x3e6c6c(0x172)][_0x3e6c6c(0x188)][_0x3e6c6c(0x167)]);}}
|
package/src/config.d.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import type { EditorConfig, PartialBy } from 'ckeditor5/src/core.js';
|
|
10
|
-
import type CommentView from './comments/ui/view/commentview.js';
|
|
11
|
-
import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview.js';
|
|
10
|
+
import { type CommentView } from './comments/ui/view/commentview.js';
|
|
11
|
+
import { type BaseCommentThreadView } from './comments/ui/view/basecommentthreadview.js';
|
|
12
12
|
/**
|
|
13
13
|
* The configuration of the comments feature.
|
|
14
14
|
*
|
|
@@ -157,7 +157,7 @@ export interface CommentsConfig {
|
|
|
157
157
|
*
|
|
158
158
|
* See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
|
|
159
159
|
*/
|
|
160
|
-
export interface
|
|
160
|
+
export interface AnnotationsSidebarConfig {
|
|
161
161
|
/**
|
|
162
162
|
* DOM element into which the sidebar will be inserted.
|
|
163
163
|
*/
|
package/src/index.d.ts
CHANGED
|
@@ -2,29 +2,33 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export
|
|
29
|
-
export
|
|
5
|
+
export { Comments } from './comments.js';
|
|
6
|
+
export { CommentsOnly } from './commentsonly.js';
|
|
7
|
+
export { CommentsUI } from './comments/commentsui.js';
|
|
8
|
+
export { CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON, type CommentsAdapter, type AddCommentThreadEventData, type CommentPermissionsConfig, type BaseCommentThread, type BaseComment, type BaseCommentData, type AddCommentThreadEvent, type CommentThreadData, type SubmitCommentThreadEvent, type UpdateCommentThreadEvent, type UpdateCommentThreadEventData, type ResolveCommentThreadEvent, type ResolveCommentThreadEventData, type ReopenCommentThreadEvent, type RemoveCommentThreadEvent, type AddCommentEvent, type CommentData, type CommentEventData, type UpdateCommentEvent, type UpdateCommentData, type UpdateCommentEventData, type RemoveCommentEvent } from './comments/commentsrepository.js';
|
|
9
|
+
export { CommentThreadController } from './comments/ui/commentthreadcontroller.js';
|
|
10
|
+
export { Annotation, type AnnotationEscapeEvent, type AnnotationTargetBase, type AnnotationTarget } from './annotations/annotation.js';
|
|
11
|
+
export { Annotations, type AnnotationOptions, type ActivateAnnotationEvent, type DeactivateAllAnnotationsEvent } from './annotations/annotations.js';
|
|
12
|
+
export { AnnotationCollection, bindAnnotationCollections, type AnnotationFocusEvent, type AnnotationBlurEvent } from './annotations/annotationcollection.js';
|
|
13
|
+
export { AnnotationsUIs, type AnnotationUI, type AnnotationsUI } from './annotations/annotationsuis.js';
|
|
14
|
+
export { EditorAnnotations } from './annotations/editorannotations.js';
|
|
15
|
+
export { InlineAnnotations } from './annotations/inlineannotations.js';
|
|
16
|
+
export { Sidebar } from './annotations/sidebar.js';
|
|
17
|
+
export { WideSidebar } from './annotations/widesidebar.js';
|
|
18
|
+
export { NarrowSidebar } from './annotations/narrowsidebar.js';
|
|
19
|
+
export { AnnotationView, type AnnotationMainView } from './annotations/view/annotationview.js';
|
|
20
|
+
export { AnnotationsSidebarItemView } from './annotations/view/sidebaritemview.js';
|
|
21
|
+
export { AnnotationsSidebarView } from './annotations/view/sidebarview.js';
|
|
22
|
+
export { BaseCommentView, type UIAddCommentEvent, type UIUpdateCommentEvent, type UIRemoveCommentEvent } from './comments/ui/view/basecommentview.js';
|
|
23
|
+
export { BaseCommentThreadView, type UISubmitCommentThreadEvent, type UIRemoveCommentThreadEvent, type UIResolveCommentThreadEvent } from './comments/ui/view/basecommentthreadview.js';
|
|
24
|
+
export { CommentsListView } from './comments/ui/view/commentslistview.js';
|
|
25
|
+
export { CommentView } from './comments/ui/view/commentview.js';
|
|
26
|
+
export { CommentThreadView } from './comments/ui/view/commentthreadview.js';
|
|
27
|
+
export { CommentThreadInputView } from './comments/ui/view/commentthreadinputview.js';
|
|
28
|
+
export { AddCommentThreadCommand } from './comments/addcommentthreadcommand.js';
|
|
29
|
+
export { CommentsArchive } from './comments/commentsarchive.js';
|
|
30
|
+
export { CommentsArchiveUI } from './comments/commentsarchiveui.js';
|
|
31
|
+
export type { CommentsConfig, AnnotationsSidebarConfig, CommentsClipboardCopyConfig, CommentThreadConfig, CommentViewConfig } from './config.js';
|
|
32
|
+
export type { CommentsEditing } from './comments/commentsediting.js';
|
|
33
|
+
export { AnnotationCounterButtonView } from './annotations/view/annotationcounterbuttonview.js';
|
|
30
34
|
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x29acb0,_0x34d5f4){var _0x2a8dde=_0x3a09,_0x176555=_0x29acb0();while(!![]){try{var _0x2ad486=parseInt(_0x2a8dde(0x72))/0x1+-parseInt(_0x2a8dde(0x74))/0x2*(parseInt(_0x2a8dde(0x71))/0x3)+parseInt(_0x2a8dde(0x70))/0x4+parseInt(_0x2a8dde(0x6d))/0x5+parseInt(_0x2a8dde(0x6f))/0x6+parseInt(_0x2a8dde(0x73))/0x7*(-parseInt(_0x2a8dde(0x6c))/0x8)+-parseInt(_0x2a8dde(0x6e))/0x9;if(_0x2ad486===_0x34d5f4)break;else _0x176555['push'](_0x176555['shift']());}catch(_0x4ed0c3){_0x176555['push'](_0x176555['shift']());}}}(_0x4290,0xeaf46));export{Comments}from'./comments.js';export{CommentsOnly}from'./commentsonly.js';export{CommentsUI}from'./comments/commentsui.js';export{CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository.js';export{CommentThreadController}from'./comments/ui/commentthreadcontroller.js';export{Annotation}from'./annotations/annotation.js';export{Annotations}from'./annotations/annotations.js';function _0x4290(){var _0x2f94c8=['6484esbCPa','40uYOSFd','6646495CBWwMo','36336717XJlHEr','9387072noKImy','6487972lmLtAs','1176PtJbfu','1784882eQfMjx','42049DjcZYR'];_0x4290=function(){return _0x2f94c8;};return _0x4290();}export{AnnotationCollection,bindAnnotationCollections}from'./annotations/annotationcollection.js';export{AnnotationsUIs}from'./annotations/annotationsuis.js';export{EditorAnnotations}from'./annotations/editorannotations.js';export{InlineAnnotations}from'./annotations/inlineannotations.js';export{Sidebar}from'./annotations/sidebar.js';export{WideSidebar}from'./annotations/widesidebar.js';export{NarrowSidebar}from'./annotations/narrowsidebar.js';export{AnnotationView}from'./annotations/view/annotationview.js';export{AnnotationsSidebarItemView}from'./annotations/view/sidebaritemview.js';export{AnnotationsSidebarView}from'./annotations/view/sidebarview.js';export{BaseCommentView}from'./comments/ui/view/basecommentview.js';function _0x3a09(_0x4036ac,_0x2c1b0a){var _0x429090=_0x4290();return _0x3a09=function(_0x3a0966,_0x3a6d07){_0x3a0966=_0x3a0966-0x6c;var _0x13930f=_0x429090[_0x3a0966];return _0x13930f;},_0x3a09(_0x4036ac,_0x2c1b0a);}export{BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview.js';export{CommentsListView}from'./comments/ui/view/commentslistview.js';export{CommentView}from'./comments/ui/view/commentview.js';export{CommentThreadView}from'./comments/ui/view/commentthreadview.js';export{CommentThreadInputView}from'./comments/ui/view/commentthreadinputview.js';export{AddCommentThreadCommand}from'./comments/addcommentthreadcommand.js';export{CommentsArchive}from'./comments/commentsarchive.js';export{CommentsArchiveUI}from'./comments/commentsarchiveui.js';export{AnnotationCounterButtonView}from'./annotations/view/annotationcounterbuttonview.js';import'./augmentation.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x17f235,_0x23a91c,_0x40748f){const t=_0x17f235['t'];switch(_0x23a91c){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x40748f);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x40748f);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x40748f);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x40748f);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x40748f);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x40748f);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x40748f);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x40748f);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @param callback Callback executed after throttled mutations.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export declare function createMutationObserver(callback: (...args: Array<any>) => unknown): MutationObserver;
|
|
11
11
|
export interface MutationObserver {
|
|
12
12
|
attach: (element: Node) => void;
|
|
13
13
|
detach: () => void;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2b6ffe,_0x5651ec){const _0x566027=_0x4cd8,_0x58690b=_0x2b6ffe();while(!![]){try{const _0x1e99b2=parseInt(_0x566027(0x7d))/0x1+parseInt(_0x566027(0x82))/0x2+parseInt(_0x566027(0x8a))/0x3+parseInt(_0x566027(0x89))/0x4*(parseInt(_0x566027(0x83))/0x5)+parseInt(_0x566027(0x85))/0x6+parseInt(_0x566027(0x87))/0x7+-parseInt(_0x566027(0x88))/0x8;if(_0x1e99b2===_0x5651ec)break;else _0x58690b['push'](_0x58690b['shift']());}catch(_0x31d405){_0x58690b['push'](_0x58690b['shift']());}}}(_0x1717,0xad63a));function _0x4cd8(_0x573000,_0x15aefe){const _0x17175b=_0x1717();return _0x4cd8=function(_0x4cd89f,_0x52ce3a){_0x4cd89f=_0x4cd89f-0x7c;let _0x4b7560=_0x17175b[_0x4cd89f];return _0x4b7560;},_0x4cd8(_0x573000,_0x15aefe);}import{throttle as _0x1d276c}from'es-toolkit/compat';function _0x1717(){const _0x2a129c=['1777719HSbDxT','attributes','class','cancel','202343CHaYGL','type','characterData','attributeName','observe','573702vxVqmE','1713260ywOtnA','childList','6825384WoeAAU','disconnect','2882152ZEkwBk','26331784RcxRXH','16otXVOH'];_0x1717=function(){return _0x2a129c;};return _0x1717();}export function createMutationObserver(_0x5237bd){const _0x1d8fd8=_0x1d276c(_0x5237bd,0x1e),_0x3d89e6=new MutationObserver(_0x33e41b=>{const _0x2d5ff3=_0x4cd8;for(const _0x55be78 of _0x33e41b)(_0x2d5ff3(0x8b)==_0x55be78[_0x2d5ff3(0x7e)]&&_0x2d5ff3(0x8c)==_0x55be78[_0x2d5ff3(0x80)]||_0x2d5ff3(0x84)==_0x55be78[_0x2d5ff3(0x7e)]||_0x2d5ff3(0x7f)==_0x55be78[_0x2d5ff3(0x7e)])&&_0x1d8fd8();});return{'attach'(_0x573dfe){const _0x57c3c6=_0x4cd8;_0x3d89e6[_0x57c3c6(0x81)](_0x573dfe,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){const _0x29fcaf=_0x4cd8;_0x3d89e6[_0x29fcaf(0x86)](),_0x1d8fd8[_0x29fcaf(0x7c)]();}};}
|
package/theme/comment.css
CHANGED