@ckeditor/ckeditor5-track-changes 45.2.1-alpha.9 → 46.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.js +4 -3
- 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/lang/contexts.json +1 -0
- package/lang/translations/af.po +4 -0
- package/lang/translations/ar.po +4 -0
- package/lang/translations/ast.po +4 -0
- package/lang/translations/az.po +4 -0
- package/lang/translations/be.po +4 -0
- package/lang/translations/bg.po +4 -0
- package/lang/translations/bn.po +4 -0
- package/lang/translations/bs.po +4 -0
- package/lang/translations/ca.po +4 -0
- package/lang/translations/cs.po +4 -0
- package/lang/translations/da.po +4 -0
- package/lang/translations/de-ch.po +4 -0
- package/lang/translations/de.po +4 -0
- package/lang/translations/el.po +4 -0
- package/lang/translations/en-au.po +4 -0
- package/lang/translations/en-gb.po +4 -0
- package/lang/translations/en.po +4 -0
- package/lang/translations/eo.po +4 -0
- package/lang/translations/es-co.po +4 -0
- package/lang/translations/es.po +4 -0
- package/lang/translations/et.po +4 -0
- package/lang/translations/eu.po +4 -0
- package/lang/translations/fa.po +4 -0
- package/lang/translations/fi.po +4 -0
- package/lang/translations/fr.po +4 -0
- package/lang/translations/gl.po +4 -0
- package/lang/translations/gu.po +4 -0
- package/lang/translations/he.po +4 -0
- package/lang/translations/hi.po +4 -0
- package/lang/translations/hr.po +4 -0
- package/lang/translations/hu.po +4 -0
- package/lang/translations/hy.po +4 -0
- package/lang/translations/id.po +4 -0
- package/lang/translations/it.po +4 -0
- package/lang/translations/ja.po +4 -0
- package/lang/translations/jv.po +4 -0
- package/lang/translations/kk.po +4 -0
- package/lang/translations/km.po +4 -0
- package/lang/translations/kn.po +4 -0
- package/lang/translations/ko.po +4 -0
- package/lang/translations/ku.po +4 -0
- package/lang/translations/lt.po +4 -0
- package/lang/translations/lv.po +4 -0
- package/lang/translations/ms.po +4 -0
- package/lang/translations/nb.po +4 -0
- package/lang/translations/ne.po +4 -0
- package/lang/translations/nl.po +4 -0
- package/lang/translations/no.po +4 -0
- package/lang/translations/oc.po +4 -0
- package/lang/translations/pl.po +4 -0
- package/lang/translations/pt-br.po +4 -0
- package/lang/translations/pt.po +4 -0
- package/lang/translations/ro.po +4 -0
- package/lang/translations/ru.po +4 -0
- package/lang/translations/si.po +4 -0
- package/lang/translations/sk.po +4 -0
- package/lang/translations/sl.po +4 -0
- package/lang/translations/sq.po +4 -0
- package/lang/translations/sr-latn.po +4 -0
- package/lang/translations/sr.po +4 -0
- package/lang/translations/sv.po +4 -0
- package/lang/translations/th.po +4 -0
- package/lang/translations/ti.po +4 -0
- package/lang/translations/tk.po +4 -0
- package/lang/translations/tr.po +4 -0
- package/lang/translations/tt.po +4 -0
- package/lang/translations/ug.po +4 -0
- package/lang/translations/uk.po +4 -0
- package/lang/translations/ur.po +4 -0
- package/lang/translations/uz.po +4 -0
- package/lang/translations/vi.po +4 -0
- package/lang/translations/zh-cn.po +4 -0
- package/lang/translations/zh.po +4 -0
- package/package.json +28 -28
- package/src/commands/acceptsuggestioncommand.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +2 -2
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.d.ts +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +19 -16
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.d.ts +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.d.ts +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.d.ts +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.d.ts +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.d.ts +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.d.ts +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.d.ts +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.d.ts +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.d.ts +4 -4
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.d.ts +17 -0
- package/src/integrations/lineheight.js +23 -0
- package/src/integrations/link.d.ts +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +4 -4
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.d.ts +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.d.ts +4 -4
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.d.ts +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.d.ts +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +2 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -2
- package/src/integrations/tableclipboard.js +2 -1
- package/src/integrations/tablecolumnresize.d.ts +6 -6
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +2 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.d.ts +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +2 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +6 -6
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.d.ts +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.d.ts +2 -2
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +13 -13
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +15 -21
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +4 -4
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +4 -5
- package/src/trackchangesdata.d.ts +21 -3
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +80 -72
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.d.ts +2 -2
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.d.ts +12 -2
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +3 -3
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +5 -5
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +4 -4
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.d.ts +2 -2
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.d.ts +1 -44
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +5 -5
- package/src/utils/utils.js +1 -1
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import TrackChangesData from './trackchangesdata.js';
|
|
11
|
+
import { TrackChangesData } from './trackchangesdata.js';
|
|
12
12
|
import '../theme/trackchangespreview.css';
|
|
13
13
|
/**
|
|
14
14
|
* Plugin allowing to preview the final content where all the suggestions are accepted.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class TrackChangesPreview extends Plugin {
|
|
17
17
|
static get requires(): readonly [typeof TrackChangesData, typeof Dialog];
|
|
18
18
|
static get pluginName(): "TrackChangesPreview";
|
|
19
19
|
/**
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4507(){const _0x2707fc=['isPremiumPlugin','appendChild','268DEYvWF','11409XqTCuQ','TrackChangesPreview','pluginName','1764288fupAJR','21629234dzavLX','previewFinalContent','define','3974808akkZBz','editor','add','1500mPiidN','2180OtwpPU','686443xjeqlI','requires','7FHAhAr','isOfficialPlugin','commands','7929GnwtpS','config','trackChanges.preview.renderFunction','3965bcsQOr'];_0x4507=function(){return _0x2707fc;};return _0x4507();}const _0x397e43=_0x92cd;(function(_0xfddd82,_0x2a9d79){const _0x371009=_0x92cd,_0x45c871=_0xfddd82();while(!![]){try{const _0x53f21e=-parseInt(_0x371009(0x8d))/0x1+-parseInt(_0x371009(0x98))/0x2*(parseInt(_0x371009(0x99))/0x3)+parseInt(_0x371009(0x8b))/0x4*(parseInt(_0x371009(0x95))/0x5)+-parseInt(_0x371009(0x88))/0x6*(parseInt(_0x371009(0x8f))/0x7)+parseInt(_0x371009(0x9c))/0x8+parseInt(_0x371009(0x92))/0x9*(-parseInt(_0x371009(0x8c))/0xa)+parseInt(_0x371009(0x9d))/0xb;if(_0x53f21e===_0x2a9d79)break;else _0x45c871['push'](_0x45c871['shift']());}catch(_0x11c3cc){_0x45c871['push'](_0x45c871['shift']());}}}(_0x4507,0x69de2));import{Plugin as _0x3e0b1b}from'ckeditor5/src/core.js';import{Dialog as _0x3d2353}from'ckeditor5/src/ui.js';import{TrackChangesData as _0x398efd}from'./trackchangesdata.js';import{PreviewFinalContentCommand as _0x559434}from'./commands/previewfinalcontentcommand.js';function _0x92cd(_0x57135a,_0x23c3cc){const _0x450755=_0x4507();return _0x92cd=function(_0x92cd84,_0x4c4d98){_0x92cd84=_0x92cd84-0x87;let _0x33cf2c=_0x450755[_0x92cd84];return _0x33cf2c;},_0x92cd(_0x57135a,_0x23c3cc);}import'../theme/trackchangespreview.css';export class TrackChangesPreview extends _0x3e0b1b{static get[_0x397e43(0x8e)](){return[_0x398efd,_0x3d2353];}static get[_0x397e43(0x9b)](){const _0x23b9bf=_0x397e43;return _0x23b9bf(0x9a);}static get[_0x397e43(0x90)](){return!0x0;}static get[_0x397e43(0x96)](){return!0x0;}constructor(_0x4c514b){const _0x853f92=_0x397e43;super(_0x4c514b),_0x4c514b[_0x853f92(0x91)][_0x853f92(0x8a)](_0x853f92(0x9e),new _0x559434(this[_0x853f92(0x89)])),_0x4c514b[_0x853f92(0x93)][_0x853f92(0x87)](_0x853f92(0x94),(_0x32fb0d,_0x76c5c4)=>{const _0x65c123=_0x853f92;for(const _0x18681b of _0x76c5c4)_0x32fb0d[_0x65c123(0x97)](_0x18681b);});}}
|
package/src/trackchangesui.d.ts
CHANGED
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { Users } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
10
|
-
import
|
|
10
|
+
import type { Annotation } from '@ckeditor/ckeditor5-comments';
|
|
11
|
+
import { TrackChangesEditing } from './trackchangesediting.js';
|
|
12
|
+
import { type Suggestion } from './suggestion.js';
|
|
11
13
|
/**
|
|
12
14
|
* Provides UI for track changes plugin.
|
|
13
15
|
*
|
|
14
16
|
* This plugin displays {@link module:track-changes/suggestion~Suggestion suggestions} as a
|
|
15
17
|
* {@link module:comments/annotations/annotations~Annotations}.
|
|
16
18
|
*/
|
|
17
|
-
export
|
|
19
|
+
export declare class TrackChangesUI extends Plugin {
|
|
18
20
|
/**
|
|
19
21
|
* @inheritDoc
|
|
20
22
|
*/
|
|
@@ -39,6 +41,14 @@ export default class TrackChangesUI extends Plugin {
|
|
|
39
41
|
* @inheritDoc
|
|
40
42
|
*/
|
|
41
43
|
init(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the annotation associated with the given suggestion.
|
|
46
|
+
*/
|
|
47
|
+
getAnnotationForSuggestion(suggestion: Suggestion): Annotation | null;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the suggestion associated with the given annotation.
|
|
50
|
+
*/
|
|
51
|
+
getSuggestionForAnnotation(annotation: Annotation): Suggestion | null;
|
|
42
52
|
/**
|
|
43
53
|
* @inheritDoc
|
|
44
54
|
*/
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x357e6b=_0x5a1c;(function(_0x5a4eae,_0x36d509){const _0x4af6eb=_0x5a1c,_0x184861=_0x5a4eae();while(!![]){try{const _0x30451d=-parseInt(_0x4af6eb(0x213))/0x1+parseInt(_0x4af6eb(0x199))/0x2*(parseInt(_0x4af6eb(0x18a))/0x3)+parseInt(_0x4af6eb(0x1e3))/0x4*(-parseInt(_0x4af6eb(0x1e6))/0x5)+-parseInt(_0x4af6eb(0x1e0))/0x6*(parseInt(_0x4af6eb(0x1ee))/0x7)+parseInt(_0x4af6eb(0x1f3))/0x8+parseInt(_0x4af6eb(0x1fd))/0x9+parseInt(_0x4af6eb(0x219))/0xa*(parseInt(_0x4af6eb(0x192))/0xb);if(_0x30451d===_0x36d509)break;else _0x184861['push'](_0x184861['shift']());}catch(_0x2e42cc){_0x184861['push'](_0x184861['shift']());}}}(_0x2dbb,0xaf68d));import{Plugin as _0x4a1ffd}from'ckeditor5/src/core.js';import{Collection as _0x2722aa}from'ckeditor5/src/utils.js';import{IconTrackChanges as _0x2eb1c3}from'ckeditor5/src/icons.js';import{addListToDropdown as _0x7750d4,createDropdown as _0x11365c,ListSeparatorView as _0x5e5e53,MenuBarMenuView as _0x4c6da7,MenuBarMenuListView as _0x33c100,MenuBarMenuListItemView as _0x247ff3,MenuBarMenuListItemButtonView as _0x3a428e,SplitButtonView as _0x450626,ViewModel as _0x2e3a2f}from'ckeditor5/src/ui.js';function _0x2dbb(){const _0x34e2b7=['destroy','length','usageLimit','keys','menuitem','isInContent','Accept\x20all\x20suggestions','4092546mmqlFO','discardButton','fire','255196nEifxW','trackChanges.SuggestionThreadView','actionView','50MqbxfC','isOn','define','addMany','trackChangesLicenseKeyEvaluationLimit','reduce','change:activeAnnotations','trackChanges.disableComments','7ILArtB','_createMenuBarMenu','mainView','trackChangesLicenseKeyExpired','getByInnerView','42304kohCzZ','menu','suggestionChanged','Track\x20changes','delegate','createCommentThreadController','requires','discardSelectedSuggestions','comments.maxThreadTotalWeight','head','8307126ZeKwnU','trackChangesLicenseKeyValid','commentsListView','listenTo','isDirty','discardAllSuggestions','previewFinalContent','comments.maxCommentCharsWhenCollapsed','source','SuggestionView','getDescriptions','evaluationLimit','isEnabled','acceptAllSuggestions','toMany','isOfficialPlugin','TrackChangesPreview','_disableComments','refreshSelectedViews','_handleSuggestionControllerDelayed','_refreshActiveMarkers','items','945786OvPEoA','delete','model','trackChangesLicenseKeyTrialLimit','from','getRanges','470NYVSwT','innerView','_createToolbarButton','hasSuggestion','focus','createAnnotation','menuitemcheckbox','getMarkerNames','_initializeController','locale','SuggestionThreadView','remove','expired','clear','trackChangesLicenseKeyNotAllowed','size','init','_addUIComponentsToFactory','addSourceCollector','value','trackChangesLicenseKeyDomainLimit','CommentsUI','comments.editorConfig','change:previous','execute','componentFactory','trialLimit','_viewToController','has','EditorAnnotations','acceptSelectedSuggestions','getMarkers','unbind','panelView','8571uKdpxD','createAnnotationView','bind','Annotations','arrowView','separator','domainLimit','Discard\x20all\x20suggestions','385583hkRzqd','get','registerAnnotation','editing','values','isPremiumPlugin','suggestionView','286VSUWsp','suggestionLoaded','descriptionFactory','getFirstRange','switchbutton','activeAnnotations','stopListening','licenseKey','view','type','trackChanges','push','set','trackChanges.SuggestionView','_suggestionToController','editor','CommentView','Discard\x20all\x20selected\x20suggestions','getSuggestion','descriptionParts','escape','suggestionUnloaded','menuBar:trackChanges','trackChangesLicenseKeyUsageLimit','comments','children','addComment','filter','pluginName','featureNotAllowed','some','_showLicenseError','commandName','config','add','TrackChangesEditing','TrackChanges','comments.maxCommentsWhenCollapsed','_destroyController','_annotationViews','getAllAdjacentSuggestions','button','Accept\x20all\x20selected\x20suggestions','activeMarkers','lowest','_licenseKeyCheckInterval','commentThread','plugins','_updateController','getJoined','_unbindEditors','TrackChangesUI','isMultiRange','suggestion-','buttonView','_bindAnnotationToEditors','commands','_handleControllerBuffer','CommentsRepository','acceptButton','previous','Preview\x20final\x20content','invalid','trackChangesLicenseKeyInvalid'];_0x2dbb=function(){return _0x34e2b7;};return _0x2dbb();}import{Users as _0x16ba8d,getDateTimeFormatter as _0x24f214,getAllMarkersDomElementsSorted as _0x38098a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4db905 from'./trackchangesediting.js';function _0x5a1c(_0x27e89a,_0x28c7a7){const _0x2dbb18=_0x2dbb();return _0x5a1c=function(_0x5a1c7f,_0x43326a){_0x5a1c7f=_0x5a1c7f-0x173;let _0x211b46=_0x2dbb18[_0x5a1c7f];return _0x211b46;},_0x5a1c(_0x27e89a,_0x28c7a7);}import _0x40589c from'./ui/suggestioncontroller.js';import _0x3eb0bd from'./ui/view/suggestionthreadview.js';import _0x12e4b0 from'./ui/view/suggestionview.js';import{getTranslation as _0x52b09e}from'./utils/common-translations.js';export default class d extends _0x4a1ffd{[_0x357e6b(0x1a0)];[_0x357e6b(0x1c6)];[_0x357e6b(0x1a7)];[_0x357e6b(0x183)];[_0x357e6b(0x1c0)];[_0x357e6b(0x1d2)];[_0x357e6b(0x20e)];static get[_0x357e6b(0x1f9)](){const _0x4452f0=_0x357e6b;return[_0x4db905,_0x16ba8d,_0x4452f0(0x1d3),_0x4452f0(0x18d),_0x4452f0(0x185)];}static get[_0x357e6b(0x1b5)](){const _0x541003=_0x357e6b;return _0x541003(0x1cc);}static get[_0x357e6b(0x20c)](){return!0x0;}static get[_0x357e6b(0x197)](){return!0x0;}constructor(_0xa1d139){const _0x344991=_0x357e6b;super(_0xa1d139),this[_0x344991(0x1a7)]=new Map(),this[_0x344991(0x183)]=new Map(),this[_0x344991(0x1c0)]=new Map(),this[_0x344991(0x1d2)]=new Map();const _0x1b9526=this[_0x344991(0x1a8)][_0x344991(0x1ba)];_0x1b9526[_0x344991(0x1e8)](_0x344991(0x1e4),_0x3eb0bd),_0x1b9526[_0x344991(0x1e8)](_0x344991(0x1a6),_0x12e4b0),_0x1b9526[_0x344991(0x1e8)](_0x344991(0x1ed),!0x1),this[_0x344991(0x20e)]=_0x1b9526[_0x344991(0x193)](_0x344991(0x1ed));}[_0x357e6b(0x210)](_0x5d18e7,_0xe2d692){const _0x5d8938=_0x357e6b;0x0===this[_0x5d8938(0x1d2)][_0x5d8938(0x177)]&&setTimeout(()=>{const _0x5cb6aa=_0x5d8938;for(const [_0x445b1c,_0x2e5e01]of this[_0x5cb6aa(0x1d2)]){const _0x2cfb4e=this[_0x5cb6aa(0x1a7)][_0x5cb6aa(0x184)](_0x445b1c);_0x2cfb4e||_0x2e5e01?_0x2cfb4e&&_0x2e5e01&&this[_0x5cb6aa(0x1bf)](_0x445b1c):this[_0x5cb6aa(0x221)](_0x445b1c);}this[_0x5cb6aa(0x1d2)][_0x5cb6aa(0x175)](),this[_0x5cb6aa(0x1a8)][_0x5cb6aa(0x1c8)][_0x5cb6aa(0x193)](_0x5cb6aa(0x185))[_0x5cb6aa(0x20f)](),this[_0x5cb6aa(0x211)]();},0xa),this[_0x5d8938(0x1d2)][_0x5d8938(0x1a5)](_0x5d18e7,_0xe2d692);}[_0x357e6b(0x178)](){const _0x5c2471=_0x357e6b,_0x4a3c4f=this[_0x5c2471(0x1a8)],_0x2056d2=_0x4a3c4f[_0x5c2471(0x1c8)][_0x5c2471(0x193)](_0x5c2471(0x1bc)),_0x267826=_0x4a3c4f[_0x5c2471(0x1c8)][_0x5c2471(0x193)](_0x5c2471(0x18d)),_0x12261f=_0x4a3c4f[_0x5c2471(0x1c8)][_0x5c2471(0x193)](_0x5c2471(0x185)),_0x527175=_0x4a3c4f[_0x5c2471(0x1c8)][_0x5c2471(0x193)](_0x5c2471(0x1d3));this[_0x5c2471(0x179)](),_0x12261f[_0x5c2471(0x17a)](()=>{const _0x54ace4=_0x5c2471,_0xefe9c9=[];for(const [_0x237b4b,_0x1a3cce]of Array[_0x54ace4(0x217)](this[_0x54ace4(0x1a7)])){const _0x1e5c77=_0x237b4b[_0x54ace4(0x1c1)](),_0x3bd731=[];for(const _0x5159c4 of _0x1e5c77){if(!_0x5159c4[_0x54ace4(0x1de)])continue;if(_0x5159c4[_0x54ace4(0x1cd)]){_0x3bd731[_0x54ace4(0x1a4)](..._0x5159c4[_0x54ace4(0x218)]());continue;}const _0x3bcb5d=_0x5159c4[_0x54ace4(0x19c)]();if(_0x3bd731[_0x54ace4(0x1da)]>0x0){const _0x477470=_0x3bd731[0x0][_0x54ace4(0x1ca)](_0x3bcb5d);if(_0x477470){_0x3bd731[0x0]=_0x477470;continue;}}_0x3bd731[_0x54ace4(0x1a4)](_0x3bcb5d);}_0xefe9c9[_0x54ace4(0x1a4)]([_0x1a3cce[_0x54ace4(0x1a1)],_0x3bd731]);}return _0xefe9c9;}),this[_0x5c2471(0x200)](_0x2056d2,_0x5c2471(0x19a),(_0x35c595,_0x47bc99)=>{const _0x2a7f23=_0x5c2471;this[_0x2a7f23(0x200)](_0x47bc99,_0x2a7f23(0x17f),(_0x2f961c,_0x43f7fd,_0x1b8f55,_0x480696)=>{const _0x22f368=_0x2a7f23;_0x47bc99[_0x22f368(0x1de)]&&(null==_0x1b8f55?(this[_0x22f368(0x1c9)](_0x480696[_0x22f368(0x1fc)]),this[_0x22f368(0x210)](_0x47bc99,!0x1)):(this[_0x22f368(0x1c9)](_0x1b8f55[_0x22f368(0x1fc)]),null==_0x480696&&this[_0x22f368(0x210)](_0x47bc99,!0x0)));}),null!==_0x47bc99[_0x2a7f23(0x1d5)]?this[_0x2a7f23(0x1c9)](_0x47bc99[_0x2a7f23(0x1fc)]):this[_0x2a7f23(0x210)](_0x47bc99,!0x1);}),this[_0x5c2471(0x200)](_0x2056d2,_0x5c2471(0x1ae),(_0xf0288,_0x1eb216,_0x47d8fc)=>{const _0x5c531e=_0x5c2471;this[_0x5c531e(0x19f)](_0x1eb216,_0x5c531e(0x17f)),this[_0x5c531e(0x1d2)][_0x5c531e(0x214)](_0x1eb216),this[_0x5c531e(0x1a7)][_0x5c531e(0x184)](_0x1eb216)&&this[_0x5c531e(0x1bf)](_0x1eb216),_0x47d8fc&&this[_0x5c531e(0x1c9)](_0x47d8fc[_0x5c531e(0x1fc)]);}),this[_0x5c2471(0x200)](_0x2056d2,_0x5c2471(0x1f5),(_0x17a034,_0x1337f9)=>{const _0x233109=_0x5c2471;this[_0x233109(0x1c9)](_0x1337f9);}),this[_0x5c2471(0x200)](_0x267826,_0x5c2471(0x1ec),()=>{const _0x8841cb=_0x5c2471;this[_0x8841cb(0x211)]();}),this[_0x5c2471(0x200)](_0x527175,_0x5c2471(0x1b3),(_0x314499,{threadId:_0x334f30,isFromAdapter:_0x52c3fd})=>{const _0x2d1931=_0x5c2471;if(_0x52c3fd||!_0x2056d2[_0x2d1931(0x21c)](_0x334f30))return;const _0x4c6dfa=_0x2056d2[_0x2d1931(0x1ab)](_0x334f30);this[_0x2d1931(0x1a7)][_0x2d1931(0x193)](_0x4c6dfa)[_0x2d1931(0x1a1)][_0x2d1931(0x1ff)][_0x2d1931(0x21d)](-0x1);},{'priority':_0x5c2471(0x1c5)}),this[_0x5c2471(0x1a0)]=this[_0x5c2471(0x1a8)][_0x5c2471(0x1ba)][_0x5c2471(0x193)](_0x5c2471(0x1a0));const _0x270f95=this[_0x5c2471(0x1a8)];this[_0x5c2471(0x1c6)]=setInterval(()=>{const _0x37d93a=_0x5c2471;let _0x5ad8f3;for(const _0x1aa02e in _0x270f95){const _0x5b56cc=_0x1aa02e,_0x1a961e=_0x270f95[_0x5b56cc];if(_0x37d93a(0x1fe)==_0x1a961e||_0x37d93a(0x1d8)==_0x1a961e||_0x37d93a(0x1f1)==_0x1a961e||_0x37d93a(0x17c)==_0x1a961e||_0x37d93a(0x176)==_0x1a961e||_0x37d93a(0x1ea)==_0x1a961e||_0x37d93a(0x216)==_0x1a961e||_0x37d93a(0x1b0)==_0x1a961e){delete _0x270f95[_0x5b56cc],_0x5ad8f3=_0x1a961e,clearInterval(this[_0x37d93a(0x1c6)]),this[_0x37d93a(0x1c6)]=void 0x0;break;}}_0x37d93a(0x1d8)==_0x5ad8f3&&_0x270f95[_0x37d93a(0x1b8)](_0x37d93a(0x1d7)),_0x37d93a(0x1f1)==_0x5ad8f3&&_0x270f95[_0x37d93a(0x1b8)](_0x37d93a(0x174)),_0x37d93a(0x17c)==_0x5ad8f3&&_0x270f95[_0x37d93a(0x1b8)](_0x37d93a(0x190)),_0x37d93a(0x176)==_0x5ad8f3&&_0x270f95[_0x37d93a(0x1b8)](_0x37d93a(0x1b6),_0x37d93a(0x1bd)),_0x37d93a(0x1ea)==_0x5ad8f3&&_0x270f95[_0x37d93a(0x1b8)](_0x37d93a(0x208)),_0x37d93a(0x216)==_0x5ad8f3&&_0x270f95[_0x37d93a(0x1b8)](_0x37d93a(0x182)),_0x37d93a(0x1b0)==_0x5ad8f3&&_0x270f95[_0x37d93a(0x1b8)](_0x37d93a(0x1db));},0x3e8);}[_0x357e6b(0x211)](){const _0x37ee0b=_0x357e6b,_0x4097cb=this[_0x37ee0b(0x1a8)][_0x37ee0b(0x1c8)][_0x37ee0b(0x193)](_0x37ee0b(0x18d)),_0x34a2d8=this[_0x37ee0b(0x1a8)][_0x37ee0b(0x1c8)][_0x37ee0b(0x193)](_0x37ee0b(0x1bc)),_0x2599a4=Array[_0x37ee0b(0x217)](_0x4097cb[_0x37ee0b(0x19e)],_0x12feb3=>_0x12feb3[_0x37ee0b(0x21a)])[_0x37ee0b(0x1b4)](_0x2ffbd3=>this[_0x37ee0b(0x183)][_0x37ee0b(0x184)](_0x2ffbd3)),_0x54a670=[];for(const _0x20f435 of _0x2599a4){const _0x1acb9d=this[_0x37ee0b(0x183)][_0x37ee0b(0x193)](_0x20f435)[_0x37ee0b(0x215)][_0x37ee0b(0x1c1)]();_0x54a670[_0x37ee0b(0x1a4)](..._0x1acb9d[_0x37ee0b(0x1eb)]((_0x2bfd59,_0x55c316)=>[..._0x2bfd59,..._0x55c316[_0x37ee0b(0x220)]()],[]));}_0x34a2d8[_0x37ee0b(0x1c4)]=_0x54a670;}[_0x357e6b(0x179)](){const _0x2281f2=_0x357e6b,_0x5f0770=this[_0x2281f2(0x1a8)],_0x18418b=_0x5f0770[_0x2281f2(0x222)],_0x34c86e=_0x52b09e(_0x18418b,_0x2281f2(0x1f6)),_0x1c6eb1=new _0x2722aa([{'type':_0x2281f2(0x19d),'model':new _0x2e3a2f({'withText':!0x0,'isToggleable':!0x0,'label':_0x34c86e,'commandName':_0x2281f2(0x1a3),'role':_0x2281f2(0x21f)})},{'type':_0x2281f2(0x18f)},{'type':_0x2281f2(0x1c2),'model':new _0x2e3a2f({'withText':!0x0,'label':_0x52b09e(_0x18418b,_0x2281f2(0x1df)),'commandName':_0x2281f2(0x20a),'role':_0x2281f2(0x1dd)})},{'type':_0x2281f2(0x1c2),'model':new _0x2e3a2f({'withText':!0x0,'label':_0x52b09e(_0x18418b,_0x2281f2(0x1c3)),'commandName':_0x2281f2(0x186),'role':_0x2281f2(0x1dd)})},{'type':_0x2281f2(0x1c2),'model':new _0x2e3a2f({'withText':!0x0,'label':_0x52b09e(_0x18418b,_0x2281f2(0x191)),'commandName':_0x2281f2(0x202),'role':_0x2281f2(0x1dd)})},{'type':_0x2281f2(0x1c2),'model':new _0x2e3a2f({'withText':!0x0,'label':_0x52b09e(_0x18418b,_0x2281f2(0x1aa)),'commandName':_0x2281f2(0x1fa),'role':_0x2281f2(0x1dd)})}]);_0x5f0770[_0x2281f2(0x1c8)][_0x2281f2(0x184)](_0x2281f2(0x20d))&&_0x1c6eb1[_0x2281f2(0x1e9)]([{'type':_0x2281f2(0x18f)},{'type':_0x2281f2(0x1c2),'model':new _0x2e3a2f({'withText':!0x0,'label':_0x52b09e(_0x18418b,_0x2281f2(0x1d6)),'commandName':_0x2281f2(0x203),'role':_0x2281f2(0x1dd)})}]);for(const _0x27e7c2 of _0x1c6eb1)if(ke(_0x27e7c2)){const _0x4e5643=_0x5f0770[_0x2281f2(0x1d1)][_0x2281f2(0x193)](_0x27e7c2[_0x2281f2(0x215)][_0x2281f2(0x1b9)]);_0x27e7c2[_0x2281f2(0x215)][_0x2281f2(0x18c)](_0x2281f2(0x1e7),_0x2281f2(0x209))['to'](_0x4e5643,_0x2281f2(0x17b),_0x2281f2(0x209));}_0x5f0770['ui'][_0x2281f2(0x181)][_0x2281f2(0x1bb)](_0x2281f2(0x1a3),_0x25f369=>this[_0x2281f2(0x21b)](_0x25f369,_0x1c6eb1,_0x34c86e)),_0x5f0770['ui'][_0x2281f2(0x181)][_0x2281f2(0x1bb)](_0x2281f2(0x1af),_0x54caf1=>this[_0x2281f2(0x1ef)](_0x54caf1,_0x1c6eb1,_0x34c86e));}[_0x357e6b(0x21b)](_0x39be7f,_0x195d21,_0xa07968){const _0x142c14=_0x357e6b,_0x3718df=_0x11365c(_0x39be7f,_0x450626),_0x47aec4=this[_0x142c14(0x1a8)][_0x142c14(0x1d1)][_0x142c14(0x193)](_0x142c14(0x1a3));_0x3718df[_0x142c14(0x1cf)][_0x142c14(0x1a5)]({'tooltip':_0xa07968,'label':_0xa07968,'icon':_0x2eb1c3}),_0x3718df[_0x142c14(0x1cf)][_0x142c14(0x18c)](_0x142c14(0x1e7))['to'](_0x47aec4,_0x142c14(0x17b)),_0x3718df[_0x142c14(0x1cf)]['on'](_0x142c14(0x180),()=>{const _0x373bd2=_0x142c14;_0x47aec4[_0x373bd2(0x180)](),this[_0x373bd2(0x1a8)][_0x373bd2(0x195)][_0x373bd2(0x1a1)][_0x373bd2(0x21d)]();}),_0x7750d4(_0x3718df,_0x195d21,{'role':_0x142c14(0x1f4)});const _0x35ea7f=[];for(const _0x36a5b2 of _0x195d21)ke(_0x36a5b2)&&_0x35ea7f[_0x142c14(0x1a4)](this[_0x142c14(0x1a8)][_0x142c14(0x1d1)][_0x142c14(0x193)](_0x36a5b2[_0x142c14(0x215)][_0x142c14(0x1b9)]));const _0x322d50=_0x3718df[_0x142c14(0x1cf)];return _0x322d50[_0x142c14(0x1e5)][_0x142c14(0x188)](_0x142c14(0x209)),_0x322d50[_0x142c14(0x18e)][_0x142c14(0x188)](_0x142c14(0x209)),_0x322d50[_0x142c14(0x1e5)][_0x142c14(0x18c)](_0x142c14(0x209))['to'](_0x47aec4,_0x142c14(0x209)),_0x322d50[_0x142c14(0x18e)][_0x142c14(0x18c)](_0x142c14(0x209))[_0x142c14(0x20b)](_0x35ea7f,_0x142c14(0x209),(..._0x52914e)=>_0x52914e[_0x142c14(0x1b7)](_0x142e75=>_0x142e75)),_0x3718df['on'](_0x142c14(0x180),_0x325ece=>{const _0x4daf34=_0x142c14;this[_0x4daf34(0x1a8)][_0x4daf34(0x180)](_0x325ece[_0x4daf34(0x205)][_0x4daf34(0x1b9)]),this[_0x4daf34(0x1a8)][_0x4daf34(0x195)][_0x4daf34(0x1a1)][_0x4daf34(0x21d)]();}),_0x3718df;}[_0x357e6b(0x1ef)](_0x41f09a,_0x27f155,_0x5ddb4a){const _0x43b7dc=_0x357e6b,_0x545602=new _0x4c6da7(_0x41f09a),_0x5b6a66=this[_0x43b7dc(0x1a8)][_0x43b7dc(0x1d1)][_0x43b7dc(0x193)](_0x43b7dc(0x1a3));_0x545602[_0x43b7dc(0x1cf)][_0x43b7dc(0x1a5)]({'label':_0x5ddb4a,'icon':_0x2eb1c3});const _0x1c6e5b=new _0x33c100(_0x41f09a);for(const _0x1755b6 of _0x27f155){if(_0x43b7dc(0x18f)==_0x1755b6[_0x43b7dc(0x1a2)]){_0x1c6e5b[_0x43b7dc(0x212)][_0x43b7dc(0x1bb)](new _0x5e5e53(_0x41f09a));continue;}const _0x4c941c=new _0x247ff3(_0x41f09a,_0x545602),_0x39103c=new _0x3a428e(_0x41f09a),_0x15b8b2=_0x1755b6[_0x43b7dc(0x215)];_0x39103c[_0x43b7dc(0x18c)](...Object[_0x43b7dc(0x1dc)](_0x15b8b2))['to'](_0x15b8b2),_0x39103c[_0x43b7dc(0x1f7)](_0x43b7dc(0x180))['to'](_0x545602),_0x39103c['on'](_0x43b7dc(0x180),()=>{const _0x4843d7=_0x43b7dc;this[_0x4843d7(0x1a8)][_0x4843d7(0x180)](_0x15b8b2[_0x4843d7(0x1b9)]),this[_0x4843d7(0x1a8)][_0x4843d7(0x195)][_0x4843d7(0x1a1)][_0x4843d7(0x21d)]();}),_0x4c941c[_0x43b7dc(0x1b2)][_0x43b7dc(0x1bb)](_0x39103c),_0x1c6e5b[_0x43b7dc(0x212)][_0x43b7dc(0x1bb)](_0x4c941c);}return _0x545602[_0x43b7dc(0x18c)](_0x43b7dc(0x209))['to'](_0x5b6a66,_0x43b7dc(0x209)),_0x545602[_0x43b7dc(0x189)][_0x43b7dc(0x1b2)][_0x43b7dc(0x1bb)](_0x1c6e5b),_0x545602;}[_0x357e6b(0x221)](_0x4815a0){const _0x5b16e1=_0x357e6b,_0x57ce41=this[_0x5b16e1(0x1a8)],_0x3dba25=_0x57ce41[_0x5b16e1(0x1ba)],_0x4dbcd=_0x57ce41[_0x5b16e1(0x1c8)][_0x5b16e1(0x193)](_0x5b16e1(0x18d)),_0x42b6e3=_0x57ce41[_0x5b16e1(0x1c8)][_0x5b16e1(0x193)](_0x5b16e1(0x1d3)),_0x5763f8=_0x57ce41[_0x5b16e1(0x1c8)][_0x5b16e1(0x193)](_0x5b16e1(0x185)),_0x2f8b25=_0x57ce41[_0x5b16e1(0x1c8)][_0x5b16e1(0x193)](_0x16ba8d)['me'],_0xcc22e=_0x3dba25[_0x5b16e1(0x193)](_0x5b16e1(0x1a3))[_0x5b16e1(0x223)],_0x5ccb2e=_0x3dba25[_0x5b16e1(0x193)](_0x5b16e1(0x1a3))[_0x5b16e1(0x206)],{CommentsListView:_0x1da4ba,CommentThreadInputView:_0x13e38d}=_0x57ce41[_0x5b16e1(0x1c8)][_0x5b16e1(0x193)](_0x5b16e1(0x17d));let _0x591c65,_0x11e272,_0x47967f;this[_0x5b16e1(0x1c0)][_0x5b16e1(0x184)](_0x4815a0['id'])?(_0x11e272=this[_0x5b16e1(0x1c0)][_0x5b16e1(0x193)](_0x4815a0['id']),_0x591c65=_0x11e272[_0x5b16e1(0x1f0)]):(_0x591c65=new _0xcc22e(_0x57ce41[_0x5b16e1(0x222)],_0x4815a0,_0x2f8b25,{'disableComments':this[_0x5b16e1(0x20e)],'editorConfig':{..._0x3dba25[_0x5b16e1(0x193)](_0x5b16e1(0x17e)),'licenseKey':_0x3dba25[_0x5b16e1(0x193)](_0x5b16e1(0x1a0))},'maxCommentsWhenCollapsed':_0x3dba25[_0x5b16e1(0x193)](_0x5b16e1(0x1be)),'maxThreadTotalWeight':_0x3dba25[_0x5b16e1(0x193)](_0x5b16e1(0x1fb)),'maxCommentCharsWhenCollapsed':_0x3dba25[_0x5b16e1(0x193)](_0x5b16e1(0x204)),'formatDateTime':_0x24f214(_0x3dba25[_0x5b16e1(0x193)](_0x5b16e1(0x222)),_0x57ce41[_0x5b16e1(0x222)]),'CommentView':_0x3dba25[_0x5b16e1(0x193)](_0x5b16e1(0x1b1))[_0x5b16e1(0x1a9)],'CommentsListView':_0x1da4ba,'CommentThreadInputView':_0x13e38d,'SuggestionView':_0x5ccb2e}),_0x591c65[_0x5b16e1(0x198)][_0x5b16e1(0x1d4)]['on'](_0x5b16e1(0x180),()=>{const _0x60a2b3=_0x5b16e1;_0x57ce41[_0x60a2b3(0x195)][_0x60a2b3(0x1a1)][_0x60a2b3(0x21d)]();}),_0x591c65[_0x5b16e1(0x198)][_0x5b16e1(0x1e1)]['on'](_0x5b16e1(0x180),()=>{const _0x4cd0dc=_0x5b16e1;_0x57ce41[_0x4cd0dc(0x195)][_0x4cd0dc(0x1a1)][_0x4cd0dc(0x21d)]();}),_0x11e272=_0x4dbcd[_0x5b16e1(0x18b)](this[_0x5b16e1(0x1a8)][_0x5b16e1(0x222)],_0x591c65),_0x11e272[_0x5b16e1(0x18c)](_0x5b16e1(0x201))['to'](_0x591c65,_0x5b16e1(0x201)),_0x11e272[_0x5b16e1(0x18c)](_0x5b16e1(0x1da))['to'](_0x591c65),_0x11e272[_0x5b16e1(0x18c)](_0x5b16e1(0x1a2))['to'](_0x591c65,_0x5b16e1(0x1a2),_0x116271=>_0x5b16e1(0x1ce)+_0x116271),_0x591c65['on'](_0x5b16e1(0x1ad),()=>{const _0x5b3291=_0x5b16e1;_0x47967f[_0x5b3291(0x1e2)](_0x5b3291(0x1ad));}),this[_0x5b16e1(0x1c0)][_0x5b16e1(0x1a5)](_0x4815a0['id'],_0x11e272));const _0x4b1d78=_0x42b6e3[_0x5b16e1(0x1f8)](_0x4815a0[_0x5b16e1(0x1c7)],_0x591c65),_0x4d39d3=new _0x40589c(_0x57ce41,_0x4815a0,_0x591c65,_0x4b1d78),_0x349ccb=_0x4815a0[_0x5b16e1(0x1c1)]()[_0x5b16e1(0x1b4)](_0x248f68=>_0x248f68[_0x5b16e1(0x1de)]);_0x591c65[_0x5b16e1(0x1ac)]=_0x57ce41[_0x5b16e1(0x1c8)][_0x5b16e1(0x193)](_0x5b16e1(0x1bc))[_0x5b16e1(0x19b)][_0x5b16e1(0x207)](_0x349ccb),this[_0x5b16e1(0x1a7)][_0x5b16e1(0x1a5)](_0x4815a0,_0x4d39d3),this[_0x5b16e1(0x183)][_0x5b16e1(0x1a5)](_0x591c65,_0x4d39d3),_0x47967f=_0x4dbcd[_0x5b16e1(0x21e)]({'view':_0x11e272,'target':()=>{const _0x1bc5ff=_0x5b16e1,_0x24fc85=[],_0xd5609e=_0x4815a0[_0x1bc5ff(0x1c1)]()[_0x1bc5ff(0x1b4)](_0x23db5e=>_0x23db5e[_0x1bc5ff(0x1de)]);for(const _0x47df0e of _0xd5609e)_0x24fc85[_0x1bc5ff(0x1a4)](..._0x47df0e[_0x1bc5ff(0x187)]());return _0x38098a(_0x57ce41[_0x1bc5ff(0x195)],_0x24fc85);},'type':()=>_0x5b16e1(0x1ce)+_0x4d39d3[_0x5b16e1(0x1a1)][_0x5b16e1(0x1a2)]}),_0x42b6e3[_0x5b16e1(0x1d0)](_0x591c65,_0x47967f),_0x4dbcd[_0x5b16e1(0x1bb)](_0x47967f),_0x5763f8[_0x5b16e1(0x194)](_0x47967f);}[_0x357e6b(0x1bf)](_0x32afee){const _0x392525=_0x357e6b,_0x1cc4a6=this[_0x392525(0x1a8)][_0x392525(0x1c8)][_0x392525(0x193)](_0x392525(0x1d3)),_0x5d5543=this[_0x392525(0x1a8)][_0x392525(0x1c8)][_0x392525(0x193)](_0x392525(0x18d)),_0x5012e3=this[_0x392525(0x1a7)][_0x392525(0x193)](_0x32afee),_0x3a5e62=_0x5012e3[_0x392525(0x1a1)],_0x1741e6=_0x5d5543[_0x392525(0x1f2)](_0x3a5e62);_0x1cc4a6[_0x392525(0x1cb)](_0x3a5e62),_0x1741e6&&_0x5d5543[_0x392525(0x173)](_0x1741e6),this[_0x392525(0x1a7)][_0x392525(0x214)](_0x32afee),this[_0x392525(0x183)][_0x392525(0x214)](_0x3a5e62),_0x5012e3[_0x392525(0x1d9)]();}[_0x357e6b(0x1c9)](_0x1f85e1){const _0x51d009=_0x357e6b;if(!_0x1f85e1[_0x51d009(0x1de)]||!this[_0x51d009(0x1a7)][_0x51d009(0x184)](_0x1f85e1))return;const _0x1fe638=this[_0x51d009(0x1a8)][_0x51d009(0x1c8)][_0x51d009(0x193)](_0x51d009(0x1bc)),_0x56abf5=this[_0x51d009(0x1a7)][_0x51d009(0x193)](_0x1f85e1),_0x14c2a8=_0x1f85e1[_0x51d009(0x1c1)]();_0x56abf5[_0x51d009(0x1a1)][_0x51d009(0x1ac)]=_0x1fe638[_0x51d009(0x19b)][_0x51d009(0x207)](_0x14c2a8);}[_0x357e6b(0x1d9)](){const _0x124ae6=_0x357e6b;for(const _0x3348e8 of this[_0x124ae6(0x1a7)][_0x124ae6(0x1dc)]())this[_0x124ae6(0x1bf)](_0x3348e8);for(const _0x42d7a6 of this[_0x124ae6(0x1c0)][_0x124ae6(0x196)]())_0x42d7a6[_0x124ae6(0x1f0)][_0x124ae6(0x1d9)]();super[_0x124ae6(0x1d9)](),this[_0x124ae6(0x1c6)]&&clearInterval(this[_0x124ae6(0x1c6)]);}}function ke(_0x37d07a){const _0xefd3cc=_0x357e6b;return _0xefd3cc(0x215)in _0x37d07a;}
|
|
23
|
+
const _0x237f5f=_0x2938;(function(_0x26e360,_0x46df47){const _0x443517=_0x2938,_0x51417c=_0x26e360();while(!![]){try{const _0xad3c0=-parseInt(_0x443517(0x217))/0x1+parseInt(_0x443517(0x207))/0x2*(-parseInt(_0x443517(0x1e3))/0x3)+-parseInt(_0x443517(0x259))/0x4*(-parseInt(_0x443517(0x20e))/0x5)+-parseInt(_0x443517(0x223))/0x6*(-parseInt(_0x443517(0x295))/0x7)+parseInt(_0x443517(0x28c))/0x8+parseInt(_0x443517(0x281))/0x9+-parseInt(_0x443517(0x240))/0xa*(parseInt(_0x443517(0x250))/0xb);if(_0xad3c0===_0x46df47)break;else _0x51417c['push'](_0x51417c['shift']());}catch(_0x8f3221){_0x51417c['push'](_0x51417c['shift']());}}}(_0x5a71,0x25465));import{Plugin as _0x10a517}from'ckeditor5/src/core.js';function _0x2938(_0x217eca,_0x156281){const _0x5a71f2=_0x5a71();return _0x2938=function(_0x2938c5,_0x491cc){_0x2938c5=_0x2938c5-0x1e3;let _0xf205b3=_0x5a71f2[_0x2938c5];return _0xf205b3;},_0x2938(_0x217eca,_0x156281);}import{Collection as _0x30b794}from'ckeditor5/src/utils.js';import{IconTrackChanges as _0x4699f2}from'ckeditor5/src/icons.js';import{addListToDropdown as _0x352077,createDropdown as _0x55d9a2,ListSeparatorView as _0x4d12cb,MenuBarMenuView as _0x4fd28a,MenuBarMenuListView as _0x310dde,MenuBarMenuListItemView as _0xd6a0f6,MenuBarMenuListItemButtonView as _0x2c3180,SplitButtonView as _0x2df0ba,UIModel as _0x197464}from'ckeditor5/src/ui.js';import{Users as _0x2c61c1,getDateTimeFormatter as _0x1e4d5a,getAllMarkersDomElementsSorted as _0x119fbb}from'ckeditor5-collaboration/src/collaboration-core.js';import{TrackChangesEditing as _0x4c18d9}from'./trackchangesediting.js';import{SuggestionController as _0x2de1a1}from'./ui/suggestioncontroller.js';import{SuggestionThreadView as _0x3fee72}from'./ui/view/suggestionthreadview.js';import{SuggestionView as _0x489cc5}from'./ui/view/suggestionview.js';import{getTranslation as _0x2db1ad}from'./utils/common-translations.js';export class TrackChangesUI extends _0x10a517{[_0x237f5f(0x262)];[_0x237f5f(0x1f6)];[_0x237f5f(0x1f7)];[_0x237f5f(0x265)];[_0x237f5f(0x251)];[_0x237f5f(0x203)];[_0x237f5f(0x248)];static get[_0x237f5f(0x21e)](){const _0x18f970=_0x237f5f;return[_0x4c18d9,_0x2c61c1,_0x18f970(0x1f8),_0x18f970(0x1e6),_0x18f970(0x26c)];}static get[_0x237f5f(0x1e5)](){const _0x3e6e10=_0x237f5f;return _0x3e6e10(0x27b);}static get[_0x237f5f(0x244)](){return!0x0;}static get[_0x237f5f(0x270)](){return!0x0;}constructor(_0x4104a8){const _0xbc407f=_0x237f5f;super(_0x4104a8),this[_0xbc407f(0x1f7)]=new Map(),this[_0xbc407f(0x265)]=new Map(),this[_0xbc407f(0x251)]=new Map(),this[_0xbc407f(0x203)]=new Map();const _0x489bc1=this[_0xbc407f(0x1ff)][_0xbc407f(0x24f)];_0x489bc1[_0xbc407f(0x286)](_0xbc407f(0x287),_0x3fee72),_0x489bc1[_0xbc407f(0x286)](_0xbc407f(0x25c),_0x489cc5),_0x489bc1[_0xbc407f(0x286)](_0xbc407f(0x257),!0x1),this[_0xbc407f(0x248)]=_0x489bc1[_0xbc407f(0x239)](_0xbc407f(0x257));}[_0x237f5f(0x23d)](_0x5f250b,_0x45e0e4){const _0x32ff18=_0x237f5f;0x0===this[_0x32ff18(0x203)][_0x32ff18(0x229)]&&setTimeout(()=>{const _0x3f77a7=_0x32ff18;for(const [_0x3f4290,_0x1378a5]of this[_0x3f77a7(0x203)]){const _0x179d5f=this[_0x3f77a7(0x1f7)][_0x3f77a7(0x21b)](_0x3f4290);_0x179d5f||_0x1378a5?_0x179d5f&&_0x1378a5&&this[_0x3f77a7(0x21a)](_0x3f4290):this[_0x3f77a7(0x245)](_0x3f4290);}this[_0x3f77a7(0x203)][_0x3f77a7(0x27d)](),this[_0x3f77a7(0x1ff)][_0x3f77a7(0x1e4)][_0x3f77a7(0x239)](_0x3f77a7(0x26c))[_0x3f77a7(0x261)](),this[_0x3f77a7(0x1ec)]();},0xa),this[_0x32ff18(0x203)][_0x32ff18(0x269)](_0x5f250b,_0x45e0e4);}[_0x237f5f(0x218)](){const _0x3115b5=_0x237f5f,_0x14ae5e=this[_0x3115b5(0x1ff)],_0x4b5beb=_0x14ae5e[_0x3115b5(0x1e4)][_0x3115b5(0x239)](_0x3115b5(0x1f1)),_0x35f70e=_0x14ae5e[_0x3115b5(0x1e4)][_0x3115b5(0x239)](_0x3115b5(0x1e6)),_0x4bbbaf=_0x14ae5e[_0x3115b5(0x1e4)][_0x3115b5(0x239)](_0x3115b5(0x26c)),_0x2afbba=_0x14ae5e[_0x3115b5(0x1e4)][_0x3115b5(0x239)](_0x3115b5(0x1f8));this[_0x3115b5(0x291)](),_0x4bbbaf[_0x3115b5(0x22e)](()=>{const _0x44b254=_0x3115b5,_0xb61d73=[];for(const [_0x3a3bce,_0x1ff9e9]of Array[_0x44b254(0x213)](this[_0x44b254(0x1f7)])){const _0x523c55=_0x3a3bce[_0x44b254(0x1f5)](),_0x2d5884=[];for(const _0x592556 of _0x523c55){if(!_0x592556[_0x44b254(0x25d)])continue;if(_0x592556[_0x44b254(0x294)]){_0x2d5884[_0x44b254(0x279)](..._0x592556[_0x44b254(0x221)]());continue;}const _0xe46551=_0x592556[_0x44b254(0x24b)]();if(_0x2d5884[_0x44b254(0x23f)]>0x0){const _0x3d56c8=_0x2d5884[0x0][_0x44b254(0x264)](_0xe46551);if(_0x3d56c8){_0x2d5884[0x0]=_0x3d56c8;continue;}}_0x2d5884[_0x44b254(0x279)](_0xe46551);}_0xb61d73[_0x44b254(0x279)]([_0x1ff9e9[_0x44b254(0x22b)],_0x2d5884]);}return _0xb61d73;}),this[_0x3115b5(0x216)](_0x4b5beb,_0x3115b5(0x277),(_0x2b3ae5,_0x433cf3)=>{const _0x23f71c=_0x3115b5;this[_0x23f71c(0x216)](_0x433cf3,_0x23f71c(0x25a),(_0x340cac,_0xa3be2c,_0x4a0cda,_0x1b6b9d)=>{const _0x7e1240=_0x23f71c;_0x433cf3[_0x7e1240(0x25d)]&&(null==_0x4a0cda?(this[_0x7e1240(0x284)](_0x1b6b9d[_0x7e1240(0x25e)]),this[_0x7e1240(0x23d)](_0x433cf3,!0x1)):(this[_0x7e1240(0x284)](_0x4a0cda[_0x7e1240(0x25e)]),null==_0x1b6b9d&&this[_0x7e1240(0x23d)](_0x433cf3,!0x0)));}),null!==_0x433cf3[_0x23f71c(0x272)]?this[_0x23f71c(0x284)](_0x433cf3[_0x23f71c(0x25e)]):this[_0x23f71c(0x23d)](_0x433cf3,!0x1);}),this[_0x3115b5(0x216)](_0x4b5beb,_0x3115b5(0x224),(_0x53e433,_0x3f6359,_0x562cd0)=>{const _0x98214a=_0x3115b5;this[_0x98214a(0x241)](_0x3f6359,_0x98214a(0x25a)),this[_0x98214a(0x203)][_0x98214a(0x24d)](_0x3f6359),this[_0x98214a(0x1f7)][_0x98214a(0x21b)](_0x3f6359)&&this[_0x98214a(0x21a)](_0x3f6359),_0x562cd0&&this[_0x98214a(0x284)](_0x562cd0[_0x98214a(0x25e)]);}),this[_0x3115b5(0x216)](_0x4b5beb,_0x3115b5(0x230),(_0x5880f8,_0x28cc29)=>{const _0x2c7a3c=_0x3115b5;this[_0x2c7a3c(0x284)](_0x28cc29);}),this[_0x3115b5(0x216)](_0x35f70e,_0x3115b5(0x26d),()=>{const _0x3e2fa5=_0x3115b5;this[_0x3e2fa5(0x1ec)]();}),this[_0x3115b5(0x216)](_0x2afbba,_0x3115b5(0x28a),(_0x3184a9,{threadId:_0x577461,isFromAdapter:_0x49b078})=>{const _0x517c4f=_0x3115b5;if(_0x49b078||!_0x4b5beb[_0x517c4f(0x22c)](_0x577461))return;const _0x8edca=_0x4b5beb[_0x517c4f(0x220)](_0x577461);this[_0x517c4f(0x1f7)][_0x517c4f(0x239)](_0x8edca)[_0x517c4f(0x22b)][_0x517c4f(0x20d)][_0x517c4f(0x233)](-0x1);},{'priority':_0x3115b5(0x20c)}),this[_0x3115b5(0x262)]=this[_0x3115b5(0x1ff)][_0x3115b5(0x24f)][_0x3115b5(0x239)](_0x3115b5(0x262));const _0xa314db=this[_0x3115b5(0x1ff)];this[_0x3115b5(0x1f6)]=setInterval(()=>{const _0x1a5a5d=_0x3115b5;let _0x423baf;for(const _0x51305d in _0xa314db){const _0x35a242=_0x51305d,_0xc1d141=_0xa314db[_0x35a242];if(_0x1a5a5d(0x255)==_0xc1d141||_0x1a5a5d(0x231)==_0xc1d141||_0x1a5a5d(0x21c)==_0xc1d141||_0x1a5a5d(0x24c)==_0xc1d141||_0x1a5a5d(0x256)==_0xc1d141||_0x1a5a5d(0x25f)==_0xc1d141||_0x1a5a5d(0x236)==_0xc1d141||_0x1a5a5d(0x225)==_0xc1d141){delete _0xa314db[_0x35a242],_0x423baf=_0xc1d141,clearInterval(this[_0x1a5a5d(0x1f6)]),this[_0x1a5a5d(0x1f6)]=void 0x0;break;}}_0x1a5a5d(0x231)==_0x423baf&&_0xa314db[_0x1a5a5d(0x238)](_0x1a5a5d(0x283)),_0x1a5a5d(0x21c)==_0x423baf&&_0xa314db[_0x1a5a5d(0x238)](_0x1a5a5d(0x249)),_0x1a5a5d(0x24c)==_0x423baf&&_0xa314db[_0x1a5a5d(0x238)](_0x1a5a5d(0x26a)),_0x1a5a5d(0x256)==_0x423baf&&_0xa314db[_0x1a5a5d(0x238)](_0x1a5a5d(0x1fb),_0x1a5a5d(0x20f)),_0x1a5a5d(0x25f)==_0x423baf&&_0xa314db[_0x1a5a5d(0x238)](_0x1a5a5d(0x1ef)),_0x1a5a5d(0x236)==_0x423baf&&_0xa314db[_0x1a5a5d(0x238)](_0x1a5a5d(0x27e)),_0x1a5a5d(0x225)==_0x423baf&&_0xa314db[_0x1a5a5d(0x238)](_0x1a5a5d(0x237));},0x3e8);}[_0x237f5f(0x276)](_0x573138){const _0x166985=_0x237f5f,_0x393eaf=this[_0x166985(0x1f7)][_0x166985(0x239)](_0x573138);if(!_0x393eaf)return null;return this[_0x166985(0x1ff)][_0x166985(0x1e4)][_0x166985(0x239)](_0x166985(0x1e6))[_0x166985(0x228)](_0x393eaf[_0x166985(0x22b)])||null;}[_0x237f5f(0x28d)](_0x5162a4){const _0x1cfd3d=_0x237f5f,_0x5edb1e=this[_0x1cfd3d(0x265)][_0x1cfd3d(0x239)](_0x5162a4[_0x1cfd3d(0x227)]);return _0x5edb1e?_0x5edb1e[_0x1cfd3d(0x263)]:null;}[_0x237f5f(0x1ec)](){const _0x1dc2b8=_0x237f5f,_0x2538b1=this[_0x1dc2b8(0x1ff)][_0x1dc2b8(0x1e4)][_0x1dc2b8(0x239)](_0x1dc2b8(0x1e6)),_0xfe1b31=this[_0x1dc2b8(0x1ff)][_0x1dc2b8(0x1e4)][_0x1dc2b8(0x239)](_0x1dc2b8(0x1f1)),_0x52960e=Array[_0x1dc2b8(0x213)](_0x2538b1[_0x1dc2b8(0x280)],_0x466837=>_0x466837[_0x1dc2b8(0x227)])[_0x1dc2b8(0x292)](_0x1e9bb5=>this[_0x1dc2b8(0x265)][_0x1dc2b8(0x21b)](_0x1e9bb5)),_0x50a2ee=[];for(const _0x323cbb of _0x52960e){const _0x45952e=this[_0x1dc2b8(0x265)][_0x1dc2b8(0x239)](_0x323cbb)[_0x1dc2b8(0x263)][_0x1dc2b8(0x1f5)]();_0x50a2ee[_0x1dc2b8(0x279)](..._0x45952e[_0x1dc2b8(0x211)]((_0x4cbed7,_0x38df70)=>[..._0x4cbed7,..._0x38df70[_0x1dc2b8(0x21f)]()],[]));}_0xfe1b31[_0x1dc2b8(0x1f9)]=_0x50a2ee;}[_0x237f5f(0x291)](){const _0x2674e1=_0x237f5f,_0x79edaa=this[_0x2674e1(0x1ff)],_0x3bb4a1=_0x79edaa[_0x2674e1(0x222)],_0x46ca38=_0x2db1ad(_0x3bb4a1,_0x2674e1(0x23a)),_0x47edee=new _0x30b794([{'type':_0x2674e1(0x1ed),'model':new _0x197464({'withText':!0x0,'isToggleable':!0x0,'label':_0x46ca38,'commandName':_0x2674e1(0x1fe),'role':_0x2674e1(0x28b)})},{'type':_0x2674e1(0x1fa)},{'type':_0x2674e1(0x235),'model':new _0x197464({'withText':!0x0,'label':_0x2db1ad(_0x3bb4a1,_0x2674e1(0x201)),'commandName':_0x2674e1(0x1fc),'role':_0x2674e1(0x209)})},{'type':_0x2674e1(0x235),'model':new _0x197464({'withText':!0x0,'label':_0x2db1ad(_0x3bb4a1,_0x2674e1(0x278)),'commandName':_0x2674e1(0x26b),'role':_0x2674e1(0x209)})},{'type':_0x2674e1(0x235),'model':new _0x197464({'withText':!0x0,'label':_0x2db1ad(_0x3bb4a1,_0x2674e1(0x1ee)),'commandName':_0x2674e1(0x288),'role':_0x2674e1(0x209)})},{'type':_0x2674e1(0x235),'model':new _0x197464({'withText':!0x0,'label':_0x2db1ad(_0x3bb4a1,_0x2674e1(0x202)),'commandName':_0x2674e1(0x243),'role':_0x2674e1(0x209)})}]);_0x79edaa[_0x2674e1(0x1e4)][_0x2674e1(0x21b)](_0x2674e1(0x267))&&_0x47edee[_0x2674e1(0x20b)]([{'type':_0x2674e1(0x1fa)},{'type':_0x2674e1(0x235),'model':new _0x197464({'withText':!0x0,'label':_0x2db1ad(_0x3bb4a1,_0x2674e1(0x23e)),'commandName':_0x2674e1(0x1e9),'role':_0x2674e1(0x209)})}]);for(const _0x2234ef of _0x47edee)if(ke(_0x2234ef)){const _0x18a421=_0x79edaa[_0x2674e1(0x22a)][_0x2674e1(0x239)](_0x2234ef[_0x2674e1(0x263)][_0x2674e1(0x205)]);_0x2234ef[_0x2674e1(0x263)][_0x2674e1(0x24a)](_0x2674e1(0x28f),_0x2674e1(0x285))['to'](_0x18a421,_0x2674e1(0x1fd),_0x2674e1(0x285));}_0x79edaa['ui'][_0x2674e1(0x208)][_0x2674e1(0x27f)](_0x2674e1(0x1fe),_0x390145=>this[_0x2674e1(0x215)](_0x390145,_0x47edee,_0x46ca38)),_0x79edaa['ui'][_0x2674e1(0x208)][_0x2674e1(0x27f)](_0x2674e1(0x25b),_0x3564aa=>this[_0x2674e1(0x23c)](_0x3564aa,_0x47edee,_0x46ca38));}[_0x237f5f(0x215)](_0x7e2c85,_0x1de646,_0x52c2a0){const _0x549262=_0x237f5f,_0x41fd71=_0x55d9a2(_0x7e2c85,_0x2df0ba),_0xc8f220=this[_0x549262(0x1ff)][_0x549262(0x22a)][_0x549262(0x239)](_0x549262(0x1fe));_0x41fd71[_0x549262(0x210)][_0x549262(0x269)]({'tooltip':_0x52c2a0,'label':_0x52c2a0,'icon':_0x4699f2}),_0x41fd71[_0x549262(0x210)][_0x549262(0x24a)](_0x549262(0x28f))['to'](_0xc8f220,_0x549262(0x1fd)),_0x41fd71[_0x549262(0x210)]['on'](_0x549262(0x258),()=>{const _0x5f25fc=_0x549262;_0xc8f220[_0x5f25fc(0x258)](),this[_0x5f25fc(0x1ff)][_0x5f25fc(0x254)][_0x5f25fc(0x22b)][_0x5f25fc(0x233)]();}),_0x352077(_0x41fd71,_0x1de646,{'role':_0x549262(0x27c)});const _0x47cea4=[];for(const _0x318c78 of _0x1de646)ke(_0x318c78)&&_0x47cea4[_0x549262(0x279)](this[_0x549262(0x1ff)][_0x549262(0x22a)][_0x549262(0x239)](_0x318c78[_0x549262(0x263)][_0x549262(0x205)]));const _0x3c7e5c=_0x41fd71[_0x549262(0x210)];return _0x3c7e5c[_0x549262(0x1eb)][_0x549262(0x246)](_0x549262(0x285)),_0x3c7e5c[_0x549262(0x28e)][_0x549262(0x246)](_0x549262(0x285)),_0x3c7e5c[_0x549262(0x1eb)][_0x549262(0x24a)](_0x549262(0x285))['to'](_0xc8f220,_0x549262(0x285)),_0x3c7e5c[_0x549262(0x28e)][_0x549262(0x24a)](_0x549262(0x285))[_0x549262(0x226)](_0x47cea4,_0x549262(0x285),(..._0x20170e)=>_0x20170e[_0x549262(0x20a)](_0x4868eb=>_0x4868eb)),_0x41fd71['on'](_0x549262(0x258),_0x1dc15a=>{const _0x1228ee=_0x549262;this[_0x1228ee(0x1ff)][_0x1228ee(0x258)](_0x1dc15a[_0x1228ee(0x21d)][_0x1228ee(0x205)]),this[_0x1228ee(0x1ff)][_0x1228ee(0x254)][_0x1228ee(0x22b)][_0x1228ee(0x233)]();}),_0x41fd71;}[_0x237f5f(0x23c)](_0x204683,_0x325a50,_0xaa7c73){const _0x3c2200=_0x237f5f,_0x587b46=new _0x4fd28a(_0x204683),_0x123049=this[_0x3c2200(0x1ff)][_0x3c2200(0x22a)][_0x3c2200(0x239)](_0x3c2200(0x1fe));_0x587b46[_0x3c2200(0x210)][_0x3c2200(0x269)]({'label':_0xaa7c73,'icon':_0x4699f2});const _0x538405=new _0x310dde(_0x204683);for(const _0x9f39eb of _0x325a50){if(_0x3c2200(0x1fa)==_0x9f39eb[_0x3c2200(0x1e8)]){_0x538405[_0x3c2200(0x1e7)][_0x3c2200(0x27f)](new _0x4d12cb(_0x204683));continue;}const _0x3ae8b7=new _0xd6a0f6(_0x204683,_0x587b46),_0x3bb79d=new _0x2c3180(_0x204683),_0x3c7e3c=_0x9f39eb[_0x3c2200(0x263)];_0x3bb79d[_0x3c2200(0x24a)](...Object[_0x3c2200(0x200)](_0x3c7e3c))['to'](_0x3c7e3c),_0x3bb79d[_0x3c2200(0x266)](_0x3c2200(0x258))['to'](_0x587b46),_0x3bb79d['on'](_0x3c2200(0x258),()=>{const _0x211aec=_0x3c2200;this[_0x211aec(0x1ff)][_0x211aec(0x258)](_0x3c7e3c[_0x211aec(0x205)]),this[_0x211aec(0x1ff)][_0x211aec(0x254)][_0x211aec(0x22b)][_0x211aec(0x233)]();}),_0x3ae8b7[_0x3c2200(0x214)][_0x3c2200(0x27f)](_0x3bb79d),_0x538405[_0x3c2200(0x1e7)][_0x3c2200(0x27f)](_0x3ae8b7);}return _0x587b46[_0x3c2200(0x24a)](_0x3c2200(0x285))['to'](_0x123049,_0x3c2200(0x285)),_0x587b46[_0x3c2200(0x212)][_0x3c2200(0x214)][_0x3c2200(0x27f)](_0x538405),_0x587b46;}[_0x237f5f(0x245)](_0x35e6f6){const _0x269948=_0x237f5f,_0x477e93=this[_0x269948(0x1ff)],_0xc230a=_0x477e93[_0x269948(0x24f)],_0xb1f779=_0x477e93[_0x269948(0x1e4)][_0x269948(0x239)](_0x269948(0x1e6)),_0x4c11cc=_0x477e93[_0x269948(0x1e4)][_0x269948(0x239)](_0x269948(0x1f8)),_0x1443b5=_0x477e93[_0x269948(0x1e4)][_0x269948(0x239)](_0x269948(0x26c)),_0x104922=_0x477e93[_0x269948(0x1e4)][_0x269948(0x239)](_0x2c61c1)['me'],_0x39382b=_0xc230a[_0x269948(0x239)](_0x269948(0x1fe))[_0x269948(0x289)],_0x16a1c2=_0xc230a[_0x269948(0x239)](_0x269948(0x1fe))[_0x269948(0x22d)],{CommentsListView:_0x587811,CommentThreadInputView:_0x2a4cf1}=_0x477e93[_0x269948(0x1e4)][_0x269948(0x239)](_0x269948(0x27a));let _0x2658ac,_0x3d0741,_0x20cabd;this[_0x269948(0x251)][_0x269948(0x21b)](_0x35e6f6['id'])?(_0x3d0741=this[_0x269948(0x251)][_0x269948(0x239)](_0x35e6f6['id']),_0x2658ac=_0x3d0741[_0x269948(0x23b)]):(_0x2658ac=new _0x39382b(_0x477e93[_0x269948(0x222)],_0x35e6f6,_0x104922,{'disableComments':this[_0x269948(0x248)],'editorConfig':{..._0xc230a[_0x269948(0x239)](_0x269948(0x1ea)),'licenseKey':_0xc230a[_0x269948(0x239)](_0x269948(0x262))},'maxCommentsWhenCollapsed':_0xc230a[_0x269948(0x239)](_0x269948(0x1f3)),'maxThreadTotalWeight':_0xc230a[_0x269948(0x239)](_0x269948(0x206)),'maxCommentCharsWhenCollapsed':_0xc230a[_0x269948(0x239)](_0x269948(0x253)),'formatDateTime':_0x1e4d5a(_0xc230a[_0x269948(0x239)](_0x269948(0x222)),_0x477e93[_0x269948(0x222)]),'CommentView':_0xc230a[_0x269948(0x239)](_0x269948(0x26e))[_0x269948(0x242)],'CommentsListView':_0x587811,'CommentThreadInputView':_0x2a4cf1,'SuggestionView':_0x16a1c2}),_0x2658ac[_0x269948(0x204)][_0x269948(0x1f2)]['on'](_0x269948(0x258),()=>{const _0xe131b3=_0x269948;_0x477e93[_0xe131b3(0x254)][_0xe131b3(0x22b)][_0xe131b3(0x233)]();}),_0x2658ac[_0x269948(0x204)][_0x269948(0x1f4)]['on'](_0x269948(0x258),()=>{const _0x1ba745=_0x269948;_0x477e93[_0x1ba745(0x254)][_0x1ba745(0x22b)][_0x1ba745(0x233)]();}),_0x3d0741=_0xb1f779[_0x269948(0x273)](this[_0x269948(0x1ff)][_0x269948(0x222)],_0x2658ac),_0x3d0741[_0x269948(0x24a)](_0x269948(0x293))['to'](_0x2658ac,_0x269948(0x293)),_0x3d0741[_0x269948(0x24a)](_0x269948(0x23f))['to'](_0x2658ac),_0x3d0741[_0x269948(0x24a)](_0x269948(0x1e8))['to'](_0x2658ac,_0x269948(0x1e8),_0x63760f=>_0x269948(0x290)+_0x63760f),_0x2658ac['on'](_0x269948(0x268),()=>{const _0x2b44e4=_0x269948;_0x20cabd[_0x2b44e4(0x275)](_0x2b44e4(0x268));}),this[_0x269948(0x251)][_0x269948(0x269)](_0x35e6f6['id'],_0x3d0741));const _0x56a53c=_0x4c11cc[_0x269948(0x282)](_0x35e6f6[_0x269948(0x234)],_0x2658ac),_0x2fec25=new _0x2de1a1(_0x477e93,_0x35e6f6,_0x2658ac,_0x56a53c),_0x22252e=_0x35e6f6[_0x269948(0x1f5)]()[_0x269948(0x292)](_0x13497b=>_0x13497b[_0x269948(0x25d)]);_0x2658ac[_0x269948(0x26f)]=_0x477e93[_0x269948(0x1e4)][_0x269948(0x239)](_0x269948(0x1f1))[_0x269948(0x274)][_0x269948(0x247)](_0x22252e),this[_0x269948(0x1f7)][_0x269948(0x269)](_0x35e6f6,_0x2fec25),this[_0x269948(0x265)][_0x269948(0x269)](_0x2658ac,_0x2fec25),_0x20cabd=_0xb1f779[_0x269948(0x1f0)]({'view':_0x3d0741,'target':()=>{const _0x5605be=_0x269948,_0x49e4ca=[],_0x4a0712=_0x35e6f6[_0x5605be(0x1f5)]()[_0x5605be(0x292)](_0x2b1136=>_0x2b1136[_0x5605be(0x25d)]);for(const _0x42516e of _0x4a0712)_0x49e4ca[_0x5605be(0x279)](..._0x42516e[_0x5605be(0x22f)]());return _0x119fbb(_0x477e93[_0x5605be(0x254)],_0x49e4ca);},'type':()=>_0x269948(0x290)+_0x2fec25[_0x269948(0x22b)][_0x269948(0x1e8)]}),_0x4c11cc[_0x269948(0x260)](_0x2658ac,_0x20cabd),_0xb1f779[_0x269948(0x27f)](_0x20cabd),_0x1443b5[_0x269948(0x252)](_0x20cabd);}[_0x237f5f(0x21a)](_0x4b9b44){const _0x14dc78=_0x237f5f,_0x2897d5=this[_0x14dc78(0x1ff)][_0x14dc78(0x1e4)][_0x14dc78(0x239)](_0x14dc78(0x1f8)),_0xa54b7=this[_0x14dc78(0x1ff)][_0x14dc78(0x1e4)][_0x14dc78(0x239)](_0x14dc78(0x1e6)),_0x11bbbe=this[_0x14dc78(0x1f7)][_0x14dc78(0x239)](_0x4b9b44),_0x4f27e4=_0x11bbbe[_0x14dc78(0x22b)],_0x30f68b=_0xa54b7[_0x14dc78(0x228)](_0x4f27e4);_0x2897d5[_0x14dc78(0x219)](_0x4f27e4),_0x30f68b&&_0xa54b7[_0x14dc78(0x232)](_0x30f68b),this[_0x14dc78(0x1f7)][_0x14dc78(0x24d)](_0x4b9b44),this[_0x14dc78(0x265)][_0x14dc78(0x24d)](_0x4f27e4),_0x11bbbe[_0x14dc78(0x24e)]();}[_0x237f5f(0x284)](_0x5d82e0){const _0x4a2c=_0x237f5f;if(!_0x5d82e0[_0x4a2c(0x25d)]||!this[_0x4a2c(0x1f7)][_0x4a2c(0x21b)](_0x5d82e0))return;const _0x3cc4fc=this[_0x4a2c(0x1ff)][_0x4a2c(0x1e4)][_0x4a2c(0x239)](_0x4a2c(0x1f1)),_0x349aff=this[_0x4a2c(0x1f7)][_0x4a2c(0x239)](_0x5d82e0),_0x473e55=_0x5d82e0[_0x4a2c(0x1f5)]();_0x349aff[_0x4a2c(0x22b)][_0x4a2c(0x26f)]=_0x3cc4fc[_0x4a2c(0x274)][_0x4a2c(0x247)](_0x473e55);}[_0x237f5f(0x24e)](){const _0x594be9=_0x237f5f;for(const _0x738940 of this[_0x594be9(0x1f7)][_0x594be9(0x200)]())this[_0x594be9(0x21a)](_0x738940);for(const _0x1853a3 of this[_0x594be9(0x251)][_0x594be9(0x271)]())_0x1853a3[_0x594be9(0x23b)][_0x594be9(0x24e)]();super[_0x594be9(0x24e)](),this[_0x594be9(0x1f6)]&&clearInterval(this[_0x594be9(0x1f6)]);}}function ke(_0x5eb3a5){const _0x1a83c2=_0x237f5f;return _0x1a83c2(0x263)in _0x5eb3a5;}function _0x5a71(){const _0x32bb0a=['trackChanges.disableComments','execute','4LeGkVt','change:previous','menuBar:trackChanges','trackChanges.SuggestionView','isInContent','head','trackChangesLicenseKeyEvaluationLimit','_bindAnnotationToEditors','refreshSelectedViews','licenseKey','model','getJoined','_viewToController','delegate','TrackChangesPreview','escape','set','domainLimit','acceptSelectedSuggestions','EditorAnnotations','change:activeAnnotations','comments','descriptionParts','isPremiumPlugin','values','previous','createAnnotationView','descriptionFactory','fire','getAnnotationForSuggestion','suggestionLoaded','Accept\x20all\x20selected\x20suggestions','push','CommentsUI','TrackChangesUI','menu','clear','trialLimit','add','activeAnnotations','2425068tGtBnc','createCommentThreadController','invalid','_updateController','isEnabled','define','trackChanges.SuggestionThreadView','discardAllSuggestions','SuggestionThreadView','addComment','menuitemcheckbox','1465688HUMBOm','getSuggestionForAnnotation','arrowView','isOn','suggestion-','_addUIComponentsToFactory','filter','isDirty','isMultiRange','35YgVDFw','7323LhtVZb','plugins','pluginName','Annotations','items','type','previewFinalContent','comments.editorConfig','actionView','_refreshActiveMarkers','switchbutton','Discard\x20all\x20suggestions','evaluationLimit','createAnnotation','TrackChangesEditing','acceptButton','comments.maxCommentsWhenCollapsed','discardButton','getAllAdjacentSuggestions','_licenseKeyCheckInterval','_suggestionToController','CommentsRepository','activeMarkers','separator','featureNotAllowed','acceptAllSuggestions','value','trackChanges','editor','keys','Accept\x20all\x20suggestions','Discard\x20all\x20selected\x20suggestions','_handleControllerBuffer','suggestionView','commandName','comments.maxThreadTotalWeight','86aBHZMZ','componentFactory','menuitem','some','addMany','lowest','commentsListView','1228740zLvVUl','TrackChanges','buttonView','reduce','panelView','from','children','_createToolbarButton','listenTo','99244oIBIqZ','init','_unbindEditors','_destroyController','has','trackChangesLicenseKeyExpired','source','requires','getMarkerNames','getSuggestion','getRanges','locale','293052JHahXf','suggestionUnloaded','trackChangesLicenseKeyUsageLimit','toMany','innerView','getByInnerView','size','commands','view','hasSuggestion','SuggestionView','addSourceCollector','getMarkers','suggestionChanged','trackChangesLicenseKeyInvalid','remove','focus','commentThread','button','trackChangesLicenseKeyTrialLimit','usageLimit','_showLicenseError','get','Track\x20changes','mainView','_createMenuBarMenu','_handleSuggestionControllerDelayed','Preview\x20final\x20content','length','5857370VMokty','stopListening','CommentView','discardSelectedSuggestions','isOfficialPlugin','_initializeController','unbind','getDescriptions','_disableComments','expired','bind','getFirstRange','trackChangesLicenseKeyDomainLimit','delete','destroy','config','11fNsSvY','_annotationViews','registerAnnotation','comments.maxCommentCharsWhenCollapsed','editing','trackChangesLicenseKeyValid','trackChangesLicenseKeyNotAllowed'];_0x5a71=function(){return _0x32bb0a;};return _0x5a71();}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
|
-
import type Suggestion from '../suggestion.js';
|
|
7
|
-
import type {
|
|
6
|
+
import { type Suggestion } from '../suggestion.js';
|
|
7
|
+
import type { BaseSuggestionThreadView } from './view/basesuggestionthreadview.js';
|
|
8
8
|
import type { CommentThreadController } from '@ckeditor/ckeditor5-comments';
|
|
9
9
|
declare const SuggestionController_base: {
|
|
10
10
|
new (): import("ckeditor5/src/utils.js").Observable;
|
|
@@ -16,7 +16,7 @@ declare const SuggestionController_base: {
|
|
|
16
16
|
* It takes a suggestion thread view, listens to events fired by that view and based on them performs actions
|
|
17
17
|
* on the provided suggestion model.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export declare class SuggestionController extends /* #__PURE__ -- @preserve */ SuggestionController_base {
|
|
20
20
|
model: Suggestion;
|
|
21
21
|
view: BaseSuggestionThreadView;
|
|
22
22
|
commentThreadController: CommentThreadController;
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x6fd3af=_0x386f;(function(_0x2c2869,_0x58a3ba){const _0x2b88ce=_0x386f,_0x5c771f=_0x2c2869();while(!![]){try{const _0x412e45=-parseInt(_0x2b88ce(0x17b))/0x1+parseInt(_0x2b88ce(0x16c))/0x2*(parseInt(_0x2b88ce(0x176))/0x3)+-parseInt(_0x2b88ce(0x157))/0x4+-parseInt(_0x2b88ce(0x171))/0x5*(parseInt(_0x2b88ce(0x159))/0x6)+-parseInt(_0x2b88ce(0x15e))/0x7+-parseInt(_0x2b88ce(0x160))/0x8+parseInt(_0x2b88ce(0x16d))/0x9;if(_0x412e45===_0x58a3ba)break;else _0x5c771f['push'](_0x5c771f['shift']());}catch(_0x10324a){_0x5c771f['push'](_0x5c771f['shift']());}}}(_0x2629,0xac567));function _0x386f(_0x7b627a,_0x3493ca){const _0x262985=_0x2629();return _0x386f=function(_0x386f18,_0x5af11b){_0x386f18=_0x386f18-0x155;let _0x1251f0=_0x262985[_0x386f18];return _0x1251f0;},_0x386f(_0x7b627a,_0x3493ca);}import{ObservableMixin as _0x11100e}from'ckeditor5/src/utils.js';function _0x2629(){const _0x15aa80=['6567MluQaL','unbind','canEditAt','canDiscard','discardSuggestion','1240277HIOKRQ','_discardCommand','acceptSuggestion','listenTo','PendingActions','2989492rjGxdP','commands','18etiQOA','bind','change:isDirty','view','remove','6666597YPIvgl','_pendingAction','7169248jTQzkq','_removePendingAction','model','get','_setPendingAction','_editor','add','isDirty','stopListening','PENDING_ACTION_SUGGESTION','getRanges','execute','890lwGgVV','37901853PaUInC','isEnabled','destroy','commentThreadController','1072250DgHfYO','canAccept','plugins','locale','_acceptCommand'];_0x2629=function(){return _0x15aa80;};return _0x2629();}import{getTranslation as _0x4aa226}from'../utils/common-translations.js';export class SuggestionController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x11100e(){[_0x6fd3af(0x162)];[_0x6fd3af(0x15c)];[_0x6fd3af(0x170)];[_0x6fd3af(0x165)];[_0x6fd3af(0x175)];[_0x6fd3af(0x17c)];[_0x6fd3af(0x15f)];constructor(_0x1c2a32,_0x32a3df,_0x5fa4f0,_0x325bd7){const _0x382357=_0x6fd3af;super(),this[_0x382357(0x162)]=_0x32a3df,this[_0x382357(0x15c)]=_0x5fa4f0,this[_0x382357(0x170)]=_0x325bd7,this[_0x382357(0x165)]=_0x1c2a32,this[_0x382357(0x175)]=_0x1c2a32[_0x382357(0x158)][_0x382357(0x163)](_0x382357(0x17d)),this[_0x382357(0x17c)]=_0x1c2a32[_0x382357(0x158)][_0x382357(0x163)](_0x382357(0x17a)),this[_0x382357(0x15c)][_0x382357(0x15a)](_0x382357(0x16e))['to'](this[_0x382357(0x175)],this[_0x382357(0x17c)],(_0x2e3d4a,_0x45c83c)=>_0x2e3d4a||_0x45c83c),this[_0x382357(0x15c)][_0x382357(0x15a)](_0x382357(0x172))['to'](this[_0x382357(0x175)],_0x382357(0x16e),_0x140e5c=>_0x140e5c&&this[_0x382357(0x165)][_0x382357(0x162)][_0x382357(0x178)](_0x32a3df[_0x382357(0x16a)]())),this[_0x382357(0x15c)][_0x382357(0x15a)](_0x382357(0x179))['to'](this[_0x382357(0x17c)],_0x382357(0x16e),_0xfaeb6e=>_0xfaeb6e&&this[_0x382357(0x165)][_0x382357(0x162)][_0x382357(0x178)](_0x32a3df[_0x382357(0x16a)]())),this[_0x382357(0x15f)]=null,_0x5fa4f0[_0x382357(0x167)]&&this[_0x382357(0x164)](),this[_0x382357(0x155)](_0x5fa4f0,_0x382357(0x17d),()=>this[_0x382357(0x17d)]()),this[_0x382357(0x155)](_0x5fa4f0,_0x382357(0x17a),()=>this[_0x382357(0x17a)]()),this[_0x382357(0x155)](_0x5fa4f0,_0x382357(0x15b),()=>{const _0x187071=_0x382357;_0x5fa4f0[_0x187071(0x167)]?this[_0x187071(0x164)]():this[_0x187071(0x161)]();});}[_0x6fd3af(0x17d)](){const _0x22d635=_0x6fd3af;this[_0x22d635(0x175)][_0x22d635(0x16b)](this[_0x22d635(0x162)]['id']);}[_0x6fd3af(0x17a)](){const _0x3496a3=_0x6fd3af;this[_0x3496a3(0x17c)][_0x3496a3(0x16b)](this[_0x3496a3(0x162)]['id']);}[_0x6fd3af(0x16f)](){const _0x2b0807=_0x6fd3af;this[_0x2b0807(0x15c)][_0x2b0807(0x177)](_0x2b0807(0x16e)),this[_0x2b0807(0x15c)][_0x2b0807(0x177)](_0x2b0807(0x172)),this[_0x2b0807(0x15c)][_0x2b0807(0x177)](_0x2b0807(0x179)),this[_0x2b0807(0x168)](),this[_0x2b0807(0x170)][_0x2b0807(0x16f)](),this[_0x2b0807(0x15f)]&&this[_0x2b0807(0x161)]();}[_0x6fd3af(0x164)](){const _0x3d10ec=_0x6fd3af,_0x3d1d8e=_0x4aa226(this[_0x3d10ec(0x165)][_0x3d10ec(0x174)],_0x3d10ec(0x169));this[_0x3d10ec(0x15f)]=this[_0x3d10ec(0x165)][_0x3d10ec(0x173)][_0x3d10ec(0x163)](_0x3d10ec(0x156))[_0x3d10ec(0x166)](_0x3d1d8e);}[_0x6fd3af(0x161)](){const _0x139902=_0x6fd3af;null!==this[_0x139902(0x15f)]&&this[_0x139902(0x165)][_0x139902(0x173)][_0x139902(0x163)](_0x139902(0x156))[_0x139902(0x15d)](this[_0x139902(0x15f)]),this[_0x139902(0x15f)]=null;}}
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
import { FocusCycler, View, ViewCollection, type FocusableView } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
11
11
|
import type { EditorConfig } from 'ckeditor5/src/core.js';
|
|
12
|
-
import type Suggestion from '../../suggestion.js';
|
|
12
|
+
import { type Suggestion } from '../../suggestion.js';
|
|
13
13
|
import type { CommentsListView, CommentThreadInputView, CommentView } from '@ckeditor/ckeditor5-comments';
|
|
14
14
|
import { AriaDescriptionView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
15
|
-
import type {
|
|
16
|
-
import type SuggestionView from './suggestionview.js';
|
|
15
|
+
import type { SuggestionDescription } from '../../suggestiondescriptionfactory.js';
|
|
16
|
+
import { type SuggestionView } from './suggestionview.js';
|
|
17
17
|
/**
|
|
18
18
|
* An abstract suggestion thread view class that should be used as a base for suggestion thread view implementations.
|
|
19
19
|
* It provides some behaviors, flags and building blocks to use when creating a custom suggestion thread view class.
|
|
@@ -26,7 +26,7 @@ import type SuggestionView from './suggestionview.js';
|
|
|
26
26
|
* For the usage examples check the {@glink features/collaboration/annotations/annotations-custom-view
|
|
27
27
|
* Annotations custom view} guide.
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
29
|
+
export declare abstract class BaseSuggestionThreadView extends View {
|
|
30
30
|
/**
|
|
31
31
|
* The list of comment views. It should be used as a part of the view template when present.
|
|
32
32
|
*/
|
|
@@ -103,7 +103,7 @@ export default abstract class BaseSuggestionThreadView extends View {
|
|
|
103
103
|
*
|
|
104
104
|
* @observable
|
|
105
105
|
*/
|
|
106
|
-
descriptionParts: Array<
|
|
106
|
+
descriptionParts: Array<SuggestionDescription>;
|
|
107
107
|
/**
|
|
108
108
|
* Informs whether the suggestion thread has any changes that have not been saved.
|
|
109
109
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8b2f2b=_0x5cfa;(function(_0x5ddf38,_0x30566a){const _0xad0565=_0x5cfa,_0xef8b6f=_0x5ddf38();while(!![]){try{const _0x352933=parseInt(_0xad0565(0xfb))/0x1*(parseInt(_0xad0565(0x115))/0x2)+parseInt(_0xad0565(0x12b))/0x3+-parseInt(_0xad0565(0xfc))/0x4+-parseInt(_0xad0565(0xf1))/0x5*(parseInt(_0xad0565(0x111))/0x6)+parseInt(_0xad0565(0x100))/0x7+-parseInt(_0xad0565(0x110))/0x8+parseInt(_0xad0565(0xf4))/0x9;if(_0x352933===_0x30566a)break;else _0xef8b6f['push'](_0xef8b6f['shift']());}catch(_0x1791c8){_0xef8b6f['push'](_0xef8b6f['shift']());}}}(_0x294e,0x64298));import{FocusCycler as _0x2c3c96,View as _0x35cbe7,ViewCollection as _0x54c723}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4fb385,KeystrokeHandler as _0x1a78d8}from'ckeditor5/src/utils.js';import{AriaDescriptionView as _0x118247,setupThreadKeyboardNavigation as _0x24bb50}from'ckeditor5-collaboration/src/collaboration-core.js';import{getTranslation as _0x5c5d9e}from'../../utils/common-translations.js';import{renderDescription as _0x10f3c9}from'../../utils/utils.js';function _0x5cfa(_0x182fe5,_0x5f51d4){const _0x294e85=_0x294e();return _0x5cfa=function(_0x5cfa84,_0x4ba714){_0x5cfa84=_0x5cfa84-0xe9;let _0x4647f1=_0x294e85[_0x5cfa84];return _0x4647f1;},_0x5cfa(_0x182fe5,_0x5f51d4);}function _0x294e(){const _0x130c56=['setData','4811611NhOvNX','commentThread','focusTracker','set','keystrokes','canAccept','removeComment','join','_createCommentThreadInputView','_model','commentsListView','render','target','delegate','fire','formatDateTime','5333728uGvwIQ','10470THxXFR','focus','commentInputView','isReadOnly','556CQIZKe','ariaLabel','locale','destroy','isActive','cancel','value','SUGGESTION_THREAD_DESCRIPTION','shift+tab','hasDirtyComment','ariaDescriptionView','_config','tab','submit','isDirty','descriptionParts','disabledSubmit','element','content','isEnabled','text/html','editorConfig','2330736dIYhpS','map','name','textContent','showInput','SUGGESTION_THREAD_ARIA_LABEL','authoredAt','focusables','CommentView','editor','focusCycler','disableComments','commentThreadInputView','updateComment','1895UqkQae','parseFromString','_createCommentViews','790866WpzMAa','body','author','assign','canDiscard','_localUser','addComment','1954Ugwtwk','1428144AbbbgJ','length','bind'];_0x294e=function(){return _0x130c56;};return _0x294e();}export class BaseSuggestionThreadView extends _0x35cbe7{[_0x8b2f2b(0x10a)];[_0x8b2f2b(0xef)];[_0x8b2f2b(0x11f)];[_0x8b2f2b(0xea)];[_0x8b2f2b(0x102)];[_0x8b2f2b(0x104)];[_0x8b2f2b(0xed)];[_0x8b2f2b(0x109)];[_0x8b2f2b(0xf9)];[_0x8b2f2b(0x120)];constructor(_0xdfa165,_0x20b9fe,_0x29aade,_0x3bdec6){const _0x4f7246=_0x8b2f2b;super(_0xdfa165),this[_0x4f7246(0x10a)]=null,this[_0x4f7246(0xef)]=null,this[_0x4f7246(0x11f)]=new _0x118247(_0xdfa165,_0x5c5d9e(_0xdfa165,_0x4f7246(0x11c))),this[_0x4f7246(0x103)](_0x4f7246(0x119),!0x1),this[_0x4f7246(0x103)](_0x4f7246(0xe9),_0x20b9fe[_0x4f7246(0xe9)]),this[_0x4f7246(0xfe)](_0x4f7246(0xe9))['to'](_0x20b9fe),this[_0x4f7246(0x103)](_0x4f7246(0x124),[]),this[_0x4f7246(0x103)](_0x4f7246(0x123),!0x1),this[_0x4f7246(0x103)](_0x4f7246(0x128),!0x1),this[_0x4f7246(0x103)](_0x4f7246(0x105),!0x1),this[_0x4f7246(0x103)](_0x4f7246(0xf8),!0x1),this[_0x4f7246(0xfe)](_0x4f7246(0x116))['to'](this,_0x4f7246(0xfd),_0x20b9fe,_0x4f7246(0xe9),this,_0x4f7246(0x124),(_0x26e70a,_0x2d0786,_0x3c78e3)=>{const _0x25ecc1=_0x4f7246,_0xa6d03c=_0x3c78e3[_0x25ecc1(0x12c)](_0xe50f46=>_0x10f3c9(_0xe50f46[_0x25ecc1(0x127)]))[_0x25ecc1(0x107)]('.\x20')+'.';return _0x5c5d9e(this[_0x25ecc1(0x117)],_0x25ecc1(0x130),[_0x26e70a-0x1,_0x20b9fe[_0x25ecc1(0xf6)][_0x25ecc1(0x12d)],_0x2d0786?_0x3bdec6[_0x25ecc1(0x10f)](_0x2d0786):'',new DOMParser()[_0x25ecc1(0xf2)](_0xa6d03c,_0x25ecc1(0x129))[_0x25ecc1(0xf5)][_0x25ecc1(0x12e)]]);}),this[_0x4f7246(0xea)]=new _0x54c723(),this[_0x4f7246(0x102)]=new _0x4fb385(),this[_0x4f7246(0x104)]=new _0x1a78d8(),this[_0x4f7246(0xed)]=new _0x2c3c96({'focusables':this[_0x4f7246(0xea)],'focusTracker':this[_0x4f7246(0x102)],'keystrokeHandler':this[_0x4f7246(0x104)],'keystrokeHandlerOptions':{'filter':_0x46b144=>_0x46b144[_0x4f7246(0x10c)]!==this[_0x4f7246(0x126)]},'actions':{'focusPrevious':_0x4f7246(0x11d),'focusNext':_0x4f7246(0x121)}}),this[_0x4f7246(0x109)]=_0x20b9fe,this[_0x4f7246(0xf9)]=_0x29aade,this[_0x4f7246(0x120)]=_0x3bdec6,_0x3bdec6[_0x4f7246(0xee)]?this[_0x4f7246(0x103)](_0x4f7246(0xfd),0x1):this[_0x4f7246(0xf3)]();}[_0x8b2f2b(0x10b)](){const _0x12f61b=_0x8b2f2b;super[_0x12f61b(0x10b)](),_0x24bb50(this,this[_0x12f61b(0xea)]);}[_0x8b2f2b(0x112)](){const _0xdaee45=_0x8b2f2b;this[_0xdaee45(0x126)][_0xdaee45(0x112)]();}[_0x8b2f2b(0x118)](){const _0x3b595f=_0x8b2f2b;this[_0x3b595f(0x10a)]&&this[_0x3b595f(0x10a)][_0x3b595f(0x118)](),this[_0x3b595f(0xef)]&&this[_0x3b595f(0xef)][_0x3b595f(0x118)](),super[_0x3b595f(0x118)]();}[_0x8b2f2b(0xf3)](){const _0x120b14=_0x8b2f2b,{CommentsListView:_0x58080b}=this[_0x120b14(0x120)];this[_0x120b14(0x10a)]=new _0x58080b(this[_0x120b14(0x117)],this[_0x120b14(0x109)][_0x120b14(0x101)],Object[_0x120b14(0xf7)]({'CommentView':this[_0x120b14(0x120)][_0x120b14(0xeb)]},this[_0x120b14(0x120)])),this[_0x120b14(0x10a)][_0x120b14(0x10d)](_0x120b14(0x106))['to'](this),this[_0x120b14(0x10a)][_0x120b14(0x10d)](_0x120b14(0xf0))['to'](this),this[_0x120b14(0x10a)][_0x120b14(0xfe)](_0x120b14(0x119))['to'](this),this[_0x120b14(0x103)](_0x120b14(0xfd),this[_0x120b14(0x10a)][_0x120b14(0xfd)]+0x1),this[_0x120b14(0xfe)](_0x120b14(0xfd))['to'](this[_0x120b14(0x10a)],_0x120b14(0xfd),_0x46a085=>_0x46a085+0x1),this[_0x120b14(0xef)]=this[_0x120b14(0x108)](),this['on'](_0x120b14(0x106),()=>this[_0x120b14(0x112)]()),this[_0x120b14(0xfe)](_0x120b14(0x123))['to'](this[_0x120b14(0x10a)],_0x120b14(0x11e),this[_0x120b14(0xef)][_0x120b14(0x113)],_0x120b14(0x11b),(_0x1f473b,_0x15a3d9)=>_0x1f473b||!!_0x15a3d9);}[_0x8b2f2b(0x108)](){const _0x5ee9ca=_0x8b2f2b,{CommentThreadInputView:_0xde3d5d}=this[_0x5ee9ca(0x120)],_0x175aa4=new _0xde3d5d(this[_0x5ee9ca(0x117)],this[_0x5ee9ca(0xf9)],this[_0x5ee9ca(0x120)][_0x5ee9ca(0x12a)]),_0x4369e7=_0x175aa4[_0x5ee9ca(0x113)];return _0x175aa4[_0x5ee9ca(0xfe)](_0x5ee9ca(0x12f))['to'](this,_0x5ee9ca(0x119),this[_0x5ee9ca(0x109)][_0x5ee9ca(0x101)],_0x5ee9ca(0x114),_0x4369e7,_0x5ee9ca(0x11b),(_0x151df5,_0x31ad3e,_0x3a16b4)=>!!_0x3a16b4||_0x151df5&&!_0x31ad3e),_0x4369e7['on'](_0x5ee9ca(0x122),(_0x307f04,_0x2fca7a)=>{const _0x4b5248=_0x5ee9ca;this[_0x4b5248(0x10e)](_0x4b5248(0xfa),_0x2fca7a),_0x4369e7[_0x4b5248(0xec)][_0x4b5248(0xff)]('');}),_0x4369e7['on'](_0x5ee9ca(0x11a),()=>this[_0x5ee9ca(0x112)]()),_0x4369e7[_0x5ee9ca(0xfe)](_0x5ee9ca(0x125))['to'](this[_0x5ee9ca(0x109)][_0x5ee9ca(0x101)],_0x5ee9ca(0x114)),_0x175aa4;}}
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
* @module track-changes/ui/view/suggestionthreadview
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { BaseSuggestionThreadView, type SuggestionThreadConfig } from './basesuggestionthreadview.js';
|
|
10
10
|
import { type TemplateDefinition, type ViewWithFocusCycler } from 'ckeditor5/src/ui.js';
|
|
11
11
|
import { type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
12
12
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
-
import type Suggestion from '../../suggestion.js';
|
|
14
|
-
import type SuggestionView from './suggestionview.js';
|
|
13
|
+
import { type Suggestion } from '../../suggestion.js';
|
|
14
|
+
import { type SuggestionView } from './suggestionview.js';
|
|
15
15
|
/**
|
|
16
16
|
* The default view for a suggestion thread.
|
|
17
17
|
*
|
|
18
18
|
* This view can be replaced by other view by overwriting the
|
|
19
19
|
* {@link module:track-changes/trackchangesconfig~TrackChangesConfig#SuggestionThreadView} configuration.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export declare class SuggestionThreadView extends BaseSuggestionThreadView implements ViewWithFocusCycler {
|
|
22
22
|
/**
|
|
23
23
|
* The suggestion thread view type.
|
|
24
24
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49c2c9=_0x5c77;(function(_0x294ac5,_0x3c7b49){const _0x34fefe=_0x5c77,_0x1ac2a5=_0x294ac5();while(!![]){try{const _0x1674cc=parseInt(_0x34fefe(0x183))/0x1+-parseInt(_0x34fefe(0x19e))/0x2+parseInt(_0x34fefe(0x190))/0x3+-parseInt(_0x34fefe(0x17a))/0x4+parseInt(_0x34fefe(0x18f))/0x5+-parseInt(_0x34fefe(0x184))/0x6+parseInt(_0x34fefe(0x189))/0x7;if(_0x1674cc===_0x3c7b49)break;else _0x1ac2a5['push'](_0x1ac2a5['shift']());}catch(_0x1bab5a){_0x1ac2a5['push'](_0x1ac2a5['shift']());}}}(_0x9338,0x94187));import{BaseSuggestionThreadView as _0x44e72e}from'./basesuggestionthreadview.js';import{trimHtml as _0x4793fc}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x5ae921}from'../../utils/utils.js';export class SuggestionThreadView extends _0x44e72e{[_0x49c2c9(0x1a5)];[_0x49c2c9(0x180)];constructor(_0x55bc5a,_0x4d9f43,_0x11d4b9,_0x302c17){const _0x411c1a=_0x49c2c9;super(_0x55bc5a,_0x4d9f43,_0x11d4b9,_0x302c17),this[_0x411c1a(0x199)](_0x411c1a(0x197),''),this[_0x411c1a(0x1a3)](_0x411c1a(0x197))['to'](this,_0x411c1a(0x1ad),_0x499e08=>_0x499e08&&_0x499e08[0x0]?_0x499e08[0x0][_0x411c1a(0x197)]:''),this[_0x411c1a(0x1a3)](_0x411c1a(0x17e))['to'](this,_0x411c1a(0x1ad),this,_0x411c1a(0x1a8),(_0x433d22,_0x3f66f8)=>{const _0x47c854=_0x411c1a;let _0x675517='';for(const _0x3d0865 of _0x433d22)_0x675517+=_0x47c854(0x18d)+_0x5ae921(_0x3d0865[_0x47c854(0x18c)],_0x3d0865[_0x47c854(0x18e)])+_0x47c854(0x181);return _0x3f66f8?_0x675517:_0x4793fc(_0x675517,{'limit':0x8c});}),this[_0x411c1a(0x180)]=null,this[_0x411c1a(0x1a5)]=new _0x302c17[(_0x411c1a(0x1ac))](_0x55bc5a,_0x4d9f43,{'formatDateTime':_0x302c17[_0x411c1a(0x19a)]}),this[_0x411c1a(0x1a5)][_0x411c1a(0x1a3)](_0x411c1a(0x17e))['to'](this),this[_0x411c1a(0x1a5)][_0x411c1a(0x188)](_0x411c1a(0x1aa),_0x411c1a(0x1a9))['to'](this),this[_0x411c1a(0x1a5)][_0x411c1a(0x186)][_0x411c1a(0x1a3)](_0x411c1a(0x198))['to'](this,_0x411c1a(0x18b)),this[_0x411c1a(0x1a5)][_0x411c1a(0x196)][_0x411c1a(0x1a3)](_0x411c1a(0x198))['to'](this,_0x411c1a(0x1a4)),this[_0x411c1a(0x194)][_0x411c1a(0x17c)](this[_0x411c1a(0x1a5)]),this[_0x411c1a(0x185)]&&this[_0x411c1a(0x194)][_0x411c1a(0x17c)](this[_0x411c1a(0x185)]),this[_0x411c1a(0x195)]&&this[_0x411c1a(0x194)][_0x411c1a(0x17c)](this[_0x411c1a(0x195)]),this[_0x411c1a(0x1a1)](this[_0x411c1a(0x17d)]());}[_0x49c2c9(0x17d)](){const _0x59c068=_0x49c2c9,_0x4a764d=this[_0x59c068(0x1a6)],_0x174408=[this[_0x59c068(0x1a5)]];return this[_0x59c068(0x185)]&&_0x174408[_0x59c068(0x19c)](this[_0x59c068(0x185)]),this[_0x59c068(0x195)]&&_0x174408[_0x59c068(0x19c)](this[_0x59c068(0x195)]),_0x174408[_0x59c068(0x19c)](this[_0x59c068(0x1a7)]),{'tag':_0x59c068(0x17b),'attributes':{'class':['ck',_0x59c068(0x1a2),_0x59c068(0x191),_0x4a764d['if'](_0x59c068(0x1a8),_0x59c068(0x178)),_0x4a764d['to'](_0x59c068(0x197),_0x5700e0=>_0x59c068(0x193)+_0x5700e0),this[_0x59c068(0x17f)][_0x59c068(0x19b)]&&_0x59c068(0x1a0)],'data-suggestion-id':this[_0x59c068(0x192)]['id'],'data-thread-id':this[_0x59c068(0x192)][_0x59c068(0x187)]['id'],'data-author-id':this[_0x59c068(0x192)][_0x59c068(0x19f)]['id'],'tabindex':0x0,'role':_0x59c068(0x182),'aria-label':_0x4a764d['to'](_0x59c068(0x1ab)),'aria-describedby':this[_0x59c068(0x1a7)]['id']},'children':_0x174408};}[_0x49c2c9(0x179)](){const _0x1ea6c3=_0x49c2c9;super[_0x1ea6c3(0x179)](),this[_0x1ea6c3(0x185)]&&(this[_0x1ea6c3(0x185)][_0x1ea6c3(0x188)](_0x1ea6c3(0x19d))['to'](this),this[_0x1ea6c3(0x185)][_0x1ea6c3(0x188)](_0x1ea6c3(0x18a))['to'](this)),this[_0x1ea6c3(0x195)]&&(this[_0x1ea6c3(0x195)][_0x1ea6c3(0x188)](_0x1ea6c3(0x19d))['to'](this),this[_0x1ea6c3(0x195)][_0x1ea6c3(0x188)](_0x1ea6c3(0x18a))['to'](this));}}function _0x5c77(_0x36d637,_0x285d21){const _0x933832=_0x9338();return _0x5c77=function(_0x5c7710,_0x2da76a){_0x5c7710=_0x5c7710-0x178;let _0x217fb1=_0x933832[_0x5c7710];return _0x217fb1;},_0x5c77(_0x36d637,_0x285d21);}function _0x9338(){const _0x39b7ca=['content','<p>','color','48000MaNkdl','611472ATGudR','ck-suggestion-wrapper','_model','ck-suggestion-','focusables','commentThreadInputView','discardButton','type','isEnabled','set','formatDateTime','disableComments','push','editorReady','1775464CfnsYy','author','ck-suggestion--disabled-comments','setTemplate','ck-rounded-corners','bind','canDiscard','suggestionView','bindTemplate','ariaDescriptionView','isActive','discardSuggestion','acceptSuggestion','ariaLabel','SuggestionView','descriptionParts','ck-suggestion-wrapper--active','render','506832blGcRM','div','add','getTemplate','description','_config','_descriptionElement','</p>','listitem','18825iVdLmL','6689406iwxvhT','commentsListView','acceptButton','commentThread','delegate','17525837AKmOTS','editorDestroyed','canAccept'];_0x9338=function(){return _0x39b7ca;};return _0x9338();}
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import { View, type TemplateDefinition, type FocusableView, ViewCollection, FocusCycler } from 'ckeditor5/src/ui.js';
|
|
11
11
|
import { LateFocusButtonView, UserView } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
12
|
-
import type Suggestion from '../../suggestion.js';
|
|
12
|
+
import { type Suggestion } from '../../suggestion.js';
|
|
13
13
|
/**
|
|
14
14
|
* A view displaying a detailed information about the suggestion as well as controls to accept or discard it.
|
|
15
15
|
*
|
|
16
16
|
* This view can be replaced by other view by overwriting the
|
|
17
17
|
* {@link module:track-changes/trackchangesconfig~TrackChangesConfig#SuggestionView} configuration.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export declare class SuggestionView extends View implements FocusableView {
|
|
20
20
|
/**
|
|
21
21
|
* A suggestion description explaining what has been changed. To be presented to the user.
|
|
22
22
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2894d9=_0x2de2;(function(_0x1cde5e,_0x4ba17f){const _0x54d59e=_0x2de2,_0x234353=_0x1cde5e();while(!![]){try{const _0x4054aa=parseInt(_0x54d59e(0x1d5))/0x1+parseInt(_0x54d59e(0x1d8))/0x2*(-parseInt(_0x54d59e(0x1c0))/0x3)+-parseInt(_0x54d59e(0x1ec))/0x4*(parseInt(_0x54d59e(0x19c))/0x5)+parseInt(_0x54d59e(0x1df))/0x6*(-parseInt(_0x54d59e(0x19f))/0x7)+-parseInt(_0x54d59e(0x1ad))/0x8+-parseInt(_0x54d59e(0x1a6))/0x9*(parseInt(_0x54d59e(0x1a1))/0xa)+parseInt(_0x54d59e(0x1b3))/0xb;if(_0x4054aa===_0x4ba17f)break;else _0x234353['push'](_0x234353['shift']());}catch(_0x4209b6){_0x234353['push'](_0x234353['shift']());}}}(_0x4db1,0x31302));import{FocusTracker as _0x102f8e,KeystrokeHandler as _0x3618e3}from'ckeditor5/src/utils.js';import{View as _0x2741ec,ViewCollection as _0x54fdd2,FocusCycler as _0x3a468d}from'ckeditor5/src/ui.js';import{LateFocusButtonView as _0x3ea3a9,UserView as _0x2cca2a}from'ckeditor5-collaboration/src/collaboration-core.js';import{IconCancel as _0x52b007,IconCheck as _0x26a7ce}from'ckeditor5/src/icons.js';import{getTranslation as _0x4c897d}from'../../utils/common-translations.js';function _0x2de2(_0x391360,_0x254796){const _0x4db118=_0x4db1();return _0x2de2=function(_0x2de2db,_0x1b3271){_0x2de2db=_0x2de2db-0x194;let _0x17d266=_0x4db118[_0x2de2db];return _0x17d266;},_0x2de2(_0x391360,_0x254796);}export class SuggestionView extends _0x2741ec{[_0x2894d9(0x198)];[_0x2894d9(0x1e5)];[_0x2894d9(0x196)];[_0x2894d9(0x1ab)];[_0x2894d9(0x19b)];[_0x2894d9(0x194)];[_0x2894d9(0x1a3)];[_0x2894d9(0x1b2)];[_0x2894d9(0x1c6)];constructor(_0xcd75de,_0x3468f9,_0x2f4e22){const _0x1406ee=_0x2894d9;super(_0xcd75de),this[_0x1406ee(0x1b2)]=_0x3468f9,this[_0x1406ee(0x1c6)]=_0x2f4e22,this[_0x1406ee(0x1a7)](_0x1406ee(0x19a),''),this[_0x1406ee(0x1d0)](_0x1406ee(0x1be))['to'](_0x3468f9),this[_0x1406ee(0x1e5)]=this[_0x1406ee(0x1af)](_0x4c897d(_0xcd75de,_0x1406ee(0x1de)),_0x26a7ce,_0x1406ee(0x1e2),_0x1406ee(0x1ce),'sw'),this[_0x1406ee(0x196)]=this[_0x1406ee(0x1af)](_0x4c897d(_0xcd75de,_0x1406ee(0x1dc)),_0x52b007,_0x1406ee(0x19d),_0x1406ee(0x195),'sw'),this[_0x1406ee(0x198)]=new _0x2cca2a(_0xcd75de,_0x3468f9[_0x1406ee(0x1d4)],this[_0x1406ee(0x1e0)]()),this[_0x1406ee(0x198)][_0x1406ee(0x1bd)]({'attributes':{'class':[_0x1406ee(0x1a0),_0x1406ee(0x1d7)],'aria-hidden':!0x0}}),this[_0x1406ee(0x1ab)]=new _0x54fdd2([this[_0x1406ee(0x1e5)],this[_0x1406ee(0x196)]]),this[_0x1406ee(0x19b)]=new _0x102f8e(),this[_0x1406ee(0x194)]=new _0x3618e3(),this[_0x1406ee(0x1a3)]=new _0x3a468d({'focusables':this[_0x1406ee(0x1ab)],'focusTracker':this[_0x1406ee(0x19b)],'keystrokeHandler':this[_0x1406ee(0x194)],'actions':{'focusPrevious':_0x1406ee(0x1b5),'focusNext':_0x1406ee(0x1c1)},'keystrokeHandlerOptions':{'filter':_0x5c9b08=>_0x5c9b08[_0x1406ee(0x1c3)]!==this[_0x1406ee(0x1cf)]}}),this[_0x1406ee(0x1b6)](this[_0x1406ee(0x1c4)]());}[_0x2894d9(0x1c7)](){const _0x35345e=_0x2894d9;super[_0x35345e(0x1c7)]();const _0x59e9d9=this[_0x35345e(0x1cf)][_0x35345e(0x1e6)](_0x35345e(0x1c9));_0x59e9d9[_0x35345e(0x1d1)]=this[_0x35345e(0x19a)],this['on'](_0x35345e(0x1dd),(_0x52e386,_0x511697,_0x1c62b7)=>{const _0x59d855=_0x35345e;_0x59e9d9[_0x59d855(0x1d1)]=_0x1c62b7;}),this[_0x35345e(0x1d9)]();}[_0x2894d9(0x1c4)](){const _0x4c0548=_0x2894d9,_0x30095d=this[_0x4c0548(0x1e4)],_0x4d9263=[{'tag':_0x4c0548(0x1eb),'attributes':{'class':[_0x4c0548(0x1a4),_0x4c0548(0x1bc)]},'children':[{'tag':_0x4c0548(0x19e),'children':[{'text':this[_0x4c0548(0x198)][_0x4c0548(0x1ae)]}],'attributes':{'class':[_0x4c0548(0x1e9),_0x4c0548(0x1b7)],'data-cke-tooltip-text':this[_0x4c0548(0x198)][_0x4c0548(0x1ae)]}},{'tag':_0x4c0548(0x1cc),'attributes':{'datetime':_0x30095d['to'](_0x4c0548(0x1be)),'class':[_0x4c0548(0x1aa),_0x4c0548(0x1b0)]},'children':[{'text':_0x30095d['to'](_0x4c0548(0x1be),_0x4bd06c=>this[_0x4c0548(0x1c6)][_0x4c0548(0x1a9)](_0x4bd06c))}]}]},{'tag':_0x4c0548(0x1eb),'attributes':{'class':[_0x4c0548(0x1da),_0x4c0548(0x1ac)]},'children':[this[_0x4c0548(0x1e5)],this[_0x4c0548(0x196)]]},{'tag':_0x4c0548(0x1eb),'attributes':{'class':[_0x4c0548(0x1cb)]}}];return this[_0x4c0548(0x1b2)][_0x4c0548(0x1a5)]&&_0x4d9263[_0x4c0548(0x1b8)]({'tag':_0x4c0548(0x1eb),'attributes':{'class':[_0x4c0548(0x1e3)]},'children':[{'text':this[_0x4c0548(0x1b1)]()}]}),{'tag':_0x4c0548(0x1eb),'attributes':{'class':[_0x4c0548(0x1a8),_0x4c0548(0x1b9)],'tabindex':-0x1},'children':[this[_0x4c0548(0x198)],{'tag':_0x4c0548(0x1eb),'attributes':{'class':[_0x4c0548(0x1c5),_0x4c0548(0x1c2)],'role':_0x4c0548(0x1bf)},'children':_0x4d9263}]};}[_0x2894d9(0x197)](){const _0x4aef6a=_0x2894d9;this[_0x4aef6a(0x1cf)][_0x4aef6a(0x197)]();}[_0x2894d9(0x1e0)](){const _0x309bd=_0x2894d9;return this[_0x309bd(0x1b2)][_0x309bd(0x1a5)]?_0x309bd(0x1a2)===this[_0x309bd(0x1b2)][_0x309bd(0x1e8)][_0x309bd(0x1ea)][_0x309bd(0x1e1)]?_0x4c897d(this[_0x309bd(0x1d2)],_0x309bd(0x1ca),this[_0x309bd(0x1b2)][_0x309bd(0x199)][_0x309bd(0x1ae)]):_0x4c897d(this[_0x309bd(0x1d2)],_0x309bd(0x1c8),this[_0x309bd(0x1b2)][_0x309bd(0x199)][_0x309bd(0x1ae)]):null;}[_0x2894d9(0x1b1)](){const _0x173102=_0x2894d9;return _0x173102(0x1a2)===this[_0x173102(0x1b2)][_0x173102(0x1e8)][_0x173102(0x1ea)][_0x173102(0x1e1)]?_0x4c897d(this[_0x173102(0x1d2)],_0x173102(0x1cd)):_0x4c897d(this[_0x173102(0x1d2)],_0x173102(0x1e7));}[_0x2894d9(0x1af)](_0x4f6286,_0x44b528,_0x173749,_0x3e9c4a,_0x10e195){const _0x9fb963=_0x2894d9,_0x17906f=new _0x3ea3a9(this[_0x9fb963(0x1d2)]);return _0x17906f[_0x9fb963(0x1a7)]({'label':_0x4f6286,'icon':_0x44b528,'tooltip':!0x0,'tooltipPosition':_0x10e195}),_0x17906f[_0x9fb963(0x1bd)]({'attributes':{'class':_0x173749}}),_0x17906f['on'](_0x9fb963(0x1ba),()=>{const _0x66f91a=_0x9fb963;this[_0x66f91a(0x1bb)](_0x3e9c4a,this[_0x66f91a(0x1b2)]['id']);}),_0x17906f;}[_0x2894d9(0x1d9)](){const _0x5da4e0=_0x2894d9,_0x1e32bb=this[_0x5da4e0(0x1cf)];this[_0x5da4e0(0x194)][_0x5da4e0(0x1d6)](_0x1e32bb);for(const _0x7e616f of this[_0x5da4e0(0x1ab)])this[_0x5da4e0(0x19b)][_0x5da4e0(0x1db)](_0x7e616f[_0x5da4e0(0x1cf)]),this[_0x5da4e0(0x194)][_0x5da4e0(0x1d6)](_0x7e616f[_0x5da4e0(0x1cf)]);this[_0x5da4e0(0x194)][_0x5da4e0(0x1a7)](_0x5da4e0(0x1ed),(_0x36e14e,_0x5b2396)=>{const _0x6ef105=_0x5da4e0;_0x1e32bb===_0x36e14e[_0x6ef105(0x1c3)]&&(this[_0x6ef105(0x1a3)][_0x6ef105(0x1b4)](),_0x5b2396());}),this[_0x5da4e0(0x194)][_0x5da4e0(0x1a7)](_0x5da4e0(0x1d3),(_0x5d7cd7,_0x264895)=>{const _0x169ee7=_0x5da4e0;_0x1e32bb!==_0x5d7cd7[_0x169ee7(0x1c3)]&&(this[_0x169ee7(0x197)](),_0x264895());});}}function _0x4db1(){const _0x1855ca=['render','EXTERNAL_AVATAR','.ck-annotation__content-wrapper','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__content-wrapper','time','EXTERNAL_IMPORT_WORD_SUGGESTION','acceptSuggestion','element','bind','innerHTML','locale','esc','author','54856EzcKqA','listenTo','ck-annotation__user','140020AZgwtN','_setupKeyboardNavigation','ck-suggestion__actions','add','Discard\x20suggestion','change:description','Accept\x20suggestion','12876eRxyLW','getUserViewNotificationText','source','ck-suggestion--accept','ck-comment__external','bindTemplate','acceptButton','querySelector','EXTERNAL_SUGGESTION','attributes','ck-suggestion__info-name','@external','div','4bYafyP','enter','keystrokes','discardSuggestion','discardButton','focus','userView','creator','description','focusTracker','1407920rGeBxg','ck-suggestion--discard','span','1085uXttzz','ck-suggestion__user','1220730mREGcL','importWord','focusCycler','ck-suggestion__info','isExternal','9BTdoTj','set','ck-suggestion','formatDateTime','ck-comment__info-time','focusables','ck-annotation__actions','21296dJjBhq','name','_createButton','ck-annotation__info-time','getExternalSuggestionNote','_model','12051567NWXoBY','focusFirst','shift+tab','setTemplate','ck-annotation__info-name','push','ck-annotation','execute','fire','ck-annotation__info','extendTemplate','authoredAt','presentation','9bQYkGP','tab','ck-annotation__main','target','getTemplate','ck-suggestion__main','_config'];_0x4db1=function(){return _0x1855ca;};return _0x4db1();}
|
|
@@ -2,47 +2,4 @@
|
|
|
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
|
-
|
|
6
|
-
* @module track-changes/ui/view/trackchangespreviewview
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
11
|
-
/**
|
|
12
|
-
* The view that displays the preview of the final content where all the suggestions are accepted.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesPreviewView extends View {
|
|
15
|
-
/**
|
|
16
|
-
* The options for the preview dialog.
|
|
17
|
-
*/
|
|
18
|
-
options: {
|
|
19
|
-
dialogRects: {
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
constructor(locale: Locale, options: {
|
|
28
|
-
dialogRects: {
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
};
|
|
32
|
-
});
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
render(): void;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the data to be displayed in the preview.
|
|
39
|
-
*/
|
|
40
|
-
setPreviewData(data: Array<[string, {
|
|
41
|
-
classes: string;
|
|
42
|
-
content: string;
|
|
43
|
-
}]>, callback: (container: HTMLElement, elements: Array<HTMLElement>) => void): void;
|
|
44
|
-
/**
|
|
45
|
-
* @inheritDoc
|
|
46
|
-
*/
|
|
47
|
-
focus(): void;
|
|
48
|
-
}
|
|
5
|
+
export {};
|