@ckeditor/ckeditor5-comments 44.1.0 → 44.2.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/LICENSE.md +1 -2
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +15 -15
- package/dist/index.js +10 -10
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +39 -16
- package/src/annotations/annotation.d.ts +1 -1
- package/src/annotations/annotation.js +3 -3
- package/src/annotations/annotationcollection.d.ts +1 -1
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +1 -1
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +2 -2
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +1 -1
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +1 -1
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +1 -1
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +1 -1
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +1 -1
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +1 -1
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +1 -1
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +1 -1
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +1 -1
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +1 -1
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +1 -1
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +1 -1
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +1 -1
- package/src/comments/commentsrepository.js +4 -4
- package/src/comments/commentsui.d.ts +1 -1
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/clipboard.d.ts +1 -1
- package/src/comments/integrations/clipboard.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +1 -1
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/integrations/showcommenthighlights.d.ts +1 -1
- package/src/comments/integrations/showcommenthighlights.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +3 -3
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +1 -1
- package/src/comments/ui/commentthreadcontroller.js +3 -3
- package/src/comments/ui/view/basecommentthreadview.d.ts +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +1 -1
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +1 -1
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +1 -1
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +1 -1
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadview.js +3 -3
- package/src/comments/ui/view/commentview.d.ts +1 -1
- package/src/comments/ui/view/commentview.js +3 -3
- package/src/comments.d.ts +1 -1
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +1 -1
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +1 -1
- package/src/config.js +1 -1
- package/src/index.d.ts +2 -2
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +2 -2
- package/theme/annotation-inline.css +1 -1
- package/theme/annotation.css +1 -1
- package/theme/comment.css +1 -1
- package/theme/commentinput.css +1 -1
- package/theme/commentmarker.css +1 -1
- package/theme/commentsarchive.css +1 -1
- package/theme/commentthread.css +1 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/comments-archive.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +1 -1
- package/theme/sidebar.css +1 -1
- package/dist/annotations/annotation.d.ts +0 -101
- package/dist/annotations/annotationcollection.d.ts +0 -102
- package/dist/annotations/annotations.d.ts +0 -166
- package/dist/annotations/annotationsuis.d.ts +0 -244
- package/dist/annotations/editorannotations.d.ts +0 -79
- package/dist/annotations/inlineannotations.d.ts +0 -102
- package/dist/annotations/narrowsidebar.d.ts +0 -97
- package/dist/annotations/sidebar.d.ts +0 -112
- package/dist/annotations/view/annotationcounterbuttonview.d.ts +0 -33
- package/dist/annotations/view/annotationview.d.ts +0 -94
- package/dist/annotations/view/sidebaritemview.d.ts +0 -63
- package/dist/annotations/view/sidebarview.d.ts +0 -57
- package/dist/annotations/widesidebar.d.ts +0 -89
- package/dist/augmentation.d.ts +0 -63
- package/dist/comments/addcommentthreadcommand.d.ts +0 -39
- package/dist/comments/commentsarchive.d.ts +0 -43
- package/dist/comments/commentsarchiveui.d.ts +0 -57
- package/dist/comments/commentsediting.d.ts +0 -106
- package/dist/comments/commentsrepository.d.ts +0 -1137
- package/dist/comments/commentsui.d.ts +0 -49
- package/dist/comments/integrations/clipboard.d.ts +0 -30
- package/dist/comments/integrations/commentsrestrictededitingmode.d.ts +0 -21
- package/dist/comments/integrations/importword.d.ts +0 -25
- package/dist/comments/integrations/showcommenthighlights.d.ts +0 -23
- package/dist/comments/ui/commenteditor/commenteditor.d.ts +0 -40
- package/dist/comments/ui/commenteditor/commenteditorui.d.ts +0 -35
- package/dist/comments/ui/commenteditor/commenteditoruiview.d.ts +0 -40
- package/dist/comments/ui/commentthreadcontroller.d.ts +0 -68
- package/dist/comments/ui/view/basecommentthreadview.d.ts +0 -152
- package/dist/comments/ui/view/basecommentview.d.ts +0 -154
- package/dist/comments/ui/view/collapsedcommentsview.d.ts +0 -17
- package/dist/comments/ui/view/commentcontentview.d.ts +0 -18
- package/dist/comments/ui/view/commentinputview.d.ts +0 -105
- package/dist/comments/ui/view/commentsarchiveview.d.ts +0 -50
- package/dist/comments/ui/view/commentslistview.d.ts +0 -116
- package/dist/comments/ui/view/commentthreadheadercontextview.d.ts +0 -25
- package/dist/comments/ui/view/commentthreadheaderview.d.ts +0 -80
- package/dist/comments/ui/view/commentthreadinputview.d.ts +0 -60
- package/dist/comments/ui/view/commentthreadview.d.ts +0 -127
- package/dist/comments/ui/view/commentview.d.ts +0 -244
- package/dist/comments.d.ts +0 -47
- package/dist/commentsonly.d.ts +0 -45
- package/dist/config.d.ts +0 -199
- package/dist/index.d.ts +0 -33
- package/dist/utils/common-translations.d.ts +0 -13
- package/dist/utils/createmutationobserver.d.ts +0 -18
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/comments/commentsui
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
-
import CommentsRepository from './commentsrepository.js';
|
|
14
|
-
import CommentsEditing from './commentsediting.js';
|
|
15
|
-
import EditorAnnotations from '../annotations/editorannotations.js';
|
|
16
|
-
import Annotations from '../annotations/annotations.js';
|
|
17
|
-
/**
|
|
18
|
-
* Creates `comment` {@link module:ui/button/buttonview~ButtonView ui button} and binds with
|
|
19
|
-
* {@link module:comments/comments/addcommentthreadcommand~AddCommentThreadCommand}.
|
|
20
|
-
*
|
|
21
|
-
* Because of CommentsRepository handles UI of CommentThreads responsibility of this plugin is limited to
|
|
22
|
-
* adjusting comments UX for the editor purpose.
|
|
23
|
-
*/
|
|
24
|
-
export default class CommentsUI extends Plugin {
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
static get pluginName(): "CommentsUI";
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
static get isOfficialPlugin(): true;
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
static get isPremiumPlugin(): true;
|
|
37
|
-
/**
|
|
38
|
-
* @inheritDoc
|
|
39
|
-
*/
|
|
40
|
-
static get requires(): readonly [typeof CommentsRepository, typeof CommentsEditing, typeof EditorAnnotations, typeof Annotations];
|
|
41
|
-
/**
|
|
42
|
-
* @inheritDoc
|
|
43
|
-
*/
|
|
44
|
-
init(): void;
|
|
45
|
-
/**
|
|
46
|
-
* @inheritDoc
|
|
47
|
-
*/
|
|
48
|
-
destroy(): void;
|
|
49
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/integrations/clipboard
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
13
|
-
import { ClipboardPipeline, ClipboardMarkersUtils } from 'ckeditor5/src/clipboard.js';
|
|
14
|
-
/**
|
|
15
|
-
* Provides comments plugin integration for the clipboard feature.
|
|
16
|
-
*/
|
|
17
|
-
export default class CommentsClipboard extends Plugin {
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
constructor(editor: Editor);
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
static get requires(): readonly [typeof ClipboardMarkersUtils, typeof ClipboardPipeline];
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
afterInit(): void;
|
|
30
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/comments/integrations/commentsrestrictededitingmode
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
-
/**
|
|
14
|
-
* Provides comments plugin integration for restricted editing mode feature from restricted editing package.
|
|
15
|
-
*/
|
|
16
|
-
export default class CommentsRestrictedEditingMode extends Plugin {
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
afterInit(): void;
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/integrations/importword
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
13
|
-
/**
|
|
14
|
-
* Provides comments plugin integration for the import from Word feature.
|
|
15
|
-
*/
|
|
16
|
-
export default class CommentsImportWord extends Plugin {
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
constructor(editor: Editor);
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
afterInit(): void;
|
|
25
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/integrations/showcommenthighlights
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
-
/**
|
|
14
|
-
* Provides integrations for getting editor data with `showCommentHightlights` option enabled for the features that need it.
|
|
15
|
-
* Some of them are similar or duplicates from the `showSuggestionHighlights` option handling in the track changes feature.
|
|
16
|
-
* Unfortunately, for now there's no single place where they could be shared and reused, so both plugins have to add them separately.
|
|
17
|
-
*/
|
|
18
|
-
export default class ShowCommentHighlights extends Plugin {
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
init(): void;
|
|
23
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/comments/ui/commenteditor/commenteditor
|
|
11
|
-
*/
|
|
12
|
-
import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
|
|
13
|
-
import CommentEditorUI from './commenteditorui.js';
|
|
14
|
-
import { type PlaceholderableElement } from 'ckeditor5/src/engine.js';
|
|
15
|
-
declare const CommentEditor_base: import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/utils.js").Observable>;
|
|
16
|
-
export default class CommentEditor extends /* #__PURE__ -- @preserve */ CommentEditor_base {
|
|
17
|
-
static defaultPlugins: EditorConfig['plugins'];
|
|
18
|
-
/**
|
|
19
|
-
* The input placeholder.
|
|
20
|
-
*
|
|
21
|
-
* @observable
|
|
22
|
-
*/
|
|
23
|
-
placeholder: string;
|
|
24
|
-
placeholderElement: PlaceholderableElement | undefined;
|
|
25
|
-
ui: CommentEditorUI;
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
constructor(config?: EditorConfig);
|
|
30
|
-
create(): Promise<unknown>;
|
|
31
|
-
/**
|
|
32
|
-
* @inheritDoc
|
|
33
|
-
*/
|
|
34
|
-
destroy(): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Place the selection at the end of the editor data and focus the editable.
|
|
37
|
-
*/
|
|
38
|
-
focus(): void;
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/comments/ui/commenteditor/commenteditorui
|
|
11
|
-
*/
|
|
12
|
-
import { EditorUI } from 'ckeditor5/src/ui.js';
|
|
13
|
-
import type { Editor } from 'ckeditor5/src/core.js';
|
|
14
|
-
import CommentEditorUIView from './commenteditoruiview.js';
|
|
15
|
-
export default class CommentEditorUI extends EditorUI {
|
|
16
|
-
/**
|
|
17
|
-
* The main (top–most) view of the editor UI.
|
|
18
|
-
*/
|
|
19
|
-
readonly view: CommentEditorUIView;
|
|
20
|
-
/**
|
|
21
|
-
* Creates an instance of the classic editor UI class.
|
|
22
|
-
*
|
|
23
|
-
* @param editor The editor instance.
|
|
24
|
-
*/
|
|
25
|
-
constructor(editor: Editor);
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
get element(): HTMLElement | null;
|
|
30
|
-
init(): void;
|
|
31
|
-
/**
|
|
32
|
-
* @inheritDoc
|
|
33
|
-
*/
|
|
34
|
-
destroy(): void;
|
|
35
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/comments/ui/commenteditor/commenteditoruiview
|
|
11
|
-
*/
|
|
12
|
-
import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
13
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
-
import type { EditingView } from 'ckeditor5/src/engine.js';
|
|
15
|
-
export default class CommentEditorUIView extends EditorUIView {
|
|
16
|
-
/**
|
|
17
|
-
* Collection of the child views located in the main (`.ck-editor__main`)
|
|
18
|
-
* area of the UI.
|
|
19
|
-
*/
|
|
20
|
-
readonly main: ViewCollection;
|
|
21
|
-
/**
|
|
22
|
-
* Editable UI view.
|
|
23
|
-
*/
|
|
24
|
-
editable: InlineEditableUIView;
|
|
25
|
-
/**
|
|
26
|
-
* Creates an instance of the comments editor UI view.
|
|
27
|
-
*
|
|
28
|
-
* @param locale The locale instance.
|
|
29
|
-
* @param editingView The editing view instance this view is related to.
|
|
30
|
-
*/
|
|
31
|
-
constructor(locale: Locale, editingView: EditingView);
|
|
32
|
-
/**
|
|
33
|
-
* @inheritDoc
|
|
34
|
-
*/
|
|
35
|
-
render(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Focusable interface required by a FocusCycler.
|
|
38
|
-
*/
|
|
39
|
-
focus(): void;
|
|
40
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import type { CommentThread } from '../commentsrepository.js';
|
|
10
|
-
import type { default as BaseCommentThreadView } from './view/basecommentthreadview.js';
|
|
11
|
-
declare const CommentThreadController_base: {
|
|
12
|
-
new (): import("ckeditor5/src/utils.js").Observable;
|
|
13
|
-
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Controller for a comment thread.
|
|
17
|
-
*
|
|
18
|
-
* It takes a comment thread view, listens to events fired by that view and based on them performs actions on a comment thread model.
|
|
19
|
-
*/
|
|
20
|
-
export default class CommentThreadController extends /* #__PURE__ -- @preserve */ CommentThreadController_base {
|
|
21
|
-
model: CommentThread;
|
|
22
|
-
view: BaseCommentThreadView;
|
|
23
|
-
/**
|
|
24
|
-
* @param model Comment thread model.
|
|
25
|
-
* @param view Comment thread view.
|
|
26
|
-
*/
|
|
27
|
-
constructor(model: CommentThread, view: BaseCommentThreadView);
|
|
28
|
-
/**
|
|
29
|
-
* Submits the comment thread.
|
|
30
|
-
*/
|
|
31
|
-
submit(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Removes the comment thread.
|
|
34
|
-
*/
|
|
35
|
-
remove(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Resolves the comment thread.
|
|
38
|
-
*/
|
|
39
|
-
resolve(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Reopens the comment thread.
|
|
42
|
-
*/
|
|
43
|
-
reopen(): void;
|
|
44
|
-
/**
|
|
45
|
-
* Adds a comment to the comment thread.
|
|
46
|
-
*
|
|
47
|
-
* @param commentContent Comment content.
|
|
48
|
-
*/
|
|
49
|
-
addComment(commentContent: string): void;
|
|
50
|
-
/**
|
|
51
|
-
* Updates a comment that belongs to the comment thread.
|
|
52
|
-
*
|
|
53
|
-
* @param commentId Id of the comment to update.
|
|
54
|
-
* @param commentContent Updated comment content.
|
|
55
|
-
*/
|
|
56
|
-
updateComment(commentId: string, commentContent: string): void;
|
|
57
|
-
/**
|
|
58
|
-
* Removes a comment from the comment thread.
|
|
59
|
-
*
|
|
60
|
-
* @param commentId Id of the comment to remove.
|
|
61
|
-
*/
|
|
62
|
-
removeComment(commentId: string): void;
|
|
63
|
-
/**
|
|
64
|
-
* Destroys `CommentThreadController` instance.
|
|
65
|
-
*/
|
|
66
|
-
destroy(): void;
|
|
67
|
-
}
|
|
68
|
-
export {};
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/comments/ui/view/basecommentthreadview
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { FocusCycler, View, type FocusableView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
14
|
-
import { type Locale, FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
15
|
-
import CommentThreadInputView from './commentthreadinputview.js';
|
|
16
|
-
import CommentsListView from './commentslistview.js';
|
|
17
|
-
import CommentThreadHeaderView from './commentthreadheaderview.js';
|
|
18
|
-
import { AriaDescriptionView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
19
|
-
import type { CommentThread } from '../../commentsrepository.js';
|
|
20
|
-
import type { CommentThreadConfig } from '../../../config.js';
|
|
21
|
-
/**
|
|
22
|
-
* An abstract comment thread view class that should be used as a base for comment thread view implementations.
|
|
23
|
-
* It provides some behaviors, flags and building blocks to use when creating a custom comment thread view class.
|
|
24
|
-
*
|
|
25
|
-
* For the usage examples check the {@glink features/collaboration/annotations/annotations-custom-view Custom annotation view} guide.
|
|
26
|
-
*/
|
|
27
|
-
export default class BaseCommentThreadView extends View {
|
|
28
|
-
locale: Locale;
|
|
29
|
-
/**
|
|
30
|
-
* Informs whether the comment thread view is in active state ("highlighted").
|
|
31
|
-
* A comment thread view is in this state when it is focused or was activated by the user in any other way.
|
|
32
|
-
*
|
|
33
|
-
* @observable
|
|
34
|
-
*/
|
|
35
|
-
isActive: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Informs whether the comment thread view is in unlinked state.
|
|
38
|
-
* A comment thread view is in this state when its corresponding target has been removed from the content.
|
|
39
|
-
*
|
|
40
|
-
* @observable
|
|
41
|
-
*/
|
|
42
|
-
isUnlinked: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Informs whether the comment thread has any changes that have not been saved.
|
|
45
|
-
*
|
|
46
|
-
* @observable
|
|
47
|
-
*/
|
|
48
|
-
isDirty: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* The number of comments.
|
|
51
|
-
*
|
|
52
|
-
* @observable
|
|
53
|
-
*/
|
|
54
|
-
readonly length: number;
|
|
55
|
-
/**
|
|
56
|
-
* The list of comment views. It should be used as a part of the view template.
|
|
57
|
-
*
|
|
58
|
-
* @readonly
|
|
59
|
-
*/
|
|
60
|
-
readonly commentsListView: CommentsListView;
|
|
61
|
-
/**
|
|
62
|
-
* The comment thread header. It should be used as a part of the view template.
|
|
63
|
-
* This header is used only for resolved comment threads.
|
|
64
|
-
*
|
|
65
|
-
* @readonly
|
|
66
|
-
*/
|
|
67
|
-
readonly commentThreadHeaderView: CommentThreadHeaderView;
|
|
68
|
-
/**
|
|
69
|
-
* The comment input area view. It should be used as a part of the view template.
|
|
70
|
-
*
|
|
71
|
-
* @readonly
|
|
72
|
-
*/
|
|
73
|
-
readonly commentThreadInputView: CommentThreadInputView;
|
|
74
|
-
/**
|
|
75
|
-
* A helper view that provides an ARIA description for the comment thread used by
|
|
76
|
-
* assistive technologies.
|
|
77
|
-
*/
|
|
78
|
-
readonly ariaDescriptionView: AriaDescriptionView;
|
|
79
|
-
/**
|
|
80
|
-
* An accessible thread label text exposed to assistive technologies.
|
|
81
|
-
*/
|
|
82
|
-
ariaLabel: string;
|
|
83
|
-
/**
|
|
84
|
-
* The collection of focusable views in the comment thread.
|
|
85
|
-
*/
|
|
86
|
-
readonly focusables: ViewCollection<FocusableView>;
|
|
87
|
-
/**
|
|
88
|
-
* Tracks information about DOM focus in the thread.
|
|
89
|
-
*/
|
|
90
|
-
readonly focusTracker: FocusTracker;
|
|
91
|
-
/**
|
|
92
|
-
* Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
93
|
-
*/
|
|
94
|
-
readonly keystrokes: KeystrokeHandler;
|
|
95
|
-
/**
|
|
96
|
-
* Helps cycling over focusable views in the thread.
|
|
97
|
-
*/
|
|
98
|
-
readonly focusCycler: FocusCycler;
|
|
99
|
-
/**
|
|
100
|
-
* @param locale The localization service instance.
|
|
101
|
-
* @param model The model on which the view will base.
|
|
102
|
-
* @param localUser The current local user.
|
|
103
|
-
* @param config Additional view configuration.
|
|
104
|
-
*/
|
|
105
|
-
constructor(locale: Locale, model: CommentThread, localUser: User, config: CommentThreadConfig);
|
|
106
|
-
/**
|
|
107
|
-
* Focuses the view.
|
|
108
|
-
*/
|
|
109
|
-
focus(): void;
|
|
110
|
-
/**
|
|
111
|
-
* @inheritDoc
|
|
112
|
-
*/
|
|
113
|
-
render(): void;
|
|
114
|
-
/**
|
|
115
|
-
* @inheritDoc
|
|
116
|
-
*/
|
|
117
|
-
destroy(): Promise<void>;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Fired when a user created a first comment in the comment thread. Then the comment thread is submitted and saved.
|
|
121
|
-
*
|
|
122
|
-
* @eventName ~BaseCommentThreadView#submitCommentThread
|
|
123
|
-
*/
|
|
124
|
-
export type UISubmitCommentThreadEvent = {
|
|
125
|
-
name: 'submitCommentThread';
|
|
126
|
-
args: [];
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Fired when a user performed an action that should lead to removing the comment thread.
|
|
130
|
-
*
|
|
131
|
-
* This event is not fired by default by any component created by `BaseCommentThreadView`.
|
|
132
|
-
* If you create a view class extending `BaseCommentThreadView`, you should provide
|
|
133
|
-
* a UI element that will fire this event.
|
|
134
|
-
*
|
|
135
|
-
* This event is fired by default when an empty comment thread view (with no comments)
|
|
136
|
-
* loses focus.
|
|
137
|
-
*
|
|
138
|
-
* @eventName ~BaseCommentThreadView#removeCommentThread
|
|
139
|
-
*/
|
|
140
|
-
export type UIRemoveCommentThreadEvent = {
|
|
141
|
-
name: 'removeCommentThread';
|
|
142
|
-
args: [];
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* Fired when a user performed an action that should lead to resolve the comment thread.
|
|
146
|
-
*
|
|
147
|
-
* @eventName ~BaseCommentThreadView#resolveCommentThread
|
|
148
|
-
*/
|
|
149
|
-
export type UIResolveCommentThreadEvent = {
|
|
150
|
-
name: 'resolveCommentThread';
|
|
151
|
-
args: [id: string];
|
|
152
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/comments/ui/view/basecommentview
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { View, ViewCollection, type FocusableView, FocusCycler } from 'ckeditor5/src/ui.js';
|
|
14
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
15
|
-
import { AriaDescriptionView } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
16
|
-
import type { Comment } from '../../commentsrepository.js';
|
|
17
|
-
import type { CommentViewConfig } from '../../../config.js';
|
|
18
|
-
/**
|
|
19
|
-
* An abstract comment view class that should be used as a base for comment view implementations.
|
|
20
|
-
*
|
|
21
|
-
* It provides some behaviors, flags and building blocks to use when creating a custom comment view class.
|
|
22
|
-
*/
|
|
23
|
-
export default class BaseCommentView extends View implements FocusableView {
|
|
24
|
-
locale: Locale;
|
|
25
|
-
/**
|
|
26
|
-
* Informs whether the comment view is in the editing mode.
|
|
27
|
-
*
|
|
28
|
-
* @observable
|
|
29
|
-
*/
|
|
30
|
-
isEditMode: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Flag indicating whether the comment view displays an actual comment (`false`) or is a system message (`true`).
|
|
33
|
-
* System message comment should not include any UI elements which allow for editing the comment as it is not an actual comment.
|
|
34
|
-
*
|
|
35
|
-
* @readonly
|
|
36
|
-
*/
|
|
37
|
-
isSystemComment: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Stores the currently displayed sub-view.
|
|
40
|
-
*
|
|
41
|
-
* This is a collection that always includes one view: comment content view or comment input view.
|
|
42
|
-
* Depending whether the comment is in editing mode or not, one of the views is in the collection.
|
|
43
|
-
* When the comment mode changes, the content of this collection also changes.
|
|
44
|
-
*
|
|
45
|
-
* By default, the comment is in the "content mode" and this view collection stores the comment content view.
|
|
46
|
-
*/
|
|
47
|
-
readonly visibleView: ViewCollection;
|
|
48
|
-
/**
|
|
49
|
-
* A helper view that provides an ARIA description for the comment used by
|
|
50
|
-
* assistive technologies.
|
|
51
|
-
*/
|
|
52
|
-
readonly ariaDescriptionView: AriaDescriptionView;
|
|
53
|
-
/**
|
|
54
|
-
* An accessible label text used by assistive technologies describing the comment.
|
|
55
|
-
*/
|
|
56
|
-
ariaLabel: string;
|
|
57
|
-
/**
|
|
58
|
-
* A collection of child views that can receive focus and contribute to the (shift) tab key navigation.
|
|
59
|
-
*/
|
|
60
|
-
readonly focusables: ViewCollection<FocusableView>;
|
|
61
|
-
/**
|
|
62
|
-
* Tracks information about DOM focus in the comment view.
|
|
63
|
-
*/
|
|
64
|
-
readonly focusTracker: FocusTracker;
|
|
65
|
-
/**
|
|
66
|
-
* Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
67
|
-
*/
|
|
68
|
-
readonly keystrokes: KeystrokeHandler;
|
|
69
|
-
/**
|
|
70
|
-
* Helps cycling over focusable {@link #focusables} in the comment.
|
|
71
|
-
*/
|
|
72
|
-
readonly focusCycler: FocusCycler;
|
|
73
|
-
/**
|
|
74
|
-
* @param locale The localization service instance.
|
|
75
|
-
* @param model The model on which the view will base.
|
|
76
|
-
* @param config Additional view configuration.
|
|
77
|
-
*/
|
|
78
|
-
constructor(locale: Locale, model: Comment, config: CommentViewConfig);
|
|
79
|
-
/**
|
|
80
|
-
* Expands the view.
|
|
81
|
-
*/
|
|
82
|
-
expand(): void;
|
|
83
|
-
/**
|
|
84
|
-
* Collapses the view.
|
|
85
|
-
*/
|
|
86
|
-
collapse(): void;
|
|
87
|
-
/**
|
|
88
|
-
* Focuses the view.
|
|
89
|
-
*/
|
|
90
|
-
focus(): void;
|
|
91
|
-
/**
|
|
92
|
-
* @inheritDoc
|
|
93
|
-
*/
|
|
94
|
-
render(): void;
|
|
95
|
-
/**
|
|
96
|
-
* @inheritDoc
|
|
97
|
-
*/
|
|
98
|
-
destroy(): Promise<void>;
|
|
99
|
-
/**
|
|
100
|
-
* Switches the comment to the editing mode.
|
|
101
|
-
*/
|
|
102
|
-
switchToEditMode(): void;
|
|
103
|
-
/**
|
|
104
|
-
* Switches the comment back from the editing mode to the content display mode.
|
|
105
|
-
*/
|
|
106
|
-
switchToDisplayMode(): void;
|
|
107
|
-
/**
|
|
108
|
-
* Gets the translated note which indicates that the comment comes from an external source.
|
|
109
|
-
*/
|
|
110
|
-
getExternalCommentNote(): string;
|
|
111
|
-
/**
|
|
112
|
-
* Gets the translated notification text which indicates that author name comes from an external source.
|
|
113
|
-
*/
|
|
114
|
-
getUserViewNotificationText(): string | null;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Fired when a user performed an action that should lead to creating a new comment in the comment thread.
|
|
118
|
-
*
|
|
119
|
-
* This event is fired by default when the comment input field of the comment thread is submitted.
|
|
120
|
-
*
|
|
121
|
-
* @eventName ~BaseCommentView#addComment
|
|
122
|
-
* @param content The content of the new comment.
|
|
123
|
-
*/
|
|
124
|
-
export type UIAddCommentEvent = {
|
|
125
|
-
name: 'addComment';
|
|
126
|
-
args: [content: string];
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Fired when a user performed an action that should lead to updating the comment content.
|
|
130
|
-
*
|
|
131
|
-
* This event is fired by default when the comment input field of a comment is submitted.
|
|
132
|
-
*
|
|
133
|
-
* @param commentId The ID of the updated comment.
|
|
134
|
-
* @param commentContent The updated comment content.
|
|
135
|
-
* @eventName ~BaseCommentView#updateComment
|
|
136
|
-
*/
|
|
137
|
-
export type UIUpdateCommentEvent = {
|
|
138
|
-
name: 'updateComment';
|
|
139
|
-
args: [commentId: string, commentContent: string];
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Fired when a user performed an action that should lead to removing a comment.
|
|
143
|
-
*
|
|
144
|
-
* This event is not fired by default by any component created by {@link module:comments/comments/ui/view/basecommentview~BaseCommentView}.
|
|
145
|
-
* If you create a view class extending {@link module:comments/comments/ui/view/basecommentview~BaseCommentView} you should provide
|
|
146
|
-
* a UI element that will fire this event.
|
|
147
|
-
*
|
|
148
|
-
* @param commentId The ID of the removed comment.
|
|
149
|
-
* @eventName ~BaseCommentView#removeComment
|
|
150
|
-
*/
|
|
151
|
-
export type UIRemoveCommentEvent = {
|
|
152
|
-
name: 'removeComment';
|
|
153
|
-
args: [commentId: string];
|
|
154
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/comments/ui/view/collapsedcommentsview
|
|
11
|
-
*/
|
|
12
|
-
import { View } from 'ckeditor5/src/ui.js';
|
|
13
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
-
export default class CollapsedCommentsView extends View {
|
|
15
|
-
count: number | undefined;
|
|
16
|
-
constructor(locale: Locale);
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module comments/comments/ui/view/commentcontentview
|
|
11
|
-
*/
|
|
12
|
-
import { View } from 'ckeditor5/src/ui.js';
|
|
13
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
-
export default class CommentContentView extends View {
|
|
15
|
-
content: string;
|
|
16
|
-
constructor(locale: Locale);
|
|
17
|
-
render(): void;
|
|
18
|
-
}
|