@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +4 -0
- package/build/ai.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-editor.css +147 -23
- package/dist/index.css +182 -24
- package/dist/index.js +4 -4
- 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 +5 -0
- package/lang/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +7 -3
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -227
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +0 -30
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +64 -9
- package/src/aicore/aiconnector.d.ts +13 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.d.ts +0 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.d.ts +0 -49
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +6 -16
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +6 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +1 -5
- package/theme/common/aiheader.css +1 -0
- package/theme/common/aitrackchanges.css +13 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11bde5=_0x2d6b;function _0x2d6b(_0x2541e7,_0x4f9be7){var _0x27e518=_0x27e5();return _0x2d6b=function(_0x2d6bfa,_0x4c3630){_0x2d6bfa=_0x2d6bfa-0x191;var _0x90437a=_0x27e518[_0x2d6bfa];return _0x90437a;},_0x2d6b(_0x2541e7,_0x4f9be7);}(function(_0x5bb115,_0x6f507d){var _0xc5cd51=_0x2d6b,_0x53a8d5=_0x5bb115();while(!![]){try{var _0x68aae6=-parseInt(_0xc5cd51(0x193))/0x1*(-parseInt(_0xc5cd51(0x195))/0x2)+-parseInt(_0xc5cd51(0x19b))/0x3*(-parseInt(_0xc5cd51(0x197))/0x4)+parseInt(_0xc5cd51(0x192))/0x5+parseInt(_0xc5cd51(0x199))/0x6+-parseInt(_0xc5cd51(0x196))/0x7+-parseInt(_0xc5cd51(0x19a))/0x8*(-parseInt(_0xc5cd51(0x191))/0x9)+-parseInt(_0xc5cd51(0x198))/0xa;if(_0x68aae6===_0x6f507d)break;else _0x53a8d5['push'](_0x53a8d5['shift']());}catch(_0x794acb){_0x53a8d5['push'](_0x53a8d5['shift']());}}}(_0x27e5,0xcec4b));function _0x27e5(){var _0x181587=['15nLynum','models','1896525tFldcY','2968765imVRIM','2887FaUOeH','_models','170ZnDkVZ','33096gSXFFA','183140LtyouN','21183320NmGfbR','10147110GmAmqB','8BlJeWR'];_0x27e5=function(){return _0x181587;};return _0x27e5();}import{AIReviewCheck as _0x1618ff}from'./aireviewcheck.js';export class AIReviewCheckCustom extends _0x1618ff{[_0x11bde5(0x194)]=[];get[_0x11bde5(0x19c)](){var _0x3cb218=_0x11bde5;return this[_0x3cb218(0x194)];}set[_0x11bde5(0x19c)](_0x367947){var _0x322081=_0x11bde5;this[_0x322081(0x194)]=_0x367947;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x52e3(){var _0x195b47=['_checks','3675808OwtHXv','6pAbxTA','_mapCheckDefinitions','find','getCheckById','custom','624104Pigmgf','map','1185518NYDIxE','checks','538nxBHwf','13261293aOTPKk','9702cajCUz','3011043JsBbRh','1920205ehcmCo'];_0x52e3=function(){return _0x195b47;};return _0x52e3();}var _0x5ba0d1=_0x2488;(function(_0x385224,_0xf8aaa0){var _0x2b117e=_0x2488,_0x204ef5=_0x385224();while(!![]){try{var _0x499314=-parseInt(_0x2b117e(0x171))/0x1+-parseInt(_0x2b117e(0x173))/0x2*(-parseInt(_0x2b117e(0x165))/0x3)+-parseInt(_0x2b117e(0x16f))/0x4+-parseInt(_0x2b117e(0x167))/0x5*(parseInt(_0x2b117e(0x16a))/0x6)+-parseInt(_0x2b117e(0x166))/0x7+parseInt(_0x2b117e(0x169))/0x8+parseInt(_0x2b117e(0x164))/0x9;if(_0x499314===_0xf8aaa0)break;else _0x204ef5['push'](_0x204ef5['shift']());}catch(_0x3d6b5a){_0x204ef5['push'](_0x204ef5['shift']());}}}(_0x52e3,0x9dffd));import{ObservableMixin as _0x22d04a}from'ckeditor5/src/utils.js';import{AIReviewCheck as _0x1f2365}from'./aireviewcheck.js';function _0x2488(_0x42230d,_0x4cc641){var _0x52e3f5=_0x52e3();return _0x2488=function(_0x24885f,_0x4faebb){_0x24885f=_0x24885f-0x164;var _0x103062=_0x52e3f5[_0x24885f];return _0x103062;},_0x2488(_0x42230d,_0x4cc641);}import{AIReviewCheckCustom as _0x5ae9d2}from'./aireviewcheckcustom.js';export class AIReviewCheckList extends _0x22d04a(){[_0x5ba0d1(0x168)];constructor(_0x45acd7){var _0xf4587e=_0x5ba0d1;super(),this[_0xf4587e(0x168)]=this[_0xf4587e(0x16b)](_0x45acd7);}get[_0x5ba0d1(0x172)](){var _0x58a2b0=_0x5ba0d1;return this[_0x58a2b0(0x168)];}[_0x5ba0d1(0x16d)](_0x17ddb7){var _0x5456ac=_0x5ba0d1;return this[_0x5456ac(0x172)][_0x5456ac(0x16c)](_0x1cd248=>_0x1cd248['id']===_0x17ddb7);}[_0x5ba0d1(0x16b)](_0x1e4eaa){var _0x25de77=_0x5ba0d1;return _0x1e4eaa[_0x25de77(0x170)](_0x538be5=>_0x25de77(0x16e)===_0x538be5['id']?new _0x5ae9d2(_0x538be5):new _0x1f2365(_0x538be5));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2fbec5=_0x9a9a;function _0x9a9a(_0x2e42b4,_0x2a2825){var _0x885933=_0x8859();return _0x9a9a=function(_0x9a9a6f,_0x35b720){_0x9a9a6f=_0x9a9a6f-0x1a2;var _0x53f59d=_0x885933[_0x9a9a6f];return _0x53f59d;},_0x9a9a(_0x2e42b4,_0x2a2825);}(function(_0x483a39,_0x1de519){var _0x4dd9a0=_0x9a9a,_0xd907be=_0x483a39();while(!![]){try{var _0x17dcd7=-parseInt(_0x4dd9a0(0x1ac))/0x1+parseInt(_0x4dd9a0(0x1a8))/0x2+-parseInt(_0x4dd9a0(0x1ad))/0x3*(-parseInt(_0x4dd9a0(0x1a5))/0x4)+-parseInt(_0x4dd9a0(0x1ab))/0x5+-parseInt(_0x4dd9a0(0x1a7))/0x6*(-parseInt(_0x4dd9a0(0x1a3))/0x7)+-parseInt(_0x4dd9a0(0x1aa))/0x8+parseInt(_0x4dd9a0(0x1a4))/0x9*(parseInt(_0x4dd9a0(0x1a6))/0xa);if(_0x17dcd7===_0x1de519)break;else _0xd907be['push'](_0xd907be['shift']());}catch(_0x53ef5b){_0xd907be['push'](_0xd907be['shift']());}}}(_0x8859,0xdaf9a));import{EmitterMixin as _0x58b352}from'ckeditor5/src/utils.js';function _0x8859(){var _0xc93953=['7tADNVw','810036ggNVKO','486496DTCZhF','50iQtTSI','9107016xmhAOu','306646FWNpGz','contentNew','1326280cwzVEq','2698990LDnXly','1734914CMaaEL','30vmmROC','contentInitial','documentVersion'];_0x8859=function(){return _0xc93953;};return _0x8859();}export class AIReviewCheckResult extends _0x58b352(){['id'];[_0x2fbec5(0x1a9)];[_0x2fbec5(0x1ae)];[_0x2fbec5(0x1a2)];constructor({id:_0x4771cc,contentNew:_0x57fca2,contentInitial:_0x467b42,documentVersion:_0x5d4cb5}){var _0x2105aa=_0x2fbec5;super(),this['id']=_0x4771cc,this[_0x2105aa(0x1a9)]=_0x57fca2,this[_0x2105aa(0x1ae)]=_0x467b42,this[_0x2105aa(0x1a2)]=_0x5d4cb5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3fee(){var _0x4cf951=['567980nXUCfo','3519NpQUFr','496612WcrMZk','active','1573418uvRZBZ','_data','context','_editorOperations','operations','isActivated','contentDiffed','15584NUQjHQ','1038948GGvTNg','status','set','operationsIsolated','parent','272280NyxotG','5PGrAhD','251643ykMtKX'];_0x3fee=function(){return _0x4cf951;};return _0x3fee();}var _0x41eecc=_0xbaf9;(function(_0x27ce3a,_0x14c5e0){var _0x51c7a8=_0xbaf9,_0xa1189f=_0x27ce3a();while(!![]){try{var _0x55d8ec=parseInt(_0x51c7a8(0x1fc))/0x1+-parseInt(_0x51c7a8(0x1ff))/0x2+-parseInt(_0x51c7a8(0x1fe))/0x3+parseInt(_0x51c7a8(0x201))/0x4*(-parseInt(_0x51c7a8(0x1fd))/0x5)+-parseInt(_0x51c7a8(0x1f7))/0x6+-parseInt(_0x51c7a8(0x1ef))/0x7+parseInt(_0x51c7a8(0x1f6))/0x8*(parseInt(_0x51c7a8(0x200))/0x9);if(_0x55d8ec===_0x14c5e0)break;else _0xa1189f['push'](_0xa1189f['shift']());}catch(_0x25edd9){_0xa1189f['push'](_0xa1189f['shift']());}}}(_0x3fee,0x23278));function _0xbaf9(_0x5664a8,_0x30ed4a){var _0x3fee14=_0x3fee();return _0xbaf9=function(_0xbaf934,_0x457697){_0xbaf934=_0xbaf934-0x1ef;var _0x30b84a=_0x3fee14[_0xbaf934];return _0x30b84a;},_0xbaf9(_0x5664a8,_0x30ed4a);}import{ObservableMixin as _0x5cdbd8}from'ckeditor5/src/utils.js';export class AIReviewCheckResultChange extends _0x5cdbd8(){['id'];[_0x41eecc(0x1fb)];[_0x41eecc(0x1f0)];[_0x41eecc(0x1f2)]=[];constructor(_0x50f818,_0x3255f8,_0x2212bb){var _0x584965=_0x41eecc;super(),this['id']=_0x50f818,this[_0x584965(0x1fb)]=_0x2212bb,this[_0x584965(0x1f0)]=_0x3255f8,this[_0x584965(0x1f9)](_0x584965(0x1f4),!0x1),this[_0x584965(0x1f9)](_0x584965(0x1f8),_0x584965(0x202));}get[_0x41eecc(0x1f5)](){var _0x3aee21=_0x41eecc;return this[_0x3aee21(0x1f0)][_0x3aee21(0x1f1)]();}get[_0x41eecc(0x1f3)](){var _0x17cb05=_0x41eecc;return this[_0x17cb05(0x1f0)][_0x17cb05(0x1f3)];}get[_0x41eecc(0x1fa)](){var _0x538efe=_0x41eecc;return this[_0x538efe(0x1f0)][_0x538efe(0x1fa)];}}
|
|
@@ -23,6 +23,7 @@ export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewC
|
|
|
23
23
|
* The check run ID.
|
|
24
24
|
*/
|
|
25
25
|
readonly id: string;
|
|
26
|
+
callId?: string;
|
|
26
27
|
constructor(documentData: AIDocumentData, sourceCheck: AIReviewCheck, connector: AIConnector, params?: Array<string>, args?: Record<string, any>);
|
|
27
28
|
/**
|
|
28
29
|
* Returns the document data obtained at the time of the check run.
|
|
@@ -58,6 +59,9 @@ export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewC
|
|
|
58
59
|
activateChange(changeId: string): void;
|
|
59
60
|
deactivateChange(): void;
|
|
60
61
|
forceReadyState(): void;
|
|
62
|
+
getAcceptedChangesCount(): number;
|
|
63
|
+
getTotalChangesCount(): number;
|
|
64
|
+
get reviewName(): string;
|
|
61
65
|
}
|
|
62
66
|
export type AIReviewCheckRunUpdatedEvent = {
|
|
63
67
|
name: 'reviewCheckRunUpdated';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x435f(_0x1a2a11,_0x1cd9de){const _0x5af16f=_0x5af1();return _0x435f=function(_0x435f6d,_0x170d62){_0x435f6d=_0x435f6d-0x104;let _0x2e3a7b=_0x5af16f[_0x435f6d];return _0x2e3a7b;},_0x435f(_0x1a2a11,_0x1cd9de);}const _0x276382=_0x435f;function _0x5af1(){const _0x114b13=['loading','_sourceCheck','size','forEach','12774280dIILER','_reviewParams','error-general','aborted','isChangeActive','message','_reviewArgs','callId','_currentError','processedResultsCount','_aiConnector','getStream','set','status','908014SiBwoT','_addReviewCheckResult','abortController','filter','reviewName','fire','_createApiRequest','active','clear','_checkIfFinished','initialized','getActiveChanges','error-chunk','finished','_documentData','dataId','1417564PMjMEO','markChangeAsAccepted','ready','version','6147924gZmbDA','unmodified','restart','documentData','isActivated','3RpQwWj','_results','markAllChangesAsAccepted','data','start','Not\x20implemented.','change:status','reviewCheckResultReady','90WWOqac','getAcceptedChangesCount','push','479381sVeMzR','get','reviewCheckRunUpdated','getContent','reviewCheckResultDeactivated','length','ai-request-aborted','reviewCheckResultAccepted','deactivateChange','error','11BpVouV','forceReadyState','9rMuFnL','reviewCheckResultActivated','_changes','rejected','change:isActivated','elements','textDelta','_activeRequest','addResultChanges','2349820lSRWOr','abort','markChangeAsRejected','4400888fcsRfZ','activateChange','accepted','reviewCheckResultRejected','event','includes','find','operation','title','reviewCheckResultAdded','getTotalChangesCount','3ztePCk','review-metadata'];_0x5af1=function(){return _0x114b13;};return _0x5af1();}(function(_0x1abad9,_0x2423e0){const _0x44e01e=_0x435f,_0x2c38b4=_0x1abad9();while(!![]){try{const _0x339725=parseInt(_0x44e01e(0x12c))/0x1*(parseInt(_0x44e01e(0x113))/0x2)+-parseInt(_0x44e01e(0x15a))/0x3*(-parseInt(_0x44e01e(0x123))/0x4)+-parseInt(_0x44e01e(0x14c))/0x5+parseInt(_0x44e01e(0x134))/0x6*(parseInt(_0x44e01e(0x137))/0x7)+-parseInt(_0x44e01e(0x14f))/0x8*(parseInt(_0x44e01e(0x143))/0x9)+-parseInt(_0x44e01e(0x105))/0xa+-parseInt(_0x44e01e(0x141))/0xb*(-parseInt(_0x44e01e(0x127))/0xc);if(_0x339725===_0x2423e0)break;else _0x2c38b4['push'](_0x2c38b4['shift']());}catch(_0x5f4978){_0x2c38b4['push'](_0x2c38b4['shift']());}}}(_0x5af1,0xea011));import{ObservableMixin as _0xcb3fe3,uid as _0x28d9b8}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x5b4cdd}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x1eaf4d}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0xcb3fe3(){['id']=_0x28d9b8();[_0x276382(0x12d)]=new Map();[_0x276382(0x145)]=[];[_0x276382(0x121)];[_0x276382(0x15d)];[_0x276382(0x10f)];[_0x276382(0x106)];[_0x276382(0x10b)];[_0x276382(0x14a)]=null;[_0x276382(0x10d)];[_0x276382(0x10c)];constructor(_0x14e34f,_0x2ffa9d,_0x45760e,_0x4fed14,_0x462871){const _0x551792=_0x276382;super(),this[_0x551792(0x121)]=_0x14e34f,this[_0x551792(0x15d)]=_0x2ffa9d,this[_0x551792(0x10f)]=_0x45760e,this[_0x551792(0x106)]=_0x4fed14,this[_0x551792(0x10b)]=_0x462871,this['on'](_0x551792(0x132),(_0x35ad98,_0x2d4d79,_0x9addde)=>{const _0x3b4c21=_0x551792;this[_0x3b4c21(0x118)](_0x3b4c21(0x139),{'status':_0x9addde,'run':this,'error':this[_0x3b4c21(0x10d)]});}),this[_0x551792(0x111)](_0x551792(0x112),_0x551792(0x11d));}get[_0x276382(0x12a)](){const _0x3950b9=_0x276382;return this[_0x3950b9(0x121)];}get[_0x276382(0x10e)](){const _0x4939e=_0x276382;return this[_0x4939e(0x12d)][_0x4939e(0x15e)];}get[_0x276382(0x157)](){const _0x2a564a=_0x276382;return this[_0x2a564a(0x15d)][_0x2a564a(0x157)];}async[_0x276382(0x130)](){const _0x53acc9=_0x276382;this[_0x53acc9(0x112)]=_0x53acc9(0x15c),this[_0x53acc9(0x10d)]=void 0x0;try{this[_0x53acc9(0x14a)]=this[_0x53acc9(0x119)]();const _0x472424=await this[_0x53acc9(0x14a)][_0x53acc9(0x110)]();this[_0x53acc9(0x112)]=_0x53acc9(0x12f);for await(const _0x5dfdc5 of _0x472424)_0x53acc9(0x128)!==_0x5dfdc5[_0x53acc9(0x12f)][_0x53acc9(0x156)]&&(_0x53acc9(0x140)!==_0x5dfdc5[_0x53acc9(0x12f)][_0x53acc9(0x156)]?_0x53acc9(0x15b)!==_0x5dfdc5[_0x53acc9(0x153)]?this[_0x53acc9(0x114)](_0x5dfdc5[_0x53acc9(0x12f)][_0x53acc9(0x122)],_0x5dfdc5[_0x53acc9(0x12f)][_0x53acc9(0x149)]):this[_0x53acc9(0x10c)]=_0x5dfdc5[_0x53acc9(0x12f)][_0x53acc9(0x10c)]:this[_0x53acc9(0x112)]=_0x53acc9(0x11f));_0x53acc9(0x11f)!==this[_0x53acc9(0x112)]&&(0x0===this[_0x53acc9(0x12d)][_0x53acc9(0x15e)]?this[_0x53acc9(0x112)]=_0x53acc9(0x128):this[_0x53acc9(0x112)]=_0x53acc9(0x125));}catch(_0x27baa5){this[_0x53acc9(0x10d)]=_0x27baa5,_0x27baa5 instanceof Error&&_0x27baa5[_0x53acc9(0x10a)][_0x53acc9(0x154)](_0x53acc9(0x13d))?this[_0x53acc9(0x112)]=_0x53acc9(0x108):this[_0x53acc9(0x112)]=_0x53acc9(0x107);}finally{this[_0x53acc9(0x14a)]=null;}}async[_0x276382(0x129)](){const _0x3530f3=_0x276382;this[_0x3530f3(0x12d)][_0x3530f3(0x11b)](),this[_0x3530f3(0x145)][_0x3530f3(0x13c)]=0x0,this[_0x3530f3(0x10d)]=void 0x0,await this[_0x3530f3(0x130)]();}[_0x276382(0x14b)](_0x58206c,_0x182516){const _0x4146b1=_0x276382,_0x5e29f5=this[_0x4146b1(0x12d)][_0x4146b1(0x138)](_0x58206c);if(!_0x5e29f5)return;const _0x4d29fe=[];_0x182516[_0x4146b1(0x104)]((_0x38c211,_0x2f8244)=>{const _0x1b7a73=_0x4146b1,_0x2d020f=new _0x1eaf4d(_0x5e29f5['id']+'-'+_0x2f8244,_0x38c211,_0x5e29f5);_0x2d020f['on'](_0x1b7a73(0x132),()=>{const _0x18140a=_0x1b7a73;_0x18140a(0x151)===_0x2d020f[_0x18140a(0x112)]?this[_0x18140a(0x118)](_0x18140a(0x13e),{'change':_0x2d020f}):_0x18140a(0x146)===_0x2d020f[_0x18140a(0x112)]&&this[_0x18140a(0x118)](_0x18140a(0x152),{'change':_0x2d020f});}),_0x2d020f['on'](_0x1b7a73(0x147),()=>{const _0x55df37=_0x1b7a73;_0x2d020f[_0x55df37(0x12b)]?this[_0x55df37(0x118)](_0x55df37(0x144),{'change':_0x2d020f}):this[_0x55df37(0x118)](_0x55df37(0x13b),{'change':_0x2d020f});}),this[_0x1b7a73(0x145)][_0x1b7a73(0x136)](_0x2d020f),_0x4d29fe[_0x1b7a73(0x136)](_0x2d020f);}),this[_0x4146b1(0x118)](_0x4146b1(0x133),{'changes':_0x4d29fe,'result':_0x5e29f5,'source':this});}[_0x276382(0x14d)](){const _0x553b2c=_0x276382;this[_0x553b2c(0x14a)]&&(this[_0x553b2c(0x14a)][_0x553b2c(0x115)][_0x553b2c(0x14d)](),this[_0x553b2c(0x14a)]=null,this[_0x553b2c(0x112)]=_0x553b2c(0x108));}[_0x276382(0x109)](_0x154ef9){const _0x4f8060=_0x276382,_0x1ce3cb=this[_0x4f8060(0x145)][_0x4f8060(0x155)](_0x17d07e=>_0x17d07e['id']===_0x154ef9);return!(!_0x1ce3cb||_0x4f8060(0x11a)!==_0x1ce3cb[_0x4f8060(0x112)]);}[_0x276382(0x11e)](){const _0x111eb0=_0x276382;return this[_0x111eb0(0x145)][_0x111eb0(0x116)](_0x2bf219=>_0x111eb0(0x11a)===_0x2bf219[_0x111eb0(0x112)]);}[_0x276382(0x12e)](){const _0x428046=_0x276382;for(const _0x5415cc of this[_0x428046(0x145)])_0x428046(0x11a)===_0x5415cc[_0x428046(0x112)]&&(_0x5415cc[_0x428046(0x112)]=_0x428046(0x151));this[_0x428046(0x11c)]();}[_0x276382(0x124)](_0x431e10){const _0x5909f8=_0x276382,_0x21a2dc=this[_0x5909f8(0x145)][_0x5909f8(0x155)](_0x44e2f4=>_0x44e2f4['id']===_0x431e10);_0x21a2dc&&_0x5909f8(0x11a)===_0x21a2dc[_0x5909f8(0x112)]&&(_0x21a2dc[_0x5909f8(0x112)]=_0x5909f8(0x151)),this[_0x5909f8(0x11c)]();}[_0x276382(0x14e)](_0x2880f0){const _0x4171f0=_0x276382,_0x53f918=this[_0x4171f0(0x145)][_0x4171f0(0x155)](_0x3bb9be=>_0x3bb9be['id']===_0x2880f0);_0x53f918&&_0x4171f0(0x11a)===_0x53f918[_0x4171f0(0x112)]&&(_0x53f918[_0x4171f0(0x112)]=_0x4171f0(0x146)),this[_0x4171f0(0x11c)]();}[_0x276382(0x150)](_0x38f3e1){const _0x24a090=_0x276382;this[_0x24a090(0x145)][_0x24a090(0x116)](_0x551648=>_0x551648[_0x24a090(0x12b)]&&_0x551648['id']!==_0x38f3e1)[_0x24a090(0x104)](_0x44c892=>{const _0x46706d=_0x24a090;_0x44c892[_0x46706d(0x12b)]=!0x1;});const _0xac0c76=this[_0x24a090(0x145)][_0x24a090(0x155)](_0x1e47c3=>_0x1e47c3['id']===_0x38f3e1);_0xac0c76&&(_0xac0c76[_0x24a090(0x12b)]=!0x0);}[_0x276382(0x13f)](){const _0x4c5331=_0x276382;this[_0x4c5331(0x145)][_0x4c5331(0x116)](_0x385d1d=>_0x385d1d[_0x4c5331(0x12b)])[_0x4c5331(0x104)](_0xa19b27=>{const _0x5ae000=_0x4c5331;_0xa19b27[_0x5ae000(0x12b)]=!0x1;});}[_0x276382(0x142)](){const _0x500937=_0x276382;this[_0x500937(0x112)]=_0x500937(0x125);}[_0x276382(0x114)](_0x7a3bc6,_0x4a8f71){const _0x5eb8b6=_0x276382,_0x378afa=this[_0x5eb8b6(0x121)][_0x5eb8b6(0x148)][_0x5eb8b6(0x138)](_0x7a3bc6);if(!_0x378afa)return;const _0x56e873=_0x378afa[_0x5eb8b6(0x13a)]();if(_0x56e873===_0x4a8f71)return;const _0x1601b2=new _0x5b4cdd({'id':_0x7a3bc6,'contentInitial':_0x56e873,'contentNew':_0x4a8f71,'documentVersion':this[_0x5eb8b6(0x121)][_0x5eb8b6(0x126)]});this[_0x5eb8b6(0x12d)][_0x5eb8b6(0x111)](_0x1601b2['id'],_0x1601b2),this[_0x5eb8b6(0x118)](_0x5eb8b6(0x158),{'result':_0x1601b2,'source':this});}[_0x276382(0x11c)](){const _0x4bb3eb=_0x276382;if(_0x4bb3eb(0x125)!==this[_0x4bb3eb(0x112)])return;0x0===this[_0x4bb3eb(0x145)][_0x4bb3eb(0x116)](_0x250f1f=>_0x4bb3eb(0x11a)===_0x250f1f[_0x4bb3eb(0x112)])[_0x4bb3eb(0x13c)]&&(this[_0x4bb3eb(0x112)]=_0x4bb3eb(0x120));}[_0x276382(0x119)](){const _0x145f4d=_0x276382;throw new Error(_0x145f4d(0x131));}[_0x276382(0x135)](){const _0x30e63d=_0x276382;return this[_0x30e63d(0x145)][_0x30e63d(0x116)](_0x4b5218=>_0x30e63d(0x151)===_0x4b5218[_0x30e63d(0x112)])[_0x30e63d(0x13c)];}[_0x276382(0x159)](){const _0x572df3=_0x276382;return this[_0x572df3(0x145)][_0x572df3(0x13c)];}get[_0x276382(0x117)](){const _0xe55bac=_0x276382;return this[_0xe55bac(0x15d)]['id'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0xc17672=_0x17d2;(function(_0x27eeb7,_0x3d89db){var _0x4b01fb=_0x17d2,_0x271864=_0x27eeb7();while(!![]){try{var _0x531c8b=parseInt(_0x4b01fb(0xaa))/0x1*(-parseInt(_0x4b01fb(0xac))/0x2)+parseInt(_0x4b01fb(0xad))/0x3+-parseInt(_0x4b01fb(0xa3))/0x4*(-parseInt(_0x4b01fb(0xa8))/0x5)+parseInt(_0x4b01fb(0xb6))/0x6*(parseInt(_0x4b01fb(0xab))/0x7)+parseInt(_0x4b01fb(0xa7))/0x8*(parseInt(_0x4b01fb(0xb5))/0x9)+parseInt(_0x4b01fb(0xa5))/0xa+-parseInt(_0x4b01fb(0xb3))/0xb*(parseInt(_0x4b01fb(0xae))/0xc);if(_0x531c8b===_0x3d89db)break;else _0x271864['push'](_0x271864['shift']());}catch(_0x489a97){_0x271864['push'](_0x271864['shift']());}}}(_0x47c5,0xc2ff5));function _0x17d2(_0x2e56c8,_0x370c62){var _0x47c568=_0x47c5();return _0x17d2=function(_0x17d29c,_0x38cf12){_0x17d29c=_0x17d29c-0xa3;var _0x5e3634=_0x47c568[_0x17d29c];return _0x5e3634;},_0x17d2(_0x2e56c8,_0x370c62);}function _0x47c5(){var _0xf30525=['100eomomU','1556517aZRUad','12LYVaRF','_createApiRequest','_aiConnector','callCustomReview','content','25033899mXjdyx','title','315IVJbOr','10326ztRGHF','1050904DThXGw','_prompt','2538830UsPXTe','_model','75496EgoFLX','20psNSzU','_documentData','11086sPvxte','5999MwrEsX'];_0x47c5=function(){return _0xf30525;};return _0x47c5();}import{AIReviewCheckRun as _0x130363}from'./aireviewcheckrun.js';export class AIReviewCustomCheckRun extends _0x130363{[_0xc17672(0xa4)];[_0xc17672(0xa6)];constructor(_0x479d47,_0x392cd5,_0x49ddbc,_0xa5b0fe,_0xc4153d){var _0x5b7e60=_0xc17672;super(_0x49ddbc,_0xa5b0fe,_0xc4153d),this[_0x5b7e60(0xa4)]=_0x479d47,this[_0x5b7e60(0xa6)]=_0x392cd5;}get[_0xc17672(0xb4)](){var _0x34f8eb=_0xc17672;return this[_0x34f8eb(0xa4)];}[_0xc17672(0xaf)](){var _0x5a342f=_0xc17672;return this[_0x5a342f(0xb0)][_0x5a342f(0xb1)]({'content':this[_0x5a342f(0xa9)][_0x5a342f(0xb2)],'prompt':this[_0x5a342f(0xa4)],'model':this[_0x5a342f(0xa6)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2d1dd7=_0x3f22;(function(_0x33b6f5,_0x19495f){const _0x4ea53f=_0x3f22,_0x4e469c=_0x33b6f5();while(!![]){try{const _0x3a4598=parseInt(_0x4ea53f(0x13f))/0x1+parseInt(_0x4ea53f(0x140))/0x2*(-parseInt(_0x4ea53f(0x13e))/0x3)+parseInt(_0x4ea53f(0x138))/0x4*(-parseInt(_0x4ea53f(0x135))/0x5)+parseInt(_0x4ea53f(0x136))/0x6*(-parseInt(_0x4ea53f(0x13a))/0x7)+parseInt(_0x4ea53f(0x13d))/0x8+-parseInt(_0x4ea53f(0x131))/0x9*(parseInt(_0x4ea53f(0x13c))/0xa)+parseInt(_0x4ea53f(0x139))/0xb;if(_0x3a4598===_0x19495f)break;else _0x4e469c['push'](_0x4e469c['shift']());}catch(_0xc36b27){_0x4e469c['push'](_0x4e469c['shift']());}}}(_0x406f,0x86eda));import{EmitterMixin as _0x2a3b71}from'ckeditor5/src/utils.js';function _0x3f22(_0x4b9fd2,_0x501a37){const _0x406f66=_0x406f();return _0x3f22=function(_0x3f22cf,_0x224a82){_0x3f22cf=_0x3f22cf-0x130;let _0x2f4b0f=_0x406f66[_0x3f22cf];return _0x2f4b0f;},_0x3f22(_0x4b9fd2,_0x501a37);}export class AIReviewModels extends _0x2a3b71(){[_0x2d1dd7(0x130)]=[];[_0x2d1dd7(0x133)];constructor({connector:_0x130e2c}){const _0x15677d=_0x2d1dd7;super(),this[_0x15677d(0x133)]=_0x130e2c;}async[_0x2d1dd7(0x134)](){const _0x144b20=_0x2d1dd7;if(!this[_0x144b20(0x130)][_0x144b20(0x137)])try{const _0x3ff701=this[_0x144b20(0x133)][_0x144b20(0x141)](),_0x1e82f1=await _0x3ff701[_0x144b20(0x132)]();this[_0x144b20(0x130)]=_0x1e82f1[_0x144b20(0x13b)];}catch{}return this[_0x144b20(0x130)];}}function _0x406f(){const _0x59535f=['825702TXifda','248260jdmdia','getModels','_modelList','99OeSLAq','list','_connector','getAll','30ANifHX','1840008pxTycX','length','199632GDnisB','2435741pYyXOJ','7EGyBqp','items','197630hOtIvp','3625376XMEcSZ','3YVzXNr'];_0x406f=function(){return _0x59535f;};return _0x406f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2794c9=_0x509f;(function(_0x291492,_0xdea6b){const _0x221ae4=_0x509f,_0x4eac21=_0x291492();while(!![]){try{const _0x49f84c=parseInt(_0x221ae4(0x144))/0x1+-parseInt(_0x221ae4(0x13c))/0x2+-parseInt(_0x221ae4(0x133))/0x3+parseInt(_0x221ae4(0x135))/0x4*(-parseInt(_0x221ae4(0x146))/0x5)+-parseInt(_0x221ae4(0x12f))/0x6*(-parseInt(_0x221ae4(0x12c))/0x7)+-parseInt(_0x221ae4(0x131))/0x8+-parseInt(_0x221ae4(0x12e))/0x9*(-parseInt(_0x221ae4(0x12d))/0xa);if(_0x49f84c===_0xdea6b)break;else _0x4eac21['push'](_0x4eac21['shift']());}catch(_0xd9417f){_0x4eac21['push'](_0x4eac21['shift']());}}}(_0x5a9d,0xedea5));function _0x509f(_0x1e5f14,_0x15497b){const _0x5a9de0=_0x5a9d();return _0x509f=function(_0x509f8c,_0x55e4a4){_0x509f8c=_0x509f8c-0x12b;let _0x4e5591=_0x5a9de0[_0x509f8c];return _0x4e5591;},_0x509f(_0x1e5f14,_0x15497b);}import{AIReviewCheckRun as _0x340e24}from'./aireviewcheckrun.js';function _0x5a9d(){const _0x1c9499=['title','length','_documentData','605167XZKpjU','useArgs','318830ujrsSI','join','7bNXZsX','121630RUoDXg','342TGLnvl','11565846WyKQXY','push','13665360nMwIBd','content','538089bUIrTZ','label','4ciWxOY','options','data','_createApiRequest','find','_reviewParams','_sourceCheck','138404EFkIiQ','_composeReviewName','callSystemReview','_aiConnector','_reviewArgs'];_0x5a9d=function(){return _0x1c9499;};return _0x5a9d();}export class AIReviewSystemCheckRun extends _0x340e24{get[_0x2794c9(0x141)](){const _0x5de271=_0x2794c9;if(!this[_0x5de271(0x13a)]||0x0===this[_0x5de271(0x13a)][_0x5de271(0x142)]||this[_0x5de271(0x13b)][_0x5de271(0x145)])return this[_0x5de271(0x13b)][_0x5de271(0x141)];const _0x396820=[];if(this[_0x5de271(0x13a)][_0x5de271(0x142)]>0x0&&this[_0x5de271(0x13b)][_0x5de271(0x136)])for(let _0x51b8d5=0x0;_0x51b8d5<this[_0x5de271(0x13a)][_0x5de271(0x142)];_0x51b8d5++){if(!this[_0x5de271(0x13a)][_0x51b8d5]||!this[_0x5de271(0x13b)][_0x5de271(0x136)][_0x51b8d5])continue;const _0x37843b=this[_0x5de271(0x13b)][_0x5de271(0x136)][_0x51b8d5],_0xee2947=_0x37843b[_0x5de271(0x137)]?.[_0x5de271(0x139)](_0x4dcbe0=>_0x4dcbe0['id']===this[_0x5de271(0x13a)][_0x51b8d5]);_0xee2947&&_0x396820[_0x5de271(0x130)](_0xee2947[_0x5de271(0x134)]);}return this[_0x5de271(0x13b)][_0x5de271(0x141)]+':\x20'+_0x396820[_0x5de271(0x12b)](',\x20');}[_0x2794c9(0x138)](){const _0x5a7bbf=_0x2794c9;return this[_0x5a7bbf(0x13f)][_0x5a7bbf(0x13e)]({'reviewName':this[_0x5a7bbf(0x13d)](),'content':this[_0x5a7bbf(0x143)][_0x5a7bbf(0x132)],'args':this[_0x5a7bbf(0x140)]});}[_0x2794c9(0x13d)](){const _0x537065=_0x2794c9;return!this[_0x537065(0x13a)]||0x0===this[_0x537065(0x13a)][_0x537065(0x142)]||this[_0x537065(0x13b)][_0x537065(0x145)]?this[_0x537065(0x13b)]['id']:[this[_0x537065(0x13b)]['id'],...this[_0x537065(0x13a)]][_0x537065(0x12b)]('-');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x34e51c=_0x12b3;(function(_0x543969,_0x34ec9d){var _0x3ba214=_0x12b3,_0x32312d=_0x543969();while(!![]){try{var _0x102593=parseInt(_0x3ba214(0x115))/0x1+-parseInt(_0x3ba214(0x117))/0x2*(parseInt(_0x3ba214(0x110))/0x3)+-parseInt(_0x3ba214(0x119))/0x4+parseInt(_0x3ba214(0x10b))/0x5*(-parseInt(_0x3ba214(0x111))/0x6)+parseInt(_0x3ba214(0x103))/0x7*(parseInt(_0x3ba214(0x10f))/0x8)+-parseInt(_0x3ba214(0x101))/0x9+parseInt(_0x3ba214(0x114))/0xa;if(_0x102593===_0x34ec9d)break;else _0x32312d['push'](_0x32312d['shift']());}catch(_0x418570){_0x32312d['push'](_0x32312d['shift']());}}}(_0x19ee,0x338aa));import{TextareaView as _0x1e68f9}from'ckeditor5/src/ui.js';function _0x12b3(_0x158a95,_0x204900){var _0x19ee48=_0x19ee();return _0x12b3=function(_0x12b376,_0x4d45aa){_0x12b376=_0x12b376-0xff;var _0x529115=_0x19ee48[_0x12b376];return _0x529115;},_0x12b3(_0x158a95,_0x204900);}export class AIReviewModePromptInputView extends _0x1e68f9{static [_0x34e51c(0x112)]=0x1;static [_0x34e51c(0x116)]=0xc;constructor(_0xa1fd80){var _0x2360be=_0x34e51c;super(_0xa1fd80),this[_0x2360be(0x10e)](_0x2360be(0x107),!0x0),this[_0x2360be(0x104)]=AIReviewModePromptInputView[_0x2360be(0x112)],this[_0x2360be(0x118)]=AIReviewModePromptInputView[_0x2360be(0x116)],this[_0x2360be(0x10d)]({'attributes':{'id':_0x2360be(0x106),'class':['ck',_0x2360be(0x105)]}}),this[_0x2360be(0x10d)]({'on':{'click':this[_0x2360be(0xff)]['to'](_0x19b6c8=>{var _0x3ee6f4=_0x2360be;_0x19b6c8[_0x3ee6f4(0x10a)]();})}});}[_0x34e51c(0x102)](){var _0x936fa6=_0x34e51c;super[_0x936fa6(0x102)](),this['on'](_0x936fa6(0x100),()=>{var _0x463eaf=_0x936fa6;this[_0x463eaf(0x107)]=''===this[_0x463eaf(0x10c)][_0x463eaf(0x108)]?.[_0x463eaf(0x113)]();});}[_0x34e51c(0x109)](_0x5a4245){var _0x250fed=_0x34e51c;this[_0x250fed(0x10e)](_0x250fed(0x11a),_0x5a4245);}}function _0x19ee(){var _0x287b39=['maxRows','1181760SgMAyX','placeholder','bindTemplate','update','2817252cRUbKf','render','259lxOYlb','minRows','ck-review-mode__prompt-input','ai-review-mode-prompt-input','isEmpty','value','setPlaceholderText','stopPropagation','5CZEWhD','element','extendTemplate','set','40840xCHTLB','1596ICzgsi','718836ePaqXH','MIN_ROWS','trim','9475860vgLnwD','160953LEDhvn','MAX_ROWS','1346cOxZnq'];_0x19ee=function(){return _0x287b39;};return _0x19ee();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x52a66c=_0x5f08;(function(_0x5cb07b,_0x3298e9){const _0x56a3a9=_0x5f08,_0x4d1985=_0x5cb07b();while(!![]){try{const _0x1a4496=-parseInt(_0x56a3a9(0x1fb))/0x1+parseInt(_0x56a3a9(0x210))/0x2+-parseInt(_0x56a3a9(0x1f4))/0x3+parseInt(_0x56a3a9(0x206))/0x4*(-parseInt(_0x56a3a9(0x203))/0x5)+-parseInt(_0x56a3a9(0x1ef))/0x6*(-parseInt(_0x56a3a9(0x1f1))/0x7)+-parseInt(_0x56a3a9(0x204))/0x8+parseInt(_0x56a3a9(0x20c))/0x9;if(_0x1a4496===_0x3298e9)break;else _0x4d1985['push'](_0x4d1985['shift']());}catch(_0x410dd0){_0x4d1985['push'](_0x4d1985['shift']());}}}(_0x20d7,0x831f6));import{BalloonPanelView as _0x2ba94d,View as _0x2f87cb,clickOutsideHandler as _0x405684}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x50d3a4}from'./aireviewmodechecklistitemresultview.js';function _0x5f08(_0x75de7d,_0x5399e9){const _0x20d78a=_0x20d7();return _0x5f08=function(_0x5f0884,_0xfe1b79){_0x5f0884=_0x5f0884-0x1ee;let _0x59f1a1=_0x20d78a[_0x5f0884];return _0x59f1a1;},_0x5f08(_0x75de7d,_0x5399e9);}function _0x20d7(){const _0x1d3d19=['changeId','_createContentView','967119zsTwrK','resultItemView','extendTemplate','delegate','element','resultResponseView','add','841962uIawgz','updateContent','dismissChange','set','content','showBalloon','unpin','locale','5LRyMBn','2355608rXeHyR','hide','1204132shfSAq','setTemplate','isVisible','show','ck-ai-review-mode__suggestion-text','ck-reset','16963713qtTYRF','pin','acceptChange','fire','198910GyJyxh','innerHTML','div','deactivateChange','contentDiffed','ck-ai-review-mode-balloon-panel-suggestion','ck-content','630fKJDAc','hideBalloon','20839dXAeNb'];_0x20d7=function(){return _0x1d3d19;};return _0x20d7();}import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0x2ba94d{[_0x52a66c(0x1f5)];constructor(_0x590c72,_0x54b35d){const _0x1280b6=_0x52a66c;super(_0x590c72),this[_0x1280b6(0x1fe)]({'isVisible':!0x1,'position':'se','class':null,'top':0x0,'left':0x0}),this[_0x1280b6(0x1f6)]({'tag':_0x1280b6(0x212),'attributes':{'class':[_0x1280b6(0x20b)],'tabindex':'-1'}}),this[_0x1280b6(0x1ff)][_0x1280b6(0x1fa)](this[_0x1280b6(0x1f3)]()),_0x54b35d[_0x1280b6(0x1fa)](this),_0x405684({'emitter':this,'activator':()=>this[_0x1280b6(0x208)],'contextElements':[this[_0x1280b6(0x1f8)]],'callback':()=>{const _0x2a0464=_0x1280b6;this[_0x2a0464(0x1f0)](),this[_0x2a0464(0x213)]();}});}[_0x52a66c(0x1fc)](_0x448a67){const _0x2b297d=_0x52a66c;this[_0x2b297d(0x1f5)][_0x2b297d(0x1f2)]=_0x448a67['id'],this[_0x2b297d(0x1f5)][_0x2b297d(0x1f9)][_0x2b297d(0x1f8)][_0x2b297d(0x211)]=_0x448a67[_0x2b297d(0x214)];}[_0x52a66c(0x200)](_0x117b07,_0x1eaa0b){const _0x556ffd=_0x52a66c;this[_0x556ffd(0x1fc)](_0x117b07),this[_0x556ffd(0x209)](),this[_0x556ffd(0x20d)]({'target':_0x1eaa0b});}[_0x52a66c(0x1f0)](){const _0x39fca0=_0x52a66c;this[_0x39fca0(0x205)](),this[_0x39fca0(0x201)]();}[_0x52a66c(0x213)](){const _0x5d4f3e=_0x52a66c;this[_0x5d4f3e(0x20f)](_0x5d4f3e(0x213));}[_0x52a66c(0x1f3)](){const _0x217d44=_0x52a66c,_0x1fb6c1=new _0x2f87cb();return this[_0x217d44(0x1f5)]=new _0x50d3a4(this[_0x217d44(0x202)],''),this[_0x217d44(0x1f5)][_0x217d44(0x1f9)][_0x217d44(0x1f6)]({'attributes':{'class':[_0x217d44(0x1ee)]}}),this[_0x217d44(0x1f5)][_0x217d44(0x1f7)](_0x217d44(0x20e),_0x217d44(0x1fd))['to'](this),_0x1fb6c1[_0x217d44(0x207)]({'tag':_0x217d44(0x212),'attributes':{'class':[_0x217d44(0x20b),_0x217d44(0x215)]},'children':[{'tag':'p','attributes':{'class':[_0x217d44(0x20a)]},'children':[this[_0x217d44(0x1f5)]]}]}),_0x1fb6c1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x147457=_0x342b;(function(_0x1b2abc,_0x2013fe){const _0xfb0e37=_0x342b,_0x2ede6a=_0x1b2abc();while(!![]){try{const _0x8e2b7c=parseInt(_0xfb0e37(0xe5))/0x1*(-parseInt(_0xfb0e37(0xc9))/0x2)+-parseInt(_0xfb0e37(0xe6))/0x3*(-parseInt(_0xfb0e37(0xb9))/0x4)+-parseInt(_0xfb0e37(0xc8))/0x5*(-parseInt(_0xfb0e37(0xd0))/0x6)+-parseInt(_0xfb0e37(0xbe))/0x7*(-parseInt(_0xfb0e37(0xc2))/0x8)+parseInt(_0xfb0e37(0xbd))/0x9+parseInt(_0xfb0e37(0xe7))/0xa+-parseInt(_0xfb0e37(0xcb))/0xb*(parseInt(_0xfb0e37(0xc3))/0xc);if(_0x8e2b7c===_0x2013fe)break;else _0x2ede6a['push'](_0x2ede6a['shift']());}catch(_0x579476){_0x2ede6a['push'](_0x2ede6a['shift']());}}}(_0x2d04,0x399d5));function _0x342b(_0x2ec154,_0xf65324){const _0x2d0434=_0x2d04();return _0x342b=function(_0x342bc1,_0x511993){_0x342bc1=_0x342bc1-0xb8;let _0x3af4ef=_0x2d0434[_0x342bc1];return _0x3af4ef;},_0x342b(_0x2ec154,_0xf65324);}import{View as _0x209605,ButtonView as _0xe40013}from'ckeditor5/src/ui.js';import{IconInfo as _0x454d89}from'ckeditor5/src/icons.js';function _0x2d04(){const _0x37c6bf=['AI_REVIEW_MODE_DISMISS_CHANGE','bind','8KgzEug','663252SrQHkU','execute','fire','ck-ai-button-secondary\x20ck-ai-review-mode__check-run-result-accept-button','extendTemplate','19745WyTetX','200ZmKMTj','ck-ai-review-mode__check-run-result-footer','88jlIJQC','isActive','_createDismissButtonView','stopPropagation','set','96BCDseM','_createInfoButtonView','dismissChange','ck-ai-review-mode__check-run-result_active','menuitemcheckbox','setItemAsActive','infoButtonView','log','acceptButtonView','setTemplate','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-dismiss-button','dismissButtonView','acceptChange','ck-ai-review-mode__check-run-result','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','ck-ai-review-mode__check-run-result-response','ck-content','ck-ai-review-mode__check-run-result-action-buttons','changeId','_createResultResponseView','_createAcceptButtonView','3307Unoxza','334890MZjddF','1154910Mkgede','bindTemplate','AI_REVIEW_MODE_ACCEPT_CHANGE','ck-content-direct-excluded','div','activateChange','resultResponseView','AI_REVIEW_MODE_LEARN_MORE','click','Toggle\x20info\x20view','8kmlsuR','setItemAsInactive','isInfoToggleOn','locale','1267479EvqBDU','3262637URpSRs','isOn'];_0x2d04=function(){return _0x37c6bf;};return _0x2d04();}import{getTranslation as _0x4d8099}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x209605{[_0x147457(0xed)];[_0x147457(0xd8)];[_0x147457(0xdb)];[_0x147457(0xd6)];constructor(_0x2c1a90,_0x43ca34){const _0x5d2e41=_0x147457;super(_0x2c1a90),this['id']=_0x43ca34,this[_0x5d2e41(0xcf)](_0x5d2e41(0xe2),_0x43ca34),this[_0x5d2e41(0xed)]=this[_0x5d2e41(0xe3)](),this[_0x5d2e41(0xd8)]=this[_0x5d2e41(0xe4)](),this[_0x5d2e41(0xdb)]=this[_0x5d2e41(0xcd)](),this[_0x5d2e41(0xd6)]=this[_0x5d2e41(0xd1)](),this[_0x5d2e41(0xcf)](_0x5d2e41(0xbb),!0x1),this[_0x5d2e41(0xcf)](_0x5d2e41(0xcc),!0x1),this[_0x5d2e41(0xd9)]({'tag':_0x5d2e41(0xeb),'attributes':{'class':[_0x5d2e41(0xdd),this[_0x5d2e41(0xe8)]['if'](_0x5d2e41(0xcc),_0x5d2e41(0xd3))]},'on':{'click':this[_0x5d2e41(0xe8)]['to'](_0x5d2e41(0xef))},'children':[this[_0x5d2e41(0xed)],{'tag':_0x5d2e41(0xeb),'attributes':{'class':[_0x5d2e41(0xca)]},'children':[{'tag':_0x5d2e41(0xeb),'attributes':{'class':[_0x5d2e41(0xe1)]},'children':[this[_0x5d2e41(0xd8)],this[_0x5d2e41(0xdb)]]},this[_0x5d2e41(0xd6)]]}]}),this['on'](_0x5d2e41(0xef),()=>{const _0x40f992=_0x5d2e41;this[_0x40f992(0xc5)](_0x40f992(0xec),{'id':_0x43ca34,'source':this});});}[_0x147457(0xd5)](){const _0x50f52b=_0x147457;this[_0x50f52b(0xcc)]=!0x0;}[_0x147457(0xba)](){const _0x2033cf=_0x147457;this[_0x2033cf(0xcc)]=!0x1;}[_0x147457(0xe3)](){const _0x3d5112=_0x147457,_0x2ecca2=new _0x209605(this[_0x3d5112(0xbc)]);return _0x2ecca2[_0x3d5112(0xd9)]({'tag':_0x3d5112(0xeb),'attributes':{'class':['ck',_0x3d5112(0xe0),_0x3d5112(0xea),_0x3d5112(0xdf)]}}),_0x2ecca2;}[_0x147457(0xe4)](){const _0x17ac41=_0x147457,_0x1ce818=new _0xe40013(this[_0x17ac41(0xbc)]);return _0x1ce818[_0x17ac41(0xcf)]({'label':_0x4d8099(this[_0x17ac41(0xbc)],_0x17ac41(0xe9)),'withText':!0x0,'class':_0x17ac41(0xc6)}),_0x1ce818[_0x17ac41(0xc7)]({'on':{'click':this[_0x17ac41(0xe8)]['to'](_0x5988d8=>{const _0x494f1c=_0x17ac41;this[_0x494f1c(0xc5)](_0x494f1c(0xdc),{'id':this[_0x494f1c(0xe2)]}),_0x5988d8[_0x494f1c(0xce)]();})}}),_0x1ce818;}[_0x147457(0xcd)](){const _0x35eeae=_0x147457,_0x4a4c25=new _0xe40013(this[_0x35eeae(0xbc)]);return _0x4a4c25[_0x35eeae(0xcf)]({'label':_0x4d8099(this[_0x35eeae(0xbc)],_0x35eeae(0xc0)),'withText':!0x0,'class':_0x35eeae(0xda)}),_0x4a4c25[_0x35eeae(0xc7)]({'on':{'click':this[_0x35eeae(0xe8)]['to'](_0x45d460=>{const _0x1caef4=_0x35eeae;this[_0x1caef4(0xc5)](_0x1caef4(0xd2),{'id':this[_0x1caef4(0xe2)]}),_0x45d460[_0x1caef4(0xce)]();})}}),_0x4a4c25;}[_0x147457(0xd1)](){const _0x163bc4=_0x147457,_0x364522=new _0xe40013(this[_0x163bc4(0xbc)]);return _0x364522[_0x163bc4(0xcf)]({'label':_0x4d8099(this[_0x163bc4(0xbc)],_0x163bc4(0xee)),'icon':_0x454d89,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x163bc4(0xd4),'class':_0x163bc4(0xde)}),_0x364522[_0x163bc4(0xc1)](_0x163bc4(0xbf))['to'](this,_0x163bc4(0xbb),_0xfa4ff0=>_0xfa4ff0),_0x364522['on'](_0x163bc4(0xc4),()=>{const _0x913301=_0x163bc4;console[_0x913301(0xd7)](_0x913301(0xb8)),this[_0x913301(0xbb)]=!this[_0x913301(0xbb)];}),_0x364522;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x1c113f}from'ckeditor5/src/utils.js';import{View as _0x40ca4c,ButtonView as _0x2a3b18,FormRowView as _0x539575,createDropdown as _0x4bca22,addListToDropdown as _0x5f1f03,UIModel as _0x41f5d3,ButtonLabelView as _0x3946d3}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x5e1f45}from'./aireviemodepromptinputview.js';export class AIReviewModeCustomCheckView extends _0x40ca4c{['submitButtonView'];['cancelButtonView'];['promptInputView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x4f8fdd,_0x56132f){super(_0x4f8fdd),this['_check']=_0x56132f,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x56132f['models']&&_0x56132f['models']['length']>0x0?_0x56132f['models'][0x0]['id']:'',this['_defaultLabel']=_0x56132f['models']&&_0x56132f['models']['length']>0x0?_0x56132f['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),this['promptInputView']=new _0x5e1f45(_0x4f8fdd),this['promptInputView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['on']('input',()=>{this['prompt']=this['promptInputView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new _0x1c113f(),this['_setModelList'](),_0x5f1f03(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']);const _0x10a3fa=new _0x40ca4c(_0x4f8fdd);_0x10a3fa['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions']},'children':[new _0x539575(this['locale'],{'children':[this['promptInputView']]}),new _0x539575(this['locale'],{'children':[_0x10a3fa]})]});}['resetToDefault'](){this['prompt']='',this['modelId']=this['_defaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['_defaultLabel'];}['_createSubmitButtonView'](){const _0x15bb50=new _0x2a3b18(this['locale']),t=this['locale']['t'];return _0x15bb50['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x15bb50['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x12612e=>{_0x12612e['stopPropagation']();})}}),_0x15bb50['on']('execute',()=>{this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x15bb50;}['_createCancelButtonView'](){const _0x219de4=new _0x2a3b18(this['locale']),t=this['locale']['t'];return _0x219de4['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x219de4['on']('execute',()=>{this['resetToDefault']();}),_0x219de4;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x47de2b=this['_check']['models'];if(this['resetToDefault'](),_0x47de2b?.['length'])for(const _0xd02d82 of _0x47de2b){const _0xba3c53=new _0x41f5d3({'label':_0xd02d82['name'],'withText':!0x0,'role':'menuitemradio','id':_0xd02d82['id'],'model':_0xd02d82});_0xba3c53['bind']('isOn')['to'](this,'modelId',_0x5cd3d0=>_0x5cd3d0===_0xd02d82['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0xba3c53,'labelView':new js(this['locale'],_0xd02d82)});}}['_createModelSelectionDropdown'](){const _0xc82055=_0x4bca22(this['locale']);return _0xc82055['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0xc82055['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x27ee35=>{_0x27ee35['stopPropagation']();})}}),_0xc82055['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0xc82055,'execute',_0x29ad16=>{this['modelId']=_0x29ad16['source']['model']['id'],_0xc82055['buttonView']['label']=_0x29ad16['source']['label'];}),_0xc82055;}}class js extends _0x3946d3{constructor(_0x1b2c78,_0x5dc2fa){super();const _0x2ef07d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x2ef07d['to']('style'),'id':_0x2ef07d['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'text':_0x2ef07d['to']('text')}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[{'text':_0x5dc2fa['description']}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xefe19=_0x2b2a;(function(_0x5793e8,_0x2c2267){const _0x31fa55=_0x2b2a,_0x3d4169=_0x5793e8();while(!![]){try{const _0x242459=parseInt(_0x31fa55(0xff))/0x1+parseInt(_0x31fa55(0xed))/0x2+parseInt(_0x31fa55(0xf5))/0x3+parseInt(_0x31fa55(0x107))/0x4*(parseInt(_0x31fa55(0x103))/0x5)+parseInt(_0x31fa55(0xfe))/0x6*(parseInt(_0x31fa55(0xfd))/0x7)+parseInt(_0x31fa55(0xee))/0x8+-parseInt(_0x31fa55(0x102))/0x9;if(_0x242459===_0x2c2267)break;else _0x3d4169['push'](_0x3d4169['shift']());}catch(_0x2c6f6f){_0x3d4169['push'](_0x3d4169['shift']());}}}(_0x4a18,0xaee26));function _0x4a18(){const _0x26c4a5=['1174608RCrjQM','runReviewCheck','delegate','setChecks','resetToDefault','add','resetAllParameterizedChecks','3702579KIPMql','isVisible','ck-hidden','hasChecks','entries','bindTemplate','locale','div','21EvDqjy','1007718NJzPxJ','83428SRDjWH','_checkViews','ck-ai-review-mode__check-list','20775384CIsygJ','1517530dMdFZO','clear','length','setTemplate','4jabPhC','1505780MAYjqW'];_0x4a18=function(){return _0x26c4a5;};return _0x4a18();}function _0x2b2a(_0x199507,_0x459347){const _0x4a187b=_0x4a18();return _0x2b2a=function(_0x2b2a21,_0x5907c1){_0x2b2a21=_0x2b2a21-0xed;let _0x42bf62=_0x4a187b[_0x2b2a21];return _0x42bf62;},_0x2b2a(_0x199507,_0x459347);}import{ListItemView as _0x185878,ViewCollection as _0x17106c}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0x590e40}from'./aireviewmodereviewcommandlistitemview.js';import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0x185878{[_0xefe19(0x100)];constructor(_0x2eb93f){const _0xd6695=_0xefe19;super(_0x2eb93f),this[_0xd6695(0x100)]=new _0x17106c();const _0x55503b=this[_0xd6695(0xfa)];this[_0xd6695(0x106)]({'tag':_0xd6695(0xfc),'attributes':{'class':[_0xd6695(0x101),_0x55503b['if'](_0xd6695(0xf6),_0xd6695(0xf7),_0x2ef9ab=>!_0x2ef9ab)]},'children':this[_0xd6695(0x100)]});}[_0xefe19(0xf1)](_0x69cc39){const _0x4a3ed0=_0xefe19;this[_0x4a3ed0(0x100)][_0x4a3ed0(0x104)]();for(const [_0xeb5da6,_0x4686df]of _0x69cc39[_0x4a3ed0(0xf9)]()){const _0x34207b=new _0x590e40(this[_0x4a3ed0(0xfb)],_0x4686df,_0xeb5da6);_0x34207b[_0x4a3ed0(0xf0)](_0x4a3ed0(0xef))['to'](this),this[_0x4a3ed0(0x100)][_0x4a3ed0(0xf3)](_0x34207b);}}[_0xefe19(0xf8)](){const _0x16a288=_0xefe19;return this[_0x16a288(0x100)][_0x16a288(0x105)]>0x0;}[_0xefe19(0xf4)](){const _0x30a21c=_0xefe19;for(const _0x14431d of this[_0x30a21c(0x100)])_0x14431d instanceof _0x590e40&&_0x14431d[_0x30a21c(0xf2)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x123d61,View as _0x14cfe5,ViewCollection as _0xef5f9f,ButtonView as _0x133c26}from'ckeditor5/src/ui.js';import{IconStop as _0x56b24a,IconEye as _0x279569,IconEyeCrossedOut as _0x40ec8a}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x29b4a0}from'./aireviewmodechecklistitemresultview.js';import{AISkeletonView as _0x54752d,SKELETON_DEFINITIONS as _0x303582}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x2256e2}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x555bb7}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x2c984a}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x123d61{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];constructor(_0x26369f){super(_0x26369f),this['_resultViews']=new _0xef5f9f(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x2256e2(_0x26369f),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general');const _0x4ee017=this['_createCombinedSkeletonLoader'](),_0x3d87a7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x3d87a7['if']('isVisible','ck-hidden',_0x65cac=>!_0x65cac)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x455919=>_0x455919)]},'children':this['_resultViews']},_0x4ee017]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x38089c){const _0x505ad5=new _0x29b4a0(this['locale'],_0x38089c['id']);_0x505ad5['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x505ad5),_0x505ad5['resultResponseView']['element']['innerHTML']=_0x38089c['contentDiffed'];}['hideResult'](_0x5c6210){const _0x5f1fa4=this['_resultViews']['find'](_0x334102=>_0x334102['id']===_0x5c6210);_0x5f1fa4&&(_0x5f1fa4['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_removing'),_0x5f1fa4['element']?.['addEventListener']('animationend',()=>{this['_resultViews']['remove'](_0x5f1fa4),_0x5f1fa4['destroy']();},{'once':!0x0}));}['setTitle'](_0x4ae8a2){this['headerTitle']=_0x4ae8a2;}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x54752d(this['locale'],_0x303582['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x286142=new _0x14cfe5(this['locale']),_0x368b5e=[];for(let _0x312951=0x0;_0x312951<0x10;_0x312951++){const _0x5881d5=this['_createSkeletonLoader']();_0x5881d5['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x368b5e['push'](_0x5881d5);}return _0x286142['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x33b4bf=>!_0x33b4bf)]},'children':_0x368b5e}),_0x286142;}['_createErrorView'](){const _0x78f76d=new _0x14cfe5(this['locale']),_0xe9e8aa=new _0x133c26(this['locale']),t=this['locale']['t'];return _0x78f76d['delegate']('retryReview')['to'](this),_0xe9e8aa['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0xe9e8aa['on']('execute',()=>{this['fire']('retryReview');}),_0x78f76d['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x4a6395=>!_0x4a6395),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x4ba76d=>'chunk'===_0x4ba76d)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-chat-error','ck-ai-chat-error_full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-chat-error_warning',_0x41b7d0=>'chunk'===_0x41b7d0)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x547812=>'general'!==_0x547812)]},'children':[{'text':_0x555bb7(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x1d1a6c=>'chunk'!==_0x1d1a6c)]},'children':[{'text':_0x555bb7(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0xe9e8aa]}),_0x78f76d;}['_createCancelButtonView'](){const _0x5856d8=new _0x133c26(this['locale']);return _0x5856d8['set']({'label':_0x555bb7(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ai-chat-controls-loader__cancel-button'],'icon':_0x56b24a}),_0x5856d8['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1ec953=>_0x1ec953)]}}),_0x5856d8['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x5856d8;}['_createToggleDiffButtonView'](){const _0x1c7a43=new _0x133c26(this['locale']);_0x1c7a43['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x1c7a43['bind']('isEnabled')['to'](this,'isError',_0x748edd=>!_0x748edd),_0x1c7a43['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x482c96=>!_0x482c96)]}});const _0x20bd22=_0x555bb7(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0xd99826=_0x555bb7(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x1c7a43['bind']('isOn')['to'](this,'isToggleDiffOn',_0x5bbab6=>_0x5bbab6),_0x1c7a43['bind']('icon')['to'](this,'isToggleDiffOn',_0x1c2c96=>_0x1c2c96?_0x279569:_0x40ec8a),_0x1c7a43['bind']('label')['to'](this,'isToggleDiffOn',_0xa0695e=>_0xa0695e?_0x20bd22:_0xd99826),_0x1c7a43['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x1c7a43;}['_createAcceptAllButtonView'](){const _0x4f04fc=new _0x133c26(this['locale']);return _0x4f04fc['set']({'label':_0x555bb7(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x4f04fc['bind']('isEnabled')['to'](this,'isError',_0x5b4130=>!_0x5b4130),_0x4f04fc['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4847b1=>!_0x4847b1)]}}),_0x4f04fc['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x4f04fc;}['_createExitReviewButtonView'](){const _0x168777=new _0x133c26(this['locale']);return _0x168777['set']({'label':_0x555bb7(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x168777['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x552f0a=>!_0x552f0a)]}}),_0x168777['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x168777;}['_createResultHeaderView'](){const _0x2ad28b=new _0x14cfe5(this['locale']),_0x4da218=new _0x2c984a();return _0x4da218['bind']('isVisible')['to'](this,'isResultReady',_0x213617=>!_0x213617),_0x2ad28b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[_0x4da218,this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView']]}]}),_0x2ad28b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x152277,IconView as _0x5bc9f5,View as _0x2874eb,ViewCollection as _0x190a6b,ButtonView as _0x35cdc4,clickOutsideHandler as _0x33cd6c}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x35eec7}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x4f47b0}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as _0x575ce6}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x152277{['_formItemsCollection']=new _0x190a6b();['_customCheckView']=null;constructor(_0x27a53d,_0x4f4529,_0x33b660){super(_0x27a53d),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x4f4529['isParameterized']);const _0x5f4c7a=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai-review-mode__check-list-item_selected',_0x5da116=>_0x5da116),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x79c484=>_0x79c484)],'style':{'--ck-ai-check-list-item-index':_0x33b660}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-list-item-title-text']},'children':[{'text':_0x4f4529['title']}]},_0x5f4c7a]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x4f4529['description']}]}]}]},..._0x4f4529['isParameterized']?[this['_createParameterizedView'](_0x4f4529)]:[],...'custom'===_0x4f4529['id']?[this['_createCustomView'](_0x4f4529)]:[]]}),this['on']('click',()=>{_0x4f4529['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x4f4529['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x33cd6c({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x42397d=>{_0x42397d['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x31fdc8=new _0x5bc9f5();return _0x31fdc8['content']=_0x35eec7,_0x31fdc8['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x31fdc8;}['_createParameterizedView'](_0x5ae7eb){const _0x5354fe=new _0x2874eb(),_0x4eb9cd=this['_createFormView'](_0x5ae7eb);return _0x5354fe['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x18be95=>!_0x18be95)]},'children':[_0x4eb9cd]}),_0x5354fe;}['_createFormView'](_0x2059a0){const _0x3b782b=new _0x2874eb(),_0x16e41d=Array['isArray'](_0x2059a0['options'])?_0x2059a0['options']:[],_0x1c0095=new _0x35cdc4(this['locale']),t=this['locale']['t'];_0x1c0095['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x1c0095['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x3e253b=>{_0x3e253b['stopPropagation']();})}}),_0x1c0095['on']('execute',()=>{const _0x506978=[],_0x51e9c6={};this['_formItemsCollection']['forEach'](_0x506a1c=>{_0x506978['push'](_0x506a1c['value']),_0x2059a0['useArgs']&&_0x2059a0['options']&&(_0x51e9c6[_0x506a1c['argsKey']]=_0x506a1c['value']);}),this['fire']('runReviewCheck',{'id':_0x2059a0['id'],'params':_0x506978['length']?_0x506978:void 0x0,'args':Object['keys'](_0x51e9c6)['length']?_0x51e9c6:void 0x0});});const _0x4175de=_0x16e41d['length'];return _0x16e41d['forEach']((_0x1fe9d3,_0x323455)=>{const _0x43536b=_0x323455===_0x4175de-0x1;this['_formItemsCollection']['add'](new _0x4f47b0(this['locale'],_0x1fe9d3,_0x43536b?_0x1c0095:null));}),_0x3b782b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x3b782b;}['_createCustomView'](_0x27eac0){return this['_customCheckView']=new _0x575ce6(this['locale'],_0x27eac0),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized','ck-ai-review-mode__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x20224a=>!_0x20224a)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['_customCheckView'];}}
|