@ckeditor/ckeditor5-track-changes 45.2.1 → 46.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/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
|
-
function _0x4d93(_0x45006b,_0xb652fc){const _0x3c2d27=_0x3c2d();return _0x4d93=function(_0x4d939a,_0x12ccd2){_0x4d939a=_0x4d939a-0x95;let _0x193269=_0x3c2d27[_0x4d939a];return _0x193269;},_0x4d93(_0x45006b,_0xb652fc);}const _0x28b3e4=_0x4d93;(function(_0x39db59,_0x2afd81){const _0x4ecb8c=_0x4d93,_0x26f6ac=_0x39db59();while(!![]){try{const _0x5ae31e=-parseInt(_0x4ecb8c(0xaa))/0x1*(-parseInt(_0x4ecb8c(0xd2))/0x2)+-parseInt(_0x4ecb8c(0x104))/0x3+parseInt(_0x4ecb8c(0xbb))/0x4*(parseInt(_0x4ecb8c(0xa5))/0x5)+-parseInt(_0x4ecb8c(0x110))/0x6*(parseInt(_0x4ecb8c(0xba))/0x7)+-parseInt(_0x4ecb8c(0xca))/0x8+parseInt(_0x4ecb8c(0xeb))/0x9*(parseInt(_0x4ecb8c(0x140))/0xa)+-parseInt(_0x4ecb8c(0xde))/0xb*(-parseInt(_0x4ecb8c(0xc2))/0xc);if(_0x5ae31e===_0x2afd81)break;else _0x26f6ac['push'](_0x26f6ac['shift']());}catch(_0x3589e3){_0x26f6ac['push'](_0x26f6ac['shift']());}}}(_0x3c2d,0xe938b));import{Plugin as _0x1ea8df}from'ckeditor5/src/core.js';import{Collection as _0x1e7c9e}from'ckeditor5/src/utils.js';import{IconTrackChanges as _0x5a24a5}from'ckeditor5/src/icons.js';import{addListToDropdown as _0x505e6b,createDropdown as _0x33353d,ListSeparatorView as _0x247c48,MenuBarMenuView as _0x548cab,MenuBarMenuListView as _0x2aa210,MenuBarMenuListItemView as _0x10c777,MenuBarMenuListItemButtonView as _0x4d2ee3,SplitButtonView as _0x4c3a6f,ViewModel as _0x32abe3}from'ckeditor5/src/ui.js';import{Users as _0x47361c,getDateTimeFormatter as _0x583e9d,getAllMarkersDomElementsSorted as _0x2d28f4}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2067c8 from'./trackchangesediting.js';import _0x27ab01 from'./ui/suggestioncontroller.js';import _0x4479a4 from'./ui/view/suggestionthreadview.js';function _0x3c2d(){const _0x5e748f=['_bindAnnotationToEditors','TrackChangesPreview','Preview\x20final\x20content','view','set','33660ZOjtdN','locale','stopListening','requires','panelView','values','source','createCommentThreadController','1726888daCwew','createAnnotationView','TrackChangesUI','isPremiumPlugin','separator','mainView','trackChangesLicenseKeyEvaluationLimit','createAnnotation','2eqMBZT','usageLimit','acceptAllSuggestions','_destroyController','descriptionFactory','featureNotAllowed','comments.editorConfig','config','trackChangesLicenseKeyExpired','suggestionChanged','TrackChangesEditing','fire','1265rkQztQ','editor','trackChanges.SuggestionThreadView','discardAllSuggestions','addSourceCollector','arrowView','Discard\x20all\x20suggestions','_addUIComponentsToFactory','switchbutton','suggestionLoaded','reduce','isOfficialPlugin','activeMarkers','441psysJG','keys','isEnabled','trackChangesLicenseKeyInvalid','filter','delegate','Accept\x20all\x20suggestions','getAllAdjacentSuggestions','comments','lowest','isOn','_handleSuggestionControllerDelayed','_licenseKeyCheckInterval','trackChanges.SuggestionView','hasSuggestion','Track\x20changes','descriptionParts','EditorAnnotations','commands','destroy','commentsListView','comments.maxCommentCharsWhenCollapsed','items','_createToolbarButton','registerAnnotation','5030988sxpNzm','comments.maxCommentsWhenCollapsed','getFirstRange','discardSelectedSuggestions','clear','toMany','Discard\x20all\x20selected\x20suggestions','trackChangesLicenseKeyDomainLimit','push','commentThread','bind','change:previous','18WwfyXN','isMultiRange','isDirty','licenseKey','expired','some','acceptButton','suggestionView','getMarkerNames','domainLimit','trackChangesLicenseKeyUsageLimit','from','previewFinalContent','evaluationLimit','innerView','size','init','focus','_unbindEditors','CommentsUI','_createMenuBarMenu','_annotationViews','refreshSelectedViews','escape','pluginName','_refreshActiveMarkers','unbind','trackChangesLicenseKeyNotAllowed','discardButton','define','getDescriptions','_updateController','get','menuitemcheckbox','head','Accept\x20all\x20selected\x20suggestions','remove','invalid','_suggestionToController','trackChanges','has','SuggestionView','getSuggestion','CommentsRepository','CommentView','getJoined','change:activeAnnotations','getRanges','242150KPozdf','commandName','plugins','previous','listenTo','trackChanges.disableComments','isInContent','_showLicenseError','_disableComments','buttonView','getMarkers','activeAnnotations','Annotations','editing','menuBar:trackChanges','button','addMany','add','menuitem','suggestionUnloaded','_handleControllerBuffer','trialLimit','menu','5kEZUco','trackChangesLicenseKeyTrialLimit','getByInnerView','actionView','execute','1371569HaVfOZ','componentFactory','_initializeController','comments.maxThreadTotalWeight','suggestion-','model','length','value','trackChangesLicenseKeyValid','type','SuggestionThreadView','addComment','_viewToController','acceptSelectedSuggestions','delete','children','1640478KWKesF','2682060lWMHqc','TrackChanges'];_0x3c2d=function(){return _0x5e748f;};return _0x3c2d();}import _0x244c12 from'./ui/view/suggestionview.js';import{getTranslation as _0x371be7}from'./utils/common-translations.js';export default class d extends _0x1ea8df{[_0x28b3e4(0x113)];[_0x28b3e4(0xf7)];[_0x28b3e4(0x136)];[_0x28b3e4(0xb6)];[_0x28b3e4(0x125)];[_0x28b3e4(0xa2)];[_0x28b3e4(0x96)];static get[_0x28b3e4(0xc5)](){const _0x2c79af=_0x28b3e4;return[_0x2067c8,_0x47361c,_0x2c79af(0x13b),_0x2c79af(0x9a),_0x2c79af(0xfc)];}static get[_0x28b3e4(0x128)](){const _0x3d9699=_0x28b3e4;return _0x3d9699(0xcc);}static get[_0x28b3e4(0xe9)](){return!0x0;}static get[_0x28b3e4(0xcd)](){return!0x0;}constructor(_0x3266ec){const _0x64b0c2=_0x28b3e4;super(_0x3266ec),this[_0x64b0c2(0x136)]=new Map(),this[_0x64b0c2(0xb6)]=new Map(),this[_0x64b0c2(0x125)]=new Map(),this[_0x64b0c2(0xa2)]=new Map();const _0x5edd01=this[_0x64b0c2(0xdf)][_0x64b0c2(0xd9)];_0x5edd01[_0x64b0c2(0x12d)](_0x64b0c2(0xe0),_0x4479a4),_0x5edd01[_0x64b0c2(0x12d)](_0x64b0c2(0xf8),_0x244c12),_0x5edd01[_0x64b0c2(0x12d)](_0x64b0c2(0x145),!0x1),this[_0x64b0c2(0x96)]=_0x5edd01[_0x64b0c2(0x130)](_0x64b0c2(0x145));}[_0x28b3e4(0xf6)](_0x445bb8,_0x24640c){const _0x51b17a=_0x28b3e4;0x0===this[_0x51b17a(0xa2)][_0x51b17a(0x11f)]&&setTimeout(()=>{const _0x1eafe0=_0x51b17a;for(const [_0xf00e93,_0x9ee99e]of this[_0x1eafe0(0xa2)]){const _0x3dd772=this[_0x1eafe0(0x136)][_0x1eafe0(0x138)](_0xf00e93);_0x3dd772||_0x9ee99e?_0x3dd772&&_0x9ee99e&&this[_0x1eafe0(0xd5)](_0xf00e93):this[_0x1eafe0(0xac)](_0xf00e93);}this[_0x1eafe0(0xa2)][_0x1eafe0(0x108)](),this[_0x1eafe0(0xdf)][_0x1eafe0(0x142)][_0x1eafe0(0x130)](_0x1eafe0(0xfc))[_0x1eafe0(0x126)](),this[_0x1eafe0(0x129)]();},0xa),this[_0x51b17a(0xa2)][_0x51b17a(0xc1)](_0x445bb8,_0x24640c);}[_0x28b3e4(0x120)](){const _0x4b215c=_0x28b3e4,_0x10a94e=this[_0x4b215c(0xdf)],_0x2e1e96=_0x10a94e[_0x4b215c(0x142)][_0x4b215c(0x130)](_0x4b215c(0xdc)),_0x4125a5=_0x10a94e[_0x4b215c(0x142)][_0x4b215c(0x130)](_0x4b215c(0x9a)),_0x1c6c79=_0x10a94e[_0x4b215c(0x142)][_0x4b215c(0x130)](_0x4b215c(0xfc)),_0x3b35cf=_0x10a94e[_0x4b215c(0x142)][_0x4b215c(0x130)](_0x4b215c(0x13b));this[_0x4b215c(0xe5)](),_0x1c6c79[_0x4b215c(0xe2)](()=>{const _0x113682=_0x4b215c,_0x20ace1=[];for(const [_0x17f8ea,_0xcfdbeb]of Array[_0x113682(0x11b)](this[_0x113682(0x136)])){const _0x19ae3b=_0x17f8ea[_0x113682(0xf2)](),_0x231665=[];for(const _0x52d392 of _0x19ae3b){if(!_0x52d392[_0x113682(0x146)])continue;if(_0x52d392[_0x113682(0x111)]){_0x231665[_0x113682(0x10c)](..._0x52d392[_0x113682(0x13f)]());continue;}const _0x3e87e3=_0x52d392[_0x113682(0x106)]();if(_0x231665[_0x113682(0xb0)]>0x0){const _0x4ab9bf=_0x231665[0x0][_0x113682(0x13d)](_0x3e87e3);if(_0x4ab9bf){_0x231665[0x0]=_0x4ab9bf;continue;}}_0x231665[_0x113682(0x10c)](_0x3e87e3);}_0x20ace1[_0x113682(0x10c)]([_0xcfdbeb[_0x113682(0xc0)],_0x231665]);}return _0x20ace1;}),this[_0x4b215c(0x144)](_0x2e1e96,_0x4b215c(0xe7),(_0x371ca1,_0x10add6)=>{const _0x2a65bb=_0x4b215c;this[_0x2a65bb(0x144)](_0x10add6,_0x2a65bb(0x10f),(_0x5edc46,_0x5e1c57,_0x18ae07,_0x2043e7)=>{const _0x31ebf7=_0x2a65bb;_0x10add6[_0x31ebf7(0x146)]&&(null==_0x18ae07?(this[_0x31ebf7(0x12f)](_0x2043e7[_0x31ebf7(0x132)]),this[_0x31ebf7(0xf6)](_0x10add6,!0x1)):(this[_0x31ebf7(0x12f)](_0x18ae07[_0x31ebf7(0x132)]),null==_0x2043e7&&this[_0x31ebf7(0xf6)](_0x10add6,!0x0)));}),null!==_0x10add6[_0x2a65bb(0x143)]?this[_0x2a65bb(0x12f)](_0x10add6[_0x2a65bb(0x132)]):this[_0x2a65bb(0xf6)](_0x10add6,!0x1);}),this[_0x4b215c(0x144)](_0x2e1e96,_0x4b215c(0xa1),(_0x535281,_0x56f93a,_0xb2ae82)=>{const _0x481934=_0x4b215c;this[_0x481934(0xc4)](_0x56f93a,_0x481934(0x10f)),this[_0x481934(0xa2)][_0x481934(0xb8)](_0x56f93a),this[_0x481934(0x136)][_0x481934(0x138)](_0x56f93a)&&this[_0x481934(0xd5)](_0x56f93a),_0xb2ae82&&this[_0x481934(0x12f)](_0xb2ae82[_0x481934(0x132)]);}),this[_0x4b215c(0x144)](_0x2e1e96,_0x4b215c(0xdb),(_0x4b957f,_0x17e9b1)=>{const _0xd18923=_0x4b215c;this[_0xd18923(0x12f)](_0x17e9b1);}),this[_0x4b215c(0x144)](_0x4125a5,_0x4b215c(0x13e),()=>{const _0x5b0402=_0x4b215c;this[_0x5b0402(0x129)]();}),this[_0x4b215c(0x144)](_0x3b35cf,_0x4b215c(0xb5),(_0x1d2423,{threadId:_0x58e21a,isFromAdapter:_0x282fe5})=>{const _0x2febbd=_0x4b215c;if(_0x282fe5||!_0x2e1e96[_0x2febbd(0xf9)](_0x58e21a))return;const _0x4e1de6=_0x2e1e96[_0x2febbd(0x13a)](_0x58e21a);this[_0x2febbd(0x136)][_0x2febbd(0x130)](_0x4e1de6)[_0x2febbd(0xc0)][_0x2febbd(0xff)][_0x2febbd(0x121)](-0x1);},{'priority':_0x4b215c(0xf4)}),this[_0x4b215c(0x113)]=this[_0x4b215c(0xdf)][_0x4b215c(0xd9)][_0x4b215c(0x130)](_0x4b215c(0x113));const _0x2e5212=this[_0x4b215c(0xdf)];this[_0x4b215c(0xf7)]=setInterval(()=>{const _0x3da849=_0x4b215c;let _0x5c0f3a;for(const _0x167515 in _0x2e5212){const _0x3d6c7c=_0x167515,_0x5917a1=_0x2e5212[_0x3d6c7c];if(_0x3da849(0xb2)==_0x5917a1||_0x3da849(0xee)==_0x5917a1||_0x3da849(0xda)==_0x5917a1||_0x3da849(0x10b)==_0x5917a1||_0x3da849(0x12b)==_0x5917a1||_0x3da849(0xd0)==_0x5917a1||_0x3da849(0xa6)==_0x5917a1||_0x3da849(0x11a)==_0x5917a1){delete _0x2e5212[_0x3d6c7c],_0x5c0f3a=_0x5917a1,clearInterval(this[_0x3da849(0xf7)]),this[_0x3da849(0xf7)]=void 0x0;break;}}_0x3da849(0xee)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0x135)),_0x3da849(0xda)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0x114)),_0x3da849(0x10b)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0x119)),_0x3da849(0x12b)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0xd7),_0x3da849(0xbc)),_0x3da849(0xd0)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0x11d)),_0x3da849(0xa6)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0xa3)),_0x3da849(0x11a)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0xd3));},0x3e8);}[_0x28b3e4(0x129)](){const _0x37fd2f=_0x28b3e4,_0x1eed1f=this[_0x37fd2f(0xdf)][_0x37fd2f(0x142)][_0x37fd2f(0x130)](_0x37fd2f(0x9a)),_0x2a4077=this[_0x37fd2f(0xdf)][_0x37fd2f(0x142)][_0x37fd2f(0x130)](_0x37fd2f(0xdc)),_0x4b3744=Array[_0x37fd2f(0x11b)](_0x1eed1f[_0x37fd2f(0x99)],_0x1ac8e7=>_0x1ac8e7[_0x37fd2f(0x11e)])[_0x37fd2f(0xef)](_0x40e278=>this[_0x37fd2f(0xb6)][_0x37fd2f(0x138)](_0x40e278)),_0x23c203=[];for(const _0x52cd3d of _0x4b3744){const _0x45f8d2=this[_0x37fd2f(0xb6)][_0x37fd2f(0x130)](_0x52cd3d)[_0x37fd2f(0xaf)][_0x37fd2f(0xf2)]();_0x23c203[_0x37fd2f(0x10c)](..._0x45f8d2[_0x37fd2f(0xe8)]((_0x25ecf0,_0x473313)=>[..._0x25ecf0,..._0x473313[_0x37fd2f(0x118)]()],[]));}_0x2a4077[_0x37fd2f(0xea)]=_0x23c203;}[_0x28b3e4(0xe5)](){const _0x478520=_0x28b3e4,_0x2a86fe=this[_0x478520(0xdf)],_0x45c4ea=_0x2a86fe[_0x478520(0xc3)],_0x2e7127=_0x371be7(_0x45c4ea,_0x478520(0xfa)),_0x1641e5=new _0x1e7c9e([{'type':_0x478520(0xe6),'model':new _0x32abe3({'withText':!0x0,'isToggleable':!0x0,'label':_0x2e7127,'commandName':_0x478520(0x137),'role':_0x478520(0x131)})},{'type':_0x478520(0xce)},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0xf1)),'commandName':_0x478520(0xd4),'role':_0x478520(0xa0)})},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0x133)),'commandName':_0x478520(0xb7),'role':_0x478520(0xa0)})},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0xe4)),'commandName':_0x478520(0xe1),'role':_0x478520(0xa0)})},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0x10a)),'commandName':_0x478520(0x107),'role':_0x478520(0xa0)})}]);_0x2a86fe[_0x478520(0x142)][_0x478520(0x138)](_0x478520(0xbe))&&_0x1641e5[_0x478520(0x9e)]([{'type':_0x478520(0xce)},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0xbf)),'commandName':_0x478520(0x11c),'role':_0x478520(0xa0)})}]);for(const _0x1ecd13 of _0x1641e5)if(ke(_0x1ecd13)){const _0x334c4a=_0x2a86fe[_0x478520(0xfd)][_0x478520(0x130)](_0x1ecd13[_0x478520(0xaf)][_0x478520(0x141)]);_0x1ecd13[_0x478520(0xaf)][_0x478520(0x10e)](_0x478520(0xf5),_0x478520(0xed))['to'](_0x334c4a,_0x478520(0xb1),_0x478520(0xed));}_0x2a86fe['ui'][_0x478520(0xab)][_0x478520(0x9f)](_0x478520(0x137),_0x19d65d=>this[_0x478520(0x102)](_0x19d65d,_0x1641e5,_0x2e7127)),_0x2a86fe['ui'][_0x478520(0xab)][_0x478520(0x9f)](_0x478520(0x9c),_0x51e0ab=>this[_0x478520(0x124)](_0x51e0ab,_0x1641e5,_0x2e7127));}[_0x28b3e4(0x102)](_0x32d8ee,_0x1ed77f,_0x51ac83){const _0x372650=_0x28b3e4,_0x27485e=_0x33353d(_0x32d8ee,_0x4c3a6f),_0x26d31c=this[_0x372650(0xdf)][_0x372650(0xfd)][_0x372650(0x130)](_0x372650(0x137));_0x27485e[_0x372650(0x97)][_0x372650(0xc1)]({'tooltip':_0x51ac83,'label':_0x51ac83,'icon':_0x5a24a5}),_0x27485e[_0x372650(0x97)][_0x372650(0x10e)](_0x372650(0xf5))['to'](_0x26d31c,_0x372650(0xb1)),_0x27485e[_0x372650(0x97)]['on'](_0x372650(0xa9),()=>{const _0x17a8b7=_0x372650;_0x26d31c[_0x17a8b7(0xa9)](),this[_0x17a8b7(0xdf)][_0x17a8b7(0x9b)][_0x17a8b7(0xc0)][_0x17a8b7(0x121)]();}),_0x505e6b(_0x27485e,_0x1ed77f,{'role':_0x372650(0xa4)});const _0x1142a7=[];for(const _0x187e80 of _0x1ed77f)ke(_0x187e80)&&_0x1142a7[_0x372650(0x10c)](this[_0x372650(0xdf)][_0x372650(0xfd)][_0x372650(0x130)](_0x187e80[_0x372650(0xaf)][_0x372650(0x141)]));const _0x51a314=_0x27485e[_0x372650(0x97)];return _0x51a314[_0x372650(0xa8)][_0x372650(0x12a)](_0x372650(0xed)),_0x51a314[_0x372650(0xe3)][_0x372650(0x12a)](_0x372650(0xed)),_0x51a314[_0x372650(0xa8)][_0x372650(0x10e)](_0x372650(0xed))['to'](_0x26d31c,_0x372650(0xed)),_0x51a314[_0x372650(0xe3)][_0x372650(0x10e)](_0x372650(0xed))[_0x372650(0x109)](_0x1142a7,_0x372650(0xed),(..._0x5a1d7d)=>_0x5a1d7d[_0x372650(0x115)](_0x43e06b=>_0x43e06b)),_0x27485e['on'](_0x372650(0xa9),_0x4744d4=>{const _0x1ec376=_0x372650;this[_0x1ec376(0xdf)][_0x1ec376(0xa9)](_0x4744d4[_0x1ec376(0xc8)][_0x1ec376(0x141)]),this[_0x1ec376(0xdf)][_0x1ec376(0x9b)][_0x1ec376(0xc0)][_0x1ec376(0x121)]();}),_0x27485e;}[_0x28b3e4(0x124)](_0x22091b,_0x880eee,_0x4ffd1f){const _0x2cd792=_0x28b3e4,_0x3f4af2=new _0x548cab(_0x22091b),_0x35bfca=this[_0x2cd792(0xdf)][_0x2cd792(0xfd)][_0x2cd792(0x130)](_0x2cd792(0x137));_0x3f4af2[_0x2cd792(0x97)][_0x2cd792(0xc1)]({'label':_0x4ffd1f,'icon':_0x5a24a5});const _0x376f4a=new _0x2aa210(_0x22091b);for(const _0x1da33f of _0x880eee){if(_0x2cd792(0xce)==_0x1da33f[_0x2cd792(0xb3)]){_0x376f4a[_0x2cd792(0x101)][_0x2cd792(0x9f)](new _0x247c48(_0x22091b));continue;}const _0x4db982=new _0x10c777(_0x22091b,_0x3f4af2),_0x273198=new _0x4d2ee3(_0x22091b),_0x52d258=_0x1da33f[_0x2cd792(0xaf)];_0x273198[_0x2cd792(0x10e)](...Object[_0x2cd792(0xec)](_0x52d258))['to'](_0x52d258),_0x273198[_0x2cd792(0xf0)](_0x2cd792(0xa9))['to'](_0x3f4af2),_0x273198['on'](_0x2cd792(0xa9),()=>{const _0x1072b1=_0x2cd792;this[_0x1072b1(0xdf)][_0x1072b1(0xa9)](_0x52d258[_0x1072b1(0x141)]),this[_0x1072b1(0xdf)][_0x1072b1(0x9b)][_0x1072b1(0xc0)][_0x1072b1(0x121)]();}),_0x4db982[_0x2cd792(0xb9)][_0x2cd792(0x9f)](_0x273198),_0x376f4a[_0x2cd792(0x101)][_0x2cd792(0x9f)](_0x4db982);}return _0x3f4af2[_0x2cd792(0x10e)](_0x2cd792(0xed))['to'](_0x35bfca,_0x2cd792(0xed)),_0x3f4af2[_0x2cd792(0xc6)][_0x2cd792(0xb9)][_0x2cd792(0x9f)](_0x376f4a),_0x3f4af2;}[_0x28b3e4(0xac)](_0x27ceb6){const _0x9be2b=_0x28b3e4,_0x434c29=this[_0x9be2b(0xdf)],_0x54f9e5=_0x434c29[_0x9be2b(0xd9)],_0x102cde=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0x9a)),_0xa9d697=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0x13b)),_0x373290=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0xfc)),_0x3900ff=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x47361c)['me'],_0x501ec8=_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x137))[_0x9be2b(0xb4)],_0x4833f1=_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x137))[_0x9be2b(0x139)],{CommentsListView:_0x31697a,CommentThreadInputView:_0x4f609f}=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0x123));let _0xab818,_0x3a3b0f,_0xff4b59;this[_0x9be2b(0x125)][_0x9be2b(0x138)](_0x27ceb6['id'])?(_0x3a3b0f=this[_0x9be2b(0x125)][_0x9be2b(0x130)](_0x27ceb6['id']),_0xab818=_0x3a3b0f[_0x9be2b(0xcf)]):(_0xab818=new _0x501ec8(_0x434c29[_0x9be2b(0xc3)],_0x27ceb6,_0x3900ff,{'disableComments':this[_0x9be2b(0x96)],'editorConfig':{..._0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0xd8)),'licenseKey':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x113))},'maxCommentsWhenCollapsed':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x105)),'maxThreadTotalWeight':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0xad)),'maxCommentCharsWhenCollapsed':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x100)),'formatDateTime':_0x583e9d(_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0xc3)),_0x434c29[_0x9be2b(0xc3)]),'CommentView':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0xf3))[_0x9be2b(0x13c)],'CommentsListView':_0x31697a,'CommentThreadInputView':_0x4f609f,'SuggestionView':_0x4833f1}),_0xab818[_0x9be2b(0x117)][_0x9be2b(0x116)]['on'](_0x9be2b(0xa9),()=>{const _0x2ac13b=_0x9be2b;_0x434c29[_0x2ac13b(0x9b)][_0x2ac13b(0xc0)][_0x2ac13b(0x121)]();}),_0xab818[_0x9be2b(0x117)][_0x9be2b(0x12c)]['on'](_0x9be2b(0xa9),()=>{const _0x94c564=_0x9be2b;_0x434c29[_0x94c564(0x9b)][_0x94c564(0xc0)][_0x94c564(0x121)]();}),_0x3a3b0f=_0x102cde[_0x9be2b(0xcb)](this[_0x9be2b(0xdf)][_0x9be2b(0xc3)],_0xab818),_0x3a3b0f[_0x9be2b(0x10e)](_0x9be2b(0x112))['to'](_0xab818,_0x9be2b(0x112)),_0x3a3b0f[_0x9be2b(0x10e)](_0x9be2b(0xb0))['to'](_0xab818),_0x3a3b0f[_0x9be2b(0x10e)](_0x9be2b(0xb3))['to'](_0xab818,_0x9be2b(0xb3),_0x1c434e=>_0x9be2b(0xae)+_0x1c434e),_0xab818['on'](_0x9be2b(0x127),()=>{const _0x24b4d6=_0x9be2b;_0xff4b59[_0x24b4d6(0xdd)](_0x24b4d6(0x127));}),this[_0x9be2b(0x125)][_0x9be2b(0xc1)](_0x27ceb6['id'],_0x3a3b0f));const _0x558f82=_0xa9d697[_0x9be2b(0xc9)](_0x27ceb6[_0x9be2b(0x10d)],_0xab818),_0x4b8024=new _0x27ab01(_0x434c29,_0x27ceb6,_0xab818,_0x558f82),_0x367d0c=_0x27ceb6[_0x9be2b(0xf2)]()[_0x9be2b(0xef)](_0x4114ee=>_0x4114ee[_0x9be2b(0x146)]);_0xab818[_0x9be2b(0xfb)]=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0xdc))[_0x9be2b(0xd6)][_0x9be2b(0x12e)](_0x367d0c),this[_0x9be2b(0x136)][_0x9be2b(0xc1)](_0x27ceb6,_0x4b8024),this[_0x9be2b(0xb6)][_0x9be2b(0xc1)](_0xab818,_0x4b8024),_0xff4b59=_0x102cde[_0x9be2b(0xd1)]({'view':_0x3a3b0f,'target':()=>{const _0x162120=_0x9be2b,_0x51b50f=[],_0x3a3c3b=_0x27ceb6[_0x162120(0xf2)]()[_0x162120(0xef)](_0x3514a7=>_0x3514a7[_0x162120(0x146)]);for(const _0xd70e1f of _0x3a3c3b)_0x51b50f[_0x162120(0x10c)](..._0xd70e1f[_0x162120(0x98)]());return _0x2d28f4(_0x434c29[_0x162120(0x9b)],_0x51b50f);},'type':()=>_0x9be2b(0xae)+_0x4b8024[_0x9be2b(0xc0)][_0x9be2b(0xb3)]}),_0xa9d697[_0x9be2b(0xbd)](_0xab818,_0xff4b59),_0x102cde[_0x9be2b(0x9f)](_0xff4b59),_0x373290[_0x9be2b(0x103)](_0xff4b59);}[_0x28b3e4(0xd5)](_0xdddd82){const _0x21d801=_0x28b3e4,_0x3190d2=this[_0x21d801(0xdf)][_0x21d801(0x142)][_0x21d801(0x130)](_0x21d801(0x13b)),_0x436548=this[_0x21d801(0xdf)][_0x21d801(0x142)][_0x21d801(0x130)](_0x21d801(0x9a)),_0x28a799=this[_0x21d801(0x136)][_0x21d801(0x130)](_0xdddd82),_0x38c19e=_0x28a799[_0x21d801(0xc0)],_0x25f502=_0x436548[_0x21d801(0xa7)](_0x38c19e);_0x3190d2[_0x21d801(0x122)](_0x38c19e),_0x25f502&&_0x436548[_0x21d801(0x134)](_0x25f502),this[_0x21d801(0x136)][_0x21d801(0xb8)](_0xdddd82),this[_0x21d801(0xb6)][_0x21d801(0xb8)](_0x38c19e),_0x28a799[_0x21d801(0xfe)]();}[_0x28b3e4(0x12f)](_0x597e10){const _0x405315=_0x28b3e4;if(!_0x597e10[_0x405315(0x146)]||!this[_0x405315(0x136)][_0x405315(0x138)](_0x597e10))return;const _0x2c9c59=this[_0x405315(0xdf)][_0x405315(0x142)][_0x405315(0x130)](_0x405315(0xdc)),_0x1c15ee=this[_0x405315(0x136)][_0x405315(0x130)](_0x597e10),_0x350c5b=_0x597e10[_0x405315(0xf2)]();_0x1c15ee[_0x405315(0xc0)][_0x405315(0xfb)]=_0x2c9c59[_0x405315(0xd6)][_0x405315(0x12e)](_0x350c5b);}[_0x28b3e4(0xfe)](){const _0x1f34e9=_0x28b3e4;for(const _0x71318a of this[_0x1f34e9(0x136)][_0x1f34e9(0xec)]())this[_0x1f34e9(0xd5)](_0x71318a);for(const _0x4672b8 of this[_0x1f34e9(0x125)][_0x1f34e9(0xc7)]())_0x4672b8[_0x1f34e9(0xcf)][_0x1f34e9(0xfe)]();super[_0x1f34e9(0xfe)](),this[_0x1f34e9(0xf7)]&&clearInterval(this[_0x1f34e9(0xf7)]);}}function ke(_0xe904ac){const _0x2f6da2=_0x28b3e4;return _0x2f6da2(0xaf)in _0xe904ac;}
|
|
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 {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59c6ef=_0x162e;(function(_0x1d186d,_0x19a67d){const _0x1de546=_0x162e,_0xb5d9ed=_0x1d186d();while(!![]){try{const _0x4a67d2=parseInt(_0x1de546(0x1ad))/0x1*(parseInt(_0x1de546(0x1ac))/0x2)+-parseInt(_0x1de546(0x18d))/0x3+-parseInt(_0x1de546(0x1a3))/0x4*(-parseInt(_0x1de546(0x19d))/0x5)+parseInt(_0x1de546(0x1aa))/0x6*(-parseInt(_0x1de546(0x197))/0x7)+parseInt(_0x1de546(0x19e))/0x8+-parseInt(_0x1de546(0x19b))/0x9*(-parseInt(_0x1de546(0x19c))/0xa)+parseInt(_0x1de546(0x18c))/0xb;if(_0x4a67d2===_0x19a67d)break;else _0xb5d9ed['push'](_0xb5d9ed['shift']());}catch(_0x4e3fa1){_0xb5d9ed['push'](_0xb5d9ed['shift']());}}}(_0x1ad8,0xac177));import{View as _0x525e66}from'ckeditor5/src/ui.js';function _0x162e(_0x41f468,_0x53f169){const _0x1ad846=_0x1ad8();return _0x162e=function(_0x162e39,_0x203f71){_0x162e39=_0x162e39-0x18c;let _0x5a272e=_0x1ad846[_0x162e39];return _0x5a272e;},_0x162e(_0x41f468,_0x53f169);}function _0x1ad8(){const _0x1506cf=['createElement','ck-track-changes-preview','174069xHApmc','dialogRects','previewDataReady','height','27otVJaU','229010frBXHH','153745xrmQqE','7827528CYOYPd','fire','className','push','innerHTML','56YmZXPl','content','data-ck-root-name','setTemplate','element','focus','style','132EOkeox','width','396468XuxlXV','2WnXHjQ','setAttribute','8498809PnyTzV','4184268lCezIZ','setPreviewData','ck-reset','options','render','div','classes','\x20ck-track-changes-preview__root-container'];_0x1ad8=function(){return _0x1506cf;};return _0x1ad8();}export class TrackChangesPreviewView extends _0x525e66{[_0x59c6ef(0x190)];constructor(_0x2bf3c6,_0x277bce){const _0x1ecc87=_0x59c6ef;super(_0x2bf3c6),this[_0x1ecc87(0x190)]=_0x277bce,this[_0x1ecc87(0x1a6)]({'tag':_0x1ecc87(0x192),'attributes':{'class':['ck',_0x1ecc87(0x18f),_0x1ecc87(0x196)],'tabindex':-0x1}});}[_0x59c6ef(0x191)](){const _0x2609ce=_0x59c6ef;super[_0x2609ce(0x191)](),this[_0x2609ce(0x1a7)][_0x2609ce(0x1a9)][_0x2609ce(0x1ab)]=this[_0x2609ce(0x190)][_0x2609ce(0x198)][_0x2609ce(0x1ab)]+'px',this[_0x2609ce(0x1a7)][_0x2609ce(0x1a9)][_0x2609ce(0x19a)]=this[_0x2609ce(0x190)][_0x2609ce(0x198)][_0x2609ce(0x19a)]+'px';}[_0x59c6ef(0x18e)](_0x300652,_0x29c7f2){const _0x46ee33=_0x59c6ef;if(!this[_0x46ee33(0x1a7)])return;const _0x434a3c=[];for(const [_0x1d3fe5,_0x164876]of _0x300652){const _0x2fed38=document[_0x46ee33(0x195)](_0x46ee33(0x192));_0x2fed38[_0x46ee33(0x1ae)](_0x46ee33(0x1a5),_0x1d3fe5),_0x2fed38[_0x46ee33(0x1a0)]=_0x164876[_0x46ee33(0x193)]+_0x46ee33(0x194),_0x2fed38[_0x46ee33(0x1a2)]=_0x164876[_0x46ee33(0x1a4)],_0x434a3c[_0x46ee33(0x1a1)](_0x2fed38);}_0x29c7f2(this[_0x46ee33(0x1a7)],_0x434a3c),this[_0x46ee33(0x1a7)][_0x46ee33(0x1a9)][_0x46ee33(0x19a)]='',this[_0x46ee33(0x19f)](_0x46ee33(0x199));}[_0x59c6ef(0x1a8)](){const _0x31d17a=_0x59c6ef;this[_0x31d17a(0x1a7)][_0x31d17a(0x1a8)]();}}
|